:root {
  --sky: #8ac7ff;
  --pink: #f4a4c3;
  --red: #e05a5a;
  --champagne: #f7efe3;
  --ink: #1f1a1d;
  --muted: #5a4d52;
  --white: #ffffff;
  --shadow: 0 25px 60px rgba(31, 26, 29, 0.15);
  --radius: 28px;
  --font: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #ffffff 0%, var(--champagne) 35%, #f7dce7 100%);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 120px 10vw 140px;
  text-align: center;
  background: linear-gradient(160deg, rgba(138, 199, 255, 0.35), rgba(244, 164, 195, 0.25));
}

.hero--confetti::before,
.hero--confetti::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(224, 90, 90, 0.7) 0 6px, transparent 7px),
    radial-gradient(circle, rgba(244, 164, 195, 0.85) 0 5px, transparent 6px),
    radial-gradient(circle, rgba(138, 199, 255, 0.8) 0 4px, transparent 5px);
  background-size: 140px 140px, 120px 120px, 110px 110px;
  background-position: 0 0, 40px 60px, 80px 20px;
  opacity: 0.35;
  pointer-events: none;
  animation: float-sparkles 16s linear infinite;
}

.hero--confetti::after {
  background-position: 50px 20px, 90px 90px, 20px 110px;
  opacity: 0.2;
  animation-duration: 22s;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(138, 199, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(244, 164, 195, 0.3), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(224, 90, 90, 0.2), transparent 55%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.ribbon {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 29, 0.15);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(31, 26, 29, 0.08);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin: 0 0 20px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
}

.hero__cta {
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn {
  font-family: var(--font);
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 29, 0.2);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 50px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(31, 26, 29, 0.2);
}

.cta-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.orb--blue {
  background: radial-gradient(circle, rgba(138, 199, 255, 0.8), rgba(138, 199, 255, 0));
  top: 10%;
  left: 8%;
}

.orb--pink {
  background: radial-gradient(circle, rgba(244, 164, 195, 0.85), rgba(244, 164, 195, 0));
  bottom: 12%;
  right: 10%;
  animation-delay: 1s;
}

.orb--red {
  background: radial-gradient(circle, rgba(224, 90, 90, 0.7), rgba(224, 90, 90, 0));
  top: 20%;
  right: 35%;
  animation-delay: 2s;
}

.hero__frame {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 86vw);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(247, 239, 227, 0.85));
  border-radius: 36px;
  box-shadow: var(--shadow);
  z-index: 2;
  padding: 28px;
}

.frame__inner {
  border: 1px solid rgba(31, 26, 29, 0.2);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.monogram {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(138, 199, 255, 0.5), rgba(244, 164, 195, 0.55));
  border: 1px solid rgba(31, 26, 29, 0.15);
}

.frame__text {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 120px 10vw 90px;
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section--accent {
  background: linear-gradient(120deg, rgba(138, 199, 255, 0.2), rgba(244, 164, 195, 0.2));
}

.section--gallery {
  background: #fff7ea;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  display: block;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(31, 26, 29, 0.2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.gallery--memory {
  max-width: 1140px;
  margin: 28px auto 0;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.gallery--memory .photo-card {
  height: 240px;
}

.photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 190px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.photo-card__image {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(138, 199, 255, 0.3), rgba(244, 164, 195, 0.45));
  display: grid;
  place-items: center;
}

.photo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: rgba(31, 26, 29, 0.52);
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 34px 80px rgba(31, 26, 29, 0.24);
  z-index: 2;
}

.photo-card:hover .photo-card__image img {
  transform: scale(1.08);
}

.photo-card:hover .photo-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 40px 10vw 60px;
  text-align: center;
  color: var(--muted);
}

.footer__note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.section__inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  width: 120px;
  height: 2px;
  margin: 36px auto 18px;
  background: linear-gradient(90deg, rgba(138, 199, 255, 0), rgba(138, 199, 255, 0.7), rgba(244, 164, 195, 0));
}

.signature {
  margin: 0;
  font-style: italic;
  color: var(--muted);
}

.section--message {
  background: linear-gradient(135deg, #d9d4ff, #7d7ff2);
  padding: 120px 10vw;
}

.message-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.message-card h2 {
  margin-top: 0;
}

.message-card__highlight {
  margin-top: 20px;
  font-style: italic;
  color: #5b4b8a;
}

.message-card__hearts {
  margin-top: 20px;
  color: #d46a92;
  letter-spacing: 4px;
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes float-sparkles {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .gallery--memory {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 90px 8vw 110px;
  }

  .section {
    padding: 100px 8vw 70px;
  }

  .hero__frame {
    bottom: -90px;
  }

  .gallery--memory {
    grid-template-columns: 1fr;
  }
}
