:root {
  --ink: #17211f;
  --muted: #5f6f69;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #d8ddd6;
  --forest: #0b5d4b;
  --accent: #c3422f;
  --pale: #e8f1e9;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 3; }
.skip-link:focus { left: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(251, 250, 245, 0.96); position: sticky; top: 0; z-index: 2; }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: Arial, sans-serif; font-weight: 700; text-decoration: none; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-family: Arial, sans-serif; font-size: 0.88rem; }
nav a { text-decoration: none; }
.intro { padding: 86px 0 72px; background: var(--panel); border-bottom: 1px solid var(--line); }
.intro-grid, .split { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr); gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--forest); font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 500; }
h2 { margin: 0 0 18px; font-size: 2rem; font-weight: 500; }
h3 { margin: 0 0 14px; font-size: 1.2rem; }
.lede { max-width: 720px; margin: 24px 0; font-size: 1.25rem; }
.notice, .caption, figcaption { color: var(--muted); font-size: 0.9rem; }
.pipeline { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); font-family: Arial, sans-serif; }
.pipeline li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.pipeline span { color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.band { border-bottom: 1px solid var(--line); }
.metrics { background: var(--pale); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-grid article { min-height: 146px; padding: 28px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.metric-grid article:last-child { border-right: 1px solid var(--line); }
.metric { color: var(--forest); font-family: Arial, sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.label { margin-top: 9px; font-size: 0.9rem; }
.section { padding: 88px 0; }
.alt { background: #f0f3ed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }
figcaption { margin-top: 9px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--forest); font-family: Arial, sans-serif; font-weight: 700; }
.table-wrap { overflow-x: auto; margin-top: 30px; background: var(--panel); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.94rem; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { background: var(--ink); color: #fff; font-family: Arial, sans-serif; font-size: 0.78rem; letter-spacing: 0; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin: 42px 0 8px; }
.limits { background: var(--panel); }
.callout { padding: 28px; border-left: 4px solid var(--accent); background: #fff8f4; }
.callout ul { padding-left: 20px; margin: 0; }
.page-hero { padding: 66px 0 50px; background: var(--panel); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.page-layout { padding: 68px 0 88px; }
.prose { width: min(820px, 100%); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 1.04rem; }
.prose code { color: var(--forest); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }
.prose pre { overflow-x: auto; padding: 18px; background: var(--ink); color: #f7f8f4; border-left: 4px solid var(--accent); }
.prose pre code { color: inherit; }
.prose .formula { padding: 16px 20px; background: var(--pale); border-left: 4px solid var(--forest); font-family: "SFMono-Regular", Consolas, monospace; }
.page-note { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: #fff8f4; }
.page-nav { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-nav a { font-family: Arial, sans-serif; font-weight: 700; font-size: 0.9rem; }
footer { padding: 26px 0; background: var(--ink); color: #fff; font-family: Arial, sans-serif; font-size: 0.86rem; }
footer .shell { display: flex; justify-content: space-between; gap: 20px; }
footer a { color: #fff; }

@media (max-width: 760px) {
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 10px; }
  nav { justify-content: flex-start; gap: 12px 16px; }
  .intro { padding: 58px 0 48px; }
  .intro-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article:nth-child(3) { border-left: 1px solid var(--line); }
  .metric-grid article { min-height: 126px; padding: 22px 14px; border-bottom: 1px solid var(--line); }
  .metric { font-size: 2rem; }
  .section { padding: 58px 0; }
  .page-hero { padding: 48px 0 36px; }
  .page-layout { padding: 48px 0 62px; }
  h2 { font-size: 1.7rem; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; min-width: 0; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr { margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel); }
  .table-wrap td { min-height: 40px; padding: 10px 13px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; text-align: right; }
  .table-wrap td:first-child { text-align: right; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-family: Arial, sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-align: left; text-transform: uppercase; }
  .table-wrap td:last-child { border-bottom: 0; }
  .evidence-grid { grid-template-columns: 1fr; gap: 28px; }
  footer .shell { flex-direction: column; gap: 8px; }
}
