/* MantraJyoti design tokens (redesign Step 1, docs/redesign-audit.md).
   The saffron brand stays (owner decision D4). These --mj-* tokens are the shared vocabulary for migrated
   templates (marked {# design-v2 #}); the older tokens in _base.html keep working until Step 17.
   Text/background pairs are WCAG AA (≥ 4.5:1) — CI checks the pairs listed under "Contrast pairs" below.
   Breakpoints (for media queries, which can't read variables): sm 480px · md 768px · lg 1024px · xl 1280px. */
:root {
  /* Colour */
  --mj-brand:          #c2410c;   /* saffron: primary actions, links, small highlights */
  --mj-brand-strong:   #9a3412;   /* hover / pressed */
  --mj-brand-soft:     #fff1e6;   /* tinted panels, selected rows */
  --mj-dark:           #1c0a00;   /* hero, dark feature sections, footer */
  --mj-on-dark:        #ffffff;
  --mj-on-dark-muted:  #e7d9c9;
  --mj-bg:             #fffbf5;   /* warm ivory page background */
  --mj-surface:        #ffffff;   /* cards, forms */
  --mj-sand:           #f5efe6;   /* subtle panels, table stripes */
  --mj-line:           #e7e5e4;   /* 1px borders, separators */
  --mj-line-strong:    #d6d3d1;   /* input borders */
  --mj-ink:            #1c1917;   /* body text */
  --mj-ink-2:          #44403c;   /* secondary text */
  --mj-ink-3:          #57534e;   /* labels, hints */
  --mj-success:        #15803d;
  --mj-warning:        #b45309;
  --mj-danger:         #b91c1c;

  /* Typography — the web fonts arrive in Step 2; until then the fallbacks render */
  --mj-font-display:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --mj-font-display-hi: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
  --mj-font-body:       'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mj-fs-hero:   clamp(34px, 3.2vw + 22px, 56px);
  --mj-fs-h2:     clamp(26px, 1.6vw + 20px, 36px);
  --mj-fs-h3:     clamp(18px, 0.4vw + 16.5px, 21px);
  --mj-fs-body:   16px;
  --mj-fs-lead:   17px;
  --mj-fs-small:  14px;
  --mj-fs-label:  13px;
  --mj-lh-tight:  1.2;
  --mj-lh-body:   1.6;
  --mj-lh-deva:   1.75;           /* Devanagari matras need more room */
  --mj-fw-regular: 400;
  --mj-fw-semibold: 600;

  /* Spacing — 8px scale (with 4px and 12px for tight spots) */
  --mj-space-1: 4px;
  --mj-space-2: 8px;
  --mj-space-3: 12px;
  --mj-space-4: 16px;
  --mj-space-5: 24px;
  --mj-space-6: 32px;
  --mj-space-7: 40px;
  --mj-space-8: 48px;
  --mj-space-9: 64px;
  --mj-space-10: 80px;

  /* Shape */
  --mj-radius-sm:   8px;
  --mj-radius-md:   12px;
  --mj-radius-lg:   16px;
  --mj-radius-pill: 999px;
  --mj-border:        1px solid var(--mj-line);
  --mj-border-strong: 1px solid var(--mj-line-strong);
  --mj-shadow-1: 0 1px 2px rgba(28, 10, 0, 0.06);
  --mj-shadow-2: 0 4px 16px rgba(28, 10, 0, 0.08);
  --mj-focus:    0 0 0 3px rgba(194, 65, 12, 0.35);

  /* Layout */
  --mj-w-content: 1120px;
  --mj-w-narrow:  720px;
  --mj-w-text:    68ch;
  --mj-gutter:    16px;
  --mj-card-pad:  20px;          /* 24px from md up (set in components.css) */

  /* Controls */
  --mj-control-h:    48px;       /* buttons, inputs */
  --mj-control-h-sm: 40px;
  --mj-tap-min:      44px;

  /* Motion */
  --mj-dur:  150ms;
  --mj-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Contrast pairs (text on background), checked in CI:
   ink, ink-2, ink-3 on bg / surface / sand · brand on bg / surface / sand / brand-soft · brand-strong on bg ·
   on-dark, on-dark-muted on dark · white on brand / brand-strong · success / warning / danger on bg / surface */
