:root {
  --ink: oklch(0.18 0.012 165);
  --muted: oklch(0.43 0.014 165);
  --paper: oklch(0.985 0.004 165);
  --soft: oklch(0.955 0.008 165);
  --rule: oklch(0.82 0.015 165);
  --emerald: oklch(0.72 0.19 158);
  --emerald-dark: oklch(0.31 0.1 158);
  --emerald-pale: oklch(0.93 0.045 158);
  --danger: oklch(0.58 0.17 32);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 10px; --radius: 18px; --radius-lg: 28px;
  --display: "Bahnschrift Condensed", "Aptos Display", "Franklin Gothic Medium", sans-serif;
  --body: "Aptos", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Lucida Console", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: repeating-linear-gradient(135deg, transparent 0 18px, oklch(0.3 0.02 158 / .035) 18px 19px); font: 17px/1.6 var(--body); padding-bottom: 44px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--emerald), var(--emerald)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px; }
a:hover { background-size: 100% 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button, input, textarea { font: inherit; }
button, .button { min-height: 44px; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 9vw, 8.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.75rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
p { max-width: 70ch; }
code { font-family: var(--mono); font-size: .84em; overflow-wrap: anywhere; }
.skip-link { position: fixed; left: var(--space-4); top: var(--space-4); z-index: 100; padding: var(--space-3) var(--space-4); background: var(--paper); border: 2px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 76px; padding: var(--space-3) clamp(var(--space-4), 5vw, var(--space-16)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); border-bottom: 1px solid var(--rule); background: oklch(0.985 0.004 165 / .97); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); background-image: none; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.03em; white-space: nowrap; }
.brand b { color: var(--emerald-dark); }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-6); flex-wrap: wrap; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 700; }
.site-nav a[aria-current="page"] { background-size: 100% 2px; }
.page-hero { min-height: clamp(480px, 72vh, 760px); display: grid; align-items: end; position: relative; overflow: hidden; padding: clamp(var(--space-12), 9vw, var(--space-24)) clamp(var(--space-4), 7vw, var(--space-24)); background-color: var(--emerald); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 0 54%; z-index: -2; background-image: linear-gradient(oklch(0.12 0.02 165 / .22), oklch(0.12 0.02 165 / .58)), var(--hero-image); background-size: cover; background-position: center; clip-path: polygon(24% 0,100% 0,100% 100%,0 100%); }
.page-hero::after { content: ""; position: absolute; width: 56%; height: 22%; right: -10%; top: 18%; z-index: -1; background: var(--paper); clip-path: polygon(8% 0,100% 0,92% 100%,0 100%); opacity: .95; }
.hero-copy { max-width: 1050px; display: grid; gap: var(--space-6); }
.hero-copy h1 { max-width: 11ch; }
.hero-intro { max-width: 62ch; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 650; line-height: 1.42; }
.eyebrow { width: max-content; max-width: 100%; font: 700 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: var(--space-2); border-bottom: 2px solid currentColor; }
.section-shell { width: min(1440px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section-heading { display: grid; gap: var(--space-6); margin-bottom: clamp(var(--space-8), 6vw, var(--space-16)); }
.section-heading > p:last-child { font-size: 1.1rem; color: var(--muted); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); align-items: start; gap: clamp(var(--space-8), 7vw, var(--space-24)); }
.prose { display: grid; gap: var(--space-6); }
.prose h2 { margin-top: var(--space-12); padding-bottom: var(--space-3); border-bottom: 2px solid var(--emerald); }
.prose .lead { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; font-weight: 600; color: var(--ink); }
.prose p { color: var(--muted); }
.prose a, .legal-copy a { font-weight: 700; background-size: 100% 1px; }
.side-figure { display: grid; gap: var(--space-8); }
.sticky-figure { position: sticky; top: var(--space-6); }
figure { margin: 0; }
figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .35); }
figcaption { margin-top: var(--space-3); color: var(--muted); font-size: .85rem; }
.fact-box { display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--emerald-pale); border: 1px solid color-mix(in oklch, var(--emerald) 35%, var(--rule)); border-radius: var(--radius); box-shadow: inset 0 1px 0 oklch(1 0 0 / .65); }
.fact-box span, .fact-box > strong:first-child { font: 800 1rem var(--mono); }
.statement-band { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(300px,1.4fr); gap: var(--space-8) var(--space-16); align-items: start; background: var(--ink); color: var(--paper); padding-inline: clamp(var(--space-6), 6vw, var(--space-16)); border-radius: var(--radius-lg); margin-block: var(--space-16); }
.statement-band p { color: oklch(0.88 0.01 165); }
.statement-band a { font-weight: 800; background-size: 100% 2px; }
.number-list { list-style: none; counter-reset: item; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.number-list li { counter-increment: item; display: grid; grid-template-columns: 44px minmax(140px,.45fr) minmax(220px,1fr); gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--rule); }
.number-list li::before { content: counter(item, decimal-leading-zero); font: 700 .84rem var(--mono); color: var(--emerald-dark); }
.number-list span { color: var(--muted); }
.check-list { padding-left: 1.25rem; display: grid; gap: var(--space-4); color: var(--muted); }
.check-list li::marker { color: var(--emerald-dark); content: "◆  "; font-size: .7em; }
.link-panel { display: grid; border-top: 1px solid var(--ink); }
.link-panel a { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; border-bottom: 1px solid var(--ink); font-weight: 800; }
.link-panel a::after { content: "↗"; font-family: var(--mono); }
.grade { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; font: 900 1.25rem var(--mono); background: var(--emerald); color: var(--ink); }
.grade-b { background: oklch(0.86 0.1 99); }
.grade-c { background: oklch(0.78 0.12 68); }
.grade-d { background: oklch(0.68 0.16 32); color: var(--paper); }
.button { display: inline-flex; width: max-content; min-width: 150px; justify-content: center; align-items: center; padding: var(--space-3) var(--space-6); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--emerald-dark), inset 0 1px 0 oklch(1 0 0 / .15); font-weight: 800; background-image: none; }
.button:hover { background: var(--emerald-dark); }
.data-row { display: grid; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: inset 0 1px 0 oklch(1 0 0 / .7); }
.site-footer { padding: var(--space-16) clamp(var(--space-4), 7vw, var(--space-24)) var(--space-24); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); }
.footer-statement { display: grid; gap: var(--space-6); }
.footer-statement p, .footer-note { color: oklch(0.8 0.012 165); font-size: .9rem; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-6); align-content: start; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; }
.footer-note { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid oklch(0.42 0.012 165); }
.age-bar { position: fixed; z-index: 90; inset: auto 0 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: var(--space-3) var(--space-6); padding: var(--space-1) var(--space-4); background: var(--ink); color: var(--paper); border-top: 1px solid oklch(0.4 0.02 165); font-size: .78rem; }
.age-bar strong { color: var(--emerald); font: 900 1.15rem var(--mono); }
.age-bar a { font-weight: 800; background-size: 100% 1px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 1.4rem var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding: 0 0 var(--space-6); }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .page-hero::before { inset: 0 0 0 35%; opacity: .48; }
  .page-hero::after { display: none; }
  .page-grid, .statement-band, .site-footer { grid-template-columns: 1fr; }
  .sticky-figure { position: static; }
  .footer-note { grid-column: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 56px; }
  .site-header { padding-inline: var(--space-4); }
  .site-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .page-hero { min-height: 560px; }
  .page-hero::before { inset: 0; clip-path: none; opacity: .3; }
  .section-shell { width: calc(100% - 32px); }
  .number-list li { grid-template-columns: 36px 1fr; }
  .number-list li span { grid-column: 2; }
  .age-bar { justify-content: space-between; min-height: 56px; }
  .age-bar span { display: none; }
}
