/**
 * Layer 2 — Design tokens (from Layer 1 design system)
 * Use these variables in components only; avoid raw values in pages.
 */

:root {
  /* ——— Color: semantic ——— */
  --color-text-primary: #000000;
  --color-text-secondary: rgba(0, 0, 0, 0.65);
  --color-text-inverse: #f8fafc;
  --color-text-muted-on-dark: rgba(255, 255, 255, 0.6);

  --color-surface-page: #ffffff;
  --color-surface-dark: #122b14;
  --color-surface-overlay: rgba(255, 255, 255, 0.8);

  --color-border-light: rgba(255, 255, 255, 0.2);
  --color-border-subtle: rgba(255, 255, 255, 0.15);

  /* ——— Color: brand primitives ——— */
  --color-primary-green: #0f3b2e;
  --color-brand-dark: #052417;
  --color-brand-dark-2: #1a3b2a;
  --color-white: #ffffff;
  --color-cream: #f9f7f1;
  --color-gold: #c9a461;
  --color-gold-light: #f2cb83;
  --color-surface-muted: #f7f7f7;
  --color-surface-cream: #f9f7f1;
  --color-stat-bg: #eeeeee;
  --color-text-brand-muted: rgba(5, 36, 23, 0.75);
  --color-border-brand: rgba(5, 36, 23, 0.15);
  --color-route-border: #bf8204;
  --color-stop-border: rgba(5, 36, 23, 0.08);
  --color-stop-border-active: #f1b334;

  --font-family-accent: "Caveat", cursive;
  --font-size-md: 1.25rem;
  --space-section-y: 5rem;
  --radius-xl: 2rem;
  --shadow-soft: 0 4px 3.6px rgba(0, 0, 0, 0.05);

  /* ——— Typography: families ——— */
  --font-family-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-family-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-family-script: "Great Vibes", cursive;

  /* ——— Typography: scale ——— */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.75rem; /* 28px */
  --font-size-2xl: 3rem; /* 48px cap — footer CTA at large breakpoints */
  --font-size-footer-cta-title: clamp(1.75rem, 4.5vw, var(--font-size-2xl));
  --font-size-display: clamp(3rem, 6vw, 4rem); /* 64px cap */
  --font-size-heading: clamp(2.2rem, 4.5vw, 4rem);

  --line-height-tight: 1.2;
  --line-height-body: 1.5;
  --line-height-relaxed: 1.62;

  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-normal: 400;
  --letter-spacing-display: -0.8px;
  --letter-spacing-eyebrow: 0.02em;

  /* ——— Spacing scale (4px base) ——— */
  --space-0: 0;
  --space-1: 0.25rem; /* 4 */
  --space-2: 0.5rem; /* 8 */
  --space-3: 0.75rem; /* 12 */
  --space-4: 1rem; /* 16 */
  --space-5: 1.5rem; /* 24 */
  --space-6: 2rem; /* 32 */
  --space-8: 2.5rem; /* 40 */
  --space-10: 4rem; /* 64 */
  --space-12: 4.625rem; /* 74 — hero content inset */
  --space-14: 5.625rem; /* 84 — hero content inset */
  --space-16: 6.5rem; /* 100 — hero content inset */
  --space-18: 7.375rem; /* 112 — hero content inset */
  --space-20: 8.25rem; /* 128 — hero content inset */
  --space-22: 9.125rem; /* 140 — hero content inset */
  --space-24: 10rem; /* 156 — hero content inset */
  --space-26: 10.875rem; /* 168 — hero content inset */
  --space-28: 11.75rem; /* 184 — hero content inset */

  /* ——— Layout ——— */
  --layout-max-width: 90rem; /* 1440px artboard */
  --layout-content-width: 80rem; /* 1280px content (Figma x=80) */
  --layout-gutter: 5rem; /* 80px — viewports wider than 1366px (Figma 1440) */
  --layout-gutter-narrow: var(--space-5); /* 24px — alias for tablet gutters */
  --hero-content-inset: var(--layout-gutter); /* aligns hero copy with .container */
  --hero-panel-padding-x: 1.5625rem; /* 25px — Figma 11108:1548 */

  /* ——— Radius ——— */
  --radius-sm: 0.375rem; /* 6 */
  --radius-md: 1rem; /* 16 */
  --radius-full: 9999px;

  /* ——— Elevation / effects ——— */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --blur-panel: 8.246px;

  /* ——— Hero-specific gradients (tokenized) ——— */
  --hero-gradient-scrim-x: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.06) 100%
  );
  --hero-gradient-scrim-y: linear-gradient(
    180deg,
    var(--color-surface-overlay) 1%,
    rgba(255, 255, 255, 0) 22%
  );

  /* ——— Component sizes ——— */
  --btn-height: 2.75rem; /* 44 */
  --btn-padding-x: var(--space-5);
  --logo-size: 5.875rem; /* 94 */
  --logo-size-scrolled: 3rem; /* 48 — compact header mark */
  --header-bg-scrolled: var(--color-cream);
  --header-border-scrolled: var(--color-border-brand);
  --icon-feature-size: 3.0625rem; /* 49 */
}
