:root {
  --bg: #fff9fb;
  --surface: #ffffff;
  --surface-soft: #fff6fa;
  --text: #3f2f3c;
  --muted: #826b7d;
  --primary: #ee8fb7;
  --accent: #f4d6e4;
  --cream: #fff4ea;
  --line: #efc7db;
  --shadow: 0 22px 48px rgba(184, 129, 161, 0.16);
  --radius-lg: 30px;
  --radius-md: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 227, 238, 0.95), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(255, 245, 231, 0.95), transparent 28%),
    linear-gradient(180deg, #fffdfd 0%, #fff9fb 42%, #fff7fa 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img,
video {
  width: 100%;
  display: block;
}

img {
  border-radius: inherit;
}

.page-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.page-glow-top {
  top: -120px;
  right: -120px;
  background: #f7d3e2;
}

.page-glow-bottom {
  bottom: -100px;
  left: -120px;
  background: #ffe7d7;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.45rem);
  line-height: 1.12;
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  line-height: 1.25;
}

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

.hero {
  padding-top: 36px;
}

.hero-wrap,
.invite-wrap,
.memory-film-wrap,
.family-note-wrap {
  display: grid;
  gap: 24px;
}

.hero-text,
.hero-image,
.intro-content,
.moment-card,
.motion-memory,
.memory-film-wrap,
.gallery-card,
.invite-card,
.invite-image,
.family-note-wrap {
  border-radius: var(--radius-lg);
}

.hero-text {
  background: linear-gradient(145deg, rgba(255, 248, 251, 0.98), rgba(255, 241, 247, 0.98));
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-subtitle {
  margin-top: 10px;
  font-weight: 600;
  color: #6f5268;
}

.hero-story {
  margin-top: 14px;
  max-width: 36rem;
}

.hero-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  background: #ffffff;
  border: 1px solid #f1d6e6;
  border-radius: 999px;
  padding: 10px 14px;
  width: fit-content;
  color: #6f5268;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary), #f2a5cc);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(238, 143, 183, 0.34);
}

.hero-image {
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(36%, 180px);
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 250, 252, 0.88);
  box-shadow: 0 14px 34px rgba(109, 76, 93, 0.22);
  backdrop-filter: blur(12px);
}

.intro-shell {
  display: block;
}

.intro-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.98));
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.milestone-note {
  margin-top: 8px;
  background: linear-gradient(145deg, #fff8ec, #fff6fa);
  border: 1px solid #f2e1eb;
  border-radius: var(--radius-md);
  padding: 18px;
}

.milestone-note h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.milestone-note ul {
  margin: 0;
  padding-left: 18px;
  color: #71586a;
}

.moments {
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.94) 0%, rgba(255, 242, 247, 0.98) 100%);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-subtitle {
  font-size: 1rem;
  color: #8f7284;
}

.moments-grid {
  display: grid;
  gap: 18px;
}

.moment-card,
.motion-memory {
  overflow: hidden;
  border: 1px solid #f1d8e7;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 248, 0.98));
  box-shadow: var(--shadow);
}

.moment-copy {
  padding: 16px 16px 18px;
}

.moment-copy h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.moment-copy p {
  margin-top: 8px;
  font-size: 0.95rem;
}

.motion-memory {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.motion-memory h3,
.memory-film-copy h2 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.3;
}

.motion-memory p,
.memory-film-copy p {
  margin-top: 8px;
}

.motion-frame,
.memory-film-frame {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(184, 129, 161, 0.16);
}

.motion-frame video,
.memory-film-frame video {
  background: #000;
  border-radius: 24px;
}

.memory-film {
  padding-top: 22px;
}

.memory-film-wrap {
  background: linear-gradient(135deg, rgba(255, 246, 250, 0.98), rgba(255, 251, 246, 0.98));
  border: 1px solid #f1dce7;
  padding: 24px;
  box-shadow: var(--shadow);
}

.gallery {
  background: linear-gradient(180deg, rgba(255, 253, 253, 0.98) 0%, rgba(255, 247, 251, 1) 100%);
  padding-top: 94px;
  padding-bottom: 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.gallery-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #f0dae6;
  box-shadow: 0 10px 28px rgba(198, 151, 177, 0.18);
  overflow: hidden;
}

.gallery-card-featured {
  box-shadow: 0 18px 34px rgba(184, 129, 161, 0.2);
}

.gallery-item {
  border: none;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.image-wrapper-hero {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fff8fb, #fff1f5);
}

.image-wrapper-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fffafb, #fff3f7);
  border-radius: 18px;
}

.image-wrapper-moment {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fff9fb, #fff3f8);
}

.image-wrapper-gallery {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fffafc, #fff2f7);
}

.image-wrapper-invite {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fff9fb, #fff2f7);
}

.image-wrapper-family {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fff9fb, #fff4ea);
}

.gallery-card:hover .image-wrapper img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.gallery-card figcaption {
  padding: 10px 12px 12px;
  color: #7b6073;
  font-size: 0.9rem;
}

.invite-card {
  background: linear-gradient(145deg, rgba(255, 244, 248, 0.98), rgba(255, 253, 253, 0.98));
  padding: 24px;
  border: 1px solid #f6deeb;
  box-shadow: var(--shadow);
}

.invite-card p {
  margin-top: 10px;
}

.invite-info {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.invite-info li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0dae6;
  color: #654e5f;
}

.invite-info span {
  font-weight: 700;
}

.invite-image {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.family-note {
  padding-top: 22px;
}

.family-note-wrap {
  overflow: hidden;
  gap: 0;
  background: linear-gradient(135deg, rgba(255, 247, 250, 0.98), rgba(255, 252, 247, 0.98));
  box-shadow: var(--shadow);
}

.family-note-copy {
  padding: 26px 22px;
}

.family-note-copy p + p {
  margin-top: 10px;
}

.footer {
  padding: 20px 14px 36px;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: #8a7082;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(40, 27, 37, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(900px, 95vw);
  max-height: 80vh;
  border-radius: 20px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 10px;
  color: #f8e8f1;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  font-size: 1.7rem;
  color: #5f4a5b;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@media (min-width: 680px) {
  .moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .section {
    padding: 82px 0;
  }

  .hero-wrap,
  .invite-wrap,
  .memory-film-wrap,
  .family-note-wrap {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }

  .hero-badge {
    right: 24px;
    bottom: 24px;
  }
}

@media (min-width: 1080px) {
  .moments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-card-featured {
    transform: translateY(-6px);
  }
}
