:root {
  --bg: #fffaf8;
  --card: #ffffff;
  --ink: #2f2430;
  --muted: #6f606d;
  --accent: #e85d75;
  --accent-soft: #ffd5dd;
  --ring: rgba(232, 93, 117, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, #fff0f3, var(--bg) 42%);
  color: var(--ink);
  line-height: 1.5;
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}
.heart {
  position: absolute;
  font-size: 16px;
  opacity: 0;
  animation: float 2.8s ease-out forwards;
}
@keyframes float {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 24px 36px;
  text-align: center;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, serif;
  line-height: 1.1;
}
h1 {
  margin: 12px auto;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.subtitle {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 22px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary {
  background: white;
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent-soft) inset;
}

.story {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 40px;
}
.chapter {
  margin: 30px 0 56px;
}
.chapter-header {
  margin-bottom: 16px;
}
.chapter-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chapter h2 { margin: 8px 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.chapter p { margin: 0; color: var(--muted); max-width: 720px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(45, 36, 48, 0.08);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-2px); }
.media-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #f4eef2;
}
.media {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.media.portrait { object-position: center 34%; }
figcaption {
  padding: 10px 4px 4px;
}
.caption-title {
  font-weight: 700;
  margin: 0 0 3px;
}
.caption-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.caption-date {
  margin: 6px 0 0;
  color: #9b8c97;
  font-size: 0.8rem;
  font-weight: 600;
}
.caption-location {
  margin: 2px 0 0;
  color: #9b8c97;
  font-size: 0.8rem;
  font-weight: 600;
}

.love-note {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
  padding: 26px 24px;
  background: linear-gradient(140deg, #fff, #fff2f5);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(45, 36, 48, 0.09);
}
.signature {
  font-weight: 700;
  color: var(--accent);
}

.lightbox {
  width: min(92vw, 980px);
  border: 0;
  border-radius: 18px;
  padding: 16px;
}
.lightbox::backdrop {
  background: rgba(12, 8, 12, 0.75);
}
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox p { margin: 12px 4px 4px; color: var(--muted); }
.close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .media { height: 220px; }
}
