@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;

  /* UI trim, as Shipyard's: fully desaturated grays, r = g = b with no hue at
     all. Everything structural — the shell, its rules and labels, the cards,
     the axes and grids of every chart, all text — is drawn in these. Saturated
     colour on screen is one of two things, and never trim: a data mark (the
     series colours below) or a status signal. */
  --trim-bright: #e0e0e0;
  --trim: #b4b4b4;
  --trim-rgb: 180, 180, 180;
  --trim-dim: #8c8c8c;

  --bg-dark: #0e0e0e;
  --bg-dark-rgb: 14, 14, 14;

  /* Status signals: an outcome or an alarm, never a series. Red a game that
     is killed or a call that failed, orange something held (provisional
     days), yellow a warning, green a thing that went through. Always beside a
     word, never alone. */
  --color-green: #00ff88;
  --color-green-rgb: 0, 255, 136;
  --color-yellow: #ffcc00;
  --color-yellow-rgb: 255, 204, 0;
  --color-orange: #ff6600;
  --color-orange-rgb: 255, 102, 0;
  --color-red: #ff0055;
  --color-red-rgb: 255, 0, 85;

  /* Data. A chart's marks are the only thing on a page allowed a hue, and
     each hue has one job:

       series      identity, in a fixed order, never cycled. Almost every
                   chart here is one series, and is the first of these. The
                   three pass the colour-vision checks as a set on this
                   surface (worst adjacent pair ΔE 9.4 under deuteranopia).
       ramp        magnitude: one hue, and on this dark surface more is
                   lighter, so "near nothing" recedes into the card.
       diverging   an ordered scale around a neutral middle: the pulse.

     Text never wears these: a value, a label and a legend are trim, and the
     mark beside them carries the colour. */
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-1-wash: rgba(57, 135, 229, .10);
  --series-muted: #4a4a4a;

  --ramp-0: #0d366b;
  --ramp-1: #104281;
  --ramp-2: #184f95;
  --ramp-3: #1c5cab;
  --ramp-4: #256abf;
  --ramp-5: #2a78d6;
  --ramp-6: #3987e5;
  --ramp-7: #5598e7;
  --ramp-8: #6da7ec;
  --ramp-9: #86b6ef;

  --diverging-plus: #3987e5;
  --diverging-mid: #4a4a4a;
  --diverging-minus: #e66767;

  /* The two faces: one for reading, one for figures and labels. */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
