/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

/* System Lock / Unlock Scroll */
html.no-scroll, 
body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none;
}

/* ==========================================
   2. FULLSCREEN CONTAINER & CARD
   ========================================== */
.invitation-container {
  width: 100vw;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

.card {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, object-position 0.3s ease;
}

.video-section {
  background-color: #111111;
}

.video-section video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(216, 182, 92, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.video-play-button::before {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid #ffffff;
  content: "";
  transform: translateX(2px);
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-section.is-playing .video-play-button {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.video-play-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */
.font-handwriting {
  font-family: 'Caveat', cursive;
  color: #d8b65c;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85);
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-serif {
  font-family: Georgia, serif;
}

.txt-xs { font-size: clamp(0.9rem, 2vw, 1.2rem); line-height: 1.4; text-shadow: 1px 1px 6px rgba(0,0,0,0.8); }
.txt-sm { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.txt-md { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.txt-lg { font-size: clamp(2rem, 5vw, 3rem); }
.txt-xl { font-size: clamp(2.8rem, 7vw, 4.2rem); font-weight: 700; }

/* ==========================================
   4. COVER SECTION & BUTTON OPEN
   ========================================== */
.cover-section {
  z-index: 10;
  background-color: #000000;
}

.cover-section .cover-overlay {
  top: 0;
  bottom: 0;
  display: flex;
  width: min(100%, 680px);
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(56px, 11vh, 108px) 20px clamp(34px, 8vh, 74px);
  transform: translateX(-50%);
}

.cover-heading,
.cover-bottom { width: 100%; }

.cover-heading > p:first-of-type {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.1;
}

.cover-heading h1 { margin-bottom: 0; }

.cover-date {
  margin-top: 10px;
  font-size: clamp(1.15rem, 3.8vw, 1.5rem);
  letter-spacing: 1px;
  line-height: 1.2;
}

.cover-bottom {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: auto;
}

.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: #d8b65c;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-open-invitation:hover {
  background-color: #a8862c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ==========================================
   5. OVERLAY TEXT POSITIONS
   ========================================== */
.overlay-text {
  position: absolute;
  z-index: 2;
  text-align: center;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
}

.center-left { 
  top: 40%; 
  left: 3%; 
  transform: translateY(-50%); 
  text-align: left; 
}

.pos-top-left { top: 8%; left: 8%; transform: none; text-align: left; width: auto; }
.pos-top-right { top: 8%; right: 8%; left: auto; transform: none; text-align: right; width: auto; }

.pos-left-mid { 
  top: 45%; 
  left: 8%; 
  transform: none; 
  text-align: left; 
}

.pos-right-mid { 
  top: 25%; 
  right: 8%; 
  left: auto; 
  transform: none; 
  text-align: right; 
}

.pos-top-center { top: 10%; }
.pos-bottom-center { bottom: 8%; }
.pos-center { top: 50%; transform: translate(-50%, -50%); }

.gif-text-wrap {
  top: 50%;
  left: 50%;
  width: min(90%, 680px);
  max-width: 680px;
  padding: 0 20px;
  transform: translate(-50%, -50%);
  text-align: center;
}

#gif-text {
  display: block;
  width: min(100%, 540px);
  height: auto;
  max-height: 58vh;
  margin: 0 auto;
  object-fit: contain;
}

.quote-box {
  top: 16%;
  transform: translate(-50%, -50%);
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  width: min(94%, 840px);
  max-width: 840px;
}

.quote-box .quote-gif {
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-height: 58vh;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.quote-card-lift .image-wrapper > img {
  object-position: center 45%;
}

.quote-text {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.6;
  font-style: italic;
}

.quote-source {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-top: 12px;
  font-weight: bold;
}

.date-header { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: 2px; }
.venue-title { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; margin: 10px 0; }
.venue-location { font-size: clamp(2.1rem, 7vw, 2.8rem); line-height: 1.1; }
.venue-tagline {
  max-width: 32ch;
  margin: 4px auto 0;
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 5.4vw, 1.7rem);
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
  text-wrap: balance;
}

.btn-maps {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  background-color: #d8b65c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-maps:hover { background-color: #a8862c; }
.gift-desc {
  max-width: 450px;
  margin: 10px auto 0;
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.35rem, 4.6vw, 1.6rem);
  line-height: 1.4;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
}

.date-countdown-overlay {
  bottom: 6%;
  width: min(92%, 640px);
  padding: 16px 20px;
}

.countdown-title {
  margin: 0 0 10px;
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.wedding-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid rgba(116, 91, 23, 0.7);
  border-radius: 12px;
  background: rgba(216, 182, 92, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 5px 18px rgba(216, 182, 92, 0.7);
}

.countdown-unit {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.countdown-value {
  color: rgb(250, 248, 243);
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.countdown-label {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ==========================================
   6. DESKTOP ADJUSTMENTS (>= 769px)
   ========================================== */
@media screen and (min-width: 769px) {
  .cover-section .image-wrapper img {
    object-position: center 50%;
  }

  .invitation-container > #main-content .image-wrapper img {
    object-position: center 80%;
  }

  .invitation-container > section:nth-of-type(6) .image-wrapper img {
    object-position: center calc(50% + 5rem);
  }
}

/* ==========================================
   7. MOBILE ADJUSTMENTS (<= 768px)
   ========================================== */
@media screen and (max-width: 768px) {
  .cover-section .image-wrapper img {
    object-position: calc(50% - 1rem) center;
  }

  .center-left {
    top: 22%;
    left: 5%;
    transform: none;
  }

  .quote-card-lift .image-wrapper > img {
    object-position: center 78%;
  }

  .quote-box {
    top: 34%;
  }

  .pos-left-mid {
    top: 52%;
  }

  .pos-right-mid {
    top: 18%;
  }

}

/* ==========================================
   8. RSVP FORM & OVERLAY
   ========================================== */
.form-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-overlay-content { width: 100%; max-width: 500px; }
#rsvp .form-title {
  margin-bottom: 8px;
  color: #000000;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-shadow: none;
}

#rsvp .rsvp-description {
  margin-bottom: 12px;
  color: #000000;
  font-size: clamp(1.3rem, 4.5vw, 1.5rem);
  line-height: 1.3;
  text-align: center;
}

#rsvp .alert {
  color: #000000;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  line-height: 1.35;
}

#rsvp .form-label {
  color: #000000;
  font-size: clamp(1.15rem, 3.8vw, 1.3rem);
}

#rsvp .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.85);
  color: #000000;
  outline: none;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  line-height: 1.3;
}

#rsvp form p {
  color: #000000;
  font-size: clamp(1.3rem, 4.5vw, 1.5rem);
}

#rsvp .rsvp-submit {
  padding: 12px 18px;
  border-color: #d8b65c;
  border-radius: 14px;
  background-color: #d8b65c;
  color: #000000;
  font-size: clamp(1.35rem, 4.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
}

#rsvp .rsvp-submit:hover,
#rsvp .rsvp-submit:focus-visible {
  border-color: #a8862c;
  background-color: #a8862c;
  color: #000000;
}

/* ==========================================
  9. REVEAL & PARALLAX SECTIONS + TEXT ANIMATIONS
  ========================================== */
.parallax-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: inset(0 0 0 0);
}

.parallax-section .overlay-text {
  z-index: 2;
}

.parallax-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  z-index: -1;
}

