/* ---------------------------------------------------------------------------
   Gib-San Pool & Landscape Creations — brand tokens
   Source: sites/gibsan-pools/brand.md. Every measured value below is taken from
   their own logo artwork (research/assets/01-logo.png) or from the full-page
   captures taken 2026-08-19 23:42. research/brand.json profiled a WordPress
   maintenance page and is NOT used here.

   ELEVATION PASS 2026-08-20. The measured roles are unchanged. What is added
   below them is the glass, depth, motion and rhythm layer, built entirely in
   THEIR hues — never the OS clay. Every derived value is a move along one of
   their own hue rays and is labelled with the reason it exists.
   --------------------------------------------------------------------------- */

:root {
  /* == MEASURED — their brand. Do not change without re-measuring. ========= */

  /* paper -------------------------------------------------------------- */
  --paper:            #FFFFFF;  /* dominant background on every captured page */
  --paper-recessed:   #F1F7FE;  /* their pale blue section wash */
  --paper-field:      #F2F2F2;  /* form input fill, both of their forms */

  /* ink ---------------------------------------------------------------- */
  --ink:              #231F20;  /* the wordmark in their logo file */
  --ink-page:         #000000;  /* what the live pages set headings in */
  --ink-body:         #2E2E2E;  /* body copy, measured */
  --ink-muted:        #55595C;  /* derived: captions and meta only */
  --hairline:         #D9DEE3;  /* derived: 1px rules */

  /* accent — scarce, and it means ACT ---------------------------------- */
  --accent:           #FBB033;  /* the sun in the mark */
  --accent-press:     #FAAD32;  /* their SEND MESSAGE button, pressed state */

  /* secondary — structural: rules, menu block, contact icons ----------- */
  --secondary:        #C9A36A;  /* the UI cyan */
  --secondary-mark:   #00BDF2;  /* the waves in the logo — mark only */

  /* geometry — measured 0px, four samples. Square is the house rule.
     This deliberately overrides house-style.md §3.1's rounded scale: corner
     geometry is theirs, and rounding it is the fastest way to make an
     elevated page stop looking like Gib-San.                              */
  --radius:           0;

  /* type — UNRESOLVED. BLOCKER.
     The heading and body families are not known and must not be guessed.
     brand.json's "Open Sans" is the maintenance page's font. The captures show
     two clearly distinct faces: headings bold, geometric, tightly tracked;
     body lighter and wider with generous line height. Until the owner supplies
     the families (or a live inside page is re-scraped) these two roles carry a
     neutral stack so the pairing can be swapped in one place. The elevation
     pass does NOT close this blocker — it carries the elevation in hierarchy,
     weight and tracking instead.                                          */
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --track-head: -0.015em;   /* headings run tight */
  --track-eyebrow: 0.16em;  /* eyebrows run wide, roughly half title size */

  /* measure and rhythm -------------------------------------------------- */
  --measure: 68ch;
  --container: 1180px;
  --gutter: 20px;


  /* == DERIVED — moves along their own hue rays, each with its reason ===== */

  /* Their cyan is a rule colour, not a text colour: #00AEEF on white
     measures 2.53:1 and fails every text and focus-ring floor. This is the
     same hue (hsl 197) dropped in lightness until it passes — 4.88:1 on
     their paper, 4.53:1 on their recessed wash. Used for cyan-coloured TEXT,
     link marks and focus rings on light grounds only. On the dark ink field
     the measured #00AEEF is used as-is (7.23:1) and this token is not.     */
  --secondary-deep:   #0079A8;

  /* Their ink #231F20 extended into a field ramp. A warm near-black, not a
     blue-grey and not #000 — the depth on this page is their ink's. */
  --ink-950:          #171415;  /* the dark field base */
  --ink-900:          #231F20;  /* = --ink, theirs */
  --ink-800:          #2E2A2B;
  --ink-700:          #3A3536;
  --ink-on-dark:      #E9EBEC;  /* body copy on the dark field (15.3:1) */
  --ink-on-dark-2:    #B9BEC1;  /* meta on the dark field */

  /* Opaque pane fills. These ship FIRST everywhere; the blur only ever
     arrives inside @supports, so a browser without backdrop-filter gets a
     solid card instead of transparent text. Light fills sit on their pale
     blue ray; the dark fill sits on their ink ray. */
  --pane-solid:       #FAFCFF;
  --pane-solid-2:     #EDF4FD;
  --pane-solid-dk:    #2A2627;

  /* == GLASS — house style §3.1/§3.2, built in their hue ================== */
  --glass-dark:       rgba(255,255,255,0.09);
  --glass-dark-2:     rgba(255,255,255,0.06);
  --glass-light:      rgba(255,255,255,0.62);
  --glass-light-2:    rgba(255,255,255,0.44);

  /* their darkest brand hue as the tint. .42 is the house value for a pane
     over a tinted field; .74 is what a pane over a PHOTOGRAPH needs before
     white copy clears 8:1 on a blown-out highlight. Both are measured, not
     guessed — see the render check in the pass notes. */
  --glass-tint:       rgba(23,20,21,0.42);
  --glass-tint-photo: rgba(23,20,21,0.74);

  --glass-border:     rgba(255,255,255,0.20);
  --glass-border-lt:  rgba(255,255,255,0.55);
  --glass-hairline:   rgba(35,31,32,0.14);   /* the pane edge on light ground */
  --glass-hairline-lt:rgba(35,31,32,0.24);
  --glass-hi:         rgba(255,255,255,0.45);
  --glass-hi-lt:      rgba(255,255,255,0.80);
  --glass-blur:       18px;
  --glass-blur-lt:    20px;

  /* shadows, all built on their ink — never a blue-grey, never a glow */
  --shadow-glass:     0 24px 60px -28px rgba(23,20,21,0.75);
  --shadow-soft:      0 12px 30px -18px rgba(23,20,21,0.55);
  --shadow-lift:      0 30px 70px -30px rgba(23,20,21,0.62);

  /* the waterline — their cyan thrown as light from under an edge, which is
     how every one of their own photographs is lit */
  --waterline: none;

  /* == surface tokens the stylesheet consumes by name ==================== */
  /* their paper doing duty as ink on a dark ground */
  --ink-inverse:      #FFFFFF;

  /* the lit ground and the caustic — their cyan twice, their amber once */
  --field-cyan-1: transparent;
  --field-cyan-2: transparent;
  --field-amber:      rgba(251,176,51,.07);
  --field-cyan-band: transparent;
  --field-amber-band: rgba(251,176,51,.08);
  --field-cyan-hero: transparent;
  --field-amber-hero: rgba(251,176,51,.10);
  --caustic-1: transparent;
  --caustic-2: transparent;
  --glow-cyan: transparent;
  --glow-amber:       rgba(251,176,51,.09);

  /* the glass chrome, opaque-first values live above; these are the upgrades */
  --glass-slab:       rgba(250,252,255,0.78);
  --glass-slab-lift:  rgba(250,252,255,0.92);
  --glass-bar:        rgba(250,252,255,0.90);

  /* rules and borders on the dark ground */
  --rule-on-dark:     rgba(255,255,255,.16);
  --rule-on-dark-2:   rgba(255,255,255,.18);
  --border-on-dark:   rgba(255,255,255,.72);
  --sheen-on-dark:    rgba(255,255,255,.55);

  /* the scrim that grades their photographs down under a pane */
  --scrim-top:        rgba(23,20,21,.30);
  --scrim-mid:        rgba(23,20,21,.10);
  --scrim-bottom:     rgba(23,20,21,.72);

  /* elevation, all on their ink */
  --shadow-btn:       0 10px 24px -14px rgba(23,20,21,.65);
  --shadow-bar:       0 -14px 34px -22px rgba(23,20,21,.70);

  /* == MOTION ============================================================= */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur:         260ms;
  --dur-micro:   120ms;
  --dur-short:   220ms;
  --dur-long:    420ms;

  /* == SPACE — 4pt scale, named by role =================================== */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* == Z — six named levels, no freestyle numbers ========================= */
  --z-base:    1;
  --z-raised:  10;
  --z-sticky:  200;
  --z-bar:     240;
  --z-sheet:   400;
  --z-intro:   900;
}
