@font-face {
  font-family: Bitter;
  src: url('./fonts/bitter-400-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bitter;
  src: url('./fonts/bitter-500-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Bitter;
  src: url('./fonts/bitter-600-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('./fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('./fonts/ibm-plex-sans-500-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('./fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  --mineral: #eef3f3;
  --paper: #fcfdfb;
  --forest: #193d36;
  --ink: #172b32;
  --rust: #9b4e35;
  --contour: #b5c4c6;
  --muted: #495e60;
  --track: #e4ebe7;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--mineral); font: 400 17px/1.55 'IBM Plex Sans'; }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
h1, h2 { font-family: Bitter; font-weight: 500; color: var(--forest); letter-spacing: -.035em; }
h1 { margin: 20px 0 24px; font-size: clamp(38px, 4.35vw, 58px); line-height: 1.13; }
h2 { margin: 10px 0 0; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.18; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 500; margin: 0 0 12px; }
p { margin: 0 0 18px; }
strong { font-weight: 600; }
figure, dl, dd { margin: 0; }
.wrap { width: min(1180px, calc(100% - 128px)); margin-inline: auto; }
.number, .large-number, output, .rates dd, .bar-value, td, .contrast-value, .matched-values dd, time { font-family: 'IBM Plex Mono'; font-variant-numeric: tabular-nums; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 25px; border-bottom: 1px solid var(--contour); }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 500; text-decoration: none; }
.wordmark-line { width: 30px; height: 23px; border-top: 1px solid var(--forest); border-bottom: 1px solid var(--forest); transform: skewY(-18deg); }
nav { display: flex; gap: 29px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; padding: 64px 0 46px; align-items: center; }
.context { color: var(--muted); font-size: 15px; line-height: 1.5; }
.hero-lead { font-size: 18px; max-width: 41ch; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; }
.text-link span { font-size: 21px; }
.scope-note { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
.terrain { width: 100%; height: auto; display: block; font-family: 'IBM Plex Sans'; }
.svg-muted { fill: var(--muted); font-size: 16px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: right; }
.study-context { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 28px 0 0; border-top: 1px solid var(--contour); }
.study-context p { max-width: 55ch; }
.section { padding: 76px 0; scroll-margin-top: 20px; }
#study { scroll-margin-top: 20px; }
.section-intro { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; margin-bottom: 34px; }
.section-intro > p { max-width: 43ch; margin-bottom: 2px; color: var(--muted); }
.section-kicker { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.explorer-panel { border: 1px solid var(--contour); border-radius: 6px; background: var(--paper); padding: 32px; }
#unavailable { padding: 16px 20px; border: 1px solid var(--contour); background: var(--mineral); font-size: 16px; }
.explorer-grid { display: grid; grid-template-columns: minmax(245px, 3fr) minmax(0, 7fr); gap: 46px; }
.controls { padding-right: 30px; border-right: 1px solid var(--contour); min-width: 0; }
fieldset { padding: 0; margin: 0 0 28px; border: 0; min-width: 0; }
legend { font-size: 19px; font-weight: 500; padding: 0; margin-bottom: 16px; }
.budget-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.budget-heading label { font-size: 15px; }
output { color: var(--forest); font-size: 25px; font-weight: 500; }
input[type='range'] { width: 100%; margin: 20px 0 8px; accent-color: var(--forest); cursor: pointer; min-height: 24px; }
.range-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.control-help { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.model-choice { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border: 1px solid transparent; border-radius: 3px; margin-bottom: 4px; cursor: pointer; line-height: 1.35; }
.model-choice:has(:checked) { border-color: var(--forest); font-weight: 500; background: var(--mineral); }
.model-choice:has(:focus-visible) { outline: 2px solid var(--rust); outline-offset: 3px; }
input[type='radio'] { accent-color: var(--forest); width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
fieldset:disabled { opacity: .65; }
fieldset:disabled label, fieldset:disabled input { cursor: default; }
.results { min-width: 0; }
.selection-label { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.count-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.large-number { display: block; font-size: clamp(42px, 5.4vw, 66px); letter-spacing: -.06em; line-height: 1.1; font-weight: 400; }
.slide-number { color: var(--rust); }
.metric-label { display: block; font-size: 16px; margin-top: 9px; }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 24px 0 26px; border-bottom: 1px solid var(--contour); }
.rates dt { font-size: 16px; }
.rates dd { font-size: 26px; color: var(--forest); margin: 4px 0; }
.rates .rate-explanation { font: 400 14px/1.5 'IBM Plex Sans'; color: var(--muted); max-width: 25ch; margin-bottom: 0; }
.comparison { padding-top: 24px; }
.comparison h3 { font-size: 18px; margin-bottom: 4px; }
.chart-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.comparison-row { margin: 0 0 18px; }
.bar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-size: 15px; }
.bar-value { font-size: 16px; }
.bar-track { width: 100%; height: 14px; background: var(--track); }
.bar-fill { height: 100%; background: var(--forest); }
.comparison-row.is-selected .bar-fill { background: var(--rust); }
.comparison-row.is-selected .bar-heading { font-weight: 500; }
.selected-note { font-size: 14px; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; color: var(--rust); }
.chart-scale { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; }
.explorer-notes { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; padding: 26px 0 36px; }
.explorer-notes p { font-size: 16px; margin: 0; }
.evidence-block { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding-top: 30px; border-top: 1px solid var(--contour); }
.evidence-copy p { max-width: 38ch; }
.small-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.evidence-copy .small-note { margin-top: 12px; }
.table-wrap { min-width: 0; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
th { text-align: left; font-weight: 400; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--contour); }
th:first-child { padding-left: 0; }
thead th { font-size: 14px; font-weight: 500; }
td { text-align: right; font-size: 15px; white-space: nowrap; }
thead th:not(:first-child) { text-align: right; }
tbody th { font-size: 16px; }
.default-row { background: #e5ede8; }
.default-row th { font-weight: 500; }
th .small-note { display: block; }
.table-wrap > p { margin-top: 14px; margin-bottom: 0; }
.method, .limits { border-top: 1px solid var(--contour); }
.method-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; margin-top: 44px; }
.method-prose article { max-width: 65ch; margin-bottom: 36px; }
.method-prose article:last-child { margin-bottom: 0; }
.evidence-aside { background: var(--paper); border: 1px solid var(--contour); padding: 28px; border-radius: 6px; align-self: start; }
.contrast { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--contour); }
.contrast > p:not(.contrast-value):not(.small-note) { font-size: 15px; }
.contrast-value { color: var(--forest); font-size: 38px; line-height: 1.2; margin: 16px 0 9px; letter-spacing: -.04em; }
.contrast-value span { font-size: 17px; letter-spacing: 0; }
.contrast .ci { font-size: 14px; }
.contrast .small-note, .matched-cohort .small-note { margin-bottom: 0; }
.matched-values { margin-bottom: 14px; }
.matched-values > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; }
.matched-values dd { font-size: 15px; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.limits-grid article { max-width: 56ch; }
.provenance { border-top: 1px solid var(--contour); padding-top: 30px; margin-top: 24px; }
.provenance ol { padding: 0; list-style: none; margin: 18px 0 22px; }
.provenance li { display: grid; grid-template-columns: 235px 1fr; gap: 24px; padding: 12px 0; }
time { font-size: 14px; }
.provenance time { color: var(--forest); }
.site-footer { display: flex; justify-content: space-between; gap: 40px; align-items: start; border-top: 1px solid var(--contour); padding: 32px 0 42px; font-size: 14px; }
.site-footer p { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 5; background: var(--paper); padding: 12px 18px; }
.skip-link:focus { top: 14px; }
.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; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 28px; }
  .explorer-grid { gap: 28px; grid-template-columns: minmax(220px, 3fr) minmax(0, 5fr); }
  .controls { padding-right: 22px; }
  .study-context, .section-intro, .explorer-notes, .evidence-block, .method-grid, .limits-grid { gap: 32px; }
  .explorer-panel { padding: 26px; }
  .evidence-aside { padding: 22px; }
  .ci { overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { display: block; padding: 22px 0 18px; }
  .wordmark { font-size: 17px; margin-bottom: 21px; }
  nav { justify-content: space-between; gap: 14px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 30px; }
  h1 { font-size: clamp(38px, 7vw, 48px); max-width: 14ch; }
  .hero-lead { max-width: 47ch; }
  .terrain-figure { max-width: 620px; }
  .terrain text { font-size: 26px; }
  figcaption { text-align: left; }
  .study-context, .section-intro, .explorer-notes, .evidence-block, .method-grid, .limits-grid { grid-template-columns: 1fr; gap: 24px; }
  .study-context { padding-top: 22px; gap: 4px; }
  .section { padding: 52px 0; }
  .section-intro { align-items: start; margin-bottom: 24px; }
  .section-intro > p { max-width: 55ch; }
  .explorer-panel { padding: 22px 18px; }
  .explorer-grid { grid-template-columns: 1fr; gap: 25px; }
  .controls { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--contour); padding-bottom: 20px; }
  fieldset { margin-bottom: 22px; }
  .model-choice { padding: 11px 10px; }
  .count-pair, .rates { gap: 20px; }
  .large-number { font-size: 46px; }
  .metric-label { font-size: 15px; }
  .rates { padding-top: 20px; }
  .rates dd { font-size: 25px; }
  .bar-heading { font-size: 15px; gap: 10px; }
  .selected-note { display: block; margin-left: 0; }
  .explorer-notes { padding-bottom: 28px; gap: 18px; }
  .evidence-block { padding-top: 24px; }
  th, td { padding: 12px 6px; }
  tbody th { font-size: 15px; }
  td { font-size: 14px; }
  .method-grid, .limits-grid { margin-top: 28px; }
  .provenance li { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .site-footer { flex-direction: column; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
