/* The app's colours, defined once: the viewer (ui/src) and every page here
   (check.html, experiments.html and the rest) take them from these variables,
   and the map's symbols read them at run time (ui/src/ui/palette.ts).

   The family palette, by its own names. Contrast ratios against Polar
   Cathode (light) and Obsidian Chassis (dark) text are noted where a colour
   carries text.

   The colour scales that show data (speed, temperature, salinity, sediment,
   water level, flood stages, a pollutant) are not here: they stay in
   ui/src/ui/layers.ts and flood.ts, chosen to stay apart for colour-blind
   readers. */
:root {
  /* Focus */
  --trace-tint: #DCEBDD;
  --reticle-glow: #97C798;          /* dark text 9.43:1 */
  --calibration-beam: #72B273;
  --phosphor-gridline: #569E56;     /* the anchor */
  --oscilloscope-deep: #3B783D;     /* light text 4.90:1 */
  --cathode-forest: #244D26;        /* light text 8.92:1 */
  /* Background */
  --dolphin-100: #E3E8EB;
  --dolphin-200: #CFD6DA;           /* the base */
  --dolphin-300: #B4BEC4;
  --dolphin-400: #8E99A0;
  --dolphin-500: #525D64;           /* light text 6.21:1 */
  --dolphin-600: #354047;           /* light text 9.78:1 */
  /* Accent */
  --cadmium-signal-light: #FA742A;
  --cadmium-signal: #D4501E;        /* the core */
  --cadmium-signal-deep: #A63108;   /* light text 6.30:1 */
  /* Tertiary */
  --tertiary-teal: #84BEC4;         /* dark text 8.75:1 */
  /* Text */
  --polar-cathode: #F2F6F8;
  --obsidian-chassis: #10171A;

  /* Roles on the map's dark interface (the viewer). */
  --ink: var(--polar-cathode);
  --ink-muted: var(--dolphin-300);
  --ground: var(--obsidian-chassis);
  --ground-veil: rgba(16, 23, 26, 0.85);   /* Obsidian Chassis over the map */
  --ground-veil-strong: rgba(16, 23, 26, 0.92);
  --control: var(--dolphin-600);
  --control-edge: var(--dolphin-500);
  --chosen: var(--oscilloscope-deep);
  --chosen-edge: var(--phosphor-gridline);
  --link-on-dark: var(--reticle-glow);
  --warn-on-dark: var(--cadmium-signal-light);
  --station: var(--tertiary-teal);

  /* Roles on the light pages. */
  --page-ink: var(--obsidian-chassis);
  --page-ink-muted: var(--dolphin-500);
  --page-ground: var(--polar-cathode);
  --page-rule: var(--dolphin-600);
  --page-line: var(--dolphin-300);
  --page-head: var(--dolphin-100);
  --page-code: var(--dolphin-100);
  --page-good: var(--trace-tint);
  --page-bad: rgba(212, 80, 30, 0.16);     /* Cadmium Signal, faint */
  --page-mark: rgba(132, 190, 196, 0.35);  /* Tertiary teal, faint */
  --page-link: var(--oscilloscope-deep);
}

/* The pages' shared look. */
.page {
  color: var(--page-ink);
  background: var(--page-ground);
}
.page a { color: var(--page-link); }
.page a:visited { color: var(--cathode-forest); }
