/* Humans in the middle — essay styles.
   Self-contained, mirrors DESIGN.md tokens. Lives in its own .css file so the
   language verifier (which scans inline HTML) doesn't trip on CSS keywords like
   text-transform / transform: those are legitimate layout, not voice drift. */

:root {
  --canvas: #08090b;
  --surface-1: #121215;
  --surface-2: #18181d;
  --ink: #dcd9d2;
  --ink-muted: #9a948a;
  --ink-dim: #7e7a72;
  --ink-faint: #5e5a52;
  --hairline: #1a1a1e;
  --hairline-strong: #252529;
  --accent: #c98562;
  --accent-hover: #dd9270;
  --accent-quiet: #2a1d15;
  --warm: #c89952;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
}

.wrap { max-width: 800px; margin: 0 auto; padding: 64px 32px 160px; }

/* ---- links ---- */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- wordmark (links home) ---- */
.wordmark {
  display: inline-block;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  margin-bottom: 48px;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark .dot { color: var(--accent); }

/* ---- breadcrumb (back to the essay index) ---- */
.crumb { margin: -24px 0 32px; }
.crumb a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.crumb a:hover { color: var(--accent); text-decoration: none; }

/* ---- masthead ---- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
h1.title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 14px 0 0;
  line-height: 1.08;
}
h1.title .dot { color: var(--accent); }
.dateline {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.standfirst {
  margin-top: 40px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---- the lead thesis ---- */
.thesis {
  margin: 48px 0;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  background: var(--accent-quiet);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---- sections ---- */
section { margin-top: 96px; }
section > .eyebrow { display: block; margin-bottom: 12px; }
h2 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  line-height: 1.15;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
  color: var(--ink);
}
p { margin: 16px 0; }
p .accent { color: var(--accent); font-weight: 500; }
strong { font-weight: 600; color: var(--ink); }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-1);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

/* ---- a single emphasized line (a thesis sentence, not a box) ---- */
.line {
  margin: 36px 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.line .accent { color: var(--accent); }

/* ---- a closing note ---- */
p.note { font-size: 18px; color: var(--ink-muted); margin-top: 36px; }
p.note .accent { color: var(--accent); font-weight: 500; }

/* ---- bullet points (the edge list, the rules) ---- */
ul.points { margin: 16px 0; padding-left: 20px; color: var(--ink-muted); line-height: 1.6; }
ul.points li { margin: 8px 0; }
ul.points li b { color: var(--ink); font-weight: 600; }

/* ---- figure ---- */
figure {
  margin: 40px 0;
  padding: 28px 24px 20px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
figure svg { display: block; width: 100%; height: auto; }
figcaption {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
  text-align: center;
  font-family: var(--mono);
}
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 680px) { .fig-grid { grid-template-columns: 1fr; } }

/* ---- evidence callout ---- */
.evidence {
  margin: 28px 0;
  padding: 16px 22px;
  border-left: 2px solid var(--hairline-strong);
  background: var(--surface-1);
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-muted);
  border-radius: 0 4px 4px 0;
}
.evidence .num { color: var(--warm); font-weight: 600; font-family: var(--mono); }
.evidence .src {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
}

/* ---- constraint / rule list ---- */
ol.shape { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; }
ol.shape li {
  counter-increment: s;
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--hairline);
}
ol.shape li:before {
  content: counter(s);
  position: absolute; left: 0; top: 14px;
  width: 30px; height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
}
ol.shape li b { color: var(--ink); font-weight: 600; }

/* ---- founder note & sign-off (this essay's one addition to the chassis:
        the personal origin note and signature that closed the old landing
        page live here now) ---- */
p.founder { margin-top: 40px; font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
p.signoff { margin-top: 28px; font-size: 15px; line-height: 1.7; color: var(--ink-dim); }
p.signoff a { color: var(--ink-muted); }
p.signoff a:hover { color: var(--accent); }

/* ---- footer ---- */
footer {
  margin-top: 112px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--mono);
  line-height: 1.7;
}
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--ink-muted); }
hr.rule { border: none; border-top: 1px solid var(--hairline); margin: 56px 0; }
