:root {
  --bg-1: #12080f;
  --bg-2: #1d0b17;
  --bg-3: #290f1f;
  --rose: #ff6f9f;
  --peach: #ffb38a;
  --champagne: #ffd9a8;
  --text: #fdf2f6;
  --muted: #f5dce6;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(50rem 35rem at 10% -10%, rgba(255, 132, 176, 0.22), transparent 65%),
    radial-gradient(40rem 28rem at 90% 5%, rgba(255, 177, 131, 0.18), transparent 70%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 40%, var(--bg-3));
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 50%),
    rgba(255, 210, 226, 0.15),
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.aurora-1 {
  width: 32rem;
  height: 32rem;
  left: -8rem;
  top: 15%;
  background: rgba(255, 110, 162, 0.35);
  animation: drift-a 14s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 26rem;
  height: 26rem;
  right: 2%;
  top: 6%;
  background: rgba(255, 195, 155, 0.3);
  animation: drift-b 16s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 28rem;
  height: 28rem;
  right: 22%;
  bottom: -9rem;
  background: rgba(216, 116, 255, 0.25);
  animation: drift-c 18s ease-in-out infinite alternate;
}

#scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.spark {
  --size: 14px;
  position: absolute;
  bottom: -10vh;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 154, 181, 0.85));
  box-shadow: 0 0 20px rgba(255, 178, 208, 0.65);
  opacity: 0.75;
  animation: rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.spark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero,
main,
footer {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding: 4rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.2rem, 4vw, 2.6rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
}

.hero-photo {
  margin: 0;
  width: min(100%, 30rem);
  justify-self: end;
  padding: 0.6rem;
}

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  aspect-ratio: 1080 / 1180;
  object-fit: cover;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.23);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3.1rem, 11vw, 8.2rem);
  line-height: 0.93;
  text-wrap: balance;
}

h1 span {
  background: linear-gradient(120deg, var(--rose), var(--champagne) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 50px rgba(255, 164, 198, 0.28);
}

.lead {
  max-width: 44rem;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  line-height: 1.75;
  color: var(--muted);
}

.cta {
  margin-top: 0.5rem;
  width: fit-content;
  text-decoration: none;
  color: #230d19;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd1a6, #ff8eba);
  box-shadow: 0 12px 26px rgba(255, 139, 180, 0.35);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(255, 139, 180, 0.45);
}

main {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

.glass {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1.35rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 1.4rem 3.8rem rgba(15, 4, 10, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#letter {
  position: relative;
  overflow: hidden;
}

#letter::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: -5rem;
  right: -3rem;
  background: radial-gradient(circle, rgba(255, 187, 145, 0.4), transparent 68%);
  filter: blur(2px);
}

#letter h2 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

#letter p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 72ch;
}

#letter p + p {
  margin-top: 1rem;
}

.moments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.moment-card {
  position: relative;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-height: 10.5rem;
}

.moment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 222, 196, 0.55), rgba(255, 145, 184, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.moment-card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.moment-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

footer {
  padding-bottom: 4.2rem;
}

footer p {
  font-size: 0.92rem;
  color: rgba(255, 235, 245, 0.85);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4rem, -3rem) scale(1.1);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-5rem, 3rem) scale(1.08);
  }
}

@keyframes drift-c {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(5rem, -4rem) scale(1.12);
  }
}

@keyframes rise {
  from {
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0;
  }
  20% {
    opacity: 0.72;
  }
  to {
    transform: translate3d(var(--drift), -120vh, 0) scale(1.15);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    justify-self: start;
    width: min(100%, 25rem);
  }
}
@media (max-width: 700px) {
  .hero,
  main,
  footer {
    width: min(100% - 1.5rem, 72rem);
  }

  .lead {
    line-height: 1.6;
  }

  .moment-card {
    min-height: 9.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body::after {
    display: none;
  }
}

/* iPhone/WebKit fallback: reduce glow washout and raise text contrast */
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    body {
      background:
        radial-gradient(36rem 26rem at 10% -10%, rgba(255, 132, 176, 0.14), transparent 65%),
        radial-gradient(30rem 22rem at 90% 5%, rgba(255, 177, 131, 0.12), transparent 70%),
        linear-gradient(145deg, #140a12, #1a0b16 42%, #210d1b);
    }

    body::before,
    body::after {
      display: none;
    }

    .ambient,
    #scene,
    .aurora {
      display: none;
    }

    .glass {
      background: rgba(24, 9, 18, 0.82);
      border-color: rgba(255, 255, 255, 0.18);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .moment-card {
      background: linear-gradient(155deg, rgba(30, 11, 23, 0.88), rgba(23, 8, 18, 0.84));
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .eyebrow {
      background: rgba(35, 13, 26, 0.72);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .lead,
    .eyebrow,
    #letter p,
    .moment-card p {
      color: rgba(255, 236, 245, 0.96);
    }

    #letter::before {
      opacity: 0.35;
    }
  }
}
