/* Riffler colour tokens, from project/02-brand/colour/palette.json via tokens.json (lead-brand, brand-L03).
   Dark is the default; light is for print, READMEs and light browser chrome. */
:root {
  --graphite-50: #f1f5fc;  /* oklch(97% 0.010 258) */
  --graphite-75: #eaeff6;  /* oklch(95% 0.011 258) */
  --graphite-100: #e0e5ed;  /* oklch(92% 0.012 258) */
  --graphite-200: #c5cbd4;  /* oklch(84% 0.015 258) */
  --graphite-250: #bbc1cb;  /* oklch(81% 0.016 258) */
  --graphite-300: #b1b8c2;  /* oklch(78% 0.017 258) */
  --graphite-330: #adb4bf;  /* oklch(77% 0.017 258) */
  --graphite-400: #9ea5b0;  /* oklch(72% 0.018 258) */
  --graphite-500: #848d99;  /* oklch(64% 0.021 258) */
  --graphite-600: #686f7b;  /* oklch(54% 0.020 258) */
  --graphite-650: #5d646e;  /* oklch(50% 0.019 258) */
  --graphite-700: #4a5059;  /* oklch(43% 0.017 258) */
  --graphite-800: #34383f;  /* oklch(34% 0.014 258) */
  --graphite-850: #282c32;  /* oklch(29% 0.012 258) */
  --graphite-900: #1b1e23;  /* oklch(24% 0.010 258) */
  --graphite-950: #121519;  /* oklch(20% 0.009 258) */
  --graphite-975: #090b0e;  /* oklch(15% 0.007 258) */
  --lilac-50: #f5f4ff;  /* oklch(97% 0.055 291) */
  --lilac-75: #eeecff;  /* oklch(95% 0.059 291) */
  --lilac-100: #e4e0ff;  /* oklch(92% 0.064 291) */
  --lilac-200: #cac2fb;  /* oklch(84% 0.078 291) */
  --lilac-250: #c0b8f3;  /* oklch(81% 0.084 291) */
  --lilac-300: #b7aeec;  /* oklch(78% 0.089 291) */
  --lilac-330: #b3aaea;  /* oklch(77% 0.091 291) */
  --lilac-400: #a59ade;  /* oklch(72% 0.099 291) */
  --lilac-500: #8d7fcb;  /* oklch(64% 0.112 291) */
  --lilac-600: #6f62a9;  /* oklch(54% 0.108 291) */
  --lilac-650: #645899;  /* oklch(50% 0.102 291) */
  --lilac-700: #50467d;  /* oklch(43% 0.090 291) */
  --lilac-800: #39305b;  /* oklch(34% 0.075 291) */
  --lilac-850: #2c2449;  /* oklch(29% 0.066 291) */
  --lilac-900: #1f1836;  /* oklch(24% 0.056 291) */
  --lilac-950: #151029;  /* oklch(20% 0.048 291) */
  --lilac-975: #0b081a;  /* oklch(15% 0.039 291) */

  /* roles: dark (default) */
  --surface: var(--graphite-950);
  --surface-frame: var(--graphite-975);
  --surface-raised: var(--graphite-900);
  --rule: var(--graphite-850);
  --frame-edge: var(--graphite-800);
  --text: var(--graphite-100);
  --text-muted: var(--graphite-250);
  --text-edge: var(--graphite-330);
  --kept: var(--lilac-200);
  --kept-text: var(--lilac-200);
  --on-kept: var(--graphite-975);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: var(--graphite-50);
    --surface-frame: var(--graphite-75);
    --surface-raised: var(--graphite-50);
    --rule: var(--graphite-200);
    --frame-edge: var(--graphite-300);
    --text: var(--graphite-950);
    --text-muted: var(--graphite-700);
    --text-edge: var(--graphite-650);
    --kept: var(--lilac-600);
    --kept-text: var(--lilac-700);
    --on-kept: var(--graphite-50);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --surface: var(--graphite-50);
  --surface-frame: var(--graphite-75);
  --surface-raised: var(--graphite-50);
  --rule: var(--graphite-200);
  --frame-edge: var(--graphite-300);
  --text: var(--graphite-950);
  --text-muted: var(--graphite-700);
  --text-edge: var(--graphite-650);
  --kept: var(--lilac-600);
  --kept-text: var(--lilac-700);
  --on-kept: var(--graphite-50);
  color-scheme: light;
}

/* --kept is lilac and means kept. Never links, buttons, focus rings or decoration. */
