/* Paper Studio colour tokens (spec 4.1). Light is the default; dark follows the system
   unless data-theme overrides it. Token names are shared by both themes. */
:root {
  --bg: #fbf5ec;
  --panel: #ffffff;
  --ink: #2b1f33;
  --muted: #5e5468;
  --line: #7a6e84;
  --accent: #b0245a;
  --accent-ink: #ffffff;
  --accent-hover: #8e1c47;
  --warn: #8a4a00;
  --danger: #a3202a;
  --code-bg: #f3edf5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1524;
    --panel: #271e33;
    --ink: #f5eff9;
    --muted: #bcb0c9;
    --line: #8a7e99;
    --accent: #ff8fbf;
    --accent-ink: #1c1524;
    --accent-hover: #ffb3d4;
    --warn: #ffc76b;
    --danger: #ff9b9b;
    --code-bg: #31273f;
  }
}

:root[data-theme="dark"] {
  --bg: #1c1524;
  --panel: #271e33;
  --ink: #f5eff9;
  --muted: #bcb0c9;
  --line: #8a7e99;
  --accent: #ff8fbf;
  --accent-ink: #1c1524;
  --accent-hover: #ffb3d4;
  --warn: #ffc76b;
  --danger: #ff9b9b;
  --code-bg: #31273f;
}
