/* Design tokens. Every colour, size and timing on the site comes from here. */
:root {
  /* Ground: near black with a cold undertone */
  --bg: #050608;
  --bg-raised: #090b0f;
  --surface: #101319;
  --surface-hover: #14181f;

  /* Lines */
  --line: rgba(236, 232, 224, 0.1);
  --line-strong: rgba(236, 232, 224, 0.19);

  /* Text: warm bone on cold black */
  --text: #ece8e0;
  --text-2: #b0aea8;
  --text-3: #777980;
  --text-inverse: #07080a;

  /* The accent: warm amber, used sparingly */
  --accent: #f2c46d;
  --accent-strong: #ffd68a;
  --accent-soft: rgba(242, 196, 109, 0.12);
  --accent-line: rgba(242, 196, 109, 0.32);
  --fog: #7f95b0;

  --danger: #ff8a7a;
  --success: #b9e3a8;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-micro: 0.6875rem;   /* 11 */
  --fs-small: 0.8125rem;   /* 13 */
  --fs-body: 1rem;         /* 16 */
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2.4rem, 1.65rem + 3.2vw, 4.5rem);
  --fs-hero: clamp(3.5rem, 1.5rem + 8.2vw, 8.75rem);
  --fs-stat: clamp(3rem, 2rem + 4.5vw, 5.75rem);

  --lh-tight: 0.95;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --tracking-mono: 0.14em;

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 9rem;
  --section-y: clamp(5.5rem, 3.5rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Width */
  --container: 1200px;
  --container-narrow: 760px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 700ms;

  /* Layers */
  --z-film: 1;
  --z-content: 2;
  --z-nav: 50;
  --z-toast: 100;
}

/* Breakpoints used in app.css: 640px (phone), 960px (tablet). */
