/* ============================================================
   Big Bang Baby — landing page
   Matches the cover system: deep navy → near-black, "first light"
   warm glow, sparse starfield, high-contrast serif type.
   Awe + reassurance. Negative space is the premium signal.
   ============================================================ */

:root {
  --base:   #0A1A33;  /* deep navy — brand color */
  --edge:   #050D1F;  /* near-black navy — vignette/edges */
  --lift:   #12264A;  /* mid navy — radial lift */
  --ink:    #EDF1F8;  /* off-white — all secondary text */
  --white:  #FFFFFF;  /* reserved for the brightest type */
  --core:   #FDF6E3;  /* warm glow core */
  --gold:   #E9C77E;  /* the ONE accent — used sparingly */
  --gold-ink: #2A2009;
  --star:   #9DB4D6;  /* faint star blue */
  --muted:  #9FB0CC;  /* quiet captions/notes */
  --rule:   rgba(233, 199, 126, 0.45); /* gold hairline */

  --maxw: 680px;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.72;
  color: var(--ink);
  background-color: #04080f;
  /* near-black field with only a faint navy lift — much less blue, lots of
     dark negative space, like the reference glow plate */
  background-image: radial-gradient(120% 90% at 50% 40%, #0a1525 0%, #070e1c 46%, #04080f 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Rich, sparse starfield (faint blue-white with a few brighter points),
   echoing the cover. Generated tile, repeated; never overpowers text. */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image: url('/starfield.png');
  background-repeat: repeat;
  background-size: 1400px 1400px;
}

/* Fixed "first light" glow — stays put as the page scrolls, so every section
   sits in the same faint warm field as the cover. Kept subtle for legibility. */
.glow {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 135vw);
  height: min(900px, 100vh);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center,
    rgba(255, 226, 168, 0.18) 0%,
    rgba(233, 199, 126, 0.14) 17%,
    rgba(214, 168, 92, 0.06) 40%,
    transparent 66%);
  filter: blur(8px);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.4rem, 6vw, 2.2rem) 2rem;
}

/* ---------- Hero (two-column: cover left, epigraph right) ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.4rem, 6vw, 2.2rem) clamp(1.5rem, 4vw, 2.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__aside { text-align: left; }

/* gold hairline with a small star — above and below the epigraph */
.star-rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.star-rule::before, .star-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(233, 199, 126, 0.55));
}
.star-rule::after { background: linear-gradient(90deg, rgba(233, 199, 126, 0.55), transparent); }
.star-rule__s { color: var(--gold); font-size: 0.95rem; line-height: 1; }

.hero__headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.7vw, 3.15rem);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: 0.2px;
  margin: 0 0 clamp(0.9rem, 2vw, 1.2rem);
  max-width: 15ch;
}
.hero__subhead {
  font-family: var(--body);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
}

/* relocated epigraph — centered, framed by star rules, where it pays off */
.epigraph-block {
  max-width: 30rem;
  margin: clamp(2rem, 5vw, 3rem) auto;
  text-align: center;
}
.epigraph {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--white);
  margin: 0.9rem 0;
}
.epigraph--gold { color: var(--gold); }

/* featured statement — centered, framed by star rules, leads the body section */
.feature-quote {
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.feature-quote__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  line-height: 1.22;
  color: var(--white);
  margin: 1rem 0;
}

/* Floating 3D book (transparent, feathered into the dark field) */
.cover {
  position: relative;
  width: 100%;
  max-width: 410px;
  margin: 0;
}
.cover__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(253, 246, 227, 0.18) 0%,
    rgba(233, 199, 126, 0.14) 22%,
    rgba(233, 199, 126, 0.05) 45%,
    transparent 68%
  );
  filter: blur(6px);
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
  /* the render carries its own depth; a soft drop-shadow grounds the float */
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(233, 199, 126, 0.65);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(157, 180, 214, 0.25);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--white); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Featured blurb ---------- */
.featured {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
}
.featured__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  line-height: 1.4;
  color: var(--white);
  margin: 1.6rem auto;
  max-width: 32ch;
  quotes: none;
}
.rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto;
  background: var(--rule);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.2rem, 6vw, 3.4rem) 0;
  border-top: 1px solid rgba(157, 180, 214, 0.12);
}
.section__title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0.2px;
  margin: 0 0 1.3rem;
}
.section p { margin: 0 0 1.15rem; }
.section p:last-child { margin-bottom: 0; }
em { font-style: italic; color: var(--white); }

/* positioning line — quiet but emphatic, closes the body section */
.closer {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: var(--gold);
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
}

/* ---------- Pull quote ---------- */
.pull {
  text-align: center;
  padding: clamp(2.6rem, 8vw, 4.5rem) 0;
}
.pull__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 5.2vw, 2.25rem);
  line-height: 1.32;
  color: var(--white);
  margin: 0 auto;
  max-width: 26ch;
}
.pull__sub {
  font-family: var(--body);
  color: var(--ink);
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  margin: 1.4rem auto 0;
  max-width: 34ch;
}

/* ---------- Inside list ---------- */
.inside-list { list-style: none; margin: 0; padding: 0; }
.inside-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}
.inside-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(233, 199, 126, 0.45);
}
.inside-list li:last-child { margin-bottom: 0; }

/* ---------- About ---------- */
/* (now a plain section — its heading + copy share the same left edge as
   every other section, so the column reads as one clean alignment.) */

/* ---------- Signup ---------- */
.signup__line { color: var(--ink); margin-top: -0.4rem; }
.signup__form {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin: 1.4rem 0 0.8rem; max-width: 470px;
}
.signup__form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--body); font-size: 1.05rem;
  color: var(--white);
  background: rgba(157, 180, 214, 0.07);
  border: 1px solid rgba(157, 180, 214, 0.22);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
}
.signup__form input::placeholder { color: var(--muted); }
.signup__form input:focus {
  outline: none; border-color: var(--gold);
  background: rgba(157, 180, 214, 0.1);
}
.signup__form .btn { flex: 0 0 auto; }
.signup__note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.signup__msg { margin: 0.9rem 0 0; font-size: 1rem; min-height: 1.2em; }
.signup__msg--ok   { color: var(--gold); }
.signup__msg--info { color: var(--ink); }
.signup__msg--err  { color: #ff9a8a; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.4rem, 6vw, 2.2rem) 3rem;
  text-align: center;
  font-size: 0.95rem; color: var(--muted);
  border-top: 1px solid rgba(157, 180, 214, 0.12);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .dot { margin: 0 0.5rem; opacity: 0.5; }
.footer__site { color: var(--ink); }

/* ---------- Utilities ---------- */
.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;
}

/* honeypot field — kept out of sight and out of the tab order */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ---------- Mobile: stack the hero ---------- */
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 7vw, 2.6rem); }
  .hero .cover { max-width: 290px; margin: 0 auto; }
  .hero__aside { text-align: center; }
  .hero__headline { max-width: 20ch; margin-left: auto; margin-right: auto; }
  .hero__subhead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
