/* ===== Splash Screen ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 40%, #f8e1e7 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, #fce4ec 0%, transparent 50%),
    #fdf6f0;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  z-index: 1;
}

.splash-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: #c9485b;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 0 #fce4ec;
}

.splash-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn-yes {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.8rem 2.5rem;
  background: #c9485b;
  color: #fffaf5;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 72, 91, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(201, 72, 91, 0.5);
}

.btn-no {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  background: transparent;
  color: #6d4c41;
  border: 2px solid #e8a0ae;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
  user-select: none;
}

/* Floating splash hearts */
.splash-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-heart {
  position: absolute;
  color: #e8a0ae;
  opacity: 0.2;
  animation: splashFloat 4s ease-in-out infinite;
}

.splash-heart:nth-child(1) { font-size: 2.5rem; top: 10%; left: 8%; animation-delay: 0s; }
.splash-heart:nth-child(2) { font-size: 1.8rem; top: 20%; right: 10%; animation-delay: 0.8s; }
.splash-heart:nth-child(3) { font-size: 3rem; bottom: 15%; left: 15%; animation-delay: 1.5s; }
.splash-heart:nth-child(4) { font-size: 2rem; bottom: 25%; right: 12%; animation-delay: 2.2s; }
.splash-heart:nth-child(5) { font-size: 1.5rem; top: 50%; left: 3%; animation-delay: 3s; }
.splash-heart:nth-child(6) { font-size: 2.2rem; top: 40%; right: 5%; animation-delay: 0.5s; }

@keyframes splashFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rose: #c9485b;
  --rose-light: #e8a0ae;
  --rose-pale: #fce4ec;
  --blush: #f8e1e7;
  --cream: #fdf6f0;
  --kraft: #d4c5a9;
  --ink: #3e2723;
  --ink-light: #6d4c41;
  --white: #fffaf5;
  --tape: rgba(255, 235, 180, 0.65);
  --shadow: rgba(62, 39, 35, 0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Paper / Scrapbook Background ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, var(--blush) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, var(--rose-pale) 0%, transparent 50%),
    var(--cream);
}

.paper-texture {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--rose);
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--rose-pale);
}

.hero-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--ink-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.hero-divider {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: var(--rose-light);
}

.hero-divider span {
  color: var(--rose);
  font-size: 1.2rem;
}

/* ===== Floating Hearts ===== */
.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  color: var(--rose-light);
  opacity: 0.3;
  animation: floatHeart 6s ease-in-out infinite;
}

.heart-1 { font-size: 1.5rem; top: 15%; left: 10%; animation-delay: 0s; }
.heart-2 { font-size: 2rem; top: 25%; right: 12%; animation-delay: 1.2s; }
.heart-3 { font-size: 1rem; top: 60%; left: 5%; animation-delay: 2.5s; }
.heart-4 { font-size: 1.8rem; top: 50%; right: 8%; animation-delay: 3.8s; }
.heart-5 { font-size: 1.2rem; top: 80%; left: 15%; animation-delay: 0.8s; }

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* ===== Scrapbook Layout ===== */
.scrapbook {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.scrapbook-entry {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* ===== Photo Columns ===== */
.photo-col {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  background: var(--white);
  padding: 10px 10px 30px;
  box-shadow:
    2px 3px 8px var(--shadow),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  max-width: 280px;
  width: 100%;
  transition: transform 0.3s ease;
}

.photo-frame:hover {
  transform: scale(1.03) rotate(0deg) !important;
  z-index: 2;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--rose-pale);
}

/* ===== Photo Loading Heart ===== */
.photo-loader {
  position: absolute;
  inset: 10px 10px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-pale);
  z-index: 1;
}

.photo-loader .loader-heart {
  font-size: 2rem;
  color: var(--rose);
  animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

.photo-frame.loaded .photo-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Tilt variations for scrapbook feel */
.tilt-left {
  transform: rotate(-2.5deg);
}

.tilt-right {
  transform: rotate(2.5deg);
}

/* Washi tape effect */
.tape {
  position: absolute;
  width: 70px;
  height: 22px;
  background: var(--tape);
  border: 1px solid rgba(200, 180, 130, 0.3);
}

.tape-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.photo-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--ink-light);
  text-align: center;
  margin-top: 8px;
}

/* ===== Timeline Column ===== */
.timeline-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--rose-light), var(--rose-light), transparent);
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.timeline-dot {
  font-size: 1.2rem;
  color: var(--rose);
  background: var(--cream);
  padding: 4px;
  line-height: 1;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--rose-pale);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
  box-shadow: 1px 2px 6px var(--shadow);
  max-width: 240px;
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  border-top: 1px solid var(--rose-pale);
  border-left: 1px solid var(--rose-pale);
}

.timeline-date {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--rose);
  display: block;
  margin-bottom: 0.3rem;
}

.timeline-card h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.timeline-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-light);
}

/* ===== Scroll Fade-In ===== */
.scrapbook-entry {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.scrapbook-entry:nth-child(1) { animation-delay: 0.1s; }
.scrapbook-entry:nth-child(2) { animation-delay: 0.25s; }
.scrapbook-entry:nth-child(3) { animation-delay: 0.4s; }
.scrapbook-entry:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--rose);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .scrapbook-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-col {
    order: -1;
    min-width: unset;
  }

  .timeline-line {
    display: none;
  }

  .photo-frame {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }

  .photo-frame {
    max-width: 200px;
  }

  .timeline-card {
    padding: 1rem;
  }
}
