@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Nunito:wght@300;500;700&display=swap");

:root {
  --cream: #fff7f7;
  --rose: #f6c1c7;
  --peach: #ffd8c2;
  --coral: #f07b7b;
  --berry: #7a2f3b;
  --shadow: rgba(122, 47, 59, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top left, #fff4f4 0%, #fff 45%, #ffe9e3 100%);
  color: #3b2127;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 3.5rem 7vw 5rem;
}

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero__content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  margin: 0.75rem 0;
}

.eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--berry);
  font-weight: 700;
}

.subhead {
  font-size: 1.15rem;
  max-width: 36ch;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  color: #6b2f3b;
}

.cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--yes {
  background: linear-gradient(135deg, var(--coral), #f8a8a0);
  color: white;
  box-shadow: 0 12px 25px var(--shadow);
}

.btn--yes:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn--yes-active {
  background: linear-gradient(135deg, #ff8b8b, #ffb199);
  box-shadow: 0 16px 35px rgba(240, 123, 123, 0.35);
}

.btn--no {
  background: #fff;
  color: var(--berry);
  border: 2px dashed var(--rose);
  transition: left 0.35s ease, top 0.35s ease, transform 0.2s ease;
}

.hero__art {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.heart {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #ffb3b8, #ffd0c0);
  position: relative;
  transform: rotate(-45deg);
  border-radius: 30px;
  box-shadow: 0 24px 40px rgba(240, 123, 123, 0.25);
  animation: pulse 3.5s ease-in-out infinite;
}

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

.heart::before {
  top: -90px;
  left: 0;
}

.heart::after {
  top: 0;
  left: 90px;
}

.orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 2px dashed rgba(240, 123, 123, 0.4);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(240, 123, 123, 0.7);
}

.note {
  position: absolute;
  bottom: 10px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(122, 47, 59, 0.1);
  font-style: italic;
}

.timeline h2,
.letter h2,
.music h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.section__lead {
  color: #5a2b36;
  max-width: 60ch;
}

.timeline__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.moment {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(120px, 150px) 1fr;
  align-items: center;
  box-shadow: 0 18px 30px var(--shadow);
}

.moment__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #b85b6b;
  overflow: hidden;
  background: #fff5f6;
}

.moment__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

.placeholder {
  background: repeating-linear-gradient(
    135deg,
    rgba(248, 168, 160, 0.25) 0,
    rgba(248, 168, 160, 0.25) 12px,
    rgba(255, 255, 255, 0.9) 12px,
    rgba(255, 255, 255, 0.9) 24px
  );
  border: 2px dashed rgba(248, 168, 160, 0.6);
}

.coming-soon {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-2018 {
  object-fit: contain;
  background: #fff5f6;
  padding: 0.25rem;
}

.year-2022,
.year-2023,
.year-2024,
.year-2025 {
  object-position: center 20%;
}

.year-2022,
.year-2023,
.year-2025 {
  transform: translateY(-24%);
}

.year-2024 {
  transform: translateY(-6%);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(25, 10, 14, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
  padding: 2rem;
}

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

.lightbox img {
  max-width: min(90vw, 960px);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #3b2127;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.letter {
  background: linear-gradient(135deg, rgba(255, 235, 239, 0.8), rgba(255, 255, 255, 0.95));
  padding: 2.5rem;
  border-radius: 28px;
  box-shadow: 0 16px 35px rgba(240, 123, 123, 0.16);
}

.letter p {
  line-height: 1.7;
  max-width: 70ch;
}

.sign {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

.music audio {
  width: min(480px, 100%);
  margin-top: 1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(-45deg) scale(1);
  }
  50% {
    transform: rotate(-45deg) scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 2.5rem 6vw 4rem;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .moment {
    grid-template-columns: 1fr;
  }
}
