/* frontend/styles/tokens.css — Vapor design tokens */

:root {
  /* Color */
  --ink: #0b0e14;         /* void — page background */
  --ink-raised: #10141c;  /* card background, one step up from void */
  --paper: #f5f3ee;       /* primary text — ash paper */
  --mist: #8b93a1;        /* muted text */
  --smoke: #4a5568;       /* borders, dividers */
  --ember: #e8622c;       /* the one warm accent — burn / expiry / danger only */
  --verdigris: #2e7d6b;   /* active / success / "still here" state */

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Scale */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: 3.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(232, 98, 44, 0.06), transparent),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(46, 125, 107, 0.05), transparent);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { color: var(--mist); margin: 0 0 var(--space-2); }

code, .mono { font-family: var(--font-mono); }

a { color: var(--paper); }
a:hover { color: var(--ember); }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
