/* Birth, Baby! — holding page, second take: "the 3am page".
   The page opens in deep, calm night — the app's designed dark palette —
   and the scroll itself is a sunrise: night sky → luminous wave horizon
   → dawn-lit features → daylight footer. A breathing moon keeps labor-
   breath time; one rose wave threads through the night. Rose stays
   reserved: punctuation, one swell, nothing else. */

:root {
  /* night (mobile dark tokens) */
  --night:        #0B1826;
  --night-deep:   #0A1522;
  --night-raise:  #14263A;
  --moonlight:    #DCE9F7;
  --moon-soft:    #8FAAC7;
  --blue-bright:  #8FB4D4;
  --rose-night:   #D98CA6;
  /* day (light tokens) */
  --ink:          #0C447C;
  --ink-soft:     #45688E;
  --blue:         #77A2C6;
  --surface:      #E6F1FB;
  --rose:         #C76F8E;
  --paper:        #FBFDFF;

  --breath-cycle: 9s; /* ~ slow labor breathing */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

::selection { background: var(--rose); color: #FFF6F9; }

/* ── Night ──────────────────────────────────────────────────────── */

.night {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--night-deep) 0%,
    var(--night) 55%,
    var(--night-raise) 100%
  );
  color: var(--moonlight);
}

/* Starfield: two tiled layers of hand-placed dots, breathing slowly
   out of phase so the sky shimmers rather than blinks. */
.sky,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky {
  background-image:
    radial-gradient(1.2px 1.2px at 22% 18%, rgba(220,233,247,0.9), transparent 100%),
    radial-gradient(1px 1px at 64% 9%,  rgba(220,233,247,0.7), transparent 100%),
    radial-gradient(1.4px 1.4px at 83% 31%, rgba(220,233,247,0.8), transparent 100%),
    radial-gradient(1px 1px at 41% 42%, rgba(220,233,247,0.5), transparent 100%),
    radial-gradient(1.1px 1.1px at 9% 57%,  rgba(220,233,247,0.6), transparent 100%);
  background-size: 760px 540px;
  animation: shimmer 14s ease-in-out infinite;
}

.sky::after {
  background-image:
    radial-gradient(1px 1px at 12% 28%, rgba(143,180,212,0.8), transparent 100%),
    radial-gradient(1.3px 1.3px at 55% 21%, rgba(143,180,212,0.6), transparent 100%),
    radial-gradient(1px 1px at 76% 55%, rgba(143,180,212,0.7), transparent 100%),
    radial-gradient(1.2px 1.2px at 33% 67%, rgba(143,180,212,0.5), transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(220,233,247,0.6), transparent 100%);
  background-size: 520px 420px;
  animation: shimmer 14s ease-in-out -7s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* The moon: upper right, breathing on labor time. */
.moon {
  position: absolute;
  top: clamp(2.5rem, 8vh, 5rem);
  right: clamp(-4rem, 6vw, 9rem);
  width: clamp(16rem, 34vw, 26rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%,
    rgba(232, 241, 250, 0.5) 0%,
    rgba(220, 233, 247, 0.34) 22%,
    rgba(143, 180, 212, 0.16) 44%,
    rgba(143, 180, 212, 0.05) 62%,
    transparent 74%);
  filter: blur(2px);
  animation: breathe var(--breath-cycle) ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  40%      { transform: scale(1.06); opacity: 1; }
  60%      { transform: scale(1.06); opacity: 1; }
}

/* Asymmetric editorial hero: text rests on the left, under the moon. */
.hero {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(6rem, 18vh, 11rem) 1.75rem clamp(4rem, 10vh, 6.5rem);
}

.eyebrow {
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 2rem;
}

h1 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 6.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--moonlight);
  margin-bottom: 1.75rem;
}

.rose { color: var(--rose-night); }

.tagline {
  font-style: italic;
  font-size: clamp(1.3125rem, 3vw, 1.75rem);
  letter-spacing: 0.01em;
  color: var(--moon-soft);
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 33rem;
  color: var(--moon-soft);
  margin-bottom: 2.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--moonlight);
  background: rgba(20, 38, 58, 0.55);
  border: 1px solid rgba(143, 180, 212, 0.4);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 0 28px rgba(143, 180, 212, 0.12);
}

/* One calm arrival, then stillness. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.2s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.38s; }
.d3 { animation-delay: 0.6s; }
.d4 { animation-delay: 0.85s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── First light: the horizon where night becomes morning ─────── */

.horizon {
  position: relative;
  height: clamp(13rem, 30vh, 19rem);
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--night-raise) 0%,
    #31537A 38%,
    var(--blue) 68%,
    #BBD7EE 88%,
    var(--surface) 100%
  );
}

/* dawn glow cresting at the waterline */
.firstlight {
  position: absolute;
  left: 50%;
  bottom: -28%;
  width: min(60rem, 130vw);
  aspect-ratio: 2.2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255, 246, 240, 0.55) 0%,
    rgba(217, 140, 166, 0.18) 38%,
    transparent 68%);
}

/* luminous swells: stroked waves drifting at open-water pace */
.swell {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
}

.swell path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.swell-far  { animation: drift 85s linear infinite; }
.swell-far  path { stroke: rgba(220, 233, 247, 0.4); }

.swell-rose { animation: drift 60s linear infinite reverse; }
.swell-rose path { stroke: rgba(217, 140, 166, 0.55); }

.swell-near { animation: drift 42s linear infinite; }
.swell-near path { stroke: rgba(251, 253, 255, 0.75); stroke-width: 3; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Dawn ───────────────────────────────────────────────────────── */

.dawn {
  background: linear-gradient(to bottom, var(--surface) 0%, var(--paper) 100%);
  padding: clamp(3.5rem, 9vh, 5.5rem) 1.75rem 4.5rem;
}

.kicker {
  max-width: 61rem;
  margin: 0 auto 2.75rem;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.whispers {
  max-width: 61rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
}

.whisper {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 162, 198, 0.28);
  border-radius: 1.25rem;
  padding: 1.75rem 1.625rem 1.875rem;
  box-shadow: 0 14px 36px rgba(12, 68, 124, 0.06);
}

/* gentle stagger: each card floats at a slightly different altitude */
@media (min-width: 48rem) {
  .whisper:nth-child(2) { transform: translateY(1.25rem); }
  .whisper:nth-child(3) { transform: translateY(2.5rem); }
}

.whisper h2 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-size: 1.375rem;
  margin-bottom: 0.65rem;
}

.whisper p {
  color: var(--ink-soft);
  font-size: 0.96875rem;
}

/* ── Practices ──────────────────────────────────────────────────── */

.practice {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.75rem clamp(3.5rem, 9vh, 5.5rem);
  text-align: center;
}

.practice h2 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  margin-bottom: 0.875rem;
}

.practice p { color: var(--ink-soft); }

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 0 1.75rem 2.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

footer .fine {
  margin-top: 0.4rem;
  font-size: 0.78125rem;
  opacity: 0.75;
}

/* ── Calm for those who ask for it ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .sky, .sky::after, .moon,
  .swell-far, .swell-rose, .swell-near { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
