@font-face {
  font-family: "Barlow Counter";
  src: url("/banii-din-1947/assets/fonts/BarlowCondensed.6553a31e71bb.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Noto Ledger";
  src: url("/banii-din-1947/assets/fonts/NotoSans.59ac1c6375a8.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Plex Figure";
  src: url("/banii-din-1947/assets/fonts/IBMPlexMono-Regular.81fc864103e7.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #dce7dc;
  --paper-bright: #f2f5e9;
  --paper-deep: #b9cbbd;
  --ink: #102b32;
  --ink-soft: #405b60;
  --ink-faint: #718488;
  --night: #0b242b;
  --night-raised: #14333a;
  --oxide: #a23a31;
  --oxide-dark: #742b28;
  --brass: #a68138;
  --brass-bright: #d3b664;
  --rule: rgba(16, 43, 50, 0.24);
  --rule-light: rgba(242, 245, 233, 0.24);
  --max-width: 82rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --display: "Barlow Counter", "Arial Narrow", sans-serif;
  --body: "Noto Ledger", system-ui, sans-serif;
  --figure: "Plex Figure", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 67%, rgba(16, 43, 50, 0.09) 0 0.8px, transparent 1.3px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(16, 43, 50, 0.018) 7px 8px);
  background-size: 17px 19px, 23px 29px, auto;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-radial-gradient(ellipse at 5% 35%, transparent 0 22px, rgba(16, 43, 50, 0.09) 23px 24px, transparent 25px 31px),
    repeating-radial-gradient(ellipse at 96% 70%, transparent 0 19px, rgba(162, 58, 49, 0.06) 20px 21px, transparent 22px 29px);
  mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000);
}

button,
input,
summary {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--oxide-dark);
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 4px;
}

.amount-panel :focus-visible,
.scope-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brass-bright);
}

.scope-section a:hover,
.site-footer a:hover {
  color: var(--brass-bright);
}

::selection {
  color: var(--paper-bright);
  background: var(--oxide);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - (2 * var(--gutter)), var(--max-width));
  min-height: 4.5rem;
  margin-inline: auto;
  border-bottom: 1px solid var(--rule);
}

.identity-link,
.language-link,
.library-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--figure);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  padding: clamp(7rem, 13vh, 10rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  top: 7rem;
  right: clamp(1rem, 5vw, 5rem);
  z-index: -1;
  width: min(31vw, 25rem);
  aspect-ratio: 1;
  opacity: 0.7;
  border: 1px solid rgba(16, 43, 50, 0.18);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 8px, rgba(16, 43, 50, 0.13) 9px 10px),
    repeating-conic-gradient(from 8deg, transparent 0 7deg, rgba(162, 58, 49, 0.08) 7deg 8deg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100%, var(--max-width));
  min-height: calc(100svh - clamp(10rem, 20vh, 15rem));
  margin-inline: auto;
}

.eyebrow,
.section-index,
.window-index,
.docket-label,
.evidence-label {
  margin: 0;
  font-family: var(--figure);
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 0.3rem;
  background: var(--oxide);
}

.hero h1 {
  max-width: 9.5ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 12.5vw, 10.7rem);
  font-weight: 900;
  line-height: 0.77;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--oxide);
}

.hero-deck {
  max-width: 45rem;
  margin: clamp(1.7rem, 4vh, 3rem) 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.5;
}

.hero-docket {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ink);
  background: rgba(242, 245, 233, 0.5);
  box-shadow: 0.65rem 0.65rem 0 var(--ink);
}

