/**
 * prompt2site design tokens — «Signal on paper» v0.1
 * Source of truth: docs/design-system.md
 */

:root {
  /* Color */
  --bg: #f2f4f7;
  --bg-elevated: #ffffff;
  --bg-deep: #e4e9f0;
  --ink: #0b1220;
  --ink-muted: #5c6775;
  --ink-faint: #8b95a3;
  --line: #d5dbe4;
  --signal: #ff3b1f;
  --signal-ink: #ffffff;
  --mist: oklch(0.78 0.04 250 / 0.45);
  --ember: oklch(0.72 0.14 40 / 0.22);
  --focus: #0b1220;
  --danger: #c62828;
  --ok: #1b7f4e;

  /* Typography */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-brand: clamp(2.5rem, 6vw, 4.5rem);
  --text-h1: clamp(2rem, 4.5vw, 3.25rem);
  --text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --text-lead: 1.25rem;
  --text-body: 1.0625rem;
  --text-ui: 0.9375rem;
  --text-meta: 0.8125rem;

  --leading-display: 1.05;
  --leading-body: 1.55;
  --tracking-display: -0.02em;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --width-content: 72rem;
  --width-prompt: 40rem;
  --gutter: max(1.5rem, 4vw);
  --section-y: 6rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-prompt: 0 12px 40px oklch(0.2 0.02 250 / 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 100ms;
  --dur-ui: 150ms;
  --dur-enter: 500ms;
  --dur-atmosphere: 12s;
}

@media (max-width: 640px) {
  :root {
    --text-lead: 1.125rem;
    --text-body: 1rem;
    --section-y: 4rem;
  }
}
