/* Design tokens: the single place for the theme's colours and sizes.

   Colour values live in theme.json (settings.color.palette and
   settings.custom.color); WordPress prints them as --wp--preset--color--* and
   --wp--custom--color--* on the site and in the editor. This file gives them
   short names in three layers, and the rest of the CSS only uses these names:

   1. Primitives: what the colour is (--lime, --navy, --slate-300…).
   2. Semantic:   what it is for (--color-accent, --color-text-on-dark…).
   3. Components: one component's parameters (--btn-primary-bg…).

   To change a colour everywhere, change it in theme.json. To change what a
   role or a component uses, point its token to another primitive here.
   Transparent variants derive from the token, so they follow it:
   rgb(from var(--color-accent) r g b / 0.28). */

:root {
  /* ---------- 1. Primitives ---------- */
  --bg: var(--wp--preset--color--bg);
  --bg2: var(--wp--preset--color--bg-2); /* WordPress hyphenates digits in slugs */
  --panel: var(--wp--preset--color--panel);
  --panel2: var(--wp--preset--color--panel-2);
  --panel-3: var(--wp--custom--color--panel-3);
  --panel-deep: var(--wp--custom--color--panel-deep);
  --blue: var(--wp--preset--color--blue);
  --blue-light: var(--wp--custom--color--blue-light);
  --green: var(--wp--preset--color--green);
  --green-dark: var(--wp--custom--color--green-dark);
  --mint: var(--wp--custom--color--mint);
  --teal: var(--wp--custom--color--teal);
  --violet: var(--wp--preset--color--violet);
  --red: var(--wp--custom--color--red);
  --lime: var(--wp--preset--color--lime);
  --lime-ink: var(--wp--custom--color--lime-ink);
  --white: var(--wp--preset--color--white);
  --muted: var(--wp--preset--color--muted);
  --navy: var(--wp--custom--color--navy);
  --ink: var(--navy);
  --ink-2: var(--wp--custom--color--ink-2);
  --ink-muted: var(--wp--custom--color--ink-muted);
  --slate-50: var(--wp--custom--color--slate-50);
  --slate-100: var(--wp--custom--color--slate-100);
  --slate-200: var(--wp--custom--color--slate-200);
  --slate-300: var(--wp--custom--color--slate-300);
  --slate-400: var(--wp--custom--color--slate-400);

  /* ---------- 2. Semantic ---------- */
  --color-accent: var(--lime);
  --color-on-accent: var(--navy);
  --color-brand: var(--blue);
  --color-text-on-dark: var(--slate-50);
  --color-text-on-dark-muted: var(--slate-300);
  --color-text-on-light: var(--navy);
  --color-error: var(--red); /* form errors: 7:1 on --navy */
  --color-success: var(--green);
  --line: rgba(245, 245, 245, 0.11);
  --glass-light: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.46));
  --glass-light-border: rgba(255, 255, 255, 0.9);
  --glass-dark: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  --glass-dark-border: rgba(255, 255, 255, 0.11);
  /* Lime "light bulb" dots */
  --lime-bulb: radial-gradient(
    circle at 35% 32%,
    #f4ffe2 0%,
    #d9ffa6 28%,
    var(--color-accent) 58%,
    #9fe04a 100%
  );
  --lime-glow: 0 0 0 3px rgb(from var(--color-accent) r g b / 0.16),
    0 0 12px rgb(from var(--color-accent) r g b / 0.75),
    0 0 2px rgba(159, 224, 74, 0.9);

  /* Layout */
  --max: 1180px;
  --radius: 24px;

  /* Typography */
  --fs-h1: clamp(46px, 6.2vw, 84px); /* hero title */
  --fs-h2: clamp(36px, 4.2vw, 56px); /* section title */
  --fs-h3-lg: clamp(26px, 2.6vw, 34px); /* section subtitle / panel title */
  --fs-h3: 24px; /* card title */
  --fs-h4: 19px; /* small heading */
  --fs-lead: 19px; /* hero copy */
  --fs-body: 17px; /* section description */
  --fs-small: 15px; /* card and list copy */
  --fs-eyebrow: 13px; /* section kicker */
  --fs-label: 12px; /* labels inside cards (minimum) */
  --fs-btn: 15px;
  --fs-nav: 16px;

  /* ---------- 3. Components ---------- */
  /* Primary button and the header's "Let's talk". */
  --btn-primary-bg: var(--color-accent);
  --btn-primary-text: var(--color-on-accent);
  --btn-primary-glow: var(--color-accent);
  /* Secondary button (the Home area tabs share it). */
  --btn-secondary-bg: var(--panel-deep);
  --btn-secondary-bg-hover: #0f2416;
  --btn-secondary-text: var(--color-text-on-dark);
  --btn-secondary-accent: var(--color-accent);
}
