/* ==========================================================================
   DESIGN TOKENS
   Every colour, radius, space and type step used across the site.
   Rebrand by editing this file only.
   ========================================================================== */

:root {
  /* ---- Colour: surfaces -------------------------------------------------- */
  --color-black: #020704;
  --color-background: #030a05;
  --color-background-alt: #061007;
  --color-surface: #081209;
  --color-surface-raised: #0b170d;
  --color-surface-soft: #101b12;
  --color-surface-inset: rgba(255, 255, 255, 0.02);

  /* ---- Colour: brand accent ---------------------------------------------- */
  --color-accent: #dfff00;
  --color-accent-bright: #edff38;
  --color-accent-dim: #a8c200;
  --color-accent-soft: rgba(223, 255, 0, 0.12);
  --color-accent-faint: rgba(223, 255, 0, 0.06);
  --color-accent-border: rgba(223, 255, 0, 0.35);

  /* ---- Colour: text ------------------------------------------------------ */
  --color-text: #f4f7f2;
  --color-text-muted: #9aa69d;
  --color-text-subtle: #667269;
  --color-text-on-accent: #061007;

  /* ---- Colour: lines ----------------------------------------------------- */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-soft: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(223, 255, 0, 0.22);

  /* ---- Elevation --------------------------------------------------------- */
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(223, 255, 0, 0.18);
  --shadow-glow-strong: 0 0 48px rgba(223, 255, 0, 0.32);

  /* ---- Radii ------------------------------------------------------------- */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---- Layout ------------------------------------------------------------ */
  --container-width: 1120px;
  --container-wide: 1320px;
  --container-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ---- Spacing scale ----------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --section-space: clamp(4.5rem, 8vw, 8rem);
  --section-space-tight: clamp(3rem, 5vw, 5rem);

  /* ---- Typography -------------------------------------------------------- */
  --font-sans: "Space Grotesk", "Sora", "Manrope", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  --text-hero: clamp(3rem, 6vw, 6.5rem);
  --text-h2: clamp(1.9rem, 3.1vw, 3.4rem);
  --text-h3: clamp(1.5rem, 2.5vw, 2.5rem);
  --text-h4: clamp(1.125rem, 1.6vw, 1.375rem);
  --text-body: clamp(0.95rem, 1.1vw, 1.05rem);
  --text-sm: 0.875rem;
  --text-xs: 0.8rem;
  --text-meta: 0.7rem;

  --leading-tight: 0.98;
  --leading-snug: 1.15;
  --leading-normal: 1.65;

  --tracking-label: 0.18em;
  --tracking-wide: 0.08em;
  --tracking-tight: -0.03em;

  /* ---- Motion ------------------------------------------------------------ */
  --transition-fast: 180ms ease;
  --transition-med: 320ms cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- Component sizing -------------------------------------------------- */
  --header-height: 60px;
  /* Gap between the viewport top and the floating header pill. Must match the
     header's padding-top — the sticky stack below is measured from it. */
  --header-inset: clamp(0.75rem, 2vw, 1.25rem);
  --section-nav-height: 64px;

  /* Fixed chrome: header pill at the top, section strip docked to the bottom.
     The drawer hangs between them on the right. */
  --header-bottom: calc(var(--header-inset) + var(--header-height));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Space the docked bar occupies, plus clearance so content never sits
     flush against it. The bar renders a couple of px taller than the token
     because of its border and progress rule. */
  --section-nav-bottom: calc(var(--section-nav-height) + var(--safe-bottom) + 0.75rem);
  --drawer-top: calc(var(--header-bottom) + 0.5rem);

  --tap-target: 44px;
  --phone-width: 296px;
  /* Hero device artwork. The height cap keeps it inside the band between the
     header and the docked section bar on short desktop viewports; the width
     cap governs on tall ones. */
  --device-art-width: 340px;
  --device-art-max-height: calc(
    100svh - var(--header-bottom) - var(--section-nav-bottom) - 5rem
  );
}
