/* ============================================================
   FIRST LIGHT — design tokens
   Single source of truth for the launch page and design system.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Big+Shoulders+Inline+Display:wght@800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  /* ---- Pre-dawn ---- */
  --night-900: #120C09;
  --night-800: #1E1410;
  --roast-700: #3A2420;
  --dusk-600:  #5A3524;
  --plum-650:  #3B2630; /* the dusky in-between, sky only */

  /* ---- Sunrise ---- */
  --sun-500: #F0A93B;
  --sun-300: #F6C46A;
  --glow:    #FFD89A;   /* radial light only, never text */

  /* ---- Paper ---- */
  --paper-50:  #FFFBF3;
  --cream-100: #FBF4E8;
  --cream-200: #F3E6CF;
  --sand-300:  #E3C9A3;
  --tan-400:   #D4A77C;

  /* ---- Ink ---- */
  --ink-900: #1A110D;
  --ink-700: #4A3A30;
  --muted-on-dark: #B8A48E;

  /* ---- The one action colour ---- */
  --ember-600: #C8401C;
  --ember-700: #A9351A;

  /* ---- Type ---- */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-inline:  "Big Shoulders Inline Display", "Big Shoulders Display", Impact, sans-serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-hero:  clamp(4.5rem, 12vw, 11rem);
  --fs-h2:    clamp(3rem, 6vw, 5.5rem);
  --fs-h3:    clamp(1.75rem, 2.4vw, 2.25rem);
  --fs-lead:  1.375rem;  /* 22 */
  --fs-body:  1.125rem;  /* 18 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-label: 0.78rem;   /* ~12.5 */

  --lh-display: 0.88;
  --lh-body: 1.6;
  --track-display: -0.01em;
  --track-label: 0.14em;

  /* ---- Space (8pt) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 144px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: var(--s-10);

  /* ---- Shape ---- */
  --r-panel: 48px;
  --r-card: 24px;
  --r-input: 14px;
  --r-pill: 999px;

  /* ---- Shadow (always warm) ---- */
  --shadow-dark:  0 24px 48px -12px rgba(18, 12, 9, .55);
  --shadow-light: 0 18px 40px -16px rgba(120, 72, 30, .22);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-1: 200ms;
  --dur-2: 600ms;
  --dur-3: 900ms;

  /* ---- Grain (SVG noise, used at 5%) ---- */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (max-width: 720px) {
  :root {
    --r-panel: 28px;
    --section-y: var(--s-9);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
  }
}
