/* Northern Lights AI × Hexis: design tokens.
   Light is polar daylight (cool paper, deep navy ink). Dark is the night sky the brand is named for.
   Colour has five jobs and no others:
     ink            what was observed (solid lines, text)
     --plan  blue   what was planned or forecast (day-ahead, forecasts)
     --ghost orange an older version, or something learned later
     --neg / --pos  the gap between plan and outcome: green = RT under DA, violet = RT over DA
     status         good / warn / serious / critical, always with an icon and a word
   The green and violet pair is the aurora. It is validated for colour-blind separation
   (deutan ΔE 23 light, 19.7 dark); see docs/design/northern-lights-design.md §3.2. */
:root {
  color-scheme: light;
  --page: #eef2f5;
  --surface: #fbfcfd;
  --surface-2: #f3f6f8;
  --ink: #0e1b2a;
  --ink-2: #3f5165;
  --ink-3: #5d6e80;
  --line: #d9e1e8;
  --line-strong: #b4c1cd;

  --neg: #0e9f7a;
  --pos: #7b3fd1;
  --div-mid: #dfe5ea;
  --plan: #2a78d6;
  --ghost: #d95926;
  --solar: #c98500;

  --good: #0a8a0a;
  --warn: #b97800;
  --serious: #c85a2c;
  --crit: #c93030;
  --tm: #8a5a00;
  --tm-bg: #fbf1d8;
  --sim-bg: #f6eefc;

  --focus: #2a78d6;
  --radius: 10px;
  --radius-s: 6px;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0a1422; --surface: #101c2c; --surface-2: #16263a;
    --ink: #e8eef4; --ink-2: #b3c0cd; --ink-3: #8b9bad; --line: #213349; --line-strong: #3a5068;
    --neg: #1aa67c; --pos: #9869ee; --div-mid: #26374b; --plan: #4a94ea; --ghost: #e0703f; --solar: #d39a1c;
    --good: #2bb673; --warn: #e5a823; --serious: #ec835a; --crit: #ee6a6a;
    --tm: #f0c04a; --tm-bg: #2a2413; --sim-bg: #1f1a33; --focus: #6aa9f2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a1422; --surface: #101c2c; --surface-2: #16263a;
  --ink: #e8eef4; --ink-2: #b3c0cd; --ink-3: #8b9bad; --line: #213349; --line-strong: #3a5068;
  --neg: #1aa67c; --pos: #9869ee; --div-mid: #26374b; --plan: #4a94ea; --ghost: #e0703f; --solar: #d39a1c;
  --good: #2bb673; --warn: #e5a823; --serious: #ec835a; --crit: #ee6a6a;
  --tm: #f0c04a; --tm-bg: #2a2413; --sim-bg: #1f1a33; --focus: #6aa9f2;
}
