/* Prestige Remodel — design tokens
 * Single source of truth. Values are verbatim from Prestige Remodel Home V1.fig
 * (1920 canvas); the clamp() second argument is the 1920 value expressed in vw,
 * so every token resolves to the exact Figma number at 1920 and scales below it.
 * Change a value here and it changes everywhere the token is used. */

:root {
  /* ── Colour ─────────────────────────────────────────────── */
  --ink: rgb(0, 0, 0);
  --paper: rgb(255, 255, 255);
  --surface: rgb(217, 217, 217);
  /* A paler --surface for a filled input: the placeholder's muted grey on
     --surface itself falls short of AA (BugHerd #134). */
  --surface-sunk: rgb(242, 242, 242);
  --muted: rgb(115, 115, 115);
  --accent: rgb(222, 38, 38);
  /* Accent as TEXT. The Figma red is a 1px rule colour — at 4.19:1 on its own 6% tint it
   * fails AA for body copy, so error text uses this darker cut (~6:1 on the tint, 6.9:1
   * on --paper). Keep --accent for rules, borders and icons; --accent-ink for words. */
  --accent-ink: rgb(178, 28, 28);
  --watermark: rgba(217, 217, 217, 0.3);
  --hairline: rgba(255, 255, 255, 0.18);
  /* Photography opacity. The Figma frame paints images ON TOP of a flat fill and
   * drops their opacity, rather than laying a scrim over them:
   *   testimonial band — photo at 10% over --ink
   *   news band        — blueprint at 8% over --paper
   * Expressed as a matching flat gradient above the image, which is equivalent
   * for opaque bitmaps. The 10%-over-black band puts the white quote at 7.6:1. */
  --photo-opacity-dark: 0.10;  /* testimonial band + footer (Rectangle 5) */
  --photo-opacity-light: 0.08; /* news band */
  --scrim-tile: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.72) 100%);
  --wash-tile: 0.12;       /* service tile at rest, under --scrim-tile: the photo shows; the foot gradient carries the title (BugHerd #84) */
  --wash-tile-hover: 0.72; /* active: the fuller wash, so the excerpt reads — above the 0.62 floor for white text over a photo */
  --scrim-card: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
  --scrim-peek: rgba(0, 0, 0, 0.4);
  /* The paper wash over the floor-plan image, the home field news_image
     (BugHerd #88, #95): strong enough to keep the drawing a texture, not a
     picture. */
  --wash-plan: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)); /* measured to the mock: its darkest lines sit ~10-15 levels off white */

  /* ── Type families ──────────────────────────────────────── */
  --font-display: Unna, Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-cta: Quattrocento, Georgia, serif;
  --font-editorial: Montserrat, system-ui, sans-serif;

  /* ── Type scale (Figma value at 1920) ───────────────────── */
  --display-xl: clamp(44px, 5.73vw, 110px);      /* 110 — REMODELING, PORTFOLIO */
  --display-lg: clamp(44px, 5vw, 96px);          /*  96 — SERVICES, NEWS        */
  --display-hero: clamp(30px, 3.75vw, 72px);     /*  72 — hero headline         */
  --display-md: clamp(30px, 3.33vw, 64px);       /*  64 — section titles        */
  --display-sm: clamp(28px, 2.5vw, 48px);        /*  48 — service tile titles   */
  --client-name: clamp(22px, 1.67vw, 32px);      /*  32 — Unna 700              */
  --eyebrow: clamp(26px, 2.5vw, 48px);           /*  48 — FEATURED, IN THE      */
  --subhead: clamp(20px, 1.875vw, 36px);         /*  36 — Nunito Sans 300       */
  --eyebrow-sm: clamp(16px, 1.25vw, 24px);       /*  24 — eyebrow over a title-case child heading */
  --quote: clamp(18px, 1.25vw, 24px);            /*  24 — testimonial body      */
  --nav: clamp(13px, 1.04vw, 20px);              /*  20 — nav, footer links     */
  --card-title: clamp(22px, 1.875vw, 36px);      /*  36 — news card title       */
  --body: 18px;                                  /*  18/30 — all body copy      */
  --cta: 18px;                                   /*  18/30 — Quattrocento 700   */

  --leading-body: 30px;
  --leading-quote: 1.42;
  --leading-display: 1;
  --leading-card: 24px;                          /*  18/24 — news card desc.    */

  /* ── Layout ─────────────────────────────────────────────── */
  --gutter-page: clamp(20px, 7.81vw, 150px);     /* 150 */
  --gutter-header: clamp(20px, 4.27vw, 82px);    /*  82 */
  --gutter-hero: clamp(20px, 13.7vw, 263px);     /* 263 */
  --gutter-footer: clamp(20px, 11.04vw, 212px);  /* 212 */
  --content-max: 1620px;
  --section-pad: clamp(64px, 7.29vw, 140px);   /* 140 — every section's top/bottom */
  --rule-max: 420px;
  --tile-min: 300px;

  /* ── Radius ─────────────────────────────────────────────── */
  --radius-lg: clamp(20px, 2.6vw, 50px);         /* 50 — news + surface cards */
  --radius-sm: clamp(14px, 1.3vw, 25px);         /* 25 — CTA card, frames     */

  /* ── Elevation ──────────────────────────────────────────── */
  --shadow-section: 0px 4px 27px 0px rgba(0, 0, 0, 0.25);
  --shadow-band: 0px 4px 25px 0px rgba(0, 0, 0, 0.25);
  --shadow-card: 0px 0px 20px 6px rgba(0, 0, 0, 0.25);
  --shadow-card-soft: 0px 0px 20px 6px rgba(0, 0, 0, 0.1); /* --shadow-card at a lower opacity, for a grid of them */
  --shadow-cta: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  --shadow-tile-hover: 0px 0px 34px 12px rgba(0, 0, 0, 0.5);
  --shadow-feature: 0px 23px 40px 0px rgba(0, 0, 0, 0.25);
  --shadow-peek: 0px 0px 41px 0px rgba(0, 0, 0, 0.25);
  --shadow-logo: 0px 0px 27px 0px rgba(0, 0, 0, 0.49);

  /* ── Breakpoints (for reference; media queries need literals) ── */
  --bp-lg: 1200px;  /* desktop nav → hamburger */
  --bp-md: 992px;   /* columns stack, copy centres */
  --bp-sm: 576px;   /* single-column media */
}
