/* ==========================================================================
   Summit Golf Academy — design tokens
   --------------------------------------------------------------------------
   The single source of truth for every colour, size, space and radius on this
   website. Nothing in site.css invents a value; it reaches for a token here.

   The greens are confirmed brand colours and are shared with the funnel.
   Everything else was chosen for THIS site on 27 October 2026, from the
   owner's brief: a light canvas, green used as an accent, dark used as
   islands rather than as the ground.
   ========================================================================== */

:root {

  /* ---- Brand greens — confirmed, do not change ------------------------- */

  --summit-green:        #C4D689;  /* button fill, selected states          */
  --summit-green-bright: #CAFF97;  /* highlight / focus, on dark only       */
  --summit-green-deep:   #3F6624;  /* the ONLY green safe as text on light  */

  /* A pale green wash, derived from --summit-green. Used for tinted panels
     the way Wise uses Linen Mist: a surface, never a text colour. */
  --summit-green-wash:   #EFF4E2;
  --summit-green-edge:   #DCE7BE;  /* hairline on a green wash              */

  /* The dark island. New for this site: a forest green-black that ties the
     dark panels to the greens instead of sitting apart from them. */
  --forest:              #1A2B10;
  --forest-raised:       #24391A;  /* a card sitting ON the forest ground   */
  --forest-edge:         #3A4F2C;  /* hairline on forest                    */

  /* ---- Ink, on a light ground ------------------------------------------ */

  --ink:                 #121311;  /* headings                              */
  --ink-body:            #44463F;  /* body copy — 9.1:1 on --canvas         */
  --ink-muted:           #6B6D64;  /* captions, labels — 4.9:1 on --canvas  */

  /* ---- Ink, on the forest ground --------------------------------------- */

  --ink-on-dark:         #F4F6EE;
  --ink-on-dark-muted:   #AFBAA2;  /* 6.4:1 on --forest                     */

  /* ---- Surfaces -------------------------------------------------------- */

  --canvas:              #FAFAF7;  /* the page itself: a warm off-white     */
  --surface:             #FFFFFF;  /* cards lifted off the canvas by tone   */
  --surface-sunken:      #F1F1EB;  /* bands that step back from the canvas  */
  --hairline:            #E3E3DA;  /* the only border on light              */
  --hairline-strong:     #CFCFC3;

  /* ---- Gold — Google star ratings only --------------------------------- */

  --gold:                #FBBC04;  /* dark grounds only                     */
  --gold-mid:            #B58000;  /* stars on white and light grounds      */
                                   /* darkened from #C08A00 so the stars     */
                                   /* clear 3:1 on every light surface here. */

  /* ---- Type ------------------------------------------------------------ */

  /* Three roles, two files.

     --font-display is Bricolage Grotesque, and it is used LARGE ONLY: the
     hero and the section headings. Its character is the point at that size.
     --font-ui is Inter, and it takes everything small and everything with a
     number in it: card headings, FAQ questions, fact labels, buttons, nav
     and every price. That is the owner's call, 28 October 2026 — Bricolage's
     pound sign and its small sizes both read poorly. */
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --weight-display: 800;   /* the hero only                                 */
  --weight-h2:      700;   /* Bricolage at 800 reads too heavy at h2 size   */
  --track-display:  -0.022em;   /* large display type ONLY, never body      */
  --track-hero:     -0.028em;

  /* Inter is the tighter face, so headings set in it need their own values
     rather than inheriting Bricolage's. */
  --weight-ui-head: 700;
  --track-ui-head:  -0.015em;

  /* A fluid scale. Each step is clamp(phone, fluid, laptop), measured in the
     real font at 320px — not estimated from character count. */
  /* Brought down on 30 October to the old draft's curve, which the owner
     preferred: it was clamp(2rem, 8.4vw, 4rem) in Anton. Bricolage is the
     wider face, so this sits a shade under that and caps lower. At 390px it
     is ~35px against the ~46px it replaced. */
  --step-hero:    clamp(2rem, 1.05rem + 4.6vw, 4.5rem);       /*  32 →  72 */
  --step-h2:      clamp(1.70rem, 0.87rem + 3.51vw, 3.50rem);  /*  27 →  56 */
  --step-h3:      clamp(1.15rem, 0.96rem + 0.88vw, 1.75rem);  /*  18 →  28 */
  --step-h4:      clamp(1.08rem, 1.02rem + 0.3vw,  1.25rem);  /*  17 →  20 */
  /* One size for every standfirst on the site, hero included. The owner's
     call, 30 October: "all subtext should be the same size ... I don't want
     this medium big sized subtext." */
  --step-lede:    clamp(0.95rem, 0.90rem + 0.22vw, 1.15rem);  /*  15 →  18 */
  --step-body:    clamp(1rem, 0.94rem + 0.28vw, 1.19rem);     /*  16 →  19 */
  --step-small:   clamp(0.875rem, 0.84rem + 0.16vw, 0.95rem);  /*  14 →  15 */
  --step-label:   0.75rem;                                     /*       12 */

  --leading-hero:  0.94;
  --leading-h2:    1.03;
  --leading-h3:    1.18;
  --leading-body:  1.62;
  --leading-tight: 1.38;

  --measure:       64ch;   /* body copy never runs wider than this          */
  --measure-tight: 46ch;   /* standfirsts and card copy                     */

  /* ---- Space ----------------------------------------------------------- */

  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.5rem;
  --space-6:   2rem;
  --space-7:   2.75rem;
  --space-8:   3.5rem;
  --space-9:   5rem;

  /* The gap between two sections, and the padding inside a card. Both fluid,
     because a phone cannot afford a laptop's air.

     Cut on 29 October 2026: the owner's note was "there is just so much
     padding ... way less vertical space". Roughly a third came out of the
     section gap and a quarter out of the gap under a section heading. */
  /* The phone end went UP while the type came down: the owner's note was
     that the pages feel cluttered, and that is spacing as much as size. */
  --section-gap:  clamp(3rem, 2.4rem + 2.5vw, 4.5rem);
  /* The gap from a head to the thing it introduces. It must stay CLEARLY
     bigger than the gap inside the head (heading to standfirst), or the
     standfirst reads as belonging to the content below rather than to its
     own heading. Roughly 2:1. */
  --head-gap:     clamp(1.5rem, 1.36rem + 0.99vw, 2.25rem);  /* 26 → 36 */
  --card-pad:     clamp(1.25rem, 0.95rem + 1.4vw, 2rem);
  --gutter:       clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --shell:        76rem;   /* 1216px — the content column at its widest     */
  --shell-narrow: 54rem;

  /* ---- Shape ----------------------------------------------------------- */

  /* Softened down from 28/16/10 on 29 October: "slightly less rounded",
     across the whole site rather than one section. */
  --radius-lg:   20px;   /* cards, photos, dark islands                     */
  --radius-md:   12px;   /* nested things inside a card                     */
  --radius-sm:   8px;
  --radius-pill: 999px;

  /* ---- Motion ---------------------------------------------------------- */

  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    140ms;
  --dur:         240ms;
  --dur-slow:    420ms;
  /* The accordion, matching the funnel. Slower on purpose: a panel growing
     to a height nobody knew in advance needs to be legible, not quick. */
  --dur-faq:     620ms;

  /* ---- The floating header --------------------------------------------- */

  /* The header is a glass pill that floats over the page rather than a bar
     stuck to the top, so its height and its inset are needed by anything
     that has to clear it. */
  --header-h:   4rem;
  --header-gap: 0.75rem;
  --header-clearance: calc(var(--header-h) + var(--header-gap) * 2);

  /* Neutral, not forest. The owner's note, 29 October: the header and the
     rating pill "shouldn't be green ... there's too much green", and should
     read as transparent rather than tinted. So the glass is built on --ink,
     and the saturation boost is gone — that was pulling green through from
     the video behind it.

     0.72 is the floor: below it #F4F6EE drops under 4.5:1 on the pill when a
     video frame behind it goes pure white. */
  --glass:        rgba(18, 19, 17, 0.32);
  --glass-solid:  rgba(18, 19, 17, 0.9);   /* where backdrop-filter is absent */
  --glass-edge:   rgba(244, 246, 238, 0.2);

  /* brightness() is the whole trick. It darkens whatever is BEHIND the pill
     before the tint goes over it, so a bright video frame cannot wash the
     nav out — which is what let the tint drop from 0.72 to 0.32 and still
     read as glass. Measured worst case (a pure white frame): #F4F6EE lands
     at 6.0:1, better than the solider version it replaced. */
  --glass-blur:   blur(20px) saturate(1.15) brightness(0.5);

  /* A small chip on the same system, a touch firmer because its secondary
     text is the muted colour. */
  --chip-dark:    rgba(18, 19, 17, 0.82);

  /* ---- The faint grid behind the dark band ------------------------------ */

  /* Was 0.075, which read as a drawn grid on a phone rather than as
     texture and clashed with the headline over it. Decoration only. */
  --grid-line: rgba(202, 255, 151, 0.035);
  --grid-step: 58px;

  /* ---- Layering -------------------------------------------------------- */

  --z-header: 50;
  --z-chat:   60;
  --z-sheet:  70;
  --z-consent: 80;  /* above everything: it gates a third-party script */
}
