/* Bijective Systems palette tokens (palette D).
 *
 * Light on :root. Dark follows prefers-color-scheme unless html[data-theme="light"]
 * is set; html[data-theme="dark"] forces dark. Generated by make_tokens.py;
 * checked by check_palette.py. Edit the generator, not this file.
 *
 * How to use the names
 *   --paper                 the page: white in light mode, black in dark.
 *   --surface               neutral cards and figure panels: light grey on the white page,
 *                           no shadow or hairline needed.
 *   --ink, --ink-2, --rule  text, muted text, hairlines. --ink-2 passes on --paper, --surface
 *                           and every light card; on a deep card use --on-tint-n instead.
 *   --brand, --brand-2      the company blues: logo, primary button, focus ring. --brand
 *                           reaches 4.5:1 on --paper (links) but only 4.43:1 on --surface in
 *                           light mode: on a grey panel use it at 24 px and up, or use --ink.
 *   --tint-n                card n's background. 1 Proximant, 2 TopoLink, 3 Gamut,
 *                           5 Program support; 4 has no landing card (licence-table heads).
 *                           TopoLink (ink) and Program support (blue) are deep even in light mode.
 *   --on-tint-n             all text on card n, muted lines included.
 *   --hue-on-tint-n         card n's accent ON the card: eyebrow, arrow, small marks.
 *                           On a deep card it is light, unlike --hue-n.
 *   --hue-n                 card n's accent on the PAGE: the coloured half of a shelf heading,
 *                           a link. 4.5:1 on --paper and --surface.
 *   --product-*             the product's page accent (= --hue-1..3).
 *   --data-1..6             series in a figure, in this order; label lines directly. Marks
 *                           only, never text. Each is at least OKLab 15 from every card colour.
 *   --seq-0..4              one ramp, low to high. In dark mode low is dark.
 */

/* Bold: ink and brand-blue cards beside light ones. Light. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #67696c;
  --rule: #d2d2d7;
  --brand: #0070dc;
  --brand-2: #74bff8;
  --hue-1: #582aa2;
  --tint-1: #efebff;
  --on-tint-1: #231c37;
  --hue-on-tint-1: var(--hue-1);
  --hue-2: #015766;
  --tint-2: #1d1d1f;
  --on-tint-2: #ffffff;
  --hue-on-tint-2: #37d2f2;
  --hue-3: #5f4a04;
  --tint-3: #ffedc0;
  --on-tint-3: #292107;
  --hue-on-tint-3: var(--hue-3);
  --hue-4: #1e4798;
  --tint-4: #12284f;
  --on-tint-4: #ffffff;
  --hue-on-tint-4: #9bbeff;
  --hue-5: #004b96;
  --tint-5: #0070dc;
  --on-tint-5: #ffffff;
  --hue-on-tint-5: #ffffff;
  --product-proximant: var(--hue-1);
  --product-topolink: var(--hue-2);
  --product-gamut: var(--hue-3);
  --data-1: #b14102;
  --data-2: #0fa352;
  --data-3: #c0319a;
  --data-4: #b18308;
  --data-5: #349ab3;
  --data-6: #9756f0;
  --seq-0: #d8ebfb;
  --seq-1: #74bff8;
  --seq-2: #0070dc;
  --seq-3: #1d4a93;
  --seq-4: #122750;
}

/* Dark, from the system setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #000000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --rule: #38383a;
    --brand: #74bff8;
    --brand-2: #74bff8;
    --hue-1: #c3affe;
    --tint-1: #31254f;
    --on-tint-1: #f5f4fb;
    --hue-on-tint-1: var(--hue-1);
    --hue-2: #37d2f2;
    --tint-2: #2c2c2e;
    --on-tint-2: #eef7f9;
    --hue-on-tint-2: var(--hue-2);
    --hue-3: #efb146;
    --tint-3: #e3cd95;
    --on-tint-3: #292107;
    --hue-on-tint-3: #5f4a04;
    --hue-4: #9bbeff;
    --tint-4: #152d57;
    --on-tint-4: #f1f5fc;
    --hue-on-tint-4: var(--hue-4);
    --hue-5: #91c1ff;
    --tint-5: #0062c4;
    --on-tint-5: #f1f6fc;
    --hue-on-tint-5: #d7e8ff;
    --product-proximant: var(--hue-1);
    --product-topolink: var(--hue-2);
    --product-gamut: var(--hue-3);
    --data-1: #cd3a00;
    --data-2: #27ab5d;
    --data-3: #d24aa9;
    --data-4: #b48506;
    --data-5: #4f8ffe;
    --data-6: #8a4ede;
    --seq-0: #163463;
    --seq-1: #1d4a93;
    --seq-2: #0070dc;
    --seq-3: #74bff8;
    --seq-4: #d8ebfb;
  }
}

/* Dark, chosen on the page. Same values as above. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --surface: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --rule: #38383a;
  --brand: #74bff8;
  --brand-2: #74bff8;
  --hue-1: #c3affe;
  --tint-1: #31254f;
  --on-tint-1: #f5f4fb;
  --hue-on-tint-1: var(--hue-1);
  --hue-2: #37d2f2;
  --tint-2: #2c2c2e;
  --on-tint-2: #eef7f9;
  --hue-on-tint-2: var(--hue-2);
  --hue-3: #efb146;
  --tint-3: #e3cd95;
  --on-tint-3: #292107;
  --hue-on-tint-3: #5f4a04;
  --hue-4: #9bbeff;
  --tint-4: #152d57;
  --on-tint-4: #f1f5fc;
  --hue-on-tint-4: var(--hue-4);
  --hue-5: #91c1ff;
  --tint-5: #0062c4;
  --on-tint-5: #f1f6fc;
  --hue-on-tint-5: #d7e8ff;
  --product-proximant: var(--hue-1);
  --product-topolink: var(--hue-2);
  --product-gamut: var(--hue-3);
  --data-1: #cd3a00;
  --data-2: #27ab5d;
  --data-3: #d24aa9;
  --data-4: #b48506;
  --data-5: #4f8ffe;
  --data-6: #8a4ede;
  --seq-0: #163463;
  --seq-1: #1d4a93;
  --seq-2: #0070dc;
  --seq-3: #74bff8;
  --seq-4: #d8ebfb;
}
