:root {
  --paper: #f2eee4;
  --paper-deep: #e6dfd2;
  --ink: #1f2927;
  --muted: #697570;
  --rule: #b6beb6;
  --shop: #d45c42;
  --shop-deep: #a83e2e;
  --rest: #2d8278;
  --rest-deep: #205b55;
  --gold: #c29336;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(210, 92, 66, .07), transparent 22rem),
    radial-gradient(circle at 92% 44%, rgba(45, 130, 120, .07), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}

a:hover {
  color: var(--shop-deep);
}

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

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform .18s ease;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1380px);
  min-height: 4.25rem;
  margin: 0 auto;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-mark,
.top-nav,
.language-nav,
.top-nav a,
.language-nav a {
  display: flex;
  align-items: center;
}

.project-mark {
  gap: .8rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.mark-box {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--white);
  background: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand-copy {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: lowercase;
}

.top-nav {
  gap: 1.25rem;
}

.top-nav > a,
.language-nav a,
.language-nav span {
  min-height: 2.75rem;
  padding: .72rem .3rem;
  text-decoration: none;
}

.top-nav > a {
  color: var(--muted);
}

.top-nav > a:hover,
.language-nav a:hover {
  color: var(--ink);
}

.language-nav {
  gap: .5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.language-nav span {
  color: var(--ink);
  font-weight: 800;
}

.language-nav a {
  color: var(--muted);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(20rem, .96fr);
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 1380px;
  min-height: 43rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5.8rem) clamp(1rem, 3vw, 2.8rem) 2.25rem;
  color: var(--white);
  background:
    linear-gradient(126deg, rgba(31, 41, 39, .96), rgba(31, 41, 39, .99)),
    var(--ink);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 47%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 253, 248, .035) 28px 29px);
  content: "";
  pointer-events: none;
}

.hero-copy {
  align-self: start;
  max-width: 43rem;
}

.eyebrow,
.section-kicker,
.figure-kicker,
.source-type,
.stat-label,
.source-stamp,
.receipt-meta {
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: #d5b36b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}

.deck {
  max-width: 40rem;
  margin-bottom: 1.2rem;
  color: #e7e7dc;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.32;
}

.deck strong {
  color: #fff0c7;
  font-weight: 600;
}

.reader-gain {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: #b8c8c0;
  font-size: .95rem;
}

.reader-gain strong {
  color: var(--white);
}

.continuation-cue {
  max-width: 35rem;
  margin: -1rem 0 1.45rem;
  padding-left: .75rem;
  color: #f0d79e;
  border-left: 2px solid var(--gold);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .025em;
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: 1.35rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
  padding: .95rem .85rem .8rem;
  border-top: 3px solid currentColor;
  background: rgba(255, 253, 248, .08);
}

.hero-stat .stat-label {
  min-height: 2.15rem;
  color: #b8c8c0;
  font-size: .59rem;
  letter-spacing: .075em;
}

.hero-stat strong {
  margin: auto 0 .15rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: 1;
}

.hero-stat > span:last-child {
  color: #d1d9d1;
  font-size: .74rem;
  line-height: 1.25;
}

.stat-total {
  color: #d5b36b;
}

.stat-shop {
  color: #ef8b70;
}

.stat-rest {
  color: #8ed0c4;
}

.source-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  max-width: 42rem;
  padding: .85rem 0 .7rem;
  color: #cad2c9;
  border-top: 1px solid rgba(255, 253, 248, .25);
  border-bottom: 1px solid rgba(255, 253, 248, .18);
  font-size: .61rem;
  letter-spacing: .055em;
}

.source-stamp span + span::before {
  margin-right: 1rem;
  color: var(--gold);
  content: "·";
}

.credibility {
  max-width: 39rem;
  margin: .85rem 0 0;
  color: #a9bbb2;
  font-size: .82rem;
}

.credibility a {
  color: #fff0c7;
}

.receipt-figure {
  align-self: center;
  max-width: 37rem;
  margin: 0;
  color: var(--ink);
  transform: rotate(1.1deg);
}

.receipt-figure figcaption {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: 0 1rem .8rem 1.5rem;
  color: #e7e7dc;
}

.figure-kicker {
  margin-right: auto;
  color: #c8d0c5;
  font-size: .61rem;
}

.receipt-figure figcaption strong {
  color: #fff0c7;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: 1;
}

