/* Design tokens shared by the website and (later) the app: colours per theme + typography per language. */
/* ── THEME TOKENS ── */
:root {
  color-scheme: light;
  --bg: #F7F3EC;
  --bg-alt: #FDFAF5;
  --surface: #FFFFFF;
  --text: #2C2C2C;
  --muted: #66665A;
  --heading: #1A3A2A;
  --brand: #1A3A2A;
  --brand-hover: #2D5A3D;
  --on-brand: #F7F3EC;
  --gold: #C4972A;
  --gold-text: #8F6B10;
  --gold-light: #E8C56A;
  --gold-pale: #F5E8C0;
  --sage: #56806A;
  --border: rgba(196, 151, 42, 0.22);
  --line: rgba(26, 58, 42, 0.15);
  --tint: rgba(26, 58, 42, 0.05);
  --nav-bg: rgba(247, 243, 236, 0.92);
  --band-bg: #1A3A2A;
  --band-text: #F7F3EC;
  --band-muted: rgba(247, 243, 236, 0.66);
  --map-bg: #E8F0E9;
  --map-grid: rgba(45, 90, 61, 0.07);
  --map-road: rgba(255, 255, 255, 0.75);
  --pin: #1A3A2A;
  --shadow: 26, 58, 42;
  --motif: #1A3A2A;
  --motif-opacity: 0.045;
  --noise-opacity: 0.6;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --title-scale: 1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1813; --bg-alt: #121F18; --surface: #182920;
    --text: #E6E1D6; --muted: #A5A898; --heading: #F1E9D8;
    --brand: #D6AA40; --brand-hover: #E8C56A; --on-brand: #13201A;
    --gold: #D6AA40; --gold-text: #E3BD5E; --gold-pale: rgba(214, 170, 64, 0.14);
    --sage: #8DB79A;
    --border: rgba(232, 197, 106, 0.16); --line: rgba(230, 225, 214, 0.14); --tint: rgba(230, 225, 214, 0.05);
    --nav-bg: rgba(14, 24, 19, 0.88);
    --band-bg: #15261D; --band-text: #F1E9D8; --band-muted: rgba(241, 233, 216, 0.62);
    --map-bg: #1B2D23; --map-grid: rgba(141, 183, 154, 0.08); --map-road: rgba(255, 255, 255, 0.07);
    --pin: #2F6B47; --shadow: 0, 0, 0;
    --motif: #E8C56A; --motif-opacity: 0.05; --noise-opacity: 0.35;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1813; --bg-alt: #121F18; --surface: #182920;
  --text: #E6E1D6; --muted: #A5A898; --heading: #F1E9D8;
  --brand: #D6AA40; --brand-hover: #E8C56A; --on-brand: #13201A;
  --gold: #D6AA40; --gold-text: #E3BD5E; --gold-pale: rgba(214, 170, 64, 0.14);
  --sage: #8DB79A;
  --border: rgba(232, 197, 106, 0.16); --line: rgba(230, 225, 214, 0.14); --tint: rgba(230, 225, 214, 0.05);
  --nav-bg: rgba(14, 24, 19, 0.88);
  --band-bg: #15261D; --band-text: #F1E9D8; --band-muted: rgba(241, 233, 216, 0.62);
  --map-bg: #1B2D23; --map-grid: rgba(141, 183, 154, 0.08); --map-road: rgba(255, 255, 255, 0.07);
  --pin: #2F6B47; --shadow: 0, 0, 0;
  --motif: #E8C56A; --motif-opacity: 0.05; --noise-opacity: 0.35;
}

/* ── LANGUAGE TYPOGRAPHY ── */
html[lang="ar"] { --font-display: 'Amiri', serif; --font-body: 'Noto Naskh Arabic', 'Amiri', serif; --title-scale: 0.82; }
html[lang="ur"] { --font-display: 'Noto Nastaliq Urdu', serif; --font-body: 'Noto Nastaliq Urdu', serif; --title-scale: 0.62; }
html[lang="hi"] { --font-display: 'Tiro Devanagari Hindi', serif; --font-body: 'Noto Sans Devanagari', 'DM Sans', sans-serif; --title-scale: 0.74; }
html[lang="te"] { --font-display: 'Tiro Telugu', serif; --font-body: 'Noto Sans Telugu', 'DM Sans', sans-serif; --title-scale: 0.66; }

/* Letter-spacing breaks Arabic joining and Indic conjuncts; uppercase and italics don't exist in these scripts. */
html:not([lang="en"]) body * { letter-spacing: normal; text-transform: none; }
html:not([lang="en"]) em { font-style: normal; }
html:is([lang="hi"], [lang="te"], [lang="ar"]) :is(h1, h2, h3, h4) { line-height: 1.45; }
html[lang="ur"] body * { line-height: 1.95; }
html:not([lang="en"]) :is(.section-tag, .hero-stat-label, .prayer-time-name, .mock-stat-l, .mock-row-sub, .mock-badge, .form-label, .footer-col-title, .hero-verse-ref, .pin-label, .card-sub) { font-size: 12px; }
