/* themes.css — colour tokens. Light is the default; [data-theme="dark"] is set by the
   inline head script (saved choice) and assets/js/theme.js (toggle).
   Look: minimal black and white on a pure white page. Slimtech red (#de3f32 brand,
   #c4362a for text) is used sparingly: the current page marker, required-field stars,
   download icons, step numbers and the timeline bar.
   Primary buttons are black pills (white pills in dark mode). Cards and panels sit on
   --card (neutral-100); rows inside them use --surface.
   AA checks (light): ink/bg 17.9, ink/card 16.4, ink-soft/bg 7.8, ink-soft/card 7.2,
   ink-soft/surface 6.6, accent/bg 5.4, accent/card 4.9, accent/surface 4.5, btn 17.9, line/bg 3.5.
   AA checks (dark): ink/bg 18.2, ink-soft/card 7.1, ink-soft/surface 6.0, accent/card 6.4, btn 18.2. */
:root {
  color-scheme: light;
  --bg: #ffffff;          /* page */
  --card: #f5f5f5;        /* cards, panels */
  --surface: #ebebeb;     /* rows and controls inside cards */
  --surface-2: #e0e0e0;   /* image placeholder, hover */
  --ink: #171717;
  --ink-soft: #525252;
  --rule: #a3a3a3;        /* link underline colour at rest */
  --accent: #c4362a;
  --accent-hover: #a52c22;
  --accent-ink: #ffffff;
  --brand-red: #de3f32;
  --btn-bg: #171717;      /* primary pill */
  --btn-ink: #ffffff;
  --btn-hover: #262626;
  --dark: #0a0a0a;        /* footer */
  --dark-ink: #ffffff;
  --dark-soft: #c9c9c9;
  --dark-accent: #ff7a6e;
  --line: #8a8a8a;        /* form field borders (UI >= 3:1) */
  --focus: #1a5fd0;
  --error: #b3261e;
  --success: #1d6b33;
  --shadow: none;         /* resting surfaces are separated by tone, not shadow */
  --shadow-lift: 0 2px 4px rgba(23, 23, 23, .06), 0 16px 36px rgba(23, 23, 23, .10);
  --overlay: rgba(0, 0, 0, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --card: #171717;
  --surface: #262626;
  --surface-2: #333333;
  --ink: #f5f5f5;
  --ink-soft: #a3a3a3;
  --rule: #737373;
  --accent: #ff6b5e;
  --accent-hover: #ff8a80;
  --accent-ink: #0a0a0a;
  --btn-bg: #f5f5f5;
  --btn-ink: #0a0a0a;
  --btn-hover: #d4d4d4;
  --dark: #000000;
  --line: #8f8f8f;
  --focus: #8ab4ff;
  --error: #ff8a80;
  --success: #7fd69a;
  --shadow: none;
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 36px rgba(0, 0, 0, .5);
  --overlay: rgba(0, 0, 0, .6);
}
.brand--dark { display: none; }
:root[data-theme="dark"] .brand--light { display: none; }
:root[data-theme="dark"] .brand--dark { display: block; }
