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

:root {
  --blush-1: #fff3f6;
  --blush-2: #ffe1ea;
  --blush-3: #ffb3c9;
  --rose: #e8607f;
  --rose-deep: #c8425f;
  --ink: #4a2532;
  --ink-soft: rgba(74, 37, 50, 0.7);
  --cream: #fffaf7;
  --serif: 'Playfair Display', serif;
  --sans: 'Quicksand', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(170deg, var(--blush-1), var(--blush-2) 60%, var(--blush-3) 130%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

/* ---------------- floating hearts background ---------------- */
.hearts-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  bottom: -10%;
  font-size: 1.3rem;
  opacity: 0.7;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.75; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)) rotate(360deg); opacity: 0; }
}

/* ---------------- gate ---------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, var(--blush-1), var(--blush-3) 140%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.gate-heart {
  font-size: 2.6rem;
  animation: pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(232, 96, 127, 0.35));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.gate-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.gate-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  color: var(--rose-deep);
  margin: 4px 0 18px;
  text-shadow: 0 4px 20px rgba(232, 96, 127, 0.25);
}

.gate-title span {
  color: var(--rose);
  font-style: normal;
}

.gate-btn {
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blush-3), var(--rose));
  box-shadow: 0 14px 30px rgba(232, 96, 127, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gate-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 34px rgba(232, 96, 127, 0.5);
}

/* ---------------- music toggle ---------------- */
.music-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(232, 96, 127, 0.25);
  transition: transform 0.2s ease;
}

.music-toggle:hover {
  transform: scale(1.08);
}

.music-toggle.muted {
  opacity: 0.55;
}

/* ---------------- main / reveal ---------------- */
main.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(74, 37, 50, 0.75) 0%, rgba(74, 37, 50, 0.25) 45%, rgba(74, 37, 50, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 24px 60px;
  max-width: 600px;
}

.hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 4rem);
  margin: 10px 0 6px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-title .amp {
  color: var(--blush-3);
  font-style: normal;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 6px;
}

.scroll-hint {
  margin-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.8;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------------- sections ---------------- */
.section-label {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  color: var(--rose-deep);
  text-align: center;
  margin-bottom: 24px;
}

.story {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: 90px 24px 40px;
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------------- gallery ---------------- */
.gallery {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

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

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 16px 34px rgba(232, 96, 127, 0.22);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 44px rgba(232, 96, 127, 0.32);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------------- note ---------------- */
.note {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.note-card {
  background: var(--cream);
  border-radius: 26px;
  padding: 40px 30px 34px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(232, 96, 127, 0.22);
}

.note-decor {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.note-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--rose-deep);
  margin-bottom: 16px;
}

.note-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.note-sign {
  margin-top: 20px;
  font-style: italic;
  color: var(--rose);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ---------------- footer ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ---------------- lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(74, 37, 50, 0.85);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---------------- responsive ---------------- */
@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 260px;
  }
  .hero {
    align-items: center;
  }
}