.parallax-bg-6::before { background-image: url('image/12.webp'); }
.parallax-bg-7::before { background-image: url('image/10.webp'); }
.parallax-bg-8::before { background-image: url('image/8.webp'); }

/* ----- ANIMASI MASUK TEKS (ENTRANCE STAGGERED) ----- */

/* Base State: Sebelum Muncul */
.reveal .overlay-text p,
.reveal .overlay-text h1,
.reveal .overlay-text h2,
.reveal .overlay-text h3,
.reveal .overlay-text button,
.reveal .overlay-text a,
.reveal .story-item,
.reveal .gif-text-image,
.reveal .form-overlay-content > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active State: Saat Ter-scroll into View */
.reveal.active .overlay-text p,
.reveal.active .overlay-text h1,
.reveal.active .overlay-text h2,
.reveal.active .overlay-text h3,
.reveal.active .overlay-text button,
.reveal.active .overlay-text a,
.reveal.active .story-item,
.reveal.active .gif-text-image,
.reveal.active .form-overlay-content > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delay: Kemunculan Beruntun Bertahap (Sequence) */
.reveal.active .overlay-text > *:nth-child(1),
.reveal.active .story-main-title,
.reveal.active .form-overlay-content > *:nth-child(1) { transition-delay: 0.1s; }

.reveal.active .overlay-text > *:nth-child(2),
.reveal.active .story-item:nth-of-type(1),
.reveal.active .form-overlay-content > *:nth-child(2) { transition-delay: 0.25s; }

.reveal.active .overlay-text > *:nth-child(3),
.reveal.active .form-overlay-content > *:nth-child(3) { transition-delay: 0.4s; }

.reveal.active .overlay-text > *:nth-child(4),
.reveal.active .story-item:nth-of-type(2) { transition-delay: 0.55s; }

.reveal.active .overlay-text > *:nth-child(5) { transition-delay: 0.7s; }

.reveal.active .overlay-text > *:nth-child(6),
.reveal.active .story-item:nth-of-type(3) { transition-delay: 0.85s; }

