/* «Θυμάσαι;» design tokens: palette Λουλάκι (indigo on linen), approved at Gate 0 (21 Oct 2026);
   warm linen retune and terracotta labels (TH-159 warmth pass, Michalis 5 Nov 2026).
   Source of truth: thymasai/design/final/screens.html (#tokens) and design-direction.md.
   Buyer pages follow the visitor's light/dark preference. Printed objects (book pages,
   gift cards) stay paper-coloured in dark mode: see .paper in site.css. */

:root {
  color-scheme: light dark;

  --paper: #F1ECE3;     /* Λινό: screen background (warm linen, TH-159; was #ECEEE8) */
  --card: #FBF8F2;      /* cards, players */
  --ink: #161B2A;       /* Μελάνι: text */
  --ink-2: #4F4A55;     /* secondary text, warm grey: 7.3:1 on paper, 6.6:1 on band */
  --indigo: #22336B;    /* Λουλάκι: the only action colour; links, focus */
  --indigo-d: #18264F;  /* button bottom edge */
  --indigo-t: #DCE1EE;  /* indigo tint */
  --on-indigo: #FFFFFF; /* text on indigo */
  --red: #C23A2E;       /* Ρόδι: logo dot and "recording" only */
  --olive: #3F5B47;     /* Ελιά: trust, checked */
  --olive-t: #DFE7E0;
  --ochre: #B98327;     /* Ώχρα: sensitive flags, never text */
  --line: #DDD5C8;      /* borders */
  --field: #FFFFFF;     /* form fields */
  --fline: #CBC2B3;     /* field borders */
  --sepia-a: #D2BE9C;   /* photo placeholders, warm sepia */
  --sepia-b: #9E8262;
  --shadow: rgba(58, 40, 22, .40);
  --terra: #8E3F2A;     /* Κεραμίδι, the book's terracotta cover: labels, step numbers, objects; 6.2:1 on paper. Never links or buttons */
  --terra-t: #F1E0D6;   /* terracotta tint: rings, quiet fills */
  --band: #EAE2D4;      /* deeper linen for the two warm bands (#pos, closing) and the hero table */

  /* logo */
  --wm-ink: #161B2A;
  --wm-tail: #22336B;
  --logo-red: #C23A2E;

  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* spacing on a 4px grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;
  --r-print: 2px; --r-btn: 8px; --r-card: 10px;
  --wrap: 1120px;
  --gutter: 20px;
}

/* Dark palette. The theme setting (TH-117, theme.js) sets data-theme="light" or "dark" on <html>;
   without it the visitor's system preference decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15141A;
    --card: #1E1C23;
    --ink: #E7E9EF;
    --ink-2: #A9B0C0;
    --indigo: #AFC0EA;
    --indigo-d: #8FA3D8;
    --indigo-t: #26304A;
    --on-indigo: #10162A;
    --red: #E06A5C;
    --olive: #9CC0A6;
    --olive-t: #1F2B24;
    --ochre: #D9A54A;
    --line: #322E37;
    --field: #161A24;
    --fline: #403B45;
    --shadow: rgba(0, 0, 0, .6);
    --terra: #E39A7C;
    --terra-t: #3A2621;
    --band: #1A181F;
    --wm-ink: #E9ECF4;
    --wm-tail: #AFC0EA;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15141A;
  --card: #1E1C23;
  --ink: #E7E9EF;
  --ink-2: #A9B0C0;
  --indigo: #AFC0EA;
  --indigo-d: #8FA3D8;
  --indigo-t: #26304A;
  --on-indigo: #10162A;
  --red: #E06A5C;
  --olive: #9CC0A6;
  --olive-t: #1F2B24;
  --ochre: #D9A54A;
  --line: #322E37;
  --field: #161A24;
  --fline: #403B45;
  --shadow: rgba(0, 0, 0, .6);
  --terra: #E39A7C;
  --terra-t: #3A2621;
  --band: #1A181F;
  --wm-ink: #E9ECF4;
  --wm-tail: #AFC0EA;
}
:root[data-theme="light"] { color-scheme: light; }

@media (max-width: 400px) {
  :root { --gutter: 16px; }
}