.receipt-figure figcaption > span:last-child {
  font-size: .77rem;
}

.receipt-paper {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--white);
  box-shadow: 1.25rem 1.25rem 0 rgba(0, 0, 0, .16);
}

.receipt-paper::after {
  position: absolute;
  right: 0;
  bottom: -.7rem;
  left: 0;
  height: 1rem;
  background: linear-gradient(135deg, transparent 34%, var(--white) 35% 64%, transparent 65%) 0 0 / 1.5rem 1rem repeat-x;
  content: "";
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: .8rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--rule);
  font-size: .59rem;
}

.receipt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 .8rem;
}

.receipt-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.receipt-row strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.receipt-divider {
  border-top: 1px dashed var(--rule);
}

.change-bar {
  display: flex;
  width: 100%;
  height: 4.4rem;
  margin: 1.35rem 0 .8rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.change-segment {
  display: block;
  height: 100%;
}

.segment-shop {
  flex: 26718 0 0;
  background: var(--shop);
}

.segment-rest {
  flex: 4143 0 0;
  min-width: .22rem;
  background: var(--rest);
}

.bar-labels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: .8rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}

.bar-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.bar-label strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.05em;
}

.swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: .7rem;
  height: .7rem;
  margin-top: .28rem;
}

.swatch-shop {
  background: var(--shop);
}

.swatch-rest {
  background: var(--rest);
}

.receipt-equation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin: 1rem 0 .65rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  font-weight: 700;
}

.receipt-equation b {
  color: var(--muted);
  font-weight: 400;
}

.receipt-equation .eq-shop {
  color: var(--shop-deep);
}

.receipt-equation .eq-rest {
  color: var(--rest-deep);
}

.receipt-note {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.35;
}

.scope-ribbon {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  align-self: end;
  margin-top: -.2rem;
  padding: .85rem 1rem;
  color: #d6e0d7;
  border: 1px solid rgba(255, 253, 248, .25);
  background: rgba(255, 253, 248, .06);
}

.scope-ribbon p {
  max-width: 72rem;
  margin: 0;
  font-size: .84rem;
  line-height: 1.4;
}

.scope-ribbon strong {
  color: #fff0c7;
}

.ribbon-mark {
  display: grid;
  flex: 0 0 1.35rem;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 800;
}

.section-rail {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .35rem;
  max-width: 1380px;
  margin: 0 auto;
  padding: .9rem clamp(1rem, 3vw, 2.8rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 238, 228, .9);
}

.section-rail a {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  padding: .55rem .8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-rail a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.chapter {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 4.6rem);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1rem, 3vw, 2.8rem);
  scroll-margin-top: 1rem;
}

.chapter-tinted {
  max-width: none;
  padding-right: max(clamp(1rem, 3vw, 2.8rem), calc((100% - 1040px) / 2));
  padding-left: max(clamp(1rem, 3vw, 2.8rem), calc((100% - 1040px) / 2));
  background: rgba(230, 223, 210, .52);
}

.chapter-number {
  padding-top: .4rem;
  color: var(--shop-deep);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.chapter-body {
  min-width: 0;
}

.section-kicker {
  margin-bottom: .7rem;
  color: var(--rest-deep);
}

h2 {
  max-width: 17ch;
  margin-bottom: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}

.lead {
  max-width: 47rem;
  margin-bottom: 2.1rem;
  color: #394541;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.75vw, 1.42rem);
  line-height: 1.45;
}

.ledger-lines {
  max-width: 50rem;
  border-top: 2px solid var(--ink);
}

.ledger-line {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem .2rem 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-dot {
  width: .82rem;
  height: .82rem;
}

.line-shop .ledger-dot {
  background: var(--shop);
}

.line-rest .ledger-dot {
  background: var(--rest);
}

.ledger-line > div {
  display: grid;
  gap: .18rem;
}

.line-caption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ledger-line strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -.05em;
}

.ledger-line em {
  color: var(--shop-deep);
  font-family: var(--mono);
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.line-rest em {
  color: var(--rest-deep);
}

.annotation {
  display: flex;
  gap: .75rem;
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.annotation > span {
  flex: 0 0 auto;
  color: var(--shop-deep);
  font-family: var(--mono);
  font-weight: 800;
}

.share-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
}

.share-card {
  padding: 1.3rem 1.25rem 1.15rem;
  border-top: 4px solid var(--ink);
  background: var(--white);
}

.share-card-highlight {
  border-top-color: var(--shop);
}

.share-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

.share-topline strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.06em;
}

.share-card-highlight .share-topline strong {
  color: var(--shop-deep);
}

.share-track {
  height: 1.5rem;
  margin-bottom: .8rem;
  background: var(--paper-deep);
}

.share-fill {
  display: block;
  height: 100%;
  background: var(--ink);
}

.share-2023 {
  width: 10.3%;
}

.share-2026 {
  width: 17.6%;
  background: var(--shop);
}

.share-card p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.callout,
.update-box {
  max-width: 52rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 253, 248, .7);
  font-size: .9rem;
}

