/* Fyra bakgrunder. Kontrasten kontrolleras av testsidan (tests/index.html).
   --text/--muted/--accent mot --bg och --surface ska ge minst 4,5:1.
   --border och --focus mot --bg ska ge minst 3:1. */
/* Markering vid uppläsning: --text ska ha minst 4,5:1 mot båda. */
:root { --hl-sentence: #fff1b8; --hl-word: #ffd54a; }
:root[data-bg="dark"] { --hl-sentence: #3b3a1c; --hl-word: #6d5c00; }

:root,
:root[data-bg="cream"] {
  --bg: #fbf7ea;
  --surface: #fffcf2;
  --text: #1e2a33;
  --muted: #46525c;
  --border: #6e7a84;
  --accent: #0a58a8;
  --on-accent: #ffffff;
  --focus: #8a3b00;
}
:root[data-bg="grey"] {
  --bg: #e8eaed;
  --surface: #f3f4f6;
  --text: #1b2127;
  --muted: #424c56;
  --border: #66717c;
  --accent: #0a4f9c;
  --on-accent: #ffffff;
  --focus: #7a3300;
}
:root[data-bg="blue"] {
  --bg: #e2effa;
  --surface: #f0f7fd;
  --text: #14212b;
  --muted: #3b4a57;
  --border: #5d7488;
  --accent: #0a4a8f;
  --on-accent: #ffffff;
  --focus: #7a3300;
}
:root[data-bg="dark"] {
  --bg: #15191e;
  --surface: #1d2329;
  --text: #eceff2;
  --muted: #b7c0c9;
  --border: #8a95a0;
  --accent: #8cc4ff;
  --on-accent: #0b1620;
  --focus: #ffd166;
}
