/* ==========================================================================
   Theme layer — Kalabhairava 1000 Names (bhairavakalikenamosthute.com)
   Load AFTER pothi-system.css. Tokens only: the core never changes.
   ========================================================================== */

:root {
  /* The brand is already the same palette family (crimson, ink, gold), so the
     core tokens carry over unchanged. These declarations exist so the site can
     diverge deliberately later without touching a component. */

  --paper: #faf3e3;
  --paper-2: #eee3ca;
  --paper-3: #f2e7cf;
  --ink: #1b1510;
  --ink-2: #4a3f31;
  --ash: #5b5142;
  --cinnabar: #9c2b1c;   /* accent: IAST, active item, links, folio */
  --gold: #775a21;       /* numerals only */
  --rule: #cdbc9c;
  --rule-dark: #b7a37e;
  --rule-soft: rgba(120, 95, 55, .15);
  --edge-band: #e9dfc7;
  --edge-bg: #e9dfc7;
  --hover: rgba(250, 243, 227, .7);
  --hover-accent: rgba(156, 43, 28, .05);
  --placeholder: #9a8d76;
  --spread-shadow: 0 30px 60px -30px rgba(70, 50, 20, .65);
  --panel-shadow: 0 18px 40px -30px rgba(70, 50, 20, .55);
  --desk: #ddcfb2;
}

:root[data-theme="night"] {
  --paper: #1a1410;
  --paper-2: #120e0b;
  --paper-3: #171210;
  --ink: #efe3cd;
  --ink-2: #d3c5ad;
  --ash: #a99a83;
  --cinnabar: #e0604a;
  --gold: #d3ab5a;
  --rule: rgba(211, 171, 90, .20);
  --rule-dark: rgba(211, 171, 90, .34);
  --rule-soft: rgba(211, 171, 90, .14);
  --edge-band: #2a211a;
  --edge-bg: #171210;
  --hover: rgba(224, 96, 74, .06);
  --hover-accent: rgba(224, 96, 74, .10);
  --placeholder: #8f8471;
  --spread-shadow: 0 24px 50px -30px rgba(0, 0, 0, .85);
  --panel-shadow: none;
  --desk: #0c0907;
  color-scheme: dark;
}

/* Print is always the day book, even when the reader is in night mode. This
   block lives after the night tokens in the theme layer so it wins the cascade;
   the matching block in pothi-system.css is the core fallback. */
@media print {
  :root[data-theme="night"] {
    --paper: #faf3e3;
    --paper-2: #eee3ca;
    --paper-3: #f2e7cf;
    --ink: #1b1510;
    --ink-2: #4a3f31;
    --ash: #5b5142;
    --cinnabar: #9c2b1c;
    --gold: #775a21;
    --rule: #cdbc9c;
    --rule-dark: #b7a37e;
    --rule-soft: rgba(120, 95, 55, .15);
    --edge-band: #e9dfc7;
    --edge-bg: #e9dfc7;
    --hover: rgba(250, 243, 227, .7);
    --hover-accent: rgba(156, 43, 28, .05);
    --placeholder: #9a8d76;
    --spread-shadow: 0 30px 60px -30px rgba(70, 50, 20, .65);
    --panel-shadow: 0 18px 40px -30px rgba(70, 50, 20, .55);
    --desk: #ddcfb2;
    color-scheme: light;
  }
}

/* --------------------------------------------------------------------------
   If the site's identity should lean gold rather than cinnabar, swap the two
   roles here — and only here. Check contrast afterwards: gold #775a21 passes on
   paper, but a light gold on ink will not carry 12px text.

   :root {
     --cinnabar: #8a6a2a;   // gold becomes the accent
     --gold: #9c2b1c;       // red retreats to numerals
   }
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Per-site content, not tokens (edit the templates, not this file):
   - wordmark:        ॐ · कालभैरव सहस्रनाम  /  Kalabhairava Sahasranama
   - counts:          1,000 names · 91 sets of eleven (90 full + a final set of 10)
   - dedication:      per the site's own footer and guru line
   - frontispiece:    the Kalabhairava image, duotone, same treatment as the parent
   -------------------------------------------------------------------------- */
