/* The themes. Every page links this file; a theme is a set of values for these names.
   --art and --art-accent are red,green,blue triplets for the canvas that draws the keys. */
:root, [data-theme="mono"] {
  color-scheme: dark;
  --bg: #07080a; --fg: #eceef2; --muted: rgba(236, 238, 242, .66); --faint: rgba(236, 238, 242, .4);
  --line: rgba(255, 255, 255, .13); --panel: rgba(255, 255, 255, .035); --solid: #0d0f12;
  --accent: #ffffff; --on-accent: #07080a;
  --good: #3ddc84; --warn: #ffb020; --bad: #ff6b6b;
  --art: 236, 238, 242; --art-accent: 255, 255, 255;
}
[data-theme="phosphor"] {
  color-scheme: dark;
  --bg: #020603; --fg: #cdf8d7; --muted: rgba(205, 248, 215, .68); --faint: rgba(205, 248, 215, .4);
  --line: rgba(110, 255, 155, .17); --panel: rgba(90, 255, 140, .04); --solid: #06100a;
  --accent: #5cff8f; --on-accent: #02140a;
  --good: #5cff8f; --warn: #ffd24a; --bad: #ff8070;
  --art: 150, 255, 182; --art-accent: 92, 255, 143;
}
[data-theme="amber"] {
  color-scheme: dark;
  --bg: #080502; --fg: #ffe4b8; --muted: rgba(255, 228, 184, .68); --faint: rgba(255, 228, 184, .4);
  --line: rgba(255, 190, 90, .18); --panel: rgba(255, 180, 60, .045); --solid: #120c05;
  --accent: #ffb000; --on-accent: #1a0f00;
  --good: #a6e36b; --warn: #ff8a3d; --bad: #ff6b5a;
  --art: 255, 200, 120; --art-accent: 255, 176, 0;
}
[data-theme="cobalt"] {
  color-scheme: dark;
  --bg: #040913; --fg: #d9e6ff; --muted: rgba(217, 230, 255, .68); --faint: rgba(217, 230, 255, .4);
  --line: rgba(120, 170, 255, .18); --panel: rgba(90, 150, 255, .05); --solid: #0a1222;
  --accent: #5aa9ff; --on-accent: #03101f;
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --art: 170, 200, 255; --art-accent: 90, 169, 255;
}
[data-theme="paper"] {
  color-scheme: light;
  --bg: #f3efe6; --fg: #17150f; --muted: rgba(23, 21, 15, .7); --faint: rgba(23, 21, 15, .45);
  --line: rgba(23, 21, 15, .18); --panel: rgba(23, 21, 15, .035); --solid: #ebe6da;
  --accent: #c2361b; --on-accent: #fff8ee;
  --good: #1f7a43; --warn: #a15c00; --bad: #b3261e;
  --art: 23, 21, 15; --art-accent: 194, 54, 27;
}

:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background .25s ease, color .25s ease; }
::selection { background: var(--accent); color: var(--on-accent); }
/* while the theme changes, every colour fades to its new value */
.theming, .theming * { transition: background-color .8s ease, border-color .8s ease, color .8s ease !important; }

/* the theme picker, in the footer of every page */
.themes { display: inline-flex; align-items: center; gap: 4px; font: 400 13px var(--mono); color: var(--faint); flex-wrap: wrap; }
.themes button { border: 1px solid transparent; background: none; color: var(--muted); font: inherit; padding: 4px 9px; border-radius: 4px; cursor: pointer; }
.themes button:hover { color: var(--fg); border-color: var(--line); }
.themes button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