.rate-figure {
  margin: 1.25rem 0 0;
  font-family: var(--figure);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.rate-caption {
  max-width: 24ch;
  margin: 0.75rem 0 1.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.deadline-stamp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  color: var(--oxide-dark);
  border-top: 2px solid var(--oxide);
  font-family: var(--figure);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.deadline-stamp strong {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 0.8;
}

.hero-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-top: 1.5rem;
  font-family: var(--figure);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero-link::after {
  content: "↓";
  color: var(--oxide);
  font-size: 1.2rem;
}

.section-shell {
  width: min(100% - (2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
}

.counter-section {
  color: var(--paper-bright);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    repeating-linear-gradient(90deg, transparent 0 3rem, rgba(255, 255, 255, 0.018) 3rem calc(3rem + 1px)),
    var(--night);
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.counter-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-index {
  color: var(--brass-bright);
}

.counter-intro h2,
.essay h2,
.sources h2,
.legal-aftermath h2 {
  margin: 0.65rem 0 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.counter-intro p {
  max-width: 34rem;
  margin: 0;
  color: rgba(242, 245, 233, 0.78);
}

.amount-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.42fr);
  border: 1px solid var(--rule-light);
  background: rgba(242, 245, 233, 0.04);
}

html:not(.js-ready) .amount-panel {
  grid-template-columns: 1fr;
}

html:not(.js-ready) .amount-control,
html:not(.js-ready) .copy-wrap {
  display: none;
}

.scope-caution {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  color: rgba(242, 245, 233, 0.82);
  border-left: 0.35rem solid var(--brass-bright);
  background: rgba(242, 245, 233, 0.05);
  font-size: 0.86rem;
}

.scope-caution strong {
  color: var(--brass-bright);
}

.amount-control {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-right: 1px solid var(--rule-light);
}

.amount-control label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brass-bright);
  font-family: var(--figure);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.amount-number {
  width: min(100%, 13ch);
  min-height: 52px;
  padding: 0.2rem 0.45rem;
  color: var(--paper-bright);
  border: 0;
  border-bottom: 2px solid var(--paper-bright);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: var(--figure);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.07em;
  appearance: textfield;
}

.amount-number::-webkit-inner-spin-button,
.amount-number::-webkit-outer-spin-button {
  appearance: none;
}

.amount-number:focus-visible {
  border-color: var(--brass-bright);
  outline: 3px solid var(--brass-bright);
  outline-offset: 4px;
}

.number-unit {
  max-width: 7rem;
  color: rgba(242, 245, 233, 0.66);
  font-size: 0.82rem;
  line-height: 1.25;
}

.amount-range {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--brass-bright);
  cursor: ew-resize;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -0.2rem;
  color: rgba(242, 245, 233, 0.55);
  font-family: var(--figure);
  font-size: 0.72rem;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.preset-button,
.copy-button {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--rule-light);
  border-radius: 0;
  background: transparent;
  font-family: var(--figure);
  font-size: 0.75rem;
  cursor: pointer;
}

.preset-button:hover,
.preset-button[aria-pressed="true"],
.copy-button:hover {
  color: var(--night);
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.fixed-rule {
  display: grid;
  align-content: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(166, 129, 56, 0.1);
}

.fixed-rule strong {
  display: block;
  margin: 0.5rem 0;
  color: var(--brass-bright);
  font-family: var(--figure);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.fixed-rule span {
  color: rgba(242, 245, 233, 0.68);
  font-size: 0.78rem;
}

.exchange-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  border: 1px solid var(--rule-light);
  background: var(--night-raised);
}

.exchange-window {
  --requested: 100%;
  --admitted: 15%;
  min-width: 0;
  border-right: 1px solid var(--rule-light);
}

.exchange-window:last-child {
  border-right: 0;
}

.window-head {
  min-height: 10.6rem;
  padding: 1.15rem;
  border-bottom: 1px solid var(--rule-light);
}

.window-index {
  color: var(--brass-bright);
}

.window-head h3 {
  margin: 0.7rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.aperture {
  position: relative;
  height: clamp(17rem, 28vw, 24rem);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(10% - 1px), rgba(242, 245, 233, 0.1) calc(10% - 1px) 10%),
    linear-gradient(180deg, #081b20, #102e35);
}

.aperture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 0 0.65rem rgba(0, 0, 0, 0.15);
}

.requested-stack,
.admitted-stack {
  position: absolute;
  inset: auto 17% 0;
  transition: height 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.requested-stack {
  z-index: 1;
  height: var(--requested);
  max-height: 100%;
  border: 1px solid rgba(242, 245, 233, 0.38);
  background: repeating-linear-gradient(135deg, rgba(162, 58, 49, 0.62) 0 4px, rgba(162, 58, 49, 0.16) 4px 9px);
}

.admitted-stack {
  z-index: 2;
  height: var(--admitted);
  max-height: 100%;
  border: 1px solid var(--paper-bright);
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 8px, rgba(16, 43, 50, 0.18) 9px 10px, transparent 11px 16px),
    var(--paper-deep);
}

.limit-rule {
  position: absolute;
  right: 8%;
  bottom: var(--limit);
  left: 8%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 1.5rem;
  color: var(--paper-bright);
  border-top: 2px solid var(--oxide);
  font-family: var(--figure);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.limit-rule::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.1rem;
  background: var(--oxide);
  transform: rotate(45deg);
}

.limit-15 {
  --limit: 15%;
  --admitted: 15%;
}

.limit-30 {
  --limit: 30%;
  --admitted: 30%;
}

.limit-50 {
  --limit: 50%;
  --admitted: 50%;
}

.limit-75 {
  --limit: 75%;
  --admitted: 75%;
}

.window-result {
  min-height: 18rem;
  padding: 1.2rem;
  color: var(--ink);
  background: var(--paper-bright);
}

.result-label {
  display: block;
  color: var(--ink-soft);
  font-family: var(--figure);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.new-amount {
  display: block;
  min-height: 3.9rem;
  margin: 0.45rem 0 0.95rem;
  font-family: var(--figure);
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.accepted-line {
  min-height: 3.2rem;
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.35;
}

.accepted-line [data-output-old] {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-family: var(--figure);
  font-size: 0.8rem;
}

.remainder-line {
  min-height: 4.5rem;
  margin: 0;
  padding-top: 0.8rem;
  color: var(--oxide-dark);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  line-height: 1.4;
}

.remainder-line [data-output-remainder] {
  display: block;
  font-family: var(--figure);
  font-size: 0.82rem;
}

.remainder-line span {
  display: block;
  margin-top: 0.25rem;
}

.clause-details {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

.clause-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--figure);
  font-size: 0.74rem;
  cursor: pointer;
  list-style: none;
}

.clause-details summary::-webkit-details-marker {
  display: none;
}

.clause-details summary::after {
  content: "+";
  color: var(--oxide);
  font-size: 1.1rem;
}

.clause-details[open] summary::after {
  content: "−";
}

.clause-details p {
  margin: 0 0 0.85rem;
  font-size: 0.77rem;
  line-height: 1.5;
}

.clause-details a {
  color: var(--oxide-dark);
}

.insight-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--night);
  background: var(--brass-bright);
}

.insight-strip p {
  max-width: 56rem;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.copy-wrap {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.copy-button {
  border-color: var(--night);
}

.copy-button:hover {
  color: var(--paper-bright);
  background: var(--night);
}

.copy-status {
  min-height: 1.2rem;
  font-family: var(--figure);
  font-size: 0.72rem;
}

.no-script-note {
  margin: 1.5rem 0 0;
  padding: 0.8rem 1rem;
  color: var(--night);
  background: var(--brass-bright);
}

.legal-aftermath {
  padding: clamp(5rem, 11vw, 10rem) 0;
}

.aftermath-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.62fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.aftermath-heading p {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.legal-aftermath h2,
.sources h2 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 2px solid var(--ink);
}

.timeline-step {
  position: relative;
  padding: 2rem clamp(0.8rem, 2vw, 1.5rem) 0;
  border-left: 1px solid var(--rule);
}

.timeline-step:last-child {
  border-right: 1px solid var(--rule);
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: -0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--oxide);
  transform: rotate(45deg);
}

.timeline-step time,
.timeline-step .time-marker {
  color: var(--oxide-dark);
  font-family: var(--figure);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.timeline-step h3 {
  margin: 0.7rem 0 0.55rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.timeline-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.blocked-ledger {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border: 1px solid var(--ink);
  background: rgba(242, 245, 233, 0.58);
  box-shadow: 0.65rem 0.65rem 0 var(--ink);
}

.ledger-mark {
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: 2rem;
  color: var(--paper-bright);
  background:
    repeating-linear-gradient(0deg, transparent 0 1.9rem, rgba(242, 245, 233, 0.1) 1.9rem calc(1.9rem + 1px)),
    var(--oxide-dark);
}

.ledger-mark span {
  display: block;
  max-width: 7ch;
  border: 3px solid currentColor;
  padding: 1.2rem;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.78;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.ledger-copy {
  align-self: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.ledger-copy h3 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.ledger-copy p {
  max-width: 46rem;
  margin: 1.25rem 0 0;
}

.scope-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  color: var(--paper-bright);
  background: var(--oxide-dark);
}

.scope-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.scope-title h2 {
  margin: 0.7rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}

.scope-title p {
  color: rgba(242, 245, 233, 0.78);
}

.other-counters {
  margin: 0;
  border-top: 1px solid rgba(242, 245, 233, 0.45);
}

.other-counters > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(242, 245, 233, 0.45);
}

.other-counters dt {
  font-family: var(--figure);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.other-counters dd {
  margin: 0;
}

.essay {
  padding: clamp(5rem, 11vw, 10rem) 0;
}

.essay-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.essay h2 {
  position: sticky;
  top: 2rem;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.essay-copy {
  max-width: 48rem;
}

.essay-copy p {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.pull-figure {
  margin: 3rem 0;
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 0.7rem solid var(--oxide);
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}

.sources {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--ink);
  background: rgba(185, 203, 189, 0.45);
}

.sources-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.source-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--ink);
}

.source-number {
  font-family: var(--figure);
  font-size: 0.72rem;
}

.source-list p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.source-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.source-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink);
  font-family: var(--figure);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
}

.source-downloads a:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.method-note {
  margin-top: 2rem;
  padding: 1.25rem;
  border-left: 0.4rem solid var(--brass);
  background: rgba(242, 245, 233, 0.62);
  font-size: 0.88rem;
}

.site-footer {
  color: var(--paper-bright);
  background: var(--night);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  width: min(100% - (2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.footer-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
}

.footer-meta {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  color: rgba(242, 245, 233, 0.68);
  font-size: 0.83rem;
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
  font-family: var(--figure);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  right: max(1rem, calc((100vw - var(--max-width)) / 2));
  bottom: 1rem;
  z-index: 50;
  display: none;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--paper-bright);
  border: 1px solid var(--paper-bright);
  background: var(--ink);
  font-family: var(--figure);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-top:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.back-to-top:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--brass-bright);
}

.js-ready .back-to-top {
  display: inline-grid;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.js-ready .back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem;
}

.not-found-inner {
  max-width: 44rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--ink);
  box-shadow: 0.7rem 0.7rem 0 var(--ink);
  background: var(--paper-bright);
}

.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
}

.not-found a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
}

