/* General */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #fbfbf9;
  color: #2e2e2e;
  line-height: 1.8;
}

/* Envelope Cover */
#envelopeCover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fef9f2, #fbeed4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 1s ease;
}

.envelope-container {
  position: relative;
  width: 250px;
  max-width: 50vw;
  perspective: 600px;
}

.envelope-back,
.envelope-flap {
  width: 100%;
  display: block;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top center;
  transition: transform 1s ease;
}

.swipe-text {
  margin-top: 24px;
  font-size: 1rem;
  color: #6b5416;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
section,
footer {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
  text-align: center;
}

/* Hero, Countdown, Photos, RSVP, Footer - same as before */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background: radial-gradient(circle at top, #fff6dc, #fbfbf9);
}
.tag {
  background: linear-gradient(135deg, #ead9a8, #f3e7c5);
  color: #6b5416;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  display: inline-block;
}
h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.subtitle {
  font-size: 1.15rem;
  color: #6f6f6f;
}
.countdown-label {
  font-size: 0.9rem;
  color: #8a8a8a;
  margin-bottom: 10px;
}
.countdown-timer {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #c9a84d;
}
.photos h2,
.details h2,
.rsvp h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 24px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    inset 0 0 0 6px #fff;
}
.details p {
  font-size: 1rem;
  margin: 8px 0;
}
.rsvp input,
.rsvp textarea {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a84d, #e3c56a);
  color: white;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 12px 25px rgba(201, 168, 77, 0.35);
  border: none;
  cursor: pointer;
}
footer {
  font-size: 0.95rem;
  color: #888;
  padding-bottom: 80px;
}

/* Fade-in */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}
