/* ==========================================================================
   Design tokens — Prime Excavation & Co
   LIGHT BENTO. Every colour is traceable to logo.png.

   The logo is 74% white: black excavator, black "EXCAVATION & CO", cyan
   "PRIME". It is drawn for a light background, which is why the dark build
   had to drop it into a white circle to survive. This palette removes the
   need for that bubble.

   Spec: docs/superpowers/specs/2026-09-25-bento-light-rebrand-design.md
   ========================================================================== */
:root{
  /* --- surfaces: bone base, paper tiles, sand for quiet blocks --- */
  --bone:#FFFFFF;          /* was bone; the site is white-based now */          /* page base. Warm, so clay and dirt read as colour */
  --paper:#FFFFFF;         /* tile surface */
  --sand:#EEF5FB;          /* pale blue panel, matches the homepage */          /* tertiary tile */
  --ink:#15344F;           /* navy, not black — 11.9:1 on white */           /* type, and the heavy tiles */
  --ink-soft:#53708C;      /* 4.7:1 on white */      /* 5.42:1 on bone — the lightest muted text allowed */

  /* --- accent: the logo's true cyan (the dark build used #45B6E6) --- */
  --cyan:#45C3EF;          /* logo cyan — FILL ONLY, 1.7:1 on white */
  --cyan-deep:#0F6FA8;     /* readable brand blue — 5.2:1 */     /* 3.4:1 on bone — borders/icons only, never text */

  /* --- rules --- */
  --line:rgba(21,52,79,.14);
  --line-strong:rgba(21,52,79,.3);

  /* ------------------------------------------------------------------ */
  /* COMPATIBILITY ALIASES                                              */
  /* The whole codebase already references these by ROLE — page bg,     */
  /* surface, body text. Remapping the role rather than renaming every  */
  /* rule flips the entire site in one file. The names read as dark;    */
  /* the roles are what matter. Migrate to the semantic names above as  */
  /* files are touched.                                                 */
  /* ------------------------------------------------------------------ */
  --black:var(--bone);          /* was page background */
  --carbon:var(--paper);        /* was card/section surface */
  --steel:var(--sand);          /* was raised surface */
  --white:var(--ink);           /* was body text */
  --grey:var(--ink-soft);       /* was muted text */
  --grey-dim:var(--ink-soft);   /* must not go lighter: 4.5:1 floor */
  --blue:var(--cyan);
  --blue-deep:var(--cyan-deep);
  --blue-glow:rgba(69,195,239,.30);

  /* --- semantic --- */
  --ok:#1B8F4B;
  --warn:#A4551B;               /* 4.6:1 on bone; the old #fbbf24 was 1.6:1 */

  /* --- type --- */
  --font-display:'Manrope',system-ui,sans-serif;   /* Anton read budget-tradie */
  --font-body:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

  --text-sm:.875rem;
  --text-base:clamp(.95rem,.92rem + .18vw,1.05rem);
  --text-lead:clamp(1rem,.95rem + .3vw,1.15rem);
  /* Manrope-scaled. The old values were Anton-scaled and roughly double. */
  --text-h3:clamp(1.05rem,.95rem + .45vw,1.3rem);
  --text-h2:clamp(1.6rem,1.1rem + 2.2vw,2.6rem);
  --text-h1:clamp(2rem,1.2rem + 3.6vw,3.6rem);

  --track-wide:.3em;
  --track-mid:.18em;

  /* --- spacing --- */
  --gutter:5vw;
  --space-section:clamp(4.5rem,3rem + 5vw,7rem);
  --space-stack:clamp(1.25rem,1rem + .8vw,1.75rem);
  --maxw:1300px;
  --maxw-prose:65ch;

  /* --- bento --- */
  --tile-gap:8px;

  /* --- chrome --- */
  --nav-h:84px;
  --nav-h-scrolled:68px;
  --callbar-h:0px;

  /* --- motion --- */
  --duration-fast:150ms;
  --duration-normal:300ms;
  --duration-slow:600ms;
  --ease-out-expo:cubic-bezier(.16,1,.3,1);
  --ease-out-quart:cubic-bezier(.22,1,.36,1);

  /* --- shape: hard edges. Deliberately not the rounded SaaS bento. --- */
  /* the angled cut belonged to the old industrial look; pills now */
  --cut:none;
  --cut-sm:none;
}

/* ---------------------------------------------------------------------------
   Mobile: tighter rhythm so more fits per screen.
   --------------------------------------------------------------------------- */
@media(max-width:680px){
  :root{
    --gutter:5.5vw;
    --nav-h:68px;
    --callbar-h:60px;

    --space-section:clamp(2.6rem,1.6rem + 4.5vw,3.75rem);
    --space-stack:clamp(.9rem,.7rem + .8vw,1.2rem);

    --text-base:.95rem;
    --text-lead:1rem;
    --text-h2:clamp(1.4rem,1rem + 2.4vw,1.8rem);
    --text-h3:1rem;
    --text-h1:clamp(1.75rem,1.1rem + 4vw,2.3rem);

    --track-wide:.24em;
    --tile-gap:6px;
  }
}

@media(max-width:380px){
  :root{
    --gutter:5vw;
    --text-h2:clamp(1.3rem,1rem + 2.2vw,1.6rem);
  }
}
