/* Design tokens: the ONE place for colours, type, spacing (docs/FRONTEND_PLAN.md, B1-B3).
   Per-website brand overrides go in a later layer (e.g. [data-site="dsvv"] { --brand: ... }). */
:root {
  /* ---- brand */
  --saffron-50: #fff8e6;
  --saffron-100: #fdecc0;
  --saffron-300: #fbcf5c;
  --saffron-500: #f8b600;   /* brand accent: fills, highlights, focus — never text on white */
  --saffron-600: #d97706;
  --saffron-700: #b45309;   /* links/text on white, 5:1 */
  --saffron-800: #92400e;
  --maroon-800: #7f1d1d;

  /* ---- neutrals (warm) */
  --ink: #1c1917;
  --ink-2: #292524;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --paper: #fffbf5;
  --white: #ffffff;

  /* ---- semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--paper);
  --color-text: var(--ink);
  --color-muted: var(--stone-600);
  --color-border: var(--stone-200);
  --color-link: var(--saffron-700);
  --color-link-hover: var(--saffron-800);
  --color-accent: var(--saffron-500);
  --color-on-accent: var(--ink);
  --color-dark-bg: var(--ink);
  --color-on-dark: #f5f0e8;
  --color-on-dark-muted: #c9bfb2;
  --focus-ring: 0 0 0 3px rgba(248, 182, 0, .55);

  /* ---- type: one family for every script; thin weights only for display sizes */
  --font-sans: "Noto Sans", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Bengali",
    "Noto Sans Gujarati", "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Oriya",
    "Noto Sans Gurmukhi", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-thin: 200;       /* display: hero, big section titles (>= 40px only) */
  --weight-light: 300;      /* headings >= 24px */
  --weight-regular: 400;    /* body */
  --weight-medium: 500;
  --weight-semibold: 600;   /* UI, buttons, labels */

  --text-xs: .8125rem;      /* 13 */
  --text-sm: .875rem;       /* 14 */
  --text-base: 1.0625rem;   /* 17 */
  --text-lg: 1.1875rem;     /* 19 */
  --text-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --text-2xl: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-display: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.7;
  --tracking-label: .12em;

  /* ---- space (8px scale) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, .6rem + 1.5vw, 1.5rem);
  --container: 1240px;

  /* ---- shape & depth */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hairline: 1px solid var(--color-border);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06);
  --shadow: 0 8px 24px -12px rgba(28, 25, 23, .18);
  --shadow-lg: 0 24px 48px -20px rgba(28, 25, 23, .28);

  /* ---- motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: .25s;

  /* ---- layout */
  --header-h: 72px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0s; }
}
