/* ==========================================================================
   West Horsley Padel - brand tokens
   Palette and typography taken from the client brand sheet
   (West Horsley Padel (WHP) website direction.docx, Sept 2026).
   ========================================================================== */

:root {
  /* --- Brand colours, exactly as supplied ------------------------------- */
  --forest: #0e3b2a;
  --olive:  #728948;
  --cream:  #fef6e7;

  /* --- Accessible companions -------------------------------------------
     Measured: brand olive is 3.63:1 on cream and 3.21:1 on forest.
     It clears WCAG AA for LARGE text only. It must never carry body copy.
     These two tints are the text-safe olives. Do not swap them back.
     olive-ink  5.03:1 on cream    olive-lt  4.65:1 on forest
     --------------------------------------------------------------------- */
  --olive-ink: #5d7139;
  --olive-lt:  #8fa661;

  /* --- Tonal range derived from the three brand colours ----------------- */
  --forest-deep: #092518;
  --forest-mid:  #164c37;
  --forest-soft: #1d5c43;
  --cream-2:     #f8efdc;
  --cream-3:     #f0e4cb;
  --cream-line:  rgba(14, 59, 42, 0.14);
  --cream-line-2:rgba(14, 59, 42, 0.28);
  --on-forest-muted: rgba(254, 246, 231, 0.86);
  --on-cream-muted:  rgba(14, 59, 42, 0.84);

  /* --- Typography -------------------------------------------------------
     Brand sheet specifies Averta Std Bold (primary) and Averta Std
     Semibold (secondary). Averta is a licensed typeface and is not
     installed on this machine, so the build uses Outfit as a stand-in:
     same geometric skeleton, same single-storey 'a', full weight range.
     TO SWAP IN THE REAL FACE: license Averta Std, drop the woff2 files in
     /assets/fonts, add the @font-face blocks, and change --font only.
     --------------------------------------------------------------------- */
  --font: "Outfit", "Averta Std", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  /* 1.60: everything that is not a headline (body copy, nav, buttons,
     eyebrows, forms, the footer's small print) is set in Satoshi, the house
     font on nickschlekeway.com, loaded from Fontshare at 400/500/700.
     Headlines, figures and the drawings keep Outfit (--font). */
  --font-body: "Satoshi", "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Display scale. Nike's hero runs 76px at a 0.90 line-height; the ratio
     is what carries the attitude, so it is preserved at every size. */
  --fs-hero:    clamp(3.25rem, 9.2vw, 7.75rem);
  --fs-display: clamp(2.5rem, 6vw, 5rem);
  --fs-h2:      clamp(2rem, 4.2vw, 3.5rem);
  --fs-h3:      clamp(1.375rem, 2.2vw, 1.875rem);
  --fs-h4:      1.25rem;
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.375rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;   /* 13px: the smallest size anything meant to be read is set in */

  --lh-display: 0.90;
  --lh-tight:   1.08;
  --lh-body:    1.62;

  --tr-display: -0.022em;   /* tight tracking on the big stuff */
  --tr-eyebrow: 0.16em;     /* wide tracking on the small caps */

  /* --- Layout ----------------------------------------------------------- */
  --gutter: 12px;                              /* Nike's card gutter */
  --edge: clamp(1.25rem, 3.2vw, 2.8125rem);    /* 45px outer margin at desk */
  --maxw: 1600px;
  --maxw-text: 60ch;   /* about 70 characters a line in Outfit: comfortable reading */
  /* The green utility strip above the nav is gone (1.60): its place name,
     time and weather now sit at the foot of the home hero and in the
     footer. The token stays at 0 so nothing that adds it up changes. */
  --nav-utility: 0px;
  --nav-main: 72px;
  --nav-h: calc(var(--nav-utility) + var(--nav-main));

  --sec-y: clamp(4.5rem, 9vw, 8.5rem);

  --radius-pill: 999px;
  --radius-card: 0px;   /* Nike keeps corners square. So do we. */

  --ease: cubic-bezier(0.4, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* 1.60: a softer settle for the arrival, the header and the buttons,
     close to the curve Apple uses on its product pages. */
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-press: cubic-bezier(0.25, 0.1, 0.25, 1);
  --hair: rgba(14, 59, 42, 0.1);           /* a hairline on cream */
  --hair-dark: rgba(254, 246, 231, 0.12);  /* a hairline on forest */
}

@media (max-width: 900px) {
  :root { --nav-main: 64px; }
}
