/* s4tools colours: the S-4's own screen, black or white. Every colour in the app and the guide comes from these
   tokens. The page gets data-theme="<id>" before it is drawn (index.html, docs/guide.html); "system" picks
   black or white from the OS. A theme also applies to any element carrying the attribute, so Settings can
   preview each one in place.
   --t1..--t4 are the tracks, in the colours of the S-4's four shape keys (triangle blue, square amber, hexagon
   green, circle red); --on-t is text on a track colour, --on-accent text on --learn / --ok / --warn / --err /
   --rec fills; --scrim is behind dialogs. */

/* Black: the S-4's screen. Its greys, its record red */
:root, [data-theme="black"] {
  --bg: #121212; --card: #1a1a1a; --card2: #161616; --field: #222222; --sel: #2a2a2a;
  --ink: #d0d0d0; --ink2: #b0b0b0; --mute: #8a8a8a; --faint: #555555; --rule: #262626; --rule2: #333333;
  --t1: #3b8fd2; --t2: #d39621; --t3: #26ae64; --t4: #d6493a; --on-t: #121212;
  --ok: #26ae64; --warn: #d39621; --err: #e0553f; --rec: #c73a28; --learn: #3b8fd2; --on-accent: #121212;
  --shadow: 0 14px 40px rgba(0, 0, 0, .6); --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* White: the screen's white theme (the white edition), its greys deepened enough to read */
[data-theme="white"] {
  --bg: #f0f0f0; --card: #f7f7f7; --card2: #f3f3f3; --field: #fcfcfc; --sel: #e1e1e1;
  --ink: #383838; --ink2: #575757; --mute: #747474; --faint: #b4b4b4; --rule: #dddddd; --rule2: #ababab;
  --t1: #1f72b3; --t2: #a8730f; --t3: #1c8a4e; --t4: #c13826; --on-t: #ffffff;
  --ok: #1c8a4e; --warn: #a8730f; --err: #c13826; --rec: #c73a28; --learn: #1f72b3; --on-accent: #ffffff;
  --shadow: 0 14px 40px rgba(0, 0, 0, .16); --scrim: rgba(0, 0, 0, .3);
  color-scheme: light;
}