@media (max-width: 68rem) {
  .hero-inner,
  .counter-intro,
  .aftermath-heading,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-content: end;
    min-height: calc(100svh - 11rem);
  }

  .hero-docket {
    width: min(100%, 36rem);
    min-height: 18rem;
  }

  .exchange-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .exchange-window:nth-child(2) {
    border-right: 0;
  }

  .exchange-window:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule-light);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-step:nth-child(-n + 2) {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 50rem) {
  .library-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .hero-inner {
    min-height: calc(100svh - 8rem);
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .hero::after {
    top: 6rem;
    right: 0;
    width: 11rem;
  }

  .amount-panel,
  .blocked-ledger,
  .scope-grid,
  .essay-grid {
    grid-template-columns: 1fr;
  }

  .amount-control {
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .ledger-mark {
    min-height: 15rem;
  }

  .essay h2 {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 36rem) {
  .site-header {
    min-height: 3.8rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero {
    padding-top: 5.1rem;
  }

  .hero-inner {
    min-height: calc(100svh - 6rem);
    gap: 1.5rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 20.5vw, 5.35rem);
  }

  .hero-deck {
    margin-top: 1.2rem;
    font-size: 0.98rem;
  }

  .hero-docket {
    min-height: 0;
    padding: 1rem;
    box-shadow: 0.4rem 0.4rem 0 var(--ink);
  }

  .rate-figure {
    font-size: 2rem;
  }

  .rate-caption {
    margin-bottom: 0.9rem;
    font-size: 0.76rem;
  }

  .deadline-stamp strong {
    font-size: 1.6rem;
  }

  .hero-link {
    margin-top: 0.7rem;
  }

  .counter-intro h2,
  .legal-aftermath h2,
  .scope-title h2,
  .essay h2,
  .sources h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .number-row {
    align-items: flex-end;
  }

  .amount-number {
    font-size: 1.7rem;
  }

  .exchange-wall {
    grid-template-columns: 1fr;
  }

  .exchange-window,
  .exchange-window:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .exchange-window:last-child {
    border-bottom: 0;
  }

  .window-head {
    min-height: 0;
  }

  .window-head h3 {
    font-size: 2.35rem;
  }

  .aperture {
    height: 15rem;
  }

  .window-result {
    min-height: 0;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }

  .copy-wrap {
    justify-items: start;
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .timeline-step,
  .timeline-step:nth-child(-n + 2) {
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-top: 1px solid var(--ink);
    border-right: 0;
    border-bottom: 0;
  }

  .timeline-step::before {
    top: -0.4rem;
    left: -0.4rem;
  }

  .other-counters > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .source-list li {
    grid-template-columns: 2.5rem 1fr;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero-link,
  .amount-control,
  .copy-wrap,
  .back-to-top {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero,
  .counter-section,
  .scope-section,
  .site-footer {
    color: #000;
    background: #fff;
  }

  .exchange-wall,
  .blocked-ledger,
  .hero-docket {
    box-shadow: none;
  }
}
