/* ============================================================
   ITH GROUP — V2 DESIGN TOKENS
   Single source of truth for the visual system.

   Brand and division colors retain the established ITH identity.
   Geometry preserves the approved spacious, pale-surface direction.
   The 2026-11-17 typography preview uses self-hosted Manrope variable
   with explicit text/UI roles and no third-party font requests.
   ============================================================ */

:root {
  /* ---- Brand / accent (from production) ---------------------------- */
  --accent:        #d42b2b;          /* ITH red — global brand accent   */
  --accent-dark:   #a82020;
  --accent-soft:   rgba(212, 43, 43, .08);

  /* ---- Division colours -------------------------------------------- */
  /* Sport, Marine and Event are the exact production values.           */
  --div-sport:       #d42b2b;        /* red   (production)              */
  --div-sport-dark:  #a82020;
  --div-marine:      #0f2d4a;        /* navy  (production)              */
  --div-marine-dark: #091e33;
  --div-event:       #1e5c2e;        /* green (production)              */
  --div-event-dark:  #154020;

  /* Hospitality did not exist in production; this accent was selected  */
  /* and approved during the V2 build. Bronze, chosen for separation    */
  /* from the other three divisions and for contrast on light surfaces. */
  --div-hospitality:      #8C6318;   /* bronze (approved)               */
  --div-hospitality-dark: #6D4D13;

  /* ---- Ink / surfaces (from production) ---------------------------- */
  --ink:     #1a1d23;                /* headings / strong text          */
  --body:    #1f2329;                /* body copy                       */
  --muted:   #4a525e;                /* secondary text                  */
  --line:    #dfe2e5;                /* hairline borders                */
  --surface: #ffffff;               /* card / panel background         */
  --off:     #f4f6f8;               /* section-alt background — Phase 1: */
                                     /* made perceptibly distinct from    */
                                     /* --surface (was #fcfdfe) so banding */
                                     /* groups content instead of just    */
                                     /* adding empty-feeling gaps         */
  --panel-2: #f3f5f7;               /* subtle filled controls           */
  --field:   #f6f7f9;               /* input background                 */
  --field-border: #7f8792;          /* control boundary: >3:1 on field/white/off */

  /* Full-width semantic chapters, kept separate from control/panel surfaces.
     Neutral is achromatic; accent is a very pale wash of the ITH red. */
  --chapter-neutral: #f1f1f1;
  --chapter-accent: #f4f4f5;

  /* ---- Typography -------------------------------------------------- */
  --font-display: 'Manrope', Arial, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Manrope', Arial, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-eyebrow: 1rem;
  --fs-caption: .875rem;
  --fs-small:   1rem;
  --fs-body:    clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --fs-lead:    clamp(1.125rem, 1.06rem + .28vw, 1.3125rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .35vw, 1.5rem);
  /* --fs-h2 stays exactly as extracted from production: it is the
     legal-overlay title size (see src/components/legal.html /
     .legal__title) and Phase 1 does not touch legal presentation. */
  --fs-h2:      clamp(2rem, 4vw, 3.3rem);
  /* True source for page/section H2s (.t-h2), previously a private,
     undocumented clamp value repeated in main.css. Kept separate from
     --fs-h2 above so this can evolve without moving the legal title. */
  --fs-h2-section: clamp(1.625rem, 1.3rem + 1.25vw, 2.5rem);
  /* Shared page/home hero scale: readable phone floor, smooth growth and
     a bounded desktop maximum. Rem terms preserve user text enlargement. */
  --fs-h1:      clamp(1.875rem, 1.4rem + 2.05vw, 3.25rem);
  --fs-display: clamp(2.6rem, 6.5vw, 5.3rem);

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-black:   800;

  --lh-tight: 1.08;
  --lh-snug:  1.2;
  --lh-body:  1.65;

  --tracking-wide:  .12em;
  --tracking-wider: .2em;

  /* ---- Spacing scale (4px base) ------------------------------------ */
  --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;
  --space-9: 6rem;

  /* Vertical rhythm between sections — width-aware (clamp on vw, not
     vh), with three deliberate variants. --section-y is the default,
     applied everywhere via .section today. --section-y-compact and
     --section-y-major back new .section--compact / .section--major
     utilities for later phases to apply where sections are closely
     related or mark a genuine topic change — not yet assigned to any
     page in Phase 1. All three are redefined at the responsive tiers
     in main.css, so tablet and mobile become substantially more
     compact everywhere at once, with no per-page overrides. */
  --section-y-compact: clamp(2rem, 3vw, 2.5rem);
  --section-y:         clamp(2.5rem, 4vw, 3.5rem);
  --section-y-major:   clamp(3rem, 5vw, 4.5rem);

  /* ---- Layout / containers ----------------------------------------- */
  /* One outer frame for every page and section. Prose owns its reading
     measure inside that frame; grids, lists and media do not inherit it.
     The compact bound remains for established component geometry. */
  --container-wide:     100rem;     /* provisional wide-frame ceiling; visual QA required */
  --container-standard: 1120px;     /* retained compact component width */
  --container-text:     760px;      /* legacy compact component bound   */
  --measure-prose:      65ch;       /* continuous prose and FAQ reading measure */
  --gutter: clamp(1rem, 2.5vw, 1.25rem);
  --gap-columns: clamp(1.5rem, 3vw, 4rem);
  --gap-related: 1rem;
  --gap-block: clamp(2rem, 3vw, 4rem);
  --nav-h: 66px;                    /* fixed header height (production)  */

  /* ---- Radius: approved rectangular control geometry -------------- */
  --radius-sm:   2px;
  --radius:      2px;
  --radius-card: 2px;               /* shared card corner                 */
  --radius-lg:   4px;
  --radius-pill: 100px;

  /* ---- Shadows (from production) ----------------------------------- */
  --shadow-sm: 0 1px 2px rgba(43,47,56,.03), 0 1px 3px rgba(43,47,56,.05);
  --shadow-md: 0 4px 10px -2px rgba(43,47,56,.05), 0 12px 24px -8px rgba(43,47,56,.06);
  --shadow-lg: 0 16px 38px -14px rgba(43,47,56,.12), 0 8px 16px -10px rgba(43,47,56,.06);
  --shadow-xl: 0 28px 60px -20px rgba(43,47,56,.16);

  /* ---- Motion (from production) ------------------------------------ */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --dur-fast: .2s;
  --dur:      .35s;
  --dur-slow: .8s;

  /* ---- Z-index scale ----------------------------------------------- */
  --z-base:     1;
  --z-nav:      500;
  --z-overlay:  950;
  --z-toast:    999;
  --z-skip:     1000;

  color-scheme: light;
}

/* ---- Breakpoints -------------------------------------------------
   CSS custom properties cannot be used in media queries, so the
   breakpoint values are documented here and used literally in the
   stylesheets (main.css). This is the real, implemented ladder,
   kept in sync with main.css rather than an aspirational one:
     mobile                            : up to 767px
     tablet portrait                   : 768px – 1023px
     tablet landscape / small desktop  : 1024px – 1279px
     desktop and up                    : 1280px and up
   1024–1279 gets its own deliberate rules (not a shrunk desktop) and
   mobile is not simply a collapsed desktop — see the responsive
   section of main.css for what each tier actually changes.
   ------------------------------------------------------------------ */
