/* Single home for every colour literal. Nothing else in the project may contain one.

   Provenance. Base colours were found by k-means (k=5 on the logo's opaque pixels, k=6 on the
   slide, clustered in OKLab) and each cluster centre was snapped to the nearest real pixel, so
   every literal below is a colour that exists in the supplied files. Coordinates are x, y in the
   source file. Full analysis: src/brand/palette.json. Regenerate with tools/brand.py.

   ink         #010101 at (8, 0) in reference/MIUWCHAIN 3.jpg.jpeg
   accent      #f6c020 at (710, 393) in reference/MIUWCHAIN 3.jpg.jpeg
   gold        #d9c093 at (962, 858) in brand/LOGO MIUWCHAIN PNG...png
   silver      #e9e6da at (1175, 910) in brand/LOGO MIUWCHAIN PNG...png
   silver-mid  #c6c8ca at (756, 809) in brand/LOGO MIUWCHAIN PNG...png
   silver-dark #898a8c at (1373, 802) in brand/LOGO MIUWCHAIN PNG...png
   ice         #e5f3fc at (0, 0) in brand/LOGO MIUWCHAIN PNG..png

   Every other token is a color-mix of the base colours, so no further literal appears. */
:root {
  color-scheme: dark;

  /* base colours (sampled) */
  --base-ink: oklch(0.0672 0.0000 89.9);
  --base-accent: oklch(0.8335 0.1645 87.2);
  --base-gold: oklch(0.8180 0.0660 82.1);
  --base-silver: oklch(0.9240 0.0163 95.2);
  --base-silver-mid: oklch(0.8318 0.0036 247.9);
  --base-silver-dark: oklch(0.6332 0.0032 264.5);
  --base-ice: oklch(0.9564 0.0192 235.7);

  /* dark ramp */
  --ink: var(--base-ink);
  --ink-2: color-mix(in oklch, var(--base-ink) 94%, var(--base-silver));
  --ink-3: color-mix(in oklch, var(--base-ink) 88%, var(--base-silver));
  --line: color-mix(in oklch, var(--base-ink) 82%, var(--base-silver));
  --line-strong: color-mix(in oklch, var(--base-ink) 62%, var(--base-silver));
  --mute-faint: color-mix(in oklch, var(--base-ink) 48%, var(--base-silver));
  --mute: color-mix(in oklch, var(--base-ink) 22%, var(--base-silver));
  --soft: color-mix(in oklch, var(--base-ink) 8%, var(--base-silver));
  --text: color-mix(in oklch, var(--base-ice) 82%, var(--base-silver));
  --hi: var(--base-ice);

  /* brand accent */
  --accent: var(--base-accent);
  --accent-soft: color-mix(in oklch, var(--base-accent) 70%, var(--base-ink));
  --accent-deep: color-mix(in oklch, var(--base-accent) 52%, var(--base-ink));
  --gold: var(--base-gold);

  /* light ramp */
  --paper: var(--base-ice);
  --paper-2: color-mix(in oklch, var(--base-ice) 86%, var(--base-silver-mid));
  --paper-line: color-mix(in oklch, var(--base-ice) 60%, var(--base-silver-mid));
  --graphite: color-mix(in oklch, var(--base-silver-dark) 60%, var(--base-ink));
  --graphite-soft: color-mix(in oklch, var(--base-silver-dark) 72%, var(--base-ink));
  --graphite-deep: color-mix(in oklch, var(--base-ink) 90%, var(--base-silver-dark));

  /* effects */
  --veil: var(--base-ink);
  --glow: var(--base-accent);
  --scene-glyph: var(--base-silver);
  --scene-accent: var(--base-accent);
  --scene-line: var(--base-silver-mid);
}