.callout strong,
.update-box strong {
  color: var(--ink);
}

.revision-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 52rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--white);
}

.revision-note > div:not(.revision-arrow) {
  display: grid;
  gap: .3rem;
}

.revision-note span:not(.revision-arrow) {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.revision-note strong {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: 1;
}

.revision-note small {
  max-width: 12rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}

.revision-arrow {
  padding: 0 1.25rem;
  color: var(--shop-deep);
  font-size: 1.7rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
}

.boundary-card {
  min-height: 13rem;
  padding: 1.3rem 1.25rem;
  border-top: 4px solid var(--ink);
  background: var(--white);
}

.boundary-out {
  border-top-color: var(--shop);
}

.boundary-index {
  display: block;
  margin-bottom: 2rem;
  color: var(--rest-deep);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.boundary-out .boundary-index {
  color: var(--shop-deep);
}

.boundary-card h3 {
  margin-bottom: .45rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

.boundary-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.formula-strip {
  display: grid;
  gap: .6rem;
  max-width: 52rem;
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.2rem;
  color: #e8efe8;
  background: var(--ink);
  overflow-wrap: anywhere;
}

code {
  font-family: var(--mono);
  font-size: .78rem;
}

.table-wrap {
  max-width: 60rem;
}

.calculation-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-variant-numeric: tabular-nums;
}

.calculation-table caption {
  padding: 0 0 .8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

.calculation-table th,
.calculation-table td {
  padding: .9rem .8rem;
  border: 1px solid var(--rule);
  text-align: right;
}

.calculation-table thead th {
  color: var(--muted);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.calculation-table thead th:first-child,
.calculation-table tbody th {
  text-align: left;
}

.calculation-table tbody th {
  font-family: var(--mono);
  font-size: .78rem;
}

.calculation-table tbody td {
  font-family: var(--mono);
  font-size: .85rem;
}

.calculation-table .current-row {
  background: #fff5e8;
}

.calculation-table .current-row td:nth-child(3) {
  color: var(--shop-deep);
  font-weight: 800;
}

.table-note {
  max-width: 52rem;
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.limits-list {
  max-width: 54rem;
  border-top: 2px solid var(--ink);
}

.limits-list > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}

.limits-list > div > span {
  color: var(--shop-deep);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
}

.limits-list p {
  max-width: 43rem;
  margin: 0;
  color: #4c5954;
}

.limits-list strong {
  color: var(--ink);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
}

.source-item {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-height: 12rem;
  padding: 1.2rem;
  border: 1px solid var(--rule);
  background: var(--white);
  text-decoration: none;
}

.source-item:hover {
  color: var(--ink);
  border-color: var(--shop);
  box-shadow: .35rem .35rem 0 rgba(212, 92, 66, .14);
}

.source-type {
  color: var(--rest-deep);
  font-size: .6rem;
}

.source-item strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.source-item > span:last-child {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.update-box a {
  color: var(--shop-deep);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.25rem clamp(1rem, 3vw, 2.8rem) 3rem;
  color: #dce5db;
  background: var(--ink);
  font-size: .8rem;
}

.site-footer > div {
  color: #9eafa5;
}

.footer-name {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem 1.1rem;
}

.site-footer nav a {
  min-height: 2.75rem;
  padding: .65rem 0;
  color: #d8e1d8;
}

.site-footer p {
  grid-column: 1 / -1;
  max-width: 36rem;
  margin: 0;
  color: #9eafa5;
}

.not-found {
  max-width: 46rem;
  min-height: 70vh;
  margin: 0 auto;
  padding: 15vh 1rem;
}

.not-found h1 {
  max-width: none;
  color: var(--ink);
}

.not-found p:not(.eyebrow) {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

.back-link:hover {
  color: var(--white);
  background: var(--shop-deep);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
  }

  .receipt-figure {
    justify-self: center;
    width: min(100%, 37rem);
  }

  .scope-ribbon {
    margin-top: 1rem;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 1.25rem, 1380px);
    min-height: 3.8rem;
  }

  .top-nav {
    gap: .45rem;
  }

  .top-nav > a {
    display: none;
  }

  .language-nav {
    padding-left: .65rem;
  }

  .hero {
    padding: 1.75rem .8rem 1.55rem;
  }

  h1 {
    max-width: 13ch;
    margin-bottom: 1.1rem;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .deck {
    font-size: 1.08rem;
  }

  .reader-gain {
    margin-bottom: 1.25rem;
    font-size: .87rem;
  }

  .continuation-cue {
    margin-top: -.6rem;
    margin-bottom: 1.15rem;
    font-size: .61rem;
  }

  .hero-stats {
    gap: .35rem;
  }

  .hero-stat {
    min-height: 7.5rem;
    padding: .75rem .55rem .65rem;
  }

  .hero-stat .stat-label {
    min-height: 2.4rem;
    font-size: .53rem;
  }

  .hero-stat strong {
    font-size: 1.55rem;
  }

  .hero-stat > span:last-child {
    font-size: .65rem;
  }

  .source-stamp {
    display: block;
    padding: .7rem 0 .4rem;
    font-size: .55rem;
  }

  .source-stamp span {
    display: block;
    margin-bottom: .25rem;
  }

  .source-stamp span + span::before {
    margin-right: .35rem;
    content: "↳";
  }

  .credibility {
    font-size: .75rem;
  }

  .receipt-figure {
    transform: none;
  }

  .receipt-figure figcaption {
    margin-left: .2rem;
  }

  .receipt-paper {
    padding: 1rem;
    box-shadow: .65rem .65rem 0 rgba(0, 0, 0, .14);
  }

  .receipt-row {
    gap: .5rem;
  }

  .receipt-row span {
    font-size: .62rem;
  }

  .receipt-row strong {
    font-size: 1.2rem;
  }

  .change-bar {
    height: 3.25rem;
    margin-top: 1rem;
  }

  .bar-labels {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .bar-label strong {
    display: inline;
    margin-right: .25rem;
    font-size: 1.05rem;
  }

  .receipt-equation {
    gap: .25rem;
    font-size: .77rem;
  }

  .scope-ribbon {
    padding: .75rem;
  }

  .scope-ribbon p {
    font-size: .75rem;
  }

  .section-rail {
    gap: .1rem;
    padding: .45rem .65rem;
  }

  .section-rail a {
    padding: .5rem .55rem;
    font-size: .59rem;
  }

  .chapter,
  .chapter-tinted {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .6rem;
    padding: 3.4rem .8rem;
  }

  .chapter-tinted {
    padding-right: .8rem;
    padding-left: .8rem;
  }

  .chapter-number {
    font-size: .62rem;
  }

  h2 {
    max-width: 15ch;
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .ledger-line {
    grid-template-columns: .85rem minmax(0, 1fr);
    gap: .55rem;
  }

  .ledger-line em {
    grid-column: 2;
    margin-top: -.4rem;
    font-size: .82rem;
  }

  .ledger-line strong {
    font-size: 1.25rem;
  }

  .line-caption {
    font-size: .59rem;
  }

  .share-compare,
  .boundary-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .share-card {
    padding: 1rem;
  }

  .share-topline {
    font-size: .6rem;
  }

  .share-topline strong {
    font-size: 1.65rem;
  }

  .revision-note {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: 1rem;
  }

  .revision-arrow {
    padding: 0;
    font-size: 1.25rem;
    transform: rotate(90deg);
  }

  .revision-note strong {
    font-size: 2.15rem;
  }

  .formula-strip {
    padding: .9rem;
  }

  .formula-strip code {
    font-size: .68rem;
  }

  .calculation-table th,
  .calculation-table td {
    padding: .65rem .3rem;
  }

  .calculation-table thead th {
    font-size: .56rem;
  }

  .calculation-table tbody th,
  .calculation-table tbody td {
    font-size: .68rem;
  }

  .limits-list > div {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: .7rem;
  }

  .source-item {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 2rem .8rem 2.5rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
