/* Manrope, self-hosted (SIL Open Font Licence, assets/fonts/OFL.txt). One variable file covers weights 200–800. */
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   AyurSphere design tokens
   Source: AyurSphere Brand Guidelines v1.0 (2026), sections 15–21 and 31.
   Every brand value lives here. To rebrand, edit this file only.
   ========================================================================== */

:root {
  /* --- The spectrum (section 15) — eight equal hues, always full strength.
         Never tint, screen or gradient between them. */
  --teal:    #12B5C4;
  --azure:   #2196F3;
  --violet:  #7B3FB5;
  --magenta: #E31C5F;
  --coral:   #F4551F;
  --amber:   #FDB913;
  --lime:    #A7CE39;
  --green:   #2FA84F;

  /* --- Neutrals (section 16) — slightly warm; carry ~80% of every surface. */
  --ink:   #2F3238;   /* all body text, dark surfaces */
  --slate: #5A5750;   /* secondary text, captions */
  --stone: #9A958E;   /* disabled states, hover borders, placeholder frames — not text */
  --line:  #E2DDD6;   /* rules, borders, dividers */
  --bone:  #FAF8F5;   /* page background */
  --white: #FFFFFF;   /* cards, logo tiles */

  /* --- Programme coding (section 17) — pairs are fixed across every channel. */
  --health:    var(--teal);
  --health-2:  var(--azure);
  --wealth:    var(--amber);
  --wealth-2:  var(--coral);
  --society:   var(--violet);
  --society-2: var(--magenta);
  --org:       var(--green);
  --org-2:     var(--lime);

  /* --- Type (sections 19–20) */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-size: clamp(40px, 6vw, 64px);  /* 64 / 0.92 / 800 */
  --h1-size: clamp(32px, 4.5vw, 40px);     /* 40 / 1.1 / 700 */
  --h2-size: 28px;                          /* 28 / 1.2 / 700 */
  --lead-size: 20px;                        /* 20 / 1.55 / 400 */
  --body-size: 16px;                        /* 16 / 1.7 / 400 — screen minimum */
  --caption-size: 14px;                     /* 14 / 1.5 / 400 */
  --label-size: 12px;                       /* 12 / 1.2 / 700 / +0.16em, uppercase, ≤4 words */

  /* --- Spacing (section 31) — 4 px base */
  --s1: 4px;    /* icon gaps */
  --s2: 8px;    /* inside controls */
  --s3: 16px;   /* text blocks */
  --s4: 24px;   /* card padding */
  --s5: 48px;   /* between groups */
  --s6: 96px;   /* between sections */

  /* --- Shape and elevation (section 31) */
  --radius: 4px;          /* default */
  --radius-pill: 999px;   /* tags only */
  --shadow: 0 1px 2px rgba(47, 50, 56, 0.08);   /* the one elevation */

  /* --- Motion (section 37) */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-ui: 200ms;      /* UI states */
  --dur-enter: 400ms;   /* entrances */

  /* --- Layout (section 31, 33) */
  --max: 1240px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --header-h: 64px;
  --control-h: 48px;
  --spectrum-rule-h: 6px;

  /* --- Focus (section 18) */
  --focus-ring: 2px solid var(--azure);
  --focus-offset: 2px;
}

/* --------------------------------------------------------------------------
   Contrast matrix — computed WCAG 2.1 ratios for text on spectrum grounds.
   Body text must clear 4.5:1. Headlines ≥ 24px regular (or ≥ 19px bold) need 3:1.

     Ink   on Teal     5.1 : 1   pass  → Teal always carries Ink text
     Ink   on Amber    7.3 : 1   pass  → Amber always carries Ink text
     Ink   on Lime     7.0 : 1   pass  → Lime always carries Ink text
     White on Violet   6.5 : 1   pass  → Violet carries white text
     White on Magenta  4.6 : 1   pass  → Magenta carries white text
     White on Coral    3.4 : 1   large text only (≥ 24px headlines)
     White on Azure    3.1 : 1   large text only — prefer Azure as a rule, not a ground
     White on Green    3.1 : 1   large text only — prefer Green as a rule, not a ground
     Ink   on Azure    4.2 : 1   fails body — do not set body text on Azure
     Ink   on Green    4.2 : 1   fails body — do not set body text on Green
     Bone  on Ink     11.6 : 1   pass
     Azure on White    3.1 : 1   links at 16px miss AA; underline keeps them non-colour-dependent.
                                 A darker link Azure would be a brand exception — see README.
     Stone on White    3.0 : 1   fails — Stone on Bone 2.8:1, Stone on Ink 4.3:1. Never body, caption or
                                 label text; disabled states, hover borders and placeholder frames only.
     Azure ring on Teal 1.25 : 1 fails — pillar mastheads switch the focus ring to the masthead's text colour.
   -------------------------------------------------------------------------- */
