/* style.css — Vesper Vega holding page (Phase 3, Part 1, Step 4).
   Hand-written, no framework, no build step. Brand doctrine (INTAKE):
   dusk gradient, a single bright star; the name bridges the genre. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f3eef7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  /* The dusk: night at the top of the sky, ember at the horizon. */
  background: linear-gradient(180deg,
              #070714 0%,
              #141234 34%,
              #33205c 58%,
              #6e3468 78%,
              #b56163 94%,
              #d99a72 100%);
  background-attachment: fixed;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── The single bright star ─────────────────────────────────────── */
.star {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  margin: 18vh auto 4.5rem;
  position: relative;
  box-shadow:
    0 0 6px 2px rgba(255, 255, 255, .95),
    0 0 22px 6px rgba(190, 205, 255, .55),
    0 0 60px 18px rgba(150, 170, 255, .25);
  animation: breathe 5.5s ease-in-out infinite;
}

/* Four soft rays, pure CSS — no image files on this page at all. */
.star::before,
.star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: linear-gradient(90deg,
              transparent, rgba(220, 228, 255, .8), transparent);
}
.star::before { width: 72px; height: 1px; }
.star::after  { width: 1px;  height: 72px;
  background: linear-gradient(180deg,
              transparent, rgba(220, 228, 255, .8), transparent); }

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
}

/* ── The name and the genre line ────────────────────────────────── */
h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               Georgia, serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.genre {
  margin-top: 1.1rem;
  font-size: clamp(.8rem, 2.6vw, .95rem);
  letter-spacing: .42em;
  text-indent: .42em;      /* balance the tracking on the last glyph */
  text-transform: uppercase;
  color: #cabde0;
}

/* Narrow phones (below the 375px baseline): the name IS the brand —
   never let it clip. Tighten the tracking and let it scale down a
   touch so VESPER VEGA always fits, edge to edge, with margin. Normal
   phones and up keep the full treatment above. */
@media (max-width: 400px) {
  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    letter-spacing: .04em;
  }
  .genre {
    letter-spacing: .28em;
    text-indent: .28em;
  }
}

.logline {
  margin-top: 2.6rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  color: #e4dcf0;
  max-width: 30rem;
}

/* ── Waitlist ───────────────────────────────────────────────────── */
.waitlist {
  margin-top: 4.5rem;
  width: 100%;
  max-width: 30rem;
}

.waitlist h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 4.4vw, 1.7rem);
  letter-spacing: .04em;
}

.waitlist p {
  margin-top: .8rem;
  font-size: .98rem;
  line-height: 1.55;
  color: #ded4ec;
}

/* The box the Substack embed will replace (see index.html comment). */
.embed-slot {
  margin-top: 1.6rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(243, 238, 247, .28);
  border-radius: 14px;
  background: rgba(10, 8, 26, .32);
  backdrop-filter: blur(2px);
}

.embed-slot p {
  margin: 0;
  color: #cabde0;
  letter-spacing: .06em;
}

/* ── Footer ─────────────────────────────────────────────────────── */
/* The footer sits on the brightest, warmest end of the dusk gradient,
   where dim light text would wash out. A soft dark band fades in under
   it (no hard edge) so the copyright line clears WCAG AA contrast
   (~5.8:1) while the page's light-on-dark voice is preserved. */
footer {
  width: 100%;
  padding: 2rem 0 1.8rem;
  font-size: .8rem;
  color: rgba(243, 238, 247, .9);
  background: linear-gradient(180deg, transparent, rgba(7, 7, 20, .6) 55%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
