:root {
  --ink: #141414;
  --paper: #f2efe8;
  --signal: #b83213;
  --line: #b9b4a9;
  --muted: #625f58;
  --night: #171a1e;
  --night-text: #f4f0e7;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
main, .article-shell > *, .article-body { min-width: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: var(--ink); color: white; padding: .8rem 1rem; }
.skip:focus { top: 1rem; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.wordmark span { color: var(--signal); }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { min-height: 48px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--signal); }

.hero, .section, footer { padding: clamp(4rem, 9vw, 9rem) max(4vw, calc((100vw - 1180px) / 2)); }
.hero { border-bottom: 1px solid var(--line); }
.kicker, .section-no { margin: 0 0 2rem; color: var(--signal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { margin-top: 0; line-height: 1.04; }
h1 { max-width: 1000px; margin-bottom: 2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7.6vw, 7.4rem); font-weight: 500; letter-spacing: -.055em; }
h1, .lead, .article-meta span { overflow-wrap: anywhere; }
h2 { max-width: 850px; margin-bottom: 2.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 4.7rem); font-weight: 500; letter-spacing: -.04em; }
.lead { max-width: 760px; margin: 0 0 2rem; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.4rem 0 4rem; }
.hero-actions a { min-height: 48px; display: inline-flex; align-items: center; padding: .8rem 1.1rem; border: 1px solid var(--ink); font-weight: 750; text-decoration: none; }
.hero-actions .primary { background: var(--ink); color: white; }
.hero-actions a:hover { background: var(--signal); border-color: var(--signal); color: white; }
.identity { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.identity div { padding: 1.2rem 1rem 0 0; }
.identity dt { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.identity dd { margin: .25rem 0 0; font-weight: 700; overflow-wrap: anywhere; }

.section { border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.definition { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: start; margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.definition span { color: var(--signal); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.definition p { max-width: 640px; margin: 0; }
.definition a { font-weight: 750; }

.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guide-grid > a { min-height: 290px; display: flex; flex-direction: column; padding: 1.7rem; background: var(--paper); text-decoration: none; }
.guide-grid > a:hover { background: white; }
.guide-grid span, .eyebrow { color: var(--signal); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.guide-grid h3 { margin: 3rem 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.guide-grid p { margin: 0 0 2rem; color: var(--muted); }
.guide-grid strong { margin-top: auto; }

.article-hero { padding-bottom: clamp(3rem, 7vw, 6rem); }
.article-hero h1 { max-width: 1050px; font-size: clamp(2.9rem, 7vw, 6.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.article-shell { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 760px); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.article-nav { position: sticky; top: 1.5rem; }
.article-nav p { margin: 0 0 .8rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.article-nav a { min-height: 44px; display: flex; align-items: center; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; text-decoration: none; }
.article-nav a:last-child { border-bottom: 1px solid var(--line); }
.article-nav a:hover { color: var(--signal); }
.article-body > section { margin-bottom: 4.5rem; scroll-margin-top: 2rem; }
.article-body h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.article-body h3 { margin: 2rem 0 .6rem; font-size: 1.2rem; }
.article-body p, .article-body li { color: #35332f; }
.article-body > section > p:first-of-type { font-size: 1.12rem; }
.signal-box { margin: 2rem 0; padding: 1.5rem; border-left: 5px solid var(--signal); background: #e7e1d6; }
.signal-box p { margin: 0; color: var(--ink); font-weight: 700; }
.evidence-list { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 2px solid var(--ink); }
.evidence-list li { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.evidence-list strong { color: var(--ink); }
.question-list { padding-left: 1.25rem; }
.question-list li { margin-bottom: .8rem; padding-left: .4rem; }
.next-guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.next-guides a { min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 1px solid var(--line); font-weight: 750; text-decoration: none; }
.next-guides a:hover { border-color: var(--signal); color: var(--signal); }

.dark { background: var(--night); color: var(--night-text); }
.dark .section-no { color: #ff7b58; }
.controls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #484a4d; }
.controls li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.8rem 1rem 1.8rem 0; border-bottom: 1px solid #484a4d; }
.controls li:nth-child(odd) { border-right: 1px solid #484a4d; }
.controls li:nth-child(even) { padding-left: 1.8rem; }
.controls li > span { color: #ff7b58; font-variant-numeric: tabular-nums; }
.controls h3 { margin-bottom: .55rem; font-size: 1.25rem; }
.controls p { margin: 0; color: #bfc0c2; }
.hard-gate { max-width: 720px; margin: 3rem 0 0; padding-left: 1rem; border-left: 4px solid var(--signal); font-size: 1.2rem; font-weight: 700; }

.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.link-grid a { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.5rem; background: var(--paper); font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.link-grid a:hover { background: white; }
.link-grid span { color: var(--signal); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.evidence-note { max-width: 800px; margin-top: 4rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.evidence-note p { color: var(--muted); }
footer { padding-top: 2rem; padding-bottom: 2rem; }
footer p { margin: 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; }
  .wordmark { width: 100%; }
  nav { width: 100%; flex-wrap: wrap; gap: 0 .8rem; }
  nav a { font-size: .78rem; }
  h1 br { display: none; }
  .identity, .controls, .link-grid, .guide-grid, .article-shell, .next-guides { grid-template-columns: 1fr; }
  .controls li:nth-child(odd) { border-right: 0; }
  .controls li:nth-child(even) { padding-left: 0; }
  .definition { grid-template-columns: 1fr; }
  .article-nav { position: static; }
  .article-meta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .article-nav a { min-height: 48px; }
  .evidence-list li { grid-template-columns: 1fr; gap: .35rem; }
}

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