/* Design tokens for the landing page. Values mirror docs/design-website.md.
   Components reference roles (surface-*, text-*, action-*), never palette names. */
:root {
  /* Palette */
  --color-deep-ink: #250802;
  --color-parchment: #fcfaf6;
  --color-linen: #f3e8e5;
  --color-pressed-cotton: #d8cac8;
  --color-graphite: #371c1c;
  --color-slate: #5a4440;
  --color-dusk: #926b61;
  --color-white: #ffffff;
  --color-hero-scrim: #192830;

  /* Roles */
  --surface-0: var(--color-parchment);
  --surface-1: var(--color-linen);
  --surface-2: var(--color-pressed-cotton);
  --surface-3: var(--color-deep-ink);
  --text-primary: var(--color-graphite);
  --text-error: #b3261e; /* NEW token: needs design approval */
  --text-secondary: var(--color-slate);
  --text-on-dark: var(--color-white);
  --text-on-dark-muted: var(--color-linen);
  --action-fill: var(--color-deep-ink);
  --action-fill-hover: var(--color-graphite);
  --action-text: var(--color-white);
  --border-strong: var(--color-deep-ink);
  --border-subtle: var(--color-pressed-cotton);
  --focus-ring: var(--color-deep-ink);
  --focus-ring-on-dark: var(--color-white);
  --field-fill: var(--color-white);
  --scrim: var(--color-hero-scrim);
  /* Question bubbles (Luffu style): frosted, see-through, thin warm border.
     Fill is 75% white so the bubble lifts off the linen section (no shadows allowed). */
  --bubble-fill: color-mix(in srgb, var(--color-white) 75%, transparent);
  --bubble-text: color-mix(in srgb, var(--text-primary) 80%, transparent);
  --bubble-border: var(--border-subtle);
  --bubble-blur: 10px;
  /* Waitlist dialog (Luffu style): near-black overlay, white card */
  --overlay: color-mix(in srgb, var(--color-deep-ink) 94%, transparent);
  --dialog-fill: var(--color-white);
  --dialog-width: 460px;
  --motion-fade: 300ms;
  /* Feature motion cards (Luffu "media stack" style) */
  --media-ratio: 4 / 5;
  /* Answer card (after Luffu's voice-logging video): warm diagonal light, dot waveform */
  --answer-light: color-mix(in srgb, var(--color-dusk) 75%, var(--color-deep-ink));
  --answer-dark: var(--color-deep-ink);
  --wave-tick: color-mix(in srgb, var(--color-white) 85%, transparent);
  --avatar-ring: color-mix(in srgb, var(--color-white) 70%, transparent);
  /* Keep card book */
  --book-cover: var(--color-deep-ink);
  --book-paper: var(--color-white);
  --book-rule-on-dark: color-mix(in srgb, var(--color-white) 25%, transparent);

  /* Type */
  --font-display: "EB Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --text-display-lg: clamp(36px, 4vw, 48px);
  --text-display-md: clamp(28px, 2.8vw, 40px); /* design-website.md display-md */
  --text-wordmark: clamp(56px, 9vw, 140px);
  --text-footer-mark: clamp(40px, 5vw, 64px);
  --text-brand: 24px;
  --text-body-lg: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --tracking-display-xl: -0.05em;
  --tracking-display-lg: -0.042em;
  --tracking-body-lg: -0.016em;
  --tracking-body: -0.02em;
  --tracking-small: -0.025em;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --section-y: 123px;
  --gutter: 24px;
  --content-max: 1200px;
  --page-max: 1440px;
  --nav-height: 70px;

  /* Radii */
  --radius-btn: 4px;
  --radius-bubble: 4px;
  --radius-card: 6px;
  --radius-nav: 8px;
  --radius-full: 9999px;

  /* Avatars */
  --avatar-size: 100px;
  --avatar-size-sm: 64px;
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
    --gutter: 16px;
    --avatar-size: 64px;
  }
}
