/*
  Fadeaway splash — v0
  Plain CSS, no build step, no external fonts or assets. Mobile-first;
  layout widens gracefully via a couple of min-width breakpoints.
  Dark / typographic treatment per issue #1 — no stock imagery.
*/

:root {
  --bg: #08080a;
  --bg-alt: #101013;
  --fg: #f4f1ea;
  --fg-dim: #a8a49c;
  --accent: #cba15c; /* muted gold — restrained, not flashy */
  --accent-dim: #7a6640;
  --border: rgba(244, 241, 234, 0.12);
  --max-width: 640px;

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle radial glow behind the hero — the only "visual" on the page. */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      ellipse 60% 40% at 50% 18%,
      rgba(203, 161, 92, 0.16),
      transparent 60%
    ),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(203, 161, 92, 0.06), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */

.hero {
  padding: 22vh 0 12vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.wordmark {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--fg-dim);
  font-weight: 400;
  max-width: 30ch;
  margin-inline: auto;
}

/* ---------- About ---------- */

.about {
  padding: 6vh 0;
  border-top: 1px solid var(--border);
}

.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 1.1em;
}

.about p:last-child {
  margin-bottom: 0;
  color: var(--fg-dim);
}

/* ---------- Waitlist ---------- */

.waitlist {
  padding: 6vh 0 8vh;
  border-top: 1px solid var(--border);
  text-align: center;
}

.waitlist h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  margin: 0 0 10px;
}

.waitlist-sub {
  margin: 0 0 28px;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--fg);
  font-size: 1rem;
  font-family: var(--font-body);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--fg-dim);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-form button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #14110a;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.waitlist-form button:hover {
  opacity: 0.9;
}

.waitlist-form button:active {
  opacity: 0.75;
}

.waitlist-message {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.waitlist-message[data-state="error"] {
  color: #d98a6c;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6vh 24px 8vh;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.footer a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--accent);
}

.footer-fine {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .hero {
    padding: 24vh 0 14vh;
  }
}
