/* ==========================================================================
   Beatnik Technology — Design tokens (Website 2.0, Phase 2 PROPOSAL)
   Single source of truth. In WordPress these move to the child theme
   (style + theme.json) unchanged.
   ========================================================================== */

:root {
  /* ---- Brand palette (verified against existing site) ---- */
  --bt-teal-950: #0B2227;   /* deepest surface (hero, footer) */
  --bt-teal-900: #102F35;   /* PRIMARY dark teal — nav, strong sections, main text */
  --bt-teal-800: #17414A;
  --bt-green-700: #06684F;  /* action hover / text-on-mint */
  --bt-green-600: #087E69;  /* PRIMARY green — actions, highlights */
  --bt-mint-400: #3DD6A3;   /* ACCENT — highlights on dark surfaces only (7.67:1 on teal-900) */
  --bt-mint-100: #E8F5EE;   /* mint section background */
  --bt-grey-600: #526B64;   /* muted green-grey — secondary text */
  --bt-grey-300: #A9C3BC;   /* secondary text on dark (7.58:1) */
  --bt-grey-50:  #F5F8F6;   /* light background */
  --bt-border:   #DCE8E1;
  --bt-white:    #FFFFFF;

  /* ---- Semantic roles ---- */
  --color-text: var(--bt-teal-900);
  --color-text-muted: var(--bt-grey-600);
  --color-text-inverse: var(--bt-white);
  --color-text-inverse-muted: var(--bt-grey-300);
  --color-surface: var(--bt-white);
  --color-surface-alt: var(--bt-grey-50);
  --color-surface-mint: var(--bt-mint-100);
  --color-surface-dark: var(--bt-teal-900);
  --color-surface-darker: var(--bt-teal-950);
  --color-border: var(--bt-border);
  --color-border-dark: rgba(169, 195, 188, .18);
  --color-action: var(--bt-green-600);
  --color-action-hover: var(--bt-green-700);
  --color-accent: var(--bt-mint-400);
  --color-focus: var(--bt-mint-400);       /* paired with a dark outline offset ring */
  --color-success: #067647;
  --color-warning: #B54708;
  --color-error:   #B42318;

  /* ---- Typography ---- */
  --font-heading: "Satoshi", "Satoshi Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid scale: 360px → 1440px viewport */
  --fs-display: clamp(2.75rem, 1.55rem + 5.4vw, 6.5rem);   /* 44 → 104 — homepage hero */
  --fs-h1: clamp(2.25rem, 1.55rem + 3.1vw, 4.5rem);        /* 36 → 72 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 3.25rem);      /* 30 → 52 */
  --fs-h3: clamp(1.5rem, 1.3rem + .9vw, 2.125rem);         /* 24 → 34 */
  --fs-h4: clamp(1.25rem, 1.15rem + .45vw, 1.5rem);        /* 20 → 24 */
  --fs-h5: 1.125rem;                                        /* 18 */
  --fs-h6: 1rem;                                            /* 16 */
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);    /* 17 → 21 */
  --fs-body: 1rem;                                          /* 16 */
  --fs-small: .875rem;                                      /* 14 */
  --fs-label: .75rem;                                       /* 12 — eyebrow / mono */

  --lh-display: 1.0;
  --lh-heading: 1.1;
  --lh-tight: 1.2;
  --lh-body: 1.6;

  --ls-display: -0.035em;
  --ls-heading: -0.025em;
  --ls-small-heading: -0.01em;
  --ls-label: 0.08em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* ---- Space & layout ---- */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --container: 1320px;
  --gutter: clamp(1.25rem, .75rem + 2.2vw, 3rem);

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 32px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16,47,53,.04), 0 12px 32px -12px rgba(16,47,53,.12);
  --shadow-float: 0 30px 60px -20px rgba(0,0,0,.45);

  /* ---- Motion (see BRAND_AND_TYPOGRAPHY_GUIDELINES.md §Motion) ---- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);        /* entrances, reveals */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);     /* state changes, panels */
  --ease-expo: cubic-bezier(.76, 0, .24, 1);       /* large wipes, curtains */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* small playful feedback (icons only) */
  --dur-instant: 120ms;  /* press feedback */
  --dur-fast: 200ms;     /* hover colour */
  --dur-base: 320ms;     /* cards, menus */
  --dur-slow: 550ms;     /* reveals, arrow swaps */
  --dur-slower: 900ms;   /* hero intro lines */
  --stagger: 80ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur-base: 1ms; --dur-slow: 1ms; --dur-slower: 1ms; --stagger: 0ms; }
}
