/* Dark mode for published chapters.
 *
 * Every chapter file was published with the light palette written into its
 * own <style> block, and there are thousands of them across 23 titles.
 * Rather than republish the library to change a colour, /raw links this
 * sheet into each chapter as it is served: it lands after the inline block
 * and redefines the same variables, so one file governs every chapter that
 * exists and every chapter still to come.
 *
 * Not pure black. A white-on-black page glares at the reader for the same
 * reason black-on-white does at night, and these are pages people sit with
 * for hours.
 */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E4E1DA;
    --blue: #93B4E6;
    --setup-bg: #1A2331;
    --note-bg: #262117;
    --gold: #C8A44F;
    --line: #30343A;
    --muted: #99A0A9;
  }
  html { color-scheme: dark; }
  body { background: #14161A; }
  /* The panels carry their own borders in some published files; keep them
     from glowing white against a dark ground. */
  aside.setup, aside.note, aside.cast { border-color: var(--line); }
  /* Pronunciation buttons are drawn with the ink colour and a light face. */
  button.say { background: transparent; color: var(--blue);
               border-color: var(--line); }
}
