:root {
  --ink: #302522;
  --muted: #806e68;
  --cream: #fffaf4;
  --paper: #ffffff;
  --rose: #d98c94;
  --rose-deep: #a95361;
  --sage: #8d9a78;
  --gold: #c8a35b;
  --line: rgba(169, 83, 97, 0.32);
  --shadow: 0 22px 60px rgba(92, 60, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 140, 148, 0.22), transparent 28%),
    linear-gradient(135deg, #fff7f2 0%, #f8efe6 46%, #eef2e5 100%);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(44px, 9vw, 96px) clamp(18px, 4vw, 56px);
  border: 1px solid rgba(169, 83, 97, 0.28);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 163, 91, 0.4);
  pointer-events: none;
}

.hero::after {
  inset: 22px;
  border-color: rgba(169, 83, 97, 0.22);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dedication {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Parisienne", cursive;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 1;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.7;
}

.hero-photo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.4vw, 22px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-photo-strip img {
  width: clamp(86px, 18vw, 178px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 6px solid var(--paper);
  box-shadow: 0 12px 28px rgba(92, 60, 55, 0.16);
}

.hero-photo-strip img:nth-child(2) {
  width: clamp(110px, 23vw, 222px);
}

.timeline-section {
  padding: clamp(52px, 8vw, 92px) 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--line), rgba(141, 154, 120, 0.52), var(--line));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  min-height: 285px;
}

.timeline-item:nth-child(odd) .memory-card {
  grid-column: 1;
}

.timeline-item:nth-child(even) .memory-card {
  grid-column: 3;
}

.timeline-marker {
  grid-column: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.timeline-marker span {
  width: 20px;
  height: 20px;
  background: var(--rose-deep);
  border: 5px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(169, 83, 97, 0.24), 0 8px 20px rgba(169, 83, 97, 0.28);
}

.memory-card {
  display: grid;
  grid-template-columns: minmax(130px, 44%) 1fr;
  overflow: hidden;
  border: 1px solid rgba(169, 83, 97, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(92, 60, 55, 0.12);
}

.memory-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center 18%;
}

.memory-content {
  padding: clamp(20px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.memory-content h2,
.gallery h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.memory-content p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery {
  padding: clamp(34px, 7vw, 70px) clamp(18px, 4vw, 44px);
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(141, 154, 120, 0.24);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(92, 60, 55, 0.12);
}

.closing {
  padding: clamp(36px, 6vw, 62px) 16px 8px;
  text-align: center;
}

.closing p {
  max-width: 780px;
  margin: 0 auto;
  font-family: "Parisienne", cursive;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  line-height: 1.1;
  color: var(--rose-deep);
}

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

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

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 560px);
    padding-top: 10px;
  }

  .hero {
    min-height: 88vh;
    padding: 56px 22px 44px;
  }

  .hero::before {
    inset: 10px;
  }

  .hero::after {
    inset: 17px;
  }

  .hero-photo-strip {
    gap: 8px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline {
    gap: 28px;
  }

  .timeline-item {
    grid-template-columns: 36px 1fr;
    min-height: 0;
    align-items: start;
  }

  .timeline-item:nth-child(odd) .memory-card,
  .timeline-item:nth-child(even) .memory-card {
    grid-column: 2;
  }

  .timeline-marker {
    grid-column: 1;
    width: 36px;
    height: 36px;
    margin-top: 18px;
  }

  .timeline-marker span {
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

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

  .memory-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
    background: #f7eee8;
  }

  .memory-content {
    padding: 22px;
  }

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

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 14px);
  }

  .hero {
    padding-inline: 18px;
  }

  .gallery-grid {
    gap: 8px;
  }
}
