/* Design tokens for NextLine JL. Every colour the site uses is defined here, once per theme.
   Themes: daylight (default), night, and contrast (used when the system asks for more contrast). Reading comfort is left to the browser.
   Checked by tools/check_design.py: every theme must meet WCAG AA (4.5:1) for text and controls. */

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 6px;
  --text-scale: 1;
  --line-height: 1.6;
  color-scheme: light;
  --letter-spacing: normal;
  --brand-ink: #0c0d12;
  --brand-gold: #c39a57;
}

:root, [data-theme="daylight"] {
  color-scheme: light;
  --background: #fbfaf7;
  --text-primary: #0c0d12;
  --text-secondary: #4a4c57;
  --link-primary: #b3121c;
  --border-subtle: #0c0d1224;
  --button-primary: #b3121c;
  --text-on-color: #ffffff;
  --focus: #0c0d12;
  --display: #c8102e;
}

[data-theme="night"] {
  color-scheme: dark;
  --background: #0c0d12;
  --text-primary: #fbfaf7;
  --text-secondary: #c8c4bb;
  --link-primary: #ff5a64;
  --border-subtle: #fbfaf738;
  --button-primary: #ff5a64;
  --text-on-color: #0c0d12;
  --focus: #fbfaf7;
  --display: #ff5a64;
}

[data-theme="contrast"] {
  color-scheme: light;
  --background: #ffffff;
  --text-primary: #000000;
  --text-secondary: #000000;
  --link-primary: #000000;
  --border-subtle: #000000;
  --button-primary: #000000;
  --text-on-color: #ffffff;
  --focus: #000000;
  --display: #000000;
}

/* Text size steps set by the A- and A+ buttons (data-size on <html>). Default is 1. */
[data-size="0"] { --text-scale: 0.9; }
[data-size="1"] { --text-scale: 1; }
[data-size="2"] { --text-scale: 1.15; }
[data-size="3"] { --text-scale: 1.3; }
