/* Design tokens: the ONLY place colours, fonts, radii, spacing and shadows are defined.
   Default = dark, professional and minimal: near-black surfaces with small elevation steps, off-white text and one
   restrained brass accent. [data-theme="light"] switches to the light set; there is no OS-preference switch, so dark
   is the default for everyone. Components reference these names only (never raw values).

   WCAG contrast (computed from the relative-luminance formula; AA needs 4.5:1 for text, 3:1 for UI and focus rings):
   Dark   ink #ece9e2 on bg #0e1013 15.7, on card #16191e 14.5, on raised #1d2127 13.3
          muted #a3a8b2 on bg 8.0, card 7.4, raised 6.8      faint #8c919c on bg 6.0, card 5.6
          accent #d6ac5f on bg 9.0, card 8.3, accent-soft 7.3  on-accent #16110a on accent 8.9
          ok #74d19e on card 9.5 / ok-soft 8.3     warn #e8bb67 on card 9.9 / warn-soft 8.6
          danger #f28b85 on card 7.4 / warn-soft 6.4   focus #f0cd8a on bg 12.5, card 11.6
          game-40k #6fbbe6 on card 8.3 / soft 7.6   game-aos #bda5f2 on card 8.3 / soft 7.7
          line-strong #6d7380 (input borders) on card 3.7, on bg 4.0
   Light  ink #1a1c21 on bg #f5f3ee 15.4, on card #ffffff 17.1, on raised #efece5 14.5
          muted #545965 on bg 6.3, card 7.0, raised 6.0      faint #646a76 on bg 4.9, card 5.4
          accent #80580e on bg 5.7, card 6.3, accent-soft 5.2  on-accent #ffffff on accent 6.3
          ok #1b6b44 on card 6.5 / soft 5.6   warn #7a5200 on card 6.9 / soft 5.9   danger #a12a2a on card 7.3
          focus #80580e on bg 5.7, card 6.3
          game-40k #175a85 on card 7.4 / soft 6.3   game-aos #5b3fae on card 7.6 / soft 6.2
          line-strong #7d838f on card 3.8, on bg 3.4 */
/* Inter (SIL OFL 1.1, see /fonts/Inter-OFL.txt), self-hosted variable font. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* colour */
  --color-ink: #ece9e2;
  --color-muted: #a3a8b2;
  --color-faint: #8c919c;
  --color-line: #2a2f37;
  --color-line-strong: #6d7380;
  --color-bg: #0e1013;
  --color-card: #16191e;
  --color-card-raised: #1d2127;
  --color-hover: #20252c;
  --color-accent: #d6ac5f;
  --color-accent-soft: #2b2417;
  --color-on-accent: #16110a;
  --color-ok: #74d19e;
  --color-ok-soft: #14291e;
  --color-warn: #e8bb67;
  --color-warn-soft: #2c2412;
  --color-warn-line: #5a4720;
  --color-danger: #f28b85;
  --color-focus: #f0cd8a;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --game-40k: #6fbbe6;
  --game-40k-soft: #14232e;
  --game-aos: #bda5f2;
  --game-aos-soft: #221c33;

  /* type */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --leading: 1.6;
  --tracking-tight: -0.02em;
  --weight-body: 400;
  --weight-ui: 500;
  --weight-strong: 600;
  --weight-h1: 650;
  --leading-heading: 1.2;

  /* shape and space */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 20px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --content-width: 860px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --color-ink: #1a1c21;
  --color-muted: #545965;
  --color-faint: #646a76;
  --color-line: #dcd8ce;
  --color-line-strong: #7d838f;
  --color-bg: #f5f3ee;
  --color-card: #ffffff;
  --color-card-raised: #efece5;
  --color-hover: #f3f0e9;
  --color-accent: #80580e;
  --color-accent-soft: #f3e9d3;
  --color-on-accent: #ffffff;
  --color-ok: #1b6b44;
  --color-ok-soft: #e2f1e8;
  --color-warn: #7a5200;
  --color-warn-soft: #f8ecd0;
  --color-warn-line: #e5cf9a;
  --color-danger: #a12a2a;
  --color-focus: #80580e;
  --color-overlay: rgba(26, 28, 33, 0.45);
  --game-40k: #175a85;
  --game-40k-soft: #e1eef7;
  --game-aos: #5b3fae;
  --game-aos-soft: #ebe5f8;
  --shadow-card: 0 1px 2px rgba(26, 28, 33, 0.06);
  --shadow-pop: 0 6px 18px rgba(26, 28, 33, 0.2);
}
