/* ==========================================================================
   Theme options — each theme only redefines tokens from main.css.
   Applied as <html data-theme="…">. Unlayered, so it beats @layer tokens.
   ========================================================================== */

:root {
  --ember-core: 255,226,160;
  --ember-glow: 245,154,50;
  --font-ui: var(--font-body);
}

/* 1 · Temple Theatre — the current look (lamp-lit maroon, saffron flame) */
/* (no overrides: main.css tokens are this theme) */

/* 2 · Ganga Aarti — night river, moonlight and diya gold */
:root[data-theme="ganga"] {
  --ink-950: #060b18;
  --ink-900: #0a1224;
  --ink-850: #0f1a31;
  --ink-800: #16233f;
  --maroon-700: #1b2f5c;
  --maroon-600: #24407a;
  --saffron-500: #e9a23b;
  --flame-400: #f6c463;
  --gold-400: #d9b26a;
  --gold-300: #f1d9a0;
  --cream-50: #f4f1ea;
  --cream-100: #dfe3ec;
  --cream-200: #c4cbd9;
  --color-border: color-mix(in oklab, #9fb4dc 20%, transparent);
  --color-border-strong: color-mix(in oklab, #d9b26a 45%, transparent);
  --gradient-flame: linear-gradient(135deg, #f6c463, #e9a23b 50%, #b5651d);
  --gradient-gold-text: linear-gradient(180deg, #ffffff 0%, #f1d9a0 50%, #d9b26a 100%);
  --glow-lamp: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, #3d6bd1 22%, transparent), transparent 60%);
  --font-display: "Cinzel", "Times New Roman", serif;
  --ember-core: 255,246,214;
  --ember-glow: 246,196,99;
}
:root[data-theme="ganga"] h1, :root[data-theme="ganga"] h2 { letter-spacing: 0.02em; }
:root[data-theme="ganga"] .sh__title, :root[data-theme="ganga"] .hero__title { font-size: clamp(2.8rem, 1.2rem + 6.4vw, 7.6rem); }

/* 3 · Ashram — forest green, turmeric and marigold */
:root[data-theme="ashram"] {
  --ink-950: #07120d;
  --ink-900: #0b1913;
  --ink-850: #102219;
  --ink-800: #173024;
  --maroon-700: #1f4a33;
  --maroon-600: #2b6244;
  --saffron-500: #e3a21a;
  --flame-400: #f2c14e;
  --gold-400: #c9b067;
  --gold-300: #e6d79e;
  --cream-50: #f6f2e3;
  --cream-100: #e4e3cc;
  --cream-200: #cfd0b1;
  --color-border: color-mix(in oklab, #c9b067 20%, transparent);
  --color-border-strong: color-mix(in oklab, #e3a21a 45%, transparent);
  --gradient-flame: linear-gradient(135deg, #f2c14e, #e3a21a 50%, #9a6b0c);
  --gradient-gold-text: linear-gradient(180deg, #fffbe6 0%, #e6d79e 50%, #c9b067 100%);
  --glow-lamp: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, #2f8a57 25%, transparent), transparent 60%);
  --font-display: "Marcellus", "Times New Roman", serif;
  --ember-core: 255,250,210;
  --ember-glow: 214,236,120;  /* fireflies, not sparks */
}

/* 4 · Manuscript — LIGHT. Palm-leaf paper, ink-brown text, sindoor red.
   The palette is inverted (ink = paper, cream = ink). Anything that sits on
   a photo re-declares the dark values so its text stays light. */
:root[data-theme="manuscript"] {
  color-scheme: light;
  --ink-950: #f5ead3;
  --ink-900: #ecdcbc;
  --ink-850: #fbf5e8;
  --ink-800: #e6d3ad;
  --maroon-700: #e9c9a4;
  --maroon-600: #c8553d;
  --saffron-500: #b8321c;
  --flame-400: #d2491f;
  --gold-400: #9c6b1e;
  --gold-300: #7d5414;
  --cream-50: #2b1a0e;
  --cream-100: #4a3120;
  --cream-200: #634631;
  --color-bg: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-surface-2: var(--ink-800);
  --color-text: var(--cream-50);
  --color-text-muted: color-mix(in oklab, #2b1a0e 72%, transparent);
  --color-text-faint: color-mix(in oklab, #2b1a0e 52%, transparent);
  --color-primary: var(--saffron-500);
  --color-primary-hover: var(--flame-400);
  --color-accent: var(--gold-300);
  --color-border: color-mix(in oklab, #7d5414 22%, transparent);
  --color-border-strong: color-mix(in oklab, #7d5414 45%, transparent);
  --gradient-flame: linear-gradient(135deg, #d2491f, #b8321c 55%, #7a1f10);
  --gradient-gold-text: linear-gradient(180deg, #6b1d0c 0%, #8e2a14 55%, #5a1a0c 100%);
  --glow-lamp: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, #d2491f 12%, transparent), transparent 60%);
  --shadow-m: 0 14px 40px -14px rgb(90 50 20 / 0.35);
  --shadow-s: 0 2px 8px rgb(90 50 20 / 0.18);
  --font-display: "Rozha One", "Times New Roman", serif;
  --font-body: "Hind", system-ui, sans-serif;
  --ember-core: 255,236,190;
  --ember-glow: 236,120,40;
}
:root[data-theme="manuscript"] body {
  background-color: var(--ink-950);
  /* Only a faint ruled-paper texture — a highlight here made section fades
     (which end in solid --color-bg) show a visible seam */
  background-image: repeating-linear-gradient(0deg, rgb(125 84 20 / 0.03) 0 1px, transparent 1px 28px);
}
:root[data-theme="manuscript"] .sh__title,
:root[data-theme="manuscript"] .hero__title { font-weight: 400; letter-spacing: 0; }
:root[data-theme="manuscript"] .btn--primary { color: #fff8ec; }
/* Rozha One is wide — keep long words like "Upanishadic" whole on cards */

/* Photo-backed areas keep a dark, lamp-lit palette in the light theme */
:root[data-theme="manuscript"] :is(.sh, .hero, .page-hero, .mv, .site-header--overlay:not(.is-scrolled), .site-footer) {
  --ink-950: #1c110a;
  --ink-900: #24160d;
  --ink-850: #2b1a10;
  --cream-50: #fbf3e4;
  --cream-100: #f3e4c6;
  --cream-200: #e5cfa5;
  --gold-300: #ebc982;
  --gold-400: #d6a650;
  --flame-400: #f59a32;
  --saffron-500: #e8761c;
  --color-text: #fbf3e4;
  --color-accent: #ebc982;
  --color-primary: #e8761c;
  --color-primary-hover: #f59a32;
  --gradient-flame: linear-gradient(135deg, #f59a32, #e8761c 45%, #7d2416);
  --color-text-muted: color-mix(in oklab, #fbf3e4 72%, transparent);
  --color-text-faint: color-mix(in oklab, #fbf3e4 50%, transparent);
  --color-border: color-mix(in oklab, #d6a650 25%, transparent);
  --color-border-strong: color-mix(in oklab, #d6a650 50%, transparent);
  --gradient-gold-text: linear-gradient(180deg, #fff1cf 0%, #ebc982 45%, #d6a650 100%);
  color: var(--color-text);
}

/* Theme switcher button styles removed 2026-11-14 (button removed at user request). */
