/**
 * TreeCare Alliance — design tokens (2.0.0)
 * GENERATED FROM tokens-tca.json BY design/build-tokens.mjs — DO NOT EDIT BY HAND.
 * Edit tokens-tca.json, then run: node design/build-tokens.mjs
 *
 * Source: Tree Care Alliance Branding Assets, supplied by Bradley Benner 2026-09-11
 * Every colour below is verified by computed ratio in BOTH schemes.
 * Run: node design/verify-contrast.mjs
 */

:root {

  /* --- Brand primitives — the official kit, never re-themed ------ */
  /* Forest Green */
  --tca-forest: #134226;
  /* Deep Pine */
  --tca-pine: #10351f;
  /* Sage Mist */
  --tca-sage: #426851;
  /* Slate Green */
  --tca-slate: #718e7d;
  /* Alliance Orange */
  --tca-orange: #e7572f;
  /* Off White */
  --tca-off-white: #f2f2f2;
  /* Eerie Black */
  --tca-black: #1a1a1a;

  /* --- Semantic roles — LIGHT scheme ----------------------------- */
  color-scheme: light dark;
  --tca-surface: #f2f2f2;
  --tca-surface-panel: #ffffff;
  --tca-surface-stripe: #f3f6f4;
  --tca-ink: #1a1a1a;
  --tca-ink-dim: #426851;
  --tca-ink-label: #134226;
  --tca-brand-ink: #134226;
  --tca-rule: #bcc8c1;
  --tca-accent: #e7572f;
  --tca-accent-ink: #1a1a1a;
  --tca-focus: #1a1a1a;
  --tca-link: #134226;
  --tca-link-hover: #1a1a1a;

  /* --- Typography: families -------------------------------------- */
  --tca-font-display: "Geist", system-ui, sans-serif;
  --tca-font-body: "Inter", system-ui, sans-serif;

  /* --- Typography: sizes ----------------------------------------- */
  --tca-text-h1: clamp(36px, 5vw, 56px);
  --tca-text-h2: clamp(26px, 3.4vw, 38px);
  --tca-text-display-amount: clamp(48px, 8vw, 72px);
  --tca-text-h3-panel: 20px;
  --tca-text-wordmark: 15.5px;
  --tca-text-lede: 19px;
  --tca-text-body: 17px;
  --tca-text-body-panel: 16px;
  --tca-text-body-sm: 15px;
  --tca-text-summary: 17px;
  --tca-text-eyebrow: 12px;
  --tca-text-sec-num: 12px;
  --tca-text-spec-kicker: 11.5px;
  --tca-text-badge: 11.5px;
  --tca-text-btn: 16px;
  --tca-text-btn-sub: 13px;
  --tca-text-quiet: 14px;
  --tca-text-fine: 13px;
  --tca-text-meta: 13px;
  --tca-text-footer: 13px;
  --tca-text-table: 15px;
  --tca-text-table-head: 11.5px;

  /* --- Typography: weights --------------------------------------- */
  --tca-weight-h1: 700;
  --tca-weight-h2: 700;
  --tca-weight-display-amount: 800;
  --tca-weight-h3-panel: 600;
  --tca-weight-wordmark: 600;
  --tca-weight-lede: 400;
  --tca-weight-body: 400;
  --tca-weight-body-panel: 400;
  --tca-weight-body-sm: 400;
  --tca-weight-summary: 600;
  --tca-weight-eyebrow: 600;
  --tca-weight-sec-num: 600;
  --tca-weight-spec-kicker: 600;
  --tca-weight-badge: 600;
  --tca-weight-btn: 600;
  --tca-weight-btn-sub: 400;
  --tca-weight-quiet: 400;
  --tca-weight-fine: 400;
  --tca-weight-meta: 500;
  --tca-weight-footer: 400;
  --tca-weight-table: 400;
  --tca-weight-table-head: 600;

  /* --- Typography: tracking -------------------------------------- */
  --tca-track-h1: -0.02em;
  --tca-track-h2: -0.018em;
  --tca-track-display-amount: -0.03em;
  --tca-track-h3-panel: -0.01em;
  --tca-track-wordmark: 0;
  --tca-track-eyebrow: 0.14em;
  --tca-track-sec-num: 0.1em;
  --tca-track-spec-kicker: 0.12em;
  --tca-track-badge: 0.08em;
  --tca-track-btn: 0.01em;
  --tca-track-table-head: 0.08em;

  /* --- Typography: leading --------------------------------------- */
  --tca-lead-h1: 1.05;
  --tca-lead-h2: 1.1;
  --tca-lead-display-amount: 1;
  --tca-lead-h3-panel: 1.2;
  --tca-lead-lede: 1.6;
  --tca-lead-body: 1.65;
  --tca-lead-body-panel: 1.6;
  --tca-lead-body-sm: 1.55;
  --tca-lead-quiet: 1.55;
  --tca-lead-fine: 1.5;

  /* --- Typography: measure --------------------------------------- */
  --tca-measure-h2: 24ch;
  --tca-measure-lede: 52ch;
  --tca-measure-body: 64ch;

  /* --- Space ----------------------------------------------------- */
  --tca-space-1: 3px;
  --tca-space-2: 7px;
  --tca-space-3: 12px;
  --tca-space-4: 14px;
  --tca-space-5: 18px;
  --tca-space-6: 20px;
  --tca-space-7: 26px;
  --tca-space-8: 28px;
  --tca-space-9: 34px;
  --tca-space-10: 44px;
  --tca-space-11: 56px;
  --tca-space-12: 74px;
  --tca-space-13: 86px;

  /* --- Layout ---------------------------------------------------- */
  --tca-layout-container: 1080px;
  --tca-layout-gutter: 28px;
  --tca-layout-gutter-sm: 20px;
  --tca-layout-section-y: 74px;
  --tca-layout-section-y-sm: 56px;
  --tca-layout-hero-y: 74px 0 64px;
  --tca-layout-hero-y-sm: 52px 0 44px;
  --tca-layout-close-y: 86px;
  --tca-layout-hero-grid: 1.22fr 0.78fr;
  --tca-layout-hero-gap: 56px;
  --tca-layout-hero-gap-sm: 44px;
  --tca-layout-breakpoint-md: 900px;
  --tca-layout-breakpoint-sm: 560px;
  --tca-layout-masthead-logo: 34px;
  --tca-layout-masthead-logo-sm: 28px;

  /* --- Radius ---------------------------------------------------- */
  --tca-radius-sharp: 3px;
  --tca-radius-default: 8px;
  --tca-radius-card: 14px;
  --tca-radius-pill: 999px;

  /* --- Shadow ---------------------------------------------------- */
  --tca-shadow-card: 0 14px 40px rgba(16, 53, 31, 0.14);
  --tca-shadow-panel: 0 2px 10px rgba(16, 53, 31, 0.06);

  /* --- Motion ---------------------------------------------------- */
  --tca-motion-reveal-duration: 0.8s;
  --tca-motion-reveal-easing: cubic-bezier(0.2, 0.7, 0.3, 1);
  --tca-motion-reveal-distance: 18px;
  --tca-motion-press-duration: 0.12s;
  --tca-motion-press-easing: ease;
  --tca-motion-color-duration: 0.2s;
  --tca-motion-stagger: 0.15s;

  /* --- Device ---------------------------------------------------- */
  --tca-device-arc-height: 14px;
  --tca-device-dotgrid-size: 5px;
  --tca-device-dotgrid-gap: 13px;
  --tca-device-dotgrid-opacity: 0.5;
  --tca-device-chevron-width: 34px;
  --tca-device-chevron-height: 13px;
  --tca-device-badge-size: 28px;
  --tca-device-hero-glow: radial-gradient(circle, rgba(231, 87, 47, 0.14), transparent 64%);
}

