/* ==========================================================================
   Skaleminds design tokens

   Palette is unchanged from brand guidelines v6.
   The spacing and type scale below are the single source of truth, taken
   from the approved homepage design. Every value here is the number the
   design renders at, so components must reference these rather than
   hard-coding their own.

   Type system v2. Inter carries the interface, headings and body copy.
   Source Serif 4 is reserved for editorial content (article titles, pull
   quotes, position statements). IBM Plex Mono handles eyebrows, meta and
   data labels. Poppins survives only in the wordmark lockup.
   All families are self-hosted - see public/css/fonts.css.
   ========================================================================== */

:root{
  /* ---- Brand palette (locked, from brand guidelines v6) ---- */
  --blue:#0037FF;
  --blue-hover:#0029C4;
  --blue-l:#6E86FF;            /* brand blue lightened for use on dark surfaces */
  --navy:#00114D;
  --dark:#030712;
  --mid:#4B5563;
  --light:#F5F7FF;
  --white:#FFFFFF;
  --ink:#0B0D14;
  --rule:#E4E6EF;
  --rule-i:rgba(255,255,255,.14);
  --accent:#3B82F6;            /* Jig accent, connector lines and interactive states */

  /* ---- Accessible text tones -------------------------------------------
     --tone-* are the only greys permitted for copy. Each is verified
     against every surface it lands on at WCAG AA or better.
     -------------------------------------------------------------------- */
  --tone-strong:#0B0D14;       /* 19.6:1 on white */
  --tone-body:#4B5563;         /* 8.6:1 on white  */
  --tone-muted:#5C6575;        /* 6.4:1 on white  */
  --tone-faint:#666F80;        /* 5.1:1 on white, 4.7:1 on --surface-alt */
  --tone-on-dark:#EDEFF6;
  --tone-on-dark-muted:#C3C9D9;
  --tone-on-dark-faint:#9AA2B8;
  --rule-on-dark:rgba(255,255,255,.16);

  /* ---- Surfaces ---- */
  --surface:#FFFFFF;
  --surface-alt:#F5F7FF;
  --surface-dark:var(--dark);
  --surface-navy:var(--navy);
  --surface-blue:var(--blue);

  /* ---- Type families ----------------------------------------------------
     --font-ui        interface, body copy, buttons, forms, cards
     --font-display   headings
     --font-editorial editorial headlines, pull quotes, position statements
     --font-mono      eyebrows, meta, data labels, tags
     --font-wordmark  the Skaleminds lockup, and nothing else
     --font-jig       the jig lockup (Fraunces italic 700, per guidelines v6)
     --------------------------------------------------------------------- */
  --font-ui:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-display:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-editorial:'Source Serif 4',Georgia,'Times New Roman',serif;
  --font-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --font-wordmark:'Poppins',system-ui,-apple-system,sans-serif;
  --font-jig:'Fraunces',Georgia,serif;

  /* Compatibility alias. No rule should set var(--font) directly. */
  --font:var(--font-ui);

  /* ---- Weights ---- */
  --fw-body:400;
  --fw-medium:500;
  --fw-semibold:600;

  /* ---- Type scale --------------------------------------------------------
     Values match the approved design. Anything a component sets that is not
     here is drift, so prefer these over a local number.
     --------------------------------------------------------------------- */
  --fs-display:clamp(2.2rem,5.4vw,4.1rem);      /* hero h1            65.6px */
  --fs-h1:clamp(1.9rem,4.2vw,3.2rem);           /* page hero h1              */
  --fs-h2:clamp(1.75rem,3.4vw,2.7rem);          /* section h2         43.2px */
  --fs-h2-ed:clamp(1.85rem,3.7vw,3rem);         /* editorial section h2 48px */
  --fs-h2-mid:clamp(1.7rem,3.4vw,2.6rem);       /* outlook, who              */
  --fs-h2-band:clamp(1.6rem,2.9vw,2.25rem);     /* newsletter band           */
  --fs-h2-form:clamp(1.7rem,3.3vw,2.5rem);      /* contact                   */
  --fs-h2-careers:clamp(1.5rem,2.7vw,2.1rem);   /* careers                   */
  --fs-h3:clamp(1.15rem,1.8vw,1.4rem);          /* feature card h3           */
  --fs-h3-card:clamp(1.08rem,1.6vw,1.26rem);    /* capability card h3        */
  --fs-h3-case:clamp(1.35rem,2.3vw,1.85rem);    /* case study h3             */
  --fs-h3-feat:clamp(1.45rem,2.5vw,2rem);       /* featured article h3       */
  --fs-h4:1.125rem;
  --fs-lede:clamp(1.05rem,1.5vw,1.22rem);
  --fs-sec-body:1.03125rem;                     /* 16.5px section body       */
  --fs-body:1.0625rem;                          /* 17px body                 */
  --fs-case-body:1rem;                          /* 16px                      */
  --fs-card:0.90625rem;                         /* 14.5px card copy, nav     */
  --fs-sm:0.9375rem;                            /* 15px                      */
  --fs-li:0.84375rem;                           /* 13.5px card list items    */
  --fs-xs:0.875rem;                             /* 14px buttons, footer      */
  --fs-bot:0.8125rem;                           /* 13px footer base          */
  --fs-note:0.75rem;                            /* 12px                      */
  --fs-meta:0.6875rem;                          /* 11px labels               */
  --fs-meta-xs:0.65625rem;                      /* 10.5px micro labels       */
  --fs-chip:0.59375rem;                         /* 9.5px chips               */

  --lh-tight:1.04;                              /* hero h1                   */
  --lh-heading:1.1;
  --lh-snug:1.14;                               /* section h2                */
  --lh-card:1.31;
  --lh-body:1.7;
  --lh-lede:1.72;

  /* ---- Spacing / layout --------------------------------------------------
     --maxw is the CONTENT width. The gutter sits outside it (see .wrap in
     base.css), which is what keeps every container on one left edge. Putting
     the gutter inside the cap silently costs 115px of content width at 1440
     and is the drift this scale exists to prevent.
     --------------------------------------------------------------------- */
  --gut:clamp(1.25rem,4vw,4.5rem);              /* 57.6px at 1440            */
  --maxw:1280px;
  --maxw-narrow:820px;
  --maxw-prose:720px;

  /* Vertical band rhythm. One value per band type, no local overrides. */
  --sec-y:clamp(4.5rem,9vw,8rem);               /* 128px standard band       */
  --sec-y-trust:clamp(2.2rem,4vw,3.2rem);       /* 51px client logo band     */
  --sec-y-nl:clamp(3.25rem,6.5vw,4.75rem);      /* 76px newsletter band      */
  --sec-hero-top:clamp(5rem,11vw,9rem);         /* 144px                     */
  --sec-hero-bot:clamp(3.5rem,7vw,6rem);        /* 96px                      */
  --sec-page-top:clamp(2.75rem,6vw,4.5rem);     /* 72px page hero            */
  --sec-page-bot:clamp(3rem,6.5vw,5rem);        /* 80px page hero            */
  --ftr-top:clamp(3.75rem,7vw,5.5rem);          /* 88px                      */
  --ftr-bot:clamp(2rem,4vw,3rem);               /* 48px                      */

  /* Head-to-content rhythm inside a section. */
  --head-gap:clamp(3rem,5.5vw,4.5rem);          /* 72px below a section head */

  --radius:2px;

  --shadow-card:0 1px 2px rgba(3,7,18,.05),0 12px 32px -18px rgba(3,7,18,.18);
  --dur:.18s;
}
