/* ==========================================================================
   Desistor Network — Design Tokens
   Brand palette approved 16 Sep 2026:
     Teal   #236A6C   primary
     Peach  #FA8C71   accent / CTA
     Rust   #D86A35   secondary accent
     Beige  #FDEAD5   surface
     Grey   #A3A8A9   neutral
     Ink    #222222   text        White #FFFFFF
   Nunito typeface. Every shade below is derived from one of those seven.
   ========================================================================== */

:root {
  /* ---- Approved brand palette ---- */
  --teal:            #236A6C;   /* approved 16 Sep */
  --teal-700:        #333;
  --teal-800:        #113536;
  --teal-900:        #0B2223;
  --teal-300:        #8FCBCC;
  --teal-100:        #EDF2F2;
  --teal-050:        #C0D3D3;

  --amber:           #D86A35;   /* approved 16 Sep — rust */
  --amber-700:       #8D401B;   /* label weight of the rust, AA on its tint */
  --amber-300:       #E6A07F;
  --amber-100:       #F5D9CC;

  --coral:           #FA8C71;   /* approved 16 Sep — peach */
  --coral-700:       #B8501F;   /* label weight of the peach, AA on its tint */
  --coral-300:       #FCB7A6;
  --coral-100:       #FDF1ED;
  --peach-050:       #FEEDE9;   /* the pale wash behind tags and the active nav pill */
  --peach-100:       #FDD7CE;

  --cream:           #FDEAD5;   /* UX 15 Sep: exact beige from the deck */
  --cream-200:       #FEF5EA;   /* UX: FAQ background */
  --cream-400:       #F6DCBE;

  /* Salmon CTA + navy body text — sampled from the approved hifi homepage */
  --salmon:          #FA8C71;
  --salmon-700:      #E7714F;
  --navy:            #333;   /* approved 16 Sep — headings and body */
  --navy-700:        #111111;
  --navy-400:        #595E5F;
  --navy-200:        #D7DADA;
  --header-bg:       #FAFAFA;

  --ink:             #222222;
  --ink-700:         #444748;
  --ink-500:         #595E5F;
  --ink-400:         #A3A8A9;   /* approved 16 Sep — grey */
  --ink-200:         #D7DADA;
  --ink-100:         #E1E4ED;
  --white:           #FFFFFF;

  /* ---- Semantic ---- */
  --brand:           var(--teal);
  --brand-ink:       var(--white);
  --accent:          var(--amber);
  --highlight:       var(--coral);

  --bg:              var(--white);
  --bg-soft:         var(--cream-200);
  --bg-warm:         var(--cream);
  --bg-dark:         var(--teal);
  --surface:         var(--white);
  --border:          var(--navy-200);
  --border-soft:     var(--ink-100);

  --text:            var(--navy);
  /* Secondary and tertiary text. Measured against every background they are
     used on, the previous pair ran 2.6–4.4:1 — under the 4.5:1 AA floor for
     text below 18.66px, which is most of the metadata on this site. These
     are the same slate hues, darkened until they clear it on white, on the
     soft grey, and on both creams. Neutral greys only; no brand colour is
     touched here. */
  --text-muted:      #666;   /* grey darkened to clear AA on white and on both creams */
  --text-faint:      rgba(102,102,102,0.5);
  --text-invert:     var(--white);
  --text-crum:      rgba(53,62,92,0.75);
  --text-dark:      #353E5C;

  /* ---- Status ---- */
  --ok:              #2C7757;   /* AA: 4.7 : 1 on --ok-bg (was 4.36) */
  --ok-bg:           #E6FDF4;
  --warn:            #8C650C;   /* AA: 4.7 : 1 on the warn tint (was 3.04) */
  --warn-bg:         #FBF1D6;
  --danger:          #BD3838;   /* AA: 4.6 : 1 on the danger tint (was 4.41) */
  --danger-bg:       #FBE6E6;
  --info:            var(--teal);
  --info-bg:         var(--teal-050);

  /* ---- Type ---- */
  --font: 'Nunito', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Helvetica Neue', Arial, sans-serif;

  /* Pure-viewport scaling so the hero headline holds the three lines the UX
     feedback asks for at every width — 3.33vw is 64px at the hi-fi's 1920. */
  --fs-big:   clamp(2rem, 5vw, 6.25rem);                /* 32 → 100 */
  --fs-hero:   clamp(2rem, 3.33vw, 4rem);                /* 32 → 64 */
  --fs-h1:     clamp(2rem, -0.11rem + 5.56vw, 4.0625rem);   /* 28 → 44 */
  --fs-h2:      clamp(1.5rem, 0.34rem + 3.29vw, 2.81rem);     /* 24 → 32 */
  --fs-h3:     clamp(1.2rem, 0.63rem + 1.81vw, 2rem);  /* 20 → 24 */
  --fs-h4:     26px;
  --fs-h5:     20px;
  --fs-lg:     24px;
  --fs-base:   22px;
  --fs-lm:   20px;
  --fs-sm:     18px;
  --fs-xs:     16px;
  --fs-2xs:    14px;
  --fs-3xs:    12px;
  --fs-4xs:    11px;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-base:   1.6;

  --fw-light:  300;
  --fw-reg:    400;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-x:      800;

  /* ---- Space (4px base) ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --section-y: clamp(48px, 6vw, 96px);
  --gutter:    clamp(16px, 4vw, 40px);
  --gutter-lg:    clamp(16px, 8vw, 120px);
  --maxw:      1480px;
  --maxw-narrow: 880px;
  --maxw-xl: 1760px;
  --maxw-full: 1920px;

  /* ---- Radii ---- */
  --r-2xs: 3px; --r-xs: 6px;  --r-sm: 8px;   --r-md: 12px;
  --r-lg: 16px; --r-xl: 24px;  --r-2xl: 40px;
  --r-field:         10px;
  --r-pill: 999px;
  /* Signature button shape: rounded top-left + bottom-right, square on the other two */
  --r-btn: 0px 16px;
  --r-btn-sm: 0px 14px;
  --l-btn: 16px 0px;

  

  /* ---- Elevation ---- */
  --sh-xs: 0 1px 2px rgba(35,31,32,.06);
  --sh-sm: 0 2px 8px rgba(35,31,32,.07);
  --sh-md: 0 6px 20px rgba(35,31,32,.09);
  --sh-lg: 0 16px 40px rgba(35,31,32,.12);
  --sh-teal: 0 10px 30px rgba(35,106,108,.22);
  /* The standard card elevation, used in place of a 1px outline (UX 15 Sep) */
  --sh-card: 0 2px 10px rgba(34,34,34,.08), 0 8px 24px rgba(34,34,34,.06);

  /* ---- Motion ---- */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t:      200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 380ms cubic-bezier(.4,0,.2,1);

  --header-h: 88px;
  --z-header: 100;
  --z-drop:   200;
  --z-overlay:900;
  --z-modal:  1000;
  --z-toast:  1100;
}

@media (max-width: 900px) { :root { --header-h: 68px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Status text, darkened for AA ---------------------------------------
   Every status pill in the build paints a brand colour on a very light tint
   of the same hue, and each pair measured between 3.0 and 4.4 : 1 — under
   the 4.5 : 1 floor for the 12px they are set at. Only the LABEL colour is
   darkened here; each pill's tint is untouched, so the approved palette and
   the look of the badges are unchanged.
   Left deliberately alone, as client decisions rather than defects:
     · the programme-card heading (--salmon-700 on white, 3.08 : 1) — the
       15 Sep feedback asks for that heading in orange;
     · the Member tier pill (white on --amber, 3.15 : 1) — darkening it means
       changing the fill, not the label.
   ------------------------------------------------------------------------ */
