:root {
  --paper:#f8f5ee; --ink:#202b2b; --muted:#555b55; --rule:#d9d2c5;
  --accent:#963f24; --white:#fffcf6; --tint:#eee8dc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.6 var(--sans); }
[hidden] { display:none !important; }
a { color:inherit; }
button, input, select { font:inherit; color:inherit; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.wrap { width:min(1240px, calc(100% - 88px)); margin-inline:auto; }
.skip { position:fixed; left:12px; top:12px; transform:translateY(-200%); background:var(--white); padding:10px; z-index:10; }
.skip:focus { transform:none; }
.masthead { background:#222d2d; color:var(--paper); }
.mast-inner, .footer-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:inline-flex; align-items:center; gap:12px; text-decoration:none; font:700 23px/1.02 var(--serif); }
.brand small { display:block; margin-top:6px; font:700 9px/1 var(--sans); letter-spacing:.24em; color:#e9c3ab; }
.mast-note { font-size:10px; font-weight:700; letter-spacing:.19em; color:#eee5d6; }
.mast-note span, .eyebrow span { display:inline-block; width:7px; height:7px; background:#b45836; margin-right:7px; vertical-align:2px; }
.nav-shell { border-bottom:1px solid var(--rule); background:var(--white); }
nav { display:flex; align-items:stretch; gap:clamp(15px, 2.6vw, 40px); }
nav a { display:flex; align-items:center; min-height:53px; padding:0 1px; border-bottom:2px solid transparent; text-decoration:none; white-space:nowrap; font-size:13px; font-weight:650; }
nav a:hover, nav a[aria-current] { color:var(--accent); border-color:var(--accent); }
.menu { display:none; }
.hero { padding:56px 0 36px; display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px, 6vw, 95px); align-items:center; }
.eyebrow, .section-kicker { margin:0 0 16px; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.16em; }
h1, h2, h3 { font-family:var(--serif); line-height:1.08; }
h1 { font-size:clamp(45px, 5.4vw, 79px); font-weight:500; letter-spacing:-.058em; margin:0; }
h1 em { color:var(--accent); font-weight:400; }
h2 { font-size:clamp(33px, 4vw, 52px); font-weight:500; letter-spacing:-.04em; margin:0 0 25px; }
h3 { font-size:24px; margin:0 0 10px; }
.dek { font-size:17px; color:var(--muted); max-width:460px; margin:23px 0 26px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }
.button { min-height:45px; display:inline-flex; justify-content:center; align-items:center; gap:14px; padding:9px 14px; background:var(--accent); color:white; font-size:13px; font-weight:700; text-decoration:none; border:1px solid var(--accent); }
.button:hover { background:#772f19; color:white; }
.button.secondary { background:transparent; color:var(--ink); border-color:#b9ad9a; }
.button.secondary:hover { background:var(--tint); }
.hero-figure { margin:0; padding:8px 8px 0; background:var(--white); border:1px solid var(--rule); box-shadow:0 9px 22px #36251412; }
.hero-figure img { width:100%; height:auto; aspect-ratio:1.55; object-fit:cover; display:block; background:var(--tint); }
.hero-figure figcaption { display:flex; justify-content:space-between; gap:10px; padding:8px 3px; color:var(--muted); font-size:11px; }
.hero-figure figcaption span:first-child { color:var(--accent); font-weight:750; letter-spacing:.11em; }
.snapshot { margin:0 0 37px; }
.snapshot .section-kicker { margin-bottom:8px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--rule); background:var(--white); }
.stat { display:flex; align-items:center; gap:15px; padding:17px 20px; text-decoration:none; font-weight:650; font-size:13px; }
.stat + .stat { border-left:1px solid var(--rule); }
.stat:hover { background:var(--tint); }
.stat strong { color:var(--accent); font:400 38px/1 var(--serif); }
.index-band { padding:33px 0 54px; background:var(--tint); border-top:1px solid var(--rule); }
.index-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.index-card { display:grid; grid-template-columns:35px 1fr auto; gap:11px; align-content:start; color:var(--ink); background:var(--white); padding:20px; border:1px solid var(--rule); text-decoration:none; }
.index-card:hover { border-color:var(--accent); }
.index-card strong { font:700 20px/1.15 var(--serif); }
.index-card p { grid-column:2 / -1; color:var(--muted); font-size:13px; margin:0; }
.icon { color:var(--accent); width:25px; height:25px; }
.arrow { color:var(--accent); }
.workspace { min-height:58vh; padding-block:45px 65px; }
.workspace header { border-bottom:1px solid var(--rule); margin-bottom:24px; }
.workspace h1 { font-size:clamp(40px, 5vw, 68px); }
.workspace .dek { max-width:700px; }
.controls { display:flex; align-items:end; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.controls label { display:grid; gap:5px; font-size:13px; font-weight:650; }
input, select { min-height:43px; max-width:100%; border:1px solid #aa9d8b; padding:6px 10px; border-radius:0; background:var(--white); }
input[type=search] { width:min(360px, 75vw); }
.stack { display:grid; gap:14px; }
.record, .empty, .visual { padding:clamp(15px, 3vw, 27px); background:var(--white); border:1px solid var(--rule); }
.record p, .empty p { margin:8px 0; }
.tags { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-bottom:12px; }
.tag { display:inline-block; font-size:11px; font-weight:750; padding:3px 8px; background:#eee0ca; color:#66471d; }
.tag.verified { background:#deeadb; color:#294a32; }
.tag.hypothesis { background:#eee1eb; color:#603550; }
.meta, .sources { color:var(--muted); font-size:13px; }
.sources a, .record a { text-underline-offset:3px; }
.compare { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:15px; }
.compare div { background:var(--paper); border-top:2px solid var(--rule); padding:12px; }
.record figure { max-width:640px; margin:14px 0; }
.record img { width:100%; height:auto; }
.chart, .map { display:block; width:100%; height:auto; max-height:440px; background:var(--paper); }
.chart text { font-family:var(--sans); font-size:13px; fill:var(--ink); }
.visual { overflow:auto; }
.visual h3 { margin-bottom:15px; }
table { border-collapse:collapse; width:100%; text-align:left; margin-top:20px; }
th, td { padding:8px; border-bottom:1px solid var(--rule); vertical-align:top; }
footer { background:#222d2d; color:var(--paper); }
.footer-inner { min-height:100px; font-size:13px; }
@media (max-width:950px) {
  .wrap { width:calc(100% - 44px); }
  nav { gap:16px; overflow-x:auto; }
  .stat { padding:13px; }
  .index-grid { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:680px) {
  .wrap { width:calc(100% - 34px); }
  .mast-inner { min-height:64px; }
  .mast-note { display:none; }
  .menu { display:block; padding:7px 10px; border:1px solid #a9a799; background:transparent; color:inherit; }
  .nav-shell nav { display:none; }
  .nav-shell nav.open { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  nav a { min-height:42px; white-space:normal; }
  .hero { grid-template-columns:1fr; padding:34px 0 25px; gap:25px; }
  .hero-copy .dek { margin:17px 0 21px; }
  .stats { grid-template-columns:1fr 1fr; }
  .stat:nth-child(3) { border-left:0; }
  .stat:nth-child(n+3) { border-top:1px solid var(--rule); }
  .index-grid { grid-template-columns:1fr; }
  .compare { grid-template-columns:1fr; }
  .footer-inner { padding-block:22px; flex-direction:column; align-items:flex-start; gap:8px; }
  .footer-inner p { margin:0; }
}
