/* The only style sheet that may hold colour values. Each is light-dark(light, dark), in
   six-digit hex where text depends on it, so that the tests can check that it meets WCAG AA
   contrast. */
:root {
  color-scheme: light dark;

  --background: light-dark(#fbf7f0, #15110f);
  --foreground: light-dark(#2a211c, #f4ede4);
  --card: light-dark(#fffdf9, #1e1815);
  --muted: light-dark(#f2eadd, #2a221d);
  --muted-foreground: light-dark(#6b5d52, #bfb0a2);
  --primary: light-dark(#8e3b7a, #dd9fcd);
  --primary-foreground: light-dark(#ffffff, #2c1226);
  --border: light-dark(#e6dccd, #3a2f28);
  --glow-start: light-dark(rgb(142 59 122 / 12%), rgb(221 159 205 / 14%));
  --glow-end: light-dark(rgb(242 183 10 / 14%), rgb(20 160 110 / 12%));
  --shadow: light-dark(rgb(54 40 20 / 14%), rgb(0 0 0 / 45%));

  /* Kalima's own tile colours, for its picture. */
  --correct: #147a55;
  --correct-foreground: #ffffff;
  --present: #f2b70a;
  --present-foreground: #1f1b33;
  --absent: light-dark(#6a6681, #46415e);
  --absent-foreground: #ffffff;
}

/* The visitor's own choice, set by theme.js, overrides the device. */
:root[data-theme='light'] {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
}
