/* cadastra design tokens — from the brand style guide v1.2 (cadastra-style-guide.html, section 09).
   Copy into any new web project. Rules: vermilion never for type, ≤5% of any composition;
   no gradients, no shadows, no tints of vermilion. */
:root {
  /* color */
  --ink: #0E1110;       /* text, boundaries, axes */
  --vermilion: #BF3B21; /* the hatch, one highlighted data series, meaningful rules */
  --graphite: #6B706C;  /* secondary text, null/control series */
  --rule: #C9CAC3;      /* hairlines, gridlines */
  --linen: #E3E2DA;     /* panel fills, table banding */
  --paper: #FBFAF6;     /* ground */

  /* type (Google Fonts: Newsreader 400/500, Inter 400/500/600, JetBrains Mono 400/500) */
  --font-display: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  /* scale — px */
  --t-display: 56px; --t-h1: 38px; --t-h2: 22px; --t-h3: 11.5px;
  --t-body: 17px; --t-small: 14px; --t-data: 13px;

  /* space — 8 px base */
  --space-1: 8px; --space-2: 16px; --space-3: 24px;
  --space-4: 40px; --space-5: 64px; --space-6: 96px;

  /* line */
  --hairline: 1px; --rule-weight: 1.5px;
}

/* Dark mode ("Paper on Ink", the style guide's dark grounds). Put data-theme="dark" on
   <html> to switch. Ink and paper swap roles, so "ink" always means the foreground and
   "paper" the ground; linen and rule darken, graphite lightens, vermilion is unchanged.
   Reference implementation (toggle + no-flash script): common/web/ThemeToggle.tsx */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #FBFAF6;
  --paper: #0E1110;
  --graphite: #9BA09C;
  --rule: #3A3F3B;
  --linen: #222724;
}
