:root {
  --cream: #faf7f2;
  --white: #ffffff;
  --gold: #c9a96a;
  --gold-dark: #b08d4f;
  --ink: #3d3a34;
  --ink-soft: #7a7366;
  --blush: #f0e3d5;
  --shadow: 0 8px 30px rgba(61, 58, 52, 0.08);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.hidden {
  display: none;
}

/* ---------- Cover ---------- */

.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 169, 106, 0.25), transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, #f4ead9 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cover.fade-out {
  opacity: 0;
  visibility: hidden;
}

.cover-content {
  padding: 2rem;
  animation: fadeUp 1s ease both;
}

.cover-kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.cover-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.cover-names .amp {
  color: var(--gold);
  font-size: 0.6em;
  padding: 0 0.3em;
}

.cover-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: 5px;
  color: var(--ink-soft);
  margin: 1rem 0 2rem;
}

.btn-cover {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  padding: 0.9rem 2.6rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 169, 106, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 169, 106, 0.5);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Layout ---------- */

.page {
  animation: fadeUp 0.8s ease both;
}

section {
  padding: 4.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-top: 5rem;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.hero-names .amp {
  color: var(--gold);
  font-size: 0.6em;
  padding: 0 0.3em;
}

.hero-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

.hero-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-top: 1rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin-top: 1.8rem;
}

.divider .line {
  width: 70px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Countdown ---------- */

.countdown {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.cd-box {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 1.2rem 0.4rem;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.cd-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Events ---------- */

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 2.4rem 1.6rem;
  margin-bottom: 1.5rem;
}

.event-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}

.event-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.event-time {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 0.2rem 0 0.9rem;
}

.event-place {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.btn-maps {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: 0.55rem 1.8rem;
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-maps:hover {
  background: var(--gold);
  color: #fff;
}

.events-note {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- Gallery ---------- */

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 28, 24, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- RSVP ---------- */

.rsvp {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #e8dfd2;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
}

.btn-submit {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 50px;
  padding: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 106, 0.4);
}

.wishes {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 340px;
  overflow-y: auto;
}

.wish-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
}

.wish-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

.wish-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--blush);
  color: var(--ink-soft);
  border-radius: 50px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.4rem;
}

.wish-message {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Gift ---------- */

.gift-text {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 2rem 1.6rem;
  margin-bottom: 1.4rem;
}

.gift-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.gift-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.4rem 0;
}

.gift-name {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.btn-copy {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  background: transparent;
  border-radius: 50px;
  padding: 0.55rem 1.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-copy:hover {
  background: var(--gold);
  color: #fff;
}

.gift-qris {
  width: 220px;
  margin: 0 auto 0.4rem;
  border-radius: 10px;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, transparent, var(--blush));
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ink);
}

.footer-names .amp {
  color: var(--gold);
  font-size: 0.6em;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.footer-credit {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--gold-dark);
  margin-top: 1.2rem;
}

.footer-made {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  opacity: 0.75;
}

.footer-made .heart {
  color: var(--gold-dark);
}

/* ---------- Reveal on scroll ---------- */

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  section {
    padding: 3.2rem 1.1rem;
  }

  .cover-names {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .cover-date {
    font-size: 1rem;
    letter-spacing: 3px;
  }

  .btn-cover {
    padding: 0.8rem 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-names {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .cd-box {
    padding: 1rem 0.2rem;
    border-radius: 10px;
  }

  .cd-num {
    font-size: 1.7rem;
  }

  .cd-label {
    font-size: 0.65rem;
  }

  .event-card {
    padding: 1.8rem 1.2rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .gift-qris {
    width: 190px;
  }
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown-grid {
    gap: 1.2rem;
  }
}