/* Anek Telugu (SIL Open Font License 1.1, see fonts/OFL.txt), self-hosted: Telugu, latin-ext and latin subsets, variable weight 400-700 */
@font-face { font-family: 'Anek Telugu'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/anek-telugu-telugu.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0B83, U+0C00-0C7F, U+1CD5-1CD6, U+1CD8, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
@font-face { font-family: 'Anek Telugu'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/anek-telugu-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anek Telugu'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/anek-telugu-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Hallmark · tokens · theme: custom ("night darshan, black granite, lamp-gold, saffron cloth")
 * axes: dark / high-contrast-serif / warm (lamp-gold + saffron)
 */
:root {
  /* Paper: warm black granite, never pure black */
  --color-paper:     oklch(15% 0.018 45);
  --color-paper-2:   oklch(19% 0.022 45);
  --color-paper-3:   oklch(24% 0.026 50);
  --color-ivory:     oklch(95% 0.022 85);
  --color-ink:       oklch(93% 0.02 85);
  --color-ink-soft:  oklch(80% 0.028 78);
  --color-ink-mute:  oklch(74% 0.03 70); /* was 66%: raised 2026-11-16 for 7:1 sunlight contrast (qa/CONTRAST-QA-2026-11-16.md) */

  /* Accents */
  --color-gold:      oklch(82% 0.125 83);
  --color-gold-deep: oklch(66% 0.12 75);
  --color-saffron:   oklch(70% 0.185 50);
  --color-kumkum:    oklch(56% 0.19 30);
  --color-leaf:      oklch(62% 0.11 140);

  /* Gada (logo): aged bronze-gold */
  --gada-hi:      oklch(93% 0.06 85);
  --gada-gold:    oklch(82% 0.12 80);
  --gada-mid:     oklch(66% 0.11 68);
  --gada-shadow:  oklch(38% 0.06 56);
  --gada-patina:  oklch(55% 0.06 175);
  --gada-band-hi: oklch(72% 0.13 50);
  --gada-band:    oklch(58% 0.17 40);
  --gada-band-lo: oklch(33% 0.11 35);
  --gada-glow:    oklch(80% 0.15 75 / 0.6);
  --gada-glow-0:  oklch(80% 0.15 75 / 0);
  --ember:        oklch(86% 0.15 75);
  --flame-core:   oklch(98% 0.05 95);
  --flame:        oklch(86% 0.17 78);
  --flame-edge:   oklch(66% 0.21 42);
  --flame-glow:   oklch(82% 0.17 70 / 0.5);
  --flame-glow-0: oklch(82% 0.17 70 / 0);
  --ray:          oklch(88% 0.12 80 / 0.55);
  --ray-0:        oklch(88% 0.12 80 / 0);
  --card:         oklch(19% 0.022 45 / 0.93);
  --lamp-shadow:  oklch(10% 0.02 45 / 0.6);
  --namam-white:  oklch(96% 0.015 85);
  --namam-red:    oklch(60% 0.2 32);
  --namam-glow:   oklch(82% 0.13 80 / 0.55);

  /* live / lamp / tile tones used by the opening, footer stats and reading view */
  --color-live: oklch(78% 0.17 150);
  --color-live-ring: oklch(78% 0.17 150 / 0.7);
  --glow-ember: oklch(26% 0.05 48);
  --glow-ember-2: oklch(28% 0.05 55);
  --lamp-core: oklch(80% 0.14 68 / 0.42);
  --lamp-edge: oklch(62% 0.13 52 / 0.14);
  --sheen: oklch(100% 0 0 / 0.05);
  --sheen-faint: oklch(100% 0 0 / 0.03);
  --sheen-edge: oklch(100% 0 0 / 0.06);
  --shade: oklch(0% 0 0 / 0.22);
  --shade-faint: oklch(0% 0 0 / 0.05);
  --selection:    oklch(82% 0.125 83 / 0.32);
  --scroll-thumb: oklch(52% 0.07 70);
  --scroll-track: oklch(17% 0.02 45);
  --gada-ring:       oklch(78% 0.12 75 / 0.45);
  --gada-ring-soft:  oklch(78% 0.12 75 / 0.08);
  --gada-ring-faint: oklch(78% 0.12 75 / 0.035);
  --gada-badge-in:   oklch(24% 0.035 55);
  --gada-badge-out:  oklch(12% 0.012 45);

  /* Lines + glows */
  --color-rule:      oklch(82% 0.125 83 / 0.22);
  --color-rule-soft: oklch(82% 0.125 83 / 0.12);
  --color-glow:      oklch(80% 0.16 70 / 0.55);
  --color-glow-far:  oklch(70% 0.17 55 / 0);
  --color-veil:      oklch(15% 0.018 45 / 0.92);
  --color-veil-0:    oklch(15% 0.018 45 / 0);
  --color-focus:     oklch(86% 0.14 85);
  --color-wa:        oklch(48% 0.13 150); /* was 62% (2.96:1 with ivory text, AA fail); now 5.3:1 */

  /* Type */
  --font-display-en: "Anek Telugu", system-ui, sans-serif;
  --font-display-te: "Anek Telugu", system-ui, sans-serif;
  --font-inscription: "Anek Telugu", system-ui, sans-serif;
  --font-body:       "Anek Telugu", system-ui, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.625rem;
  --text-2xl:  clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --text-3xl:  clamp(2.4rem, 1.6rem + 3.5vw, 4rem);
  --text-display: clamp(2.9rem, 1.2rem + 7.2vw, 7.25rem);

  /* Space (4 pt) */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --rule-thin: 1px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;
  --dur-dawn:  3200ms;
}

/* Framed photographs + scroll reveal (added 2026-11-16) */
:root {
  --frame-mat:    oklch(19% 0.022 45);
  --frame-line:   oklch(82% 0.125 83 / 0.35);
  --frame-inner:  oklch(90% 0.08 85 / 0.18);
  --frame-shadow: 0 30px 60px -28px oklch(8% 0.02 45 / 0.9), 0 0 0 1px oklch(82% 0.125 83 / 0.06);
  --frame-glow:   oklch(80% 0.15 75 / 0.16);
  --ease-silk:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal:   1600ms;
}
