/* wxmap.pro house style: the tokens. Loaded by every page, including the map.
   Layout: chart-room calm. A light "survey chart" page (charted-water blue, one
   buff land band) with navy ink by default, a deep-ocean dark theme, and colour reserved for the wind scale the forecasts are about.
   Token names match globe-kit (--bg, --surface, --text, --text-2, --accent,
   --border) so the map page can take these values without renaming anything.
   Theme: follows the visitor's system; data-theme="light|dark" on <html> wins. */

:root {
  /* colour, light */
  /* "survey chart": the water and land tints of a NOAA nautical chart */
  --bg: #eef4f8;            /* charted water, a faint blue */
  --surface: #ffffff;
  --surface-2: #e2ecf3;
  --border: #c9d8e3;
  --border-strong: #a3b9ca;
  --text: #0d2033;          /* navy ink */
  --text-2: #3f5468;
  --text-3: #55687c;        /* 4.7:1 on the land band, 5.2:1 on the page */
  --accent: #0a6c96;        /* sounding-line blue */
  --accent-strong: #08577a;
  --accent-soft: #d8eaf4;
  --on-accent: #ffffff;
  /* the land band: one secondary section per page, never text-heavy cards */
  --land: #efe7d2;
  --land-border: #c9b98f;
  --land-text: #4a4636;     /* 7.7:1 on --land */
  --swatch-outline: rgba(13, 32, 51, 0.3);  /* legend chips reach 3:1 on white */
  --hero: #eef4f8;          /* the landing hero sits on the water, not on a card */
  /* The hazard scale. One meaning per hue on every page: gale amber, storm
     vermilion, hurricane force raspberry, extreme violet.
     --wind-*: the map's fill colours, identical in both themes (the data canvas
     is dark in both). Checked with Machado colour-blindness simulation: no two
     classes closer than CIELAB dE 16 for protan, deutan or tritan viewers.
     --line-*: warning and members-agree lines drawn on the dark map. */
  --wind-30: #3f74ab;
  --wind-34: #e8d27a;
  --wind-41: #f5ab2a;
  --wind-48: #e06f2e;
  --wind-56: #c9372c;
  --wind-64: #b03454;
  --wind-80: #c86fd8;
  --line-gale: #fbbf24;
  --line-storm: #f97316;
  --line-hf: #f0679a;
  /* the same hues as ink, for strokes, particles and text on this theme's page */
  --calm: #8fb3c9;          /* under 34 kt */
  --gale: #c99a06;          /* 34-47 kt */
  --storm: #d4561c;         /* 48-63 kt */
  --hurricane: #b3155c;     /* 64 kt and over */
  --extreme: #8e3fa6;       /* 80 kt and over */
  /* status, shared by every page */
  --ok: #17885c;
  --warn: #a87a00;
  --err: #c0362c;

  /* type */
  --display: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* shape */
  --radius: 10px;
  --radius-sm: 6px;
  --measure: 65ch;
  --page: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08121d;
    --surface: #0e1b29;
    --surface-2: #142536;
    --border: #22364b;
    --border-strong: #35506b;
    --text: #e4ecf3;
    --text-2: #a7b7c7;
    --text-3: #7d90a4;
    --accent: #5cb8e0;
    --accent-strong: #84cbea;
    --accent-soft: #12324a;
    --on-accent: #06121c;
  --land: #142536;
  --land-border: #35506b;
  --land-text: #a7b7c7;
  --swatch-outline: rgba(228, 236, 243, 0.3);
  --hero: #0e1b29;
    --calm: #4f7e9c;
    --gale: #e8be3a;
    --storm: #f07a42;
    --hurricane: #f0679a;
    --extreme: #c86fd8;
    --ok: #3fbf88;
    --warn: #e8be3a;
    --err: #f07a6c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08121d;
  --surface: #0e1b29;
  --surface-2: #142536;
  --border: #22364b;
  --border-strong: #35506b;
  --text: #e4ecf3;
  --text-2: #a7b7c7;
  --text-3: #7d90a4;
  --accent: #5cb8e0;
  --accent-strong: #84cbea;
  --accent-soft: #12324a;
  --on-accent: #06121c;
  --land: #142536;
  --land-border: #35506b;
  --land-text: #a7b7c7;
  --swatch-outline: rgba(228, 236, 243, 0.3);
  --hero: #0e1b29;
  --calm: #4f7e9c;
  --gale: #e8be3a;
  --storm: #f07a42;
  --hurricane: #f0679a;
  --extreme: #c86fd8;
  --ok: #3fbf88;
  --warn: #e8be3a;
  --err: #f07a6c;
  color-scheme: dark;
}