/**
 * DARK roles, applied when the operating system asks for dark AND the
 * visitor has not explicitly chosen light. Only roles are redefined — a
 * primitive is a pigment and does not change with the scheme. Nothing else
 * belongs here: a size or a radius defined only in this block would be
 * undefined in the light world.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tca-surface: #134226;
    --tca-surface-panel: #10351f;
    --tca-surface-stripe: #173c26;
    --tca-ink: #f2f2f2;
    --tca-ink-dim: #92a89b;
    --tca-ink-label: #f2f2f2;
    --tca-brand-ink: #f2f2f2;
    --tca-rule: #446953;
    --tca-accent: #e7572f;
    --tca-accent-ink: #1a1a1a;
    --tca-focus: #f2f2f2;
    --tca-link: #f2f2f2;
    --tca-link-hover: #ffffff;
  }
}

/**
 * DARK chosen explicitly, which must beat a light operating system. Same
 * values as the block above; the selector is the whole point.
 */
:root[data-theme="dark"] {
  --tca-surface: #134226;
  --tca-surface-panel: #10351f;
  --tca-surface-stripe: #173c26;
  --tca-ink: #f2f2f2;
  --tca-ink-dim: #92a89b;
  --tca-ink-label: #f2f2f2;
  --tca-brand-ink: #f2f2f2;
  --tca-rule: #446953;
  --tca-accent: #e7572f;
  --tca-accent-ink: #1a1a1a;
  --tca-focus: #f2f2f2;
  --tca-link: #f2f2f2;
  --tca-link-hover: #ffffff;
}

/* Motion opt-out is not optional — every reveal must reset here. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --tca-motion-reveal-duration: 0.01ms;
    --tca-motion-reveal-distance: 0px;
    --tca-motion-stagger: 0ms;
  }
}
