/* ==========================================================================
   PMR design tokens  ·  v1.0 (Phase 2)
   Source: values sampled from thebrandbee.com computed styles, 18 Nov 2026.
   Rule: components never hard-code a colour, size or timing; they use these.
   ========================================================================== */
:root {

  /* ---- Colour: neutrals (sampled) ---- */
  --pmr-ink:          #111111;   /* text, dark sections, primary borders */
  --pmr-ink-2:        #6C6C6C;   /* secondary text */
  --pmr-ink-3:        #5A5A5A;   /* small dense text on light */
  --pmr-mute:         #9A9A9A;   /* tertiary text, captions on dark */
  --pmr-silver:       #CFCFCF;   /* body copy on dark */
  --pmr-white:        #FFFFFF;   /* header, white sections, panels */
  --pmr-bg:           #F7F7F4;   /* page background */
  --pmr-bg-2:         #F1F1EC;   /* pale panel */
  --pmr-line:         #E7E7E2;   /* hairline dividers */
  --pmr-line-2:       #D4D4CD;   /* stronger dividers, input borders */
  --pmr-line-3:       #E4E3DD;   /* image-slot fill */
  --pmr-dark-2:       #1D1D1D;   /* raised surface on dark */
  --pmr-dark-line:    #3A3A3A;   /* hairlines on dark */

  /* ---- Colour: the single accent ---- */
  --pmr-accent:       #F3E733;   /* highlighter mark, primary button, yellow bands */
  --pmr-accent-text:  #111111;   /* text on accent */

  /* ---- Colour: state ---- */
  --pmr-error:        #B42318;
  --pmr-success:      #067647;

  /* ---- Legacy aliases (keep components working) ---- */
  --pmr-accent-dark:  var(--pmr-ink);
  --pmr-font-serif:   var(--pmr-font-sans);

  /* ---- Typography: family ---- */
  --pmr-font-sans:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pmr-font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Typography: weights ---- */
  --pmr-w-light: 300; --pmr-w-regular: 400; --pmr-w-medium: 500; --pmr-w-semibold: 600; --pmr-w-bold: 700; --pmr-w-black: 800;

  /* ---- Typography: scale (fluid, reference-matched) ---- */
  --pmr-fs-display:   clamp(46px, 6.2vw, 89px);   /* hero. ref 89px / lh 1.08 / -0.035em / 800 */
  --pmr-fs-h2:        clamp(30px, 4.4vw, 50px);   /* section title. ref clamp(30,4.4vw,50) / 1.04 / -0.02em / 800 */
  --pmr-fs-h2-cta:    clamp(32px, 3.4vw, 46px);   /* closing CTA. ref 40.45px / -0.025em */
  --pmr-fs-h3:        clamp(24px, 2.1vw, 30px);   /* card / practice title. ref 30px / 1.0 / -0.025em */
  --pmr-fs-h4:        22px;                        /* sub-title. ref 22px / 1.25 / 600 */
  --pmr-fs-lead:      18px;                        /* lead paragraph. ref 18px / 1.6 */
  --pmr-fs-body:      16px;                        /* ref 16px / 1.6 */
  --pmr-fs-body-s:    15px;                        /* ref 15px / 1.6 */
  --pmr-fs-small:     14px;                        /* ref 14px / 1.6 */
  --pmr-fs-caption:   13.5px;                      /* ref 13.5px / 1.55 */
  --pmr-fs-eyebrow:   11px;                        /* ref 10px; +1px for legibility. 700 / .16em / uppercase */
  --pmr-fs-nav:       14.5px;                      /* ref 14.5px / 500 */
  --pmr-fs-menu:      14px;                        /* mega links. ref 14–15.5px / 600 */
  --pmr-fs-btn:       14.5px;                      /* ref 14.5px / 600 */

  --pmr-lh-tight: 1.04; --pmr-lh-display: 1.08; --pmr-lh-snug: 1.25; --pmr-lh-body: 1.6;
  --pmr-ls-display: -.035em; --pmr-ls-h2: -.02em; --pmr-ls-h3: -.025em; --pmr-ls-eyebrow: .16em;

  /* ---- Layout ---- */
  --pmr-container:    1240px;     /* ref .wrap max-width */
  --pmr-gutter:       28px;       /* ref .wrap horizontal padding */
  --pmr-gutter-sm:    20px;       /* below 728px */
  --pmr-header-h:     73px;       /* ref header */
  --pmr-measure:      52ch;       /* paragraph max width */

  /* ---- Spacing scale (4px base) ---- */
  --pmr-s-1: 4px;  --pmr-s-2: 8px;  --pmr-s-3: 12px; --pmr-s-4: 16px; --pmr-s-5: 24px;
  --pmr-s-6: 32px; --pmr-s-7: 48px; --pmr-s-8: 64px; --pmr-s-9: 84px; --pmr-s-10: 112px;
  --pmr-section:      84px;       /* ref vertical padding of every section */
  --pmr-section-sm:   60px;       /* ref logo strip */
  --pmr-section-cta:  112px;      /* closing CTA band */
  --pmr-gap:          24px;       /* default grid gap */
  --pmr-gap-menu:     30px 34px;  /* ref mega grid gap */

  /* ---- Borders & radius (sampled) ---- */
  --pmr-bw:           1px;
  --pmr-r-none:       0;          /* images and slots: square */
  --pmr-r-sm:         9px;        /* ref most common small radius */
  --pmr-r-card:       16px;       /* ref card radius, use sparingly */
  --pmr-r-pill:       40px;       /* buttons */
  --pmr-r-round:      50%;

  /* ---- Elevation: one shadow only (mega panel) ---- */
  --pmr-shadow-menu:  0 30px 64px rgba(17, 17, 17, .13);

  /* ---- Motion ---- */
  --pmr-ease:         cubic-bezier(.22, 1, .36, 1);   /* expo-out: reveals, rolls, scale */
  --pmr-ease-2:       cubic-bezier(.2, .7, .2, 1);    /* fades */
  --pmr-t-fast: .2s;  --pmr-t-ui: .4s;  --pmr-t-reveal: .7s;  --pmr-t-media: .85s;  --pmr-t-hero: 1.55s;

  /* ---- Marks (highlighter bar) ---- */
  --pmr-mark-line: .26em;  --pmr-mark-pad: .28em;
  --pmr-mark-line-display: .14em; --pmr-mark-pad-display: .16em;

  /* ---- Breakpoints (documentation: CSS cannot read these in @media) ----
     --bp-xs 480 · --bp-sm 728 (ref mobile) · --bp-md 1024 (nav switches) · --bp-lg 1200 · --bp-xl 1440 · --bp-2xl 1920 */

  /* ---- Responsive overrides ---- */
}
@media (max-width: 728px) {
  :root { --pmr-gutter: var(--pmr-gutter-sm); --pmr-section: 64px; --pmr-section-cta: 80px; --pmr-fs-lead: 16.5px; }
}

/* WordPress core preset bridge, so the block editor uses the same palette */
:root {
  --wp--preset--color--ink: var(--pmr-ink);
  --wp--preset--color--ink-2: var(--pmr-ink-2);
  --wp--preset--color--white: var(--pmr-white);
  --wp--preset--color--page: var(--pmr-bg);
  --wp--preset--color--panel: var(--pmr-bg-2);
  --wp--preset--color--line: var(--pmr-line);
  --wp--preset--color--accent: var(--pmr-accent);
  --wp--preset--font-family--poppins: var(--pmr-font-sans);
}
