/*
 * Puff Rate — beta landing site
 * Tokens mirror docs/identity/visual-identity.md (zinc neutrals + Ember accent).
 * This is a standalone static site (no Tailwind), so the documented zinc/Ember
 * hex values are inlined here as CSS custom properties.
 */

:root {
  /* Light mode only — lock the UA to light so device dark mode doesn't
     restyle scrollbars, form controls, or default colors. */
  color-scheme: light;

  /* Neutrals — light (zinc) */
  --page-bg: #f4f4f5;        /* zinc-100 */
  --surface: #e4e4e7;        /* zinc-200 — Smoke */
  --ash-soft: #d4d4d8;       /* zinc-300 */
  --ash: #a1a1aa;            /* zinc-400 */
  --text-secondary: #52525b; /* zinc-600 */
  --text-primary: #18181b;   /* zinc-900 */

  /* Ember — the one accent */
  --ember: #ce2a2a;
  --ember-warm: #a82222;     /* hover / pressed */
  --on-ember: #ffffff;

  /* Shape + space */
  --radius-soft: 6px;
  --radius-card: 10px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  /* iOS Safari: 100vh is the *tallest* viewport (toolbars hidden), so it
     overflows the visible area and pushes centered content below the fold.
     dvh tracks the dynamic viewport so centering stays true on mobile. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  background-color: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Shared column */
.stage {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}

/* Vertical group with tighter internal spacing than the stage */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Logo — inherits currentColor via the SVG's fill */
.logo {
  color: var(--text-primary);
  display: inline-flex;
}

.logo svg {
  height: 28px;
  width: auto;
  display: block;
}

/* Kicker / eyebrow */
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin: 0;
}

/* Headline */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.08;
  margin: 0;
  font-optical-sizing: auto;
}

h1 em {
  font-style: italic; /* the one warmth moment */
}

.lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 42ch;
}

.lead em {
  color: var(--text-primary);
  font-style: italic;
}

/* Primary CTA — the single Ember moment */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-soft);
  background-color: var(--ember);
  color: var(--on-ember);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 100ms ease-out;
}

.cta:hover,
.cta:focus-visible {
  background-color: var(--ember-warm);
}

.cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* Fine print under the CTA */
.fineprint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* The single italic warmth moment — a sign-off, set in Fraunces */
.signoff {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-secondary);
}

/* QR page card — always light so the code stays high-contrast/scannable */
.qr-card {
  background-color: #ffffff;
  border-radius: var(--radius-card);
  padding: var(--space-6);
  border: 1px solid var(--ash-soft);
  line-height: 0;
}

.qr-card img {
  display: block;
  width: 264px;
  height: 264px;
  max-width: 72vw;
  max-height: 72vw;
}

.qr-url {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* Quiet link back / forward between the two pages */
.muted-link {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--ash-soft);
  transition: color 100ms ease-out, border-color 100ms ease-out;
}

.muted-link:hover,
.muted-link:focus-visible {
  color: var(--text-primary);
  border-color: var(--ash);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
