/* The colours of Orivon Vote, by role, in a light and a dark scheme, and the one font it draws in. Nothing outside this file names a colour:
   every other stylesheet reads these roles. The scheme is the system's (`prefers-color-scheme`) until the person chooses one, and a
   choice is `data-theme` on the root element (ui/theme.js). `color-scheme` makes the browser's own controls follow it. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-variable-latin.woff2") format("woff2"); }

/* Glyphs placed where the font puts them, not rounded to whole pixels: on a screen of one pixel per point the rounding opens a gap after a
   capital T in spaced capitals ("VOT ING"), which the titles of the figures and the sidebar use. */
html { text-rendering: geometricPrecision; }

:root {
  color-scheme: light;
  --bg:#f7f6fb;
  --bg2:#eae9f4;
  --panel:#ffffff;
  --side:#ffffff;
  --head:#f5f3fb;
  --hov:#f3f0fb;
  --sel:#efe9ff;
  --line:#e9e6f3;
  --line2:#d4d0e6;
  --text:#17151f;
  --dim:#5b5870;
  --acc:#7c3aed;
  --acct:#6d28d9;
  --onacc:#ffffff;
  --ok:#15693b;
  --warn:#8a4b08;
  --bad:#b42318;
  --edge:#8e8ba8;
  --barA:#7c3aed;
  --barB:#b42318;
  --barC:#8e8ba8;
  --pv-bg:#e3f4ec;
  --pv-t:#0b5d4b;
  --pv-b:#9bd1c0;
  --ck-bg:#e7f0fe;
  --ck-t:#1d4ed8;
  --ck-b:#a9c4f5;
  --w2-bg:#fdf1d6;
  --w2-t:#85470a;
  --w2-b:#dcae52;
  --sy-bg:#efeff6;
  --sy-t:#3a3d52;
  --sy-b:#b0b2c8;
  --cau-bg:#fdeceb;
  --cau-t:#a1241b;
  --cau-b:#efb0aa;
  --ink:#1d1a2b;
  --onink:#f4f2fb;
  --shadow:0 10px 28px rgba(40,24,90,.18);
  --scrim:rgba(19,17,27,.4);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t1:#1d4ed8;
  --t2:#be123c;
  --t3:#15803d;
  --t4:#b45309;
  --t5:#7c3aed;
  --t6:#0e7490;
  --t7:#475569;
  --t8:#a21caf;
  --t9:#4338ca;
  --t10:#0f766e;
  --t11:#7f1d1d;
  --t12:#4d7c0f;
  --t13:#be185d;
  --t14:#1e3a8a;
  --t15:#581c87;
  --t16:#047857;
  --ontile:#ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:#13111b;
    --bg2:#0c0a13;
    --panel:#1c1a27;
    --side:#171521;
    --head:#221f30;
    --hov:#262336;
    --sel:#2d2654;
    --line:#2b2840;
    --line2:#423e5d;
    --text:#ecebf5;
    --dim:#a9a6c2;
    --acc:#a78bfa;
    --acct:#c4b5fd;
    --onacc:#1b1033;
    --ok:#6ee7a8;
    --warn:#fbbf24;
    --bad:#f98b83;
    --edge:#7b7897;
    --barA:#a78bfa;
    --barB:#f98b83;
    --barC:#7b7897;
    --pv-bg:#123329;
    --pv-t:#7be8b5;
    --pv-b:#25604c;
    --ck-bg:#172a55;
    --ck-t:#b6cdff;
    --ck-b:#33509a;
    --w2-bg:#3a2a09;
    --w2-t:#fcd34d;
    --w2-b:#7d5c14;
    --sy-bg:#292a3a;
    --sy-t:#cdd0e2;
    --sy-b:#4b4e68;
    --cau-bg:#3b1b19;
    --cau-t:#ffa59d;
    --cau-b:#7d2f2a;
    --ink:#ecebf5;
    --onink:#15131e;
    --shadow:0 10px 28px rgba(0,0,0,.6);
    --scrim:rgba(0,0,0,.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#13111b;
  --bg2:#0c0a13;
  --panel:#1c1a27;
  --side:#171521;
  --head:#221f30;
  --hov:#262336;
  --sel:#2d2654;
  --line:#2b2840;
  --line2:#423e5d;
  --text:#ecebf5;
  --dim:#a9a6c2;
  --acc:#a78bfa;
  --acct:#c4b5fd;
  --onacc:#1b1033;
  --ok:#6ee7a8;
  --warn:#fbbf24;
  --bad:#f98b83;
  --edge:#7b7897;
  --barA:#a78bfa;
  --barB:#f98b83;
  --barC:#7b7897;
  --pv-bg:#123329;
  --pv-t:#7be8b5;
  --pv-b:#25604c;
  --ck-bg:#172a55;
  --ck-t:#b6cdff;
  --ck-b:#33509a;
  --w2-bg:#3a2a09;
  --w2-t:#fcd34d;
  --w2-b:#7d5c14;
  --sy-bg:#292a3a;
  --sy-t:#cdd0e2;
  --sy-b:#4b4e68;
  --cau-bg:#3b1b19;
  --cau-t:#ffa59d;
  --cau-b:#7d2f2a;
  --ink:#ecebf5;
  --onink:#15131e;
  --shadow:0 10px 28px rgba(0,0,0,.6);
  --scrim:rgba(0,0,0,.55);
}
