/* Delhi Darshan design tokens — Phase 2. Single source for colour, type, space, grid, motion.
   Every other stylesheet reads these variables; nothing hard-codes a hex, size or easing. */

/* Font files are declared in assets/fonts/fonts.css (self-hosted, OFL). */

:root{
  /* ---------- Colour (brief palette) ---------- */
  --maroon:#712d34;      /* brand, large fields */
  --ink:#1a0f12;         /* intro and dark sections */
  --sandstone:#efe4d3;   /* light sections */
  --marigold:#f2a81d;    /* highlights, CTAs, active states */
  --jade:#2f6b5a;        /* rare secondary */
  --vermilion:#d8432b;   /* one dramatic accent, max twice per page */
  /* derived neutrals lean toward maroon */
  --maroon-deep:#55202a; /* pressed states, menu panel */
  --sandstone-2:#e4d5bf; /* rules, quiet fills on sandstone */
  --ink-soft:#3b2a2e;    /* secondary text on sandstone (11.0:1) */
  --sand-soft:#d9c7b0;   /* secondary text on maroon/ink */

  /* Contrast rules (checked, WCAG 2.2):
     sandstone on maroon 7.85:1  ok for all text
     marigold on maroon 4.89:1   ok for text, used for key words
     ink on marigold 9.27:1      CTA text
     marigold on sandstone 1.61:1 NEVER as text or as a lone focus ring; on sandstone use maroon/ink
     vermilion on sandstone 3.51:1 large display text only (>=24px) */

  /* ---------- Section themes (set data-theme on a section) ---------- */
  --surface:var(--sandstone);--on-surface:var(--ink);--on-surface-2:var(--ink-soft);--key:var(--maroon);

  /* ---------- Type ---------- */
  --font-display:"Bricolage Grotesque","Arial Narrow",system-ui,sans-serif;
  --font-body:"Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-serif:"Instrument Serif","Times New Roman",serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --font-deva:"Tiro Devanagari Hindi","Noto Sans Devanagari",serif;

  /* fluid scale; min at 360px, max at 1440px */
  --step--1:clamp(.8125rem,.78rem + .15vw,.875rem);   /* 13–14  captions, mono labels */
  --step-0:clamp(1rem,.96rem + .2vw,1.125rem);        /* 16–18  body */
  --step-1:clamp(1.25rem,1.15rem + .45vw,1.5rem);     /* 20–24  lead, card titles */
  --step-2:clamp(1.75rem,1.45rem + 1.3vw,2.75rem);    /* 28–44  sub-heads */
  --step-3:clamp(2.75rem,1.9rem + 3.8vw,6rem);        /* 44–96  section headlines */
  --step-hero:clamp(3.25rem,1rem + 9vw,10.5rem);      /* 8–11vw hero */
  --lh-display:.9;--lh-head:1;--lh-body:1.55;
  --track-display:-.035em;--track-mono:.06em;
  --wdth-display:78%;    /* condensed axis for display, 100% for body */

  /* ---------- Space (one scale) ---------- */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:24px;--s-6:32px;--s-7:48px;--s-8:64px;--s-9:96px;--s-10:128px;--s-11:192px;

  /* ---------- Grid ---------- */
  --cols:12;--gutter:clamp(16px,2vw,24px);--margin:clamp(16px,4vw,64px);--max:1440px;
  --section-pad:clamp(var(--s-8),10vw,var(--s-11));

  /* ---------- Shape ---------- */
  --radius-0:0;--radius-pill:999px;          /* square by default; pill only for nav and segmented control */
  --arch:polygon(0 100%,0 38%,8% 20%,22% 8%,50% 0,78% 8%,92% 20%,100% 38%,100% 100%); /* pointed-arch mask fallback; SVG mask preferred */

  /* ---------- Motion ---------- */
  --ease-expo:cubic-bezier(.16,1,.3,1);      /* expo.out */
  --ease-quart-io:cubic-bezier(.76,0,.24,1); /* power4.inOut */
  --dur-1:.24s;--dur-2:.6s;--dur-3:1.1s;
  --focus:0 0 0 3px var(--marigold),0 0 0 5px var(--ink); /* double ring: visible on every ground */
}
[data-theme="maroon"]{--surface:var(--maroon);--on-surface:var(--sandstone);--on-surface-2:var(--sand-soft);--key:var(--marigold)}
[data-theme="ink"]{--surface:var(--ink);--on-surface:var(--sandstone);--on-surface-2:var(--sand-soft);--key:var(--marigold)}
[data-theme="sandstone"]{--surface:var(--sandstone);--on-surface:var(--ink);--on-surface-2:var(--ink-soft);--key:var(--maroon)}

@media (prefers-reduced-motion:reduce){:root{--dur-1:0s;--dur-2:0s;--dur-3:0s}}
