/*
 * Paper-planner theme: ruled lines, a margin rule, ink-coloured entries,
 * typewriter numerals. Every colour derives from the five palette tokens
 * below, so switching data-theme on <html> re-skins the whole page.
 */
:root[data-theme="light"] {
  --text: #19001a;
  --background: #fff5ff;
  --primary: #88afad;
  --secondary: #a98366;
  --accent: #54596d;
  --shade: #19001a;        /* base for shadows / backdrop */
  /* how strongly a category's pastel shows on an entry */
  --event-wash: 55%;
  --event-wash-hover: 72%;
  --event-bar: 70%;        /* pastel vs. text: darker bar for definition */
  --event-title: 20%;      /* titles stay near-black for contrast */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --text: #fee5ff;
  --background: #0a000a;
  --primary: #507775;
  --secondary: #997356;
  --accent: #9297ab;
  --shade: #000000;
  /* on near-black the pastel itself carries the colour: a deeper wash,
     the full pastel as the bar, and pastel-tinted titles */
  --event-wash: 40%;
  --event-wash-hover: 52%;
  --event-bar: 100%;
  --event-title: 70%;
  color-scheme: dark;
}

:root {
  --hour-height: 52px;
  --gutter-width: 64px;

  /* derived surfaces & ink */
  --page: color-mix(in srgb, var(--background) 94%, var(--text));
  --sheet: var(--background);
  --text-soft: color-mix(in srgb, var(--text) 62%, var(--background));
  --border: color-mix(in srgb, var(--text) 18%, var(--background));
  --rule: color-mix(in srgb, var(--primary) 45%, var(--background));
  --rule-faint: color-mix(in srgb, var(--primary) 18%, var(--background));
  --margin: var(--secondary);
  --highlight: color-mix(in srgb, var(--primary) 55%, var(--background));

  --serif: "Young Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible", Verdana, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}
