/* =========================================================
   OG's Salon — MULTI-THEME TOKEN LAYER (FE-27)
   =========================================================
   `static/app.css` defines the classic white palette in `:root`, and
   every page already loads it. This file re-colours the
   same semantic tokens to add five more themes:

       white/forest (default, from :root) · navy · midnight · daylight · ocean · stone

   Contract (frontreadme.md §2.2):
   - A theme re-assigns *existing* tokens only. It never invents a new
     token name, so nothing downstream can depend on a theme being set.
   - `--danger` / `--warning` / `--success` keep their meaning in every
     theme; red stays reserved for destructive and urgent states.
   - `html[data-theme="…"]` (0,1,1) outranks `:root` (0,1,0), so load
     order does not matter — templates still load this after app.css and
     ui.css so the cascade reads top-to-bottom.
   - Setting the theme value, persisting it, and tracking `theme-color`
     are FE-28 (display preferences); the switch that applies them is
     `static/theme-switch.js`.
   - Each theme also carries the `--…-rgb` triplets of its own colours,
     so a translucent surface laid over a photograph follows the palette
     as well.

   No attribute is required for the white default: with `data-theme`
   absent the `:root` values apply.
   ========================================================= */

html[data-theme="forest"] {
  color-scheme: light;
}

/* ---- Navy: the existing navy-blue alternative ----
   The white default becomes navy blue, while the same warm gold action colour,
   the same spacing, the same type. Only the hue of the surfaces, the
   borders and the ink changes, so a page reads as the same design in a
   different colour rather than as a new design.

   Like every other theme it re-assigns *existing* tokens only, and it is
   inert until a page asks for it with `data-theme="navy"`. */
html[data-theme="navy"] {
  color-scheme: dark;
  --void: #070d1a;
  --base: #0c1524;
  --surface: #142034;
  --surface-hi: #1d2c46;
  --border: #31486b;
  --border-hi: #45628c;
  --ink: #f3f6fb;
  --ink-muted: #bccbdf;
  --ink-faint: #91a4c0;
  --signal: #f4cb78;
  --signal-ink: #0c1524;
  --signal-rgb: 244, 203, 120;
  --danger-soft: #4a2227;
  --danger-ink: #fecaca;
  --danger-border: #a6606a;
  --success-soft: #123c2a;
  --success-ink: #bbf7d0;
  --success-border: #528369;
  --void-rgb: 7, 13, 26;
  --base-rgb: 12, 21, 36;
  --surface-rgb: 20, 32, 52;
  --surface-hi-rgb: 29, 44, 70;
  --border-hi-rgb: 69, 98, 140;
  --ink-muted-rgb: 188, 203, 223;
}

html[data-theme="midnight"] {
  color-scheme: dark;
  --void: #000000;
  --base: #0a0a0a;
  --surface: #141414;
  --surface-hi: #1e1e1e;
  --border: #2a2a2a;
  --border-hi: #3a3a3a;
  --ink: #f5f5f5;
  --ink-muted: #b5b5b5;
  --ink-faint: #888888;
  --signal: #f4cb78;
  --signal-ink: #121212;
  --signal-rgb: 244, 203, 120;
  --danger-soft: #4a2227;
  --danger-ink: #fecaca;
  --danger-border: #a6606a;
  --success-soft: #123c2a;
  --success-ink: #bbf7d0;
  --success-border: #528369;
  --void-rgb: 0, 0, 0;
  --base-rgb: 10, 10, 10;
  --surface-rgb: 20, 20, 20;
  --surface-hi-rgb: 30, 30, 30;
  --border-hi-rgb: 58, 58, 58;
  --ink-muted-rgb: 181, 181, 181;
}

html[data-theme="daylight"] {
  color-scheme: light;
  --void: #d8d8d2;
  --base: #f7f7f5;
  --surface: #ffffff;
  --surface-hi: #ebebe8;
  --border: #d0d0cc;
  --border-hi: #a8a8a4;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --ink-faint: #707070;
  --signal: #b8851a;
  --signal-ink: #ffffff;
  --signal-rgb: 184, 133, 26;
  --danger-soft: #fff1f0;
  --danger-ink: #b42318;
  --danger-border: #e5a19b;
  --success-soft: #ecfdf3;
  --success-ink: #166534;
  --success-border: #86c79f;
  --void-rgb: 216, 216, 210;
  --base-rgb: 247, 247, 245;
  --surface-rgb: 255, 255, 255;
  --surface-hi-rgb: 235, 235, 232;
  --border-hi-rgb: 168, 168, 164;
  --ink-muted-rgb: 74, 74, 74;
}

html[data-theme="ocean"] {
  color-scheme: dark;
  --void: #051025;
  --base: #0a1a30;
  --surface: #10263f;
  --surface-hi: #173354;
  --border: #22456d;
  --border-hi: #356090;
  --ink: #eaf2fb;
  --ink-muted: #b6cbe4;
  --ink-faint: #7f9dbf;
  --signal: #8bd3f7;
  --signal-ink: #082238;
  --signal-rgb: 139, 211, 247;
  --danger-soft: #4a2227;
  --danger-ink: #fecaca;
  --danger-border: #a6606a;
  --success-soft: #123c2a;
  --success-ink: #bbf7d0;
  --success-border: #528369;
  --void-rgb: 5, 16, 37;
  --base-rgb: 10, 26, 48;
  --surface-rgb: 16, 38, 63;
  --surface-hi-rgb: 23, 51, 84;
  --border-hi-rgb: 53, 96, 144;
  --ink-muted-rgb: 182, 203, 228;
}

html[data-theme="stone"] {
  color-scheme: dark;
  --void: #1a1714;
  --base: #232019;
  --surface: #2f2a22;
  --surface-hi: #3d372d;
  --border: #4d463b;
  --border-hi: #6a6052;
  --ink: #f4ede0;
  --ink-muted: #c9bda9;
  --ink-faint: #9a8e7a;
  --signal: #e8b478;
  --signal-ink: #231a0c;
  --signal-rgb: 232, 180, 120;
  --danger-soft: #4a2227;
  --danger-ink: #fecaca;
  --danger-border: #a6606a;
  --success-soft: #123c2a;
  --success-ink: #bbf7d0;
  --success-border: #528369;
  --void-rgb: 26, 23, 20;
  --base-rgb: 35, 32, 25;
  --surface-rgb: 47, 42, 34;
  --surface-hi-rgb: 61, 55, 45;
  --border-hi-rgb: 106, 96, 82;
  --ink-muted-rgb: 201, 189, 169;
}

/* ---- Text size — an accessibility scale (frontreadme.md §2.3C) ----
   A root font-size scale propagates through every `rem` dimension, so
   type, spacing and minimum tap targets grow together. `standard` is the
   default, so no attribute means the current 100% rendering. */
html[data-text-size="standard"] {
  font-size: 100%;
}
html[data-text-size="large"] {
  font-size: 112.5%;
}
html[data-text-size="xlarge"] {
  font-size: 125%;
}
html[data-text-size="xxlarge"] {
  font-size: 140%;
}

/* Respect the OS preference for people who ask for less motion: the
   shimmer/hero animations live in app.css and ui.css; this is a tokens
   file, so it only carries the scale above. Reduced-motion handling for
   the theme atmosphere ships with the atmosphere work (FE-30/FE-31). */
