@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --rose: #c4707a;
  --rose-light: #e8b4b8;
  --rose-dark: #8b3a42;
  --cream: #fdf6f0;
  --cream-dark: #f5e6d8;
  --blush: #f9e4e8;
  --gold: #c9a96e;
  --text: #3a2528;
  --text-light: #7a5a60;
  --text-muted: #b89a9e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Valentine Question Screen ────────────── */

.valentine-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valentine-screen.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.valentine-screen h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--rose-dark);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.valentine-screen h1 span {
  display: block;
  font-style: italic;
  color: var(--rose);
}

.btn-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 120px;
  width: 100%;
  max-width: 400px;
}

.btn-yes, .btn-no {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-yes {
  background: var(--rose-dark);
  color: white;
  padding: 1rem 3rem;
}

.btn-yes:hover {
  background: var(--rose);
  transform: scale(1.05);
}

.btn-no {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--rose-light);
  padding: 0.9rem 2rem;
  position: relative;
  transition: all 0.2s ease;
}

/* ── Post-Yes Message ─────────────────────── */

.valentine-message {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.valentine-message.show {
  opacity: 1;
  pointer-events: auto;
}

.valentine-message.hidden {
  opacity: 0;
  pointer-events: none;
}

.valentine-message h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.valentine-message p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose-dark);
  line-height: 1.4;
}

/* ── Main Site (hidden until yes) ─────────── */

.main-site {
  display: none;
}

.main-site.show {
  display: block;
}

/* ── Memory Lane Header ───────────────────── */

.memory-header {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.memory-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 400;
  color: var(--rose-dark);
  letter-spacing: 0.02em;
}

/* ── Timeline (continuous scroll) ─────────── */

.timeline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.section {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.section-label {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(196, 112, 122, 0.12);
}

.section-label h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--rose-dark);
}

.section-label .date-range {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.section.special .section-label h2 {
  color: var(--gold);
}

/* ── Photo Stream ─────────────────────────── */

.photo-stream {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
}

.photo-stream .photo-item {
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 1;
}

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

.photo-stream .photo-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ── Footer ────────────────────────────────── */

.footer {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.footer p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Lightbox ──────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 18, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

/* ── Desktop (side labels) ────────────────── */

@media (min-width: 768px) {
  .section {
    grid-template-columns: 200px 1fr;
  }

  .section-label {
    position: sticky;
    top: 0;
    height: fit-content;
    padding: 2rem 1.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(196, 112, 122, 0.12);
    align-self: start;
  }

  .section-label h2 {
    font-size: 1.3rem;
  }

  .photo-stream {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .photo-stream .photo-item {
    aspect-ratio: 1;
  }

  .photo-stream .photo-item.wide {
    grid-column: span 2;
    aspect-ratio: auto;
  }

  .photo-stream .photo-item img:hover {
    transform: scale(1.03);
  }

  .memory-header {
    padding: 5rem 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    grid-template-columns: 240px 1fr;
  }

  .photo-stream {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Fade-in ──────────────────────────────── */

.photo-item {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-item.visible {
  opacity: 1;
}