/* Animation Khusus Section Bride & Groom (Satu dari Kiri, Satu dari Kanan) */
.reveal .groom-block {
  top: 7%;
  width: min(42%, 52vh);
  max-width: 600px;
  padding: 0;
  opacity: 0;
  transform: translateX(-35px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal .bride-block {
  top: 46%;
  width: min(42%, 52vh);
  max-width: 600px;
  left: auto;
  right: 8%;
  padding: 0;
  opacity: 0;
  transform: translateX(35px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.image-wrapper .groom-gif,
.image-wrapper .bride-gif {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .reveal .groom-block,
  .reveal .bride-block {
    width: min(84%, 104vh);
  }

  .reveal .groom-block {
    top: 4%;
  }

  .reveal .bride-block {
    top: 53%;
  }
}

@media screen and (max-width: 768px) and (max-height: 650px) {
  .reveal .groom-block,
  .reveal .bride-block {
    width: min(84%, 43vh);
  }

  .reveal .groom-block {
    top: 0;
  }

  .reveal .bride-block {
    top: 56%;
  }
}

.section3-couple .couple-gif-block {
  top: 46%;
  left: 50%;
  right: auto;
  z-index: 3;
  width: min(23.8%, 23.8vh);
  max-width: 238px;
  padding: 0;
  transform: translateX(-50%);
}

.image-wrapper .couple-gif {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.section3-couple .groom-block {
  top: 20%;
  width: min(34%, 35vh);
}

.section3-couple .bride-block {
  top: 55%;
  width: min(34%, 35vh);
}

@media screen and (max-width: 768px) {
  .section3-couple .couple-gif-block {
    width: min(50.3%, 23.8vh);
  }

  .section3-couple .groom-block {
    top: 18%;
    width: min(84%, 104vh);
  }

  .section3-couple .bride-block {
    top: 56%;
    width: min(84%, 104vh);
  }
}

@media screen and (max-width: 768px) and (max-height: 650px) {
  .section3-couple .couple-gif-block {
    width: min(39.7%, 15.9vh);
  }

  .section3-couple .groom-block {
    top: 12%;
    width: min(84%, 43vh);
  }

  .section3-couple .bride-block {
    top: 55%;
    width: min(84%, 43vh);
  }
}

.reveal.active .groom-block,
.reveal.active .bride-block {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   10. FLOATING MUSIC PLAYER
   ========================================== */
.music-player {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.music-player.show {
  opacity: 1;
  visibility: visible;
}

.music-player button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #d8b65c;
  backdrop-filter: blur(5px);
  border: 2px solid #f0e0a8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(216, 182, 92, 0.45);
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.music-player button:hover {
  transform: scale(1.1);
  background: #c9a64a;
  box-shadow: 0 6px 16px rgba(216, 182, 92, 0.55);
}

.music-player button .speaker-slash {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.music-player button.muted {
  background: #d8b65c;
  border-color: #f0e0a8;
}

.music-player button.muted .speaker-slash {
  opacity: 1;
}

.music-player button.playing {
  animation: spin 4s linear infinite;
}

.music-player button.playing .speaker-slash {
  opacity: 0;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================
   11. BUTTON SEND GIFT & MODAL ENVELOPE
   ========================================== */
.btn-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #d8b65c;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-gift:hover {
  background-color: #a8862c;
  transform: translateY(-2px);
}

.modal-gift-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px);
  z-index: 999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-gift-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-gift-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 30px 20px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-gift-overlay.active .modal-gift-content {
  transform: scale(1);
}

.btn-close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  background: #333333;
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-title {
  color: #222222;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.bank-card {
  background-color: #d8b65c;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bank-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-family: sans-serif;
  text-transform: uppercase;
}

.rekening-number {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.rekening-owner {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #333333;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-copy:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

/* ==========================================
   12. LOVE STORY SECTION (FIXED HEIGHT)
   ========================================== */
.story-section {
  height: 100vh !important;
  position: relative;
  overflow: hidden;
}

.story-section .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;

  /* Sembunyikan scrollbar internal */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.story-overlay::-webkit-scrollbar {
  display: none;
}

.story-content {
  width: 100%;
  max-width: 680px;
  text-align: center;
  color: #ffffff;
  margin: auto;
}

.story-main-title {
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0;
  margin-bottom: 35px;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.story-item {
  margin: 20px 0;
}

.story-sub-title {
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.story-text {
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.7;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cover-guest-message {
  width: min(90vw, 560px);
  margin: 0 auto;
  font-family: 'Caveat', cursive;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

.cover-guest-name {
  margin: 0 0 8px;
  color: #d8b65c;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  line-height: 1.2;
}

.cover-guest-name strong {
  display: block;
  color: #d8b65c;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.75rem, 5.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.cover-invitation-copy {
  margin: 0;
  color: #d8b65c;
  font-size: 0.75rem;
  line-height: 1.5;
}

.cover-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 0;
}

.cover-action {
  display: inline-flex;
  width: min(100%, 180px);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: #d8b65c;
  color: #ffffff;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cover-action:hover {
  transform: translateY(-1px);
}

.cover-action:hover { background: #a8862c; color: #ffffff; }

.cover-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .cover-section .cover-overlay {
    padding-top: clamp(42px, 8vh, 68px);
    padding-bottom: clamp(30px, 7vh, 58px);
  }

  .cover-guest-message { width: min(88vw, 420px); }
  .cover-invitation-copy { font-size: 0.7rem; }
  .date-countdown-overlay { bottom: 3%; padding: 12px 16px; }
  .countdown-title { font-size: 1.75rem; }
  .wedding-countdown { gap: 4px; padding: 10px 6px; }
  .countdown-value { font-size: 2.15rem; }
  .countdown-label { font-size: 0.58rem; }
}

.qr-modal-content {
  position: relative;
  display: flex;
  width: min(100%, 350px);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 24px 24px;
  border: 2px solid #a8862c;
  border-radius: 16px;
  background: #d8b65c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(0.88);
  transition: transform 0.3s ease;
}

.modal-gift-overlay.active .qr-modal-content { transform: scale(1); }

.qr-modal-title {
  margin: 0;
  color: #000000;
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.qr-modal-instruction {
  max-width: 280px;
  margin: 0 0 2px;
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.qr-modal-image {
  display: block;
  width: min(68vw, 220px);
  height: min(68vw, 220px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
}

.qr-modal-ticket-label {
  margin: 2px 0 0;
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  line-height: 1.3;
}

.qr-modal-ticket-code {
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.qr-modal-message {
  margin: 0;
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.guestbook-section {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #f6f2e8;
}

.guestbook-panel {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guestbook-cover {
  position: relative;
  width: 100%;
  height: clamp(220px, 36vh, 420px);
  overflow: hidden;
  background: #514b3e;
}

.guestbook-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 23, 18, 0.46), transparent 75%);
  content: "";
}

.guestbook-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.guestbook-cover h2 {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 8px;
  left: 18px;
  color: #d8b65c;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.guestbook-content {
  width: min(100%, 760px);
  min-height: calc(100vh - clamp(220px, 36vh, 420px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) clamp(16px, 4vw, 34px);
  color: #35352d;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.guestbook-form {
  display: grid;
  gap: 7px;
}

.guestbook-form textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid #d8d0b9;
  border-radius: 999px;
  background: #fffefa;
  color: #27271f;
  font: 0.82rem/1.45 'Plus Jakarta Sans', sans-serif;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder { color: #8e8a79; opacity: 1; }

.guestbook-form textarea {
  min-height: 42px;
  resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: #a8862c;
  outline: 2px solid rgba(216, 182, 92, 0.25);
}

.guestbook-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.guestbook-submit,
.guestbook-more {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #a1a552;
  color: #ffffff;
  font: 600 0.78rem/1.2 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.guestbook-submit:hover,
.guestbook-more:hover { background: #858947; transform: translateY(-1px); }

.guestbook-feedback {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.guestbook-feedback.success { color: #176b52; }
.guestbook-feedback.error { color: #a52b22; }

.guestbook-list { margin-top: 14px; }

.guestbook-comment {
  padding: 11px 2px 12px;
  border-bottom: 1px solid rgba(117, 106, 80, 0.2);
}

.guestbook-comment:nth-child(n + 4) { display: none; }
.guestbook-list.is-expanded .guestbook-comment:nth-child(n + 4) { display: block; }

.guestbook-comment h3 {
  margin: 0;
  color: #8d503f;
  font: 700 0.82rem/1.4 'Plus Jakarta Sans', sans-serif;
}

.guestbook-comment time {
  display: block;
  margin-top: 2px;
  color: #777564;
  font-size: 0.68rem;
}

.guestbook-comment p {
  margin: 6px 0 0;
  color: #45443a;
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.guestbook-more { margin-top: 12px; }

@media (max-width: 480px) {
  .guestbook-section,
  .guestbook-panel { min-height: 100vh; }
  .guestbook-cover { height: 32vh; min-height: 220px; }
  .guestbook-content { min-height: 68vh; padding: 20px 18px 28px; }
}

.guestbook-attribution,
.guestbook-token-required {
  margin: 0 0 8px;
  color: #665f50;
  font-size: 0.78rem;
  line-height: 1.5;
}

#guestbook,
#guestbook *,
#rsvp,
#rsvp * {
  font-family: 'Caveat', cursive;
}

.guestbook-attribution strong { color: #8d503f; }