:root {
  --bg-1: #2f0d17;
  --bg-2: #4f1530;
  --bg-3: #f4c7bf;
  --surface: rgba(255, 248, 245, 0.74);
  --surface-strong: rgba(255, 250, 248, 0.9);
  --text: #35131d;
  --text-soft: #6d4350;
  --accent: #b63b5f;
  --accent-deep: #8a1d42;
  --gold: #dbac62;
  --shadow: 0 24px 80px rgba(28, 7, 15, 0.22);
  --border: rgba(124, 31, 61, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 214, 221, 0.35), transparent 30%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, #a33750 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

body::before {
  top: -8rem;
  right: -6rem;
  background: rgba(255, 213, 158, 0.38);
}

body::after {
  bottom: -10rem;
  left: -5rem;
  background: rgba(255, 187, 209, 0.3);
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 85%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero {
  padding: 56px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.eyebrow,
.section-tag {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  max-width: 11ch;
  margin: 0 auto 20px;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead,
.card p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.lead {
  max-width: 700px;
  margin: 0 auto 28px;
}

.primary-button,
.secondary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #d15479 100%);
  color: #fff6f8;
  box-shadow: 0 14px 28px rgba(138, 29, 66, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  border: 1px solid rgba(138, 29, 66, 0.18);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.8;
  cursor: default;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.story-grid .card,
.forgiveness,
.celebration-card {
  padding: 34px;
}

.photo-card {
  grid-column: 1 / -1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 14px;
}

.photo-frame {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(182, 59, 95, 0.18);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.photo-frame figcaption {
  padding-top: 12px;
  text-align: center;
  color: var(--accent-deep);
  font-weight: 700;
}

.photo-note {
  margin-bottom: 0;
}

.forgiveness {
  margin-top: 24px;
  text-align: center;
}

.button-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 120px;
  margin-top: 24px;
}

#noButton {
  position: relative;
}

.celebration {
  margin-top: 24px;
}

.celebration-card {
  text-align: center;
  background:
    linear-gradient(180deg, var(--surface-strong), rgba(255, 244, 240, 0.88)),
    radial-gradient(circle at top, rgba(255, 223, 190, 0.45), transparent 40%);
}

.signature {
  margin-top: 22px;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  bottom: -10%;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(255, 199, 214, 0.9), rgba(255, 235, 240, 0.5));
  transform: rotate(45deg);
  opacity: 0.5;
  animation: floatUp linear infinite;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before {
  top: -50%;
  left: 0;
}

.floating-hearts span::after {
  top: 0;
  left: -50%;
}

.floating-hearts span:nth-child(1) {
  left: 10%;
  animation-duration: 16s;
  animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
  left: 25%;
  width: 12px;
  height: 12px;
  animation-duration: 12s;
  animation-delay: 3s;
}

.floating-hearts span:nth-child(3) {
  left: 42%;
  animation-duration: 18s;
  animation-delay: 6s;
}

.floating-hearts span:nth-child(4) {
  left: 60%;
  width: 22px;
  height: 22px;
  animation-duration: 14s;
  animation-delay: 1s;
}

.floating-hearts span:nth-child(5) {
  left: 76%;
  animation-duration: 17s;
  animation-delay: 5s;
}

.floating-hearts span:nth-child(6) {
  left: 90%;
  width: 14px;
  height: 14px;
  animation-duration: 11s;
  animation-delay: 2s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.hidden {
  display: none;
}

.burst-heart {
  position: fixed;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ff89a8, #ffd2dd);
  transform: rotate(45deg);
  pointer-events: none;
  animation: burst 1200ms ease-out forwards;
  z-index: 20;
}

.burst-heart::before,
.burst-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.burst-heart::before {
  top: -50%;
  left: 0;
}

.burst-heart::after {
  left: -50%;
  top: 0;
}

@keyframes floatUp {
  from {
    transform: translateY(0) rotate(45deg) scale(0.8);
    opacity: 0;
  }

  15% {
    opacity: 0.55;
  }

  to {
    transform: translateY(-120vh) rotate(45deg) scale(1.2);
    opacity: 0;
  }
}

@keyframes burst {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(45deg) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(var(--x, 0), var(--y, -160px), 0) rotate(45deg) scale(0.3);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .hero,
  .story-grid .card,
  .forgiveness,
  .celebration-card {
    padding: 24px;
  }

  .story-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  h2 {
    line-height: 1.02;
  }

  .lead,
  .card p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .button-row {
    flex-direction: column;
    min-height: 140px;
    gap: 12px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 280px;
  }

  #noButton {
    position: relative;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 16px);
    padding-top: 12px;
  }

  .hero,
  .story-grid .card,
  .forgiveness,
  .celebration-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .eyebrow,
  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .photo-frame {
    padding: 10px;
  }
}
