/* z-tokens.css: one set of semantic names; themes only remap values. Dark is written twice (media query + explicit choice).
   Layer order: legacy (old site.css) < tokens < layout < components. */
@layer legacy, tokens, layout, components;
@layer tokens {
:root {
  --bg: #f6f2ea; --surface: #fffdf8; --surface-2: #ece5d8; --plate: #fffdf8; --ink: #1d1914; --ink-2: #4a4038; --muted: #6a5e53;
  --rule: #d9cfbf; --accent: #7a2e27; --accent-ink: #5c211c; --focus: #1f5d8c; --teal: #1a4740; --teal-soft: #d5e4de; --gold: #7a5a22;
  --chip-settled: #1f6b3a; --chip-open: #9a3412; --chip-analogy: #6b4fa0; --chip-speculative: #8a4b08;
  /* HOOK for re-exported SVGs (inline or with internal prefers-color-scheme): draw with these, not hex */
  --fig-ink: var(--ink); --fig-paper: var(--plate); --fig-grid: var(--rule); --fig-accent: var(--accent); --fig-line: #1f5d8c; --fig-zero: #b0332a;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --display: var(--serif);
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: .875rem; --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); --step-1: 1.35rem; --step-2: 1.65rem; --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.6rem; --s4: 2.6rem; --s5: 4.2rem; --s6: 6.8rem; --rail: 13rem;
  /* old site.css variable names, mapped onto the tokens so every legacy component themes too */
  --paper: var(--bg); --paper-deep: var(--surface-2); --ink-soft: var(--ink-2); --line: var(--rule); --accent-deep: var(--accent-ink);
  --banner: var(--surface); --banner-line: var(--accent); --halo: color-mix(in srgb, var(--teal) 14%, transparent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not(:has(#theme-light:checked)) {
  --bg: #15120f; --surface: #1e1a16; --surface-2: #2a241e; --plate: #f3eee4; --ink: #ece4d8; --ink-2: #cdbfae; --muted: #a8998a;
  --rule: #3b332b; --accent: #e59a8a; --accent-ink: #f0b3a5; --focus: #8cc3f0; --teal: #8fd0c2; --teal-soft: #1d3430; --gold: #e0c080;
  --chip-settled: #7fd39b; --chip-open: #f0a77a; --chip-analogy: #c3aef0; --chip-speculative: #f0c27a;
  --fig-ink: #1d1914; --fig-grid: #d9cfbf; --fig-accent: #7a2e27;
  color-scheme: dark; } }
:root:has(#theme-dark:checked) {
  --bg: #15120f; --surface: #1e1a16; --surface-2: #2a241e; --plate: #f3eee4; --ink: #ece4d8; --ink-2: #cdbfae; --muted: #a8998a;
  --rule: #3b332b; --accent: #e59a8a; --accent-ink: #f0b3a5; --focus: #8cc3f0; --teal: #8fd0c2; --teal-soft: #1d3430; --gold: #e0c080;
  --chip-settled: #7fd39b; --chip-open: #f0a77a; --chip-analogy: #c3aef0; --chip-speculative: #f0c27a;
  --fig-ink: #1d1914; --fig-grid: #d9cfbf; --fig-accent: #7a2e27;
  color-scheme: dark; }
}
