/* 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(#fbf8f4, #100c0f);
  --foreground: light-dark(#1d151a, #f6eff3);
  --card: light-dark(#ffffff, #191317);
  --muted: light-dark(#f2ece7, #221a1f);
  --muted-foreground: light-dark(#62545c, #bcabb5);
  --primary: light-dark(#8e3b7a, #e3a6d1);
  --primary-foreground: light-dark(#ffffff, #2c1226);
  --border: light-dark(#e7ded8, #33272f);
  --glow-start: light-dark(rgb(178 75 156 / 14%), rgb(178 75 156 / 22%));
  --glow-end: light-dark(rgb(226 168 120 / 16%), rgb(109 37 96 / 22%));
  --shadow: light-dark(rgb(48 18 40 / 12%), rgb(0 0 0 / 50%));

  /* The Scheduling showcase: a deep plum stage in both themes. */
  --stage: light-dark(#211220, #1d111b);
  --stage-foreground: #f8eff5;
  --stage-muted-foreground: #c9b3c3;
  --stage-primary: #f2a6dc;
  --stage-primary-foreground: #2c1226;
  --stage-border: rgb(255 255 255 / 12%);
  --stage-glow: rgb(178 75 156 / 38%);

  /* The booking window drawn on that stage. */
  --window: light-dark(#fffdfc, #2b1c28);
  --window-foreground: light-dark(#1d151a, #f8eff5);
  --window-muted-foreground: light-dark(#6a5b64, #c2adbc);
  --window-muted: light-dark(#f5edf3, #3a2636);
  --window-primary: light-dark(#8e3b7a, #f2a6dc);
  --window-primary-foreground: light-dark(#ffffff, #2c1226);
  --window-border: light-dark(#eadfe6, #4a3345);

  /* The two halves of the logo mark, each a gradient. */
  --logo-ink-from: light-dark(#3a2b35, #ffffff);
  --logo-ink-to: light-dark(#171015, #e9d5e4);
  --logo-accent-from: light-dark(#b24b9c, #f2a6dc);
  --logo-accent-to: light-dark(#6d2560, #a94593);

  /* 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;
}
