:root {
  --accent: #ffffff;
  --secondary: #d9d9d9;
  --primary: #646464;
  --neutral: #2b2b2b;
  --accent-rgb: 241, 255, 233;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--accent);
  color: var(--neutral);
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  /* --demo-bar-height: 74px; */
  --demo-bar-height: 0px;
  padding-top: var(--demo-bar-height);
}

section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
  font-family: "Vidaloka", serif;
  line-height: 1.05;
  margin: 0;
}

#cover .cover-title,
#couple-groom h2,
#couple-bride h2,
#countdown .countdown-title,
#rundown h2,
#informasi-acara h2,
#acara-utama h2,
#amplop-digital h2,
#story h2,
#gallery h2,
#rsvp .rsvp-title,
#rundown .rundown-list h3,
#story .story-text h3 {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.32),
    0 15px 20px rgba(0, 0, 0, 0.2);
}

.vintage-section {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.widget.fixed-top[data-feature="demo_mode"] {
  z-index: 1001;
  pointer-events: none;
  padding: 0.5rem 0.65rem 0;
  width: min(100%, var(--desktop-canvas-width));
  margin-inline: auto;
}

.widget.fixed-top[data-feature="demo_mode"] .widget-pesan {
  pointer-events: auto;
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: 52px;
  border-radius: 999px;
  background: var(--primary);
  padding: 0.45rem 0.55rem;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back {
  display: flex;
  justify-content: center;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.14);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back .bi {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.widget.fixed-top[data-feature="demo_mode"] .katalog h6 {
  margin: 0;
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan {
  min-height: 36px;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--neutral);
  color: var(--secondary);
  transition: filter 0.2s ease;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan:hover {
  filter: brightness(0.96);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan .bi {
  font-size: 1rem;
  line-height: 1;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan h6 {
  margin: 0;
  color: inherit;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.decor-frame::before,
.decor-frame::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.decor-frame::before {
  top: 0;
  height: var(--decor-top-h);
  z-index: var(--decor-z-index);
  background: var(--decor-top-bg);
}

.decor-frame::after {
  bottom: 0;
  height: var(--decor-bottom-h);
  z-index: var(--decor-z-index);
  background: var(--decor-bottom-bg);
}

.panel {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: 1.25rem 1rem;
  border: 2px solid rgba(133, 72, 54, 0.22);
  border-radius: 24px;
  background: rgba(var(--accent-rgb), 0.82);
  backdrop-filter: blur(1px);
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(133, 72, 54, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#cover {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  background: url("./assets/bg-cover.webp") center/cover no-repeat;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#cover.vintage-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  background-repeat: no-repeat, no-repeat;
  background-position:
    center top,
    center bottom;
  background-size:
    100% 100%,
    100% 100%;
}

.cover-content {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(0.9rem, 2.4vh, 1.25rem);
  padding: clamp(2.5rem, 6vh, 4.2rem) 1.2rem
    max(clamp(2rem, 5vh, 3rem), calc(env(safe-area-inset-bottom) + 1rem));
}

.cover-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.45rem, 1.6vh, 0.8rem);
}

.cover-photo {
  position: relative;
  width: clamp(190px, 49vw, 200px);
  aspect-ratio: 103 / 160;
  z-index: 3;
  border-radius: 220px;
  background-color: var(--accent);
  background-image: var(--bg-hero);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  border: 2px solid var(--primary);
  box-shadow: none;
}

.cover-to {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: rgba(var(--accent-rgb), 0.92);
  font-size: clamp(1rem, 2.9vw, 1rem);
  line-height: 1.4;
}

.cover-to strong {
  font-weight: 600;
}

.cover-invite {
  margin: 0;
  max-width: 21em;
  color: rgba(var(--accent-rgb), 0.94);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 4.1vw, 1rem);
  line-height: 1.38;
}

.cover-title {
  margin: 0;
  color: var(--accent);
  font-family: "Vidaloka", serif;
  font-size: clamp(2.5rem, 15.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.cover-desc {
  margin: 0;
  max-width: 21em;
  color: rgba(var(--accent-rgb), 0.96);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.45;
}

.btn-open {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.65rem;
  background: var(--neutral);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: clamp(1rem, 3.5vw, 1rem);
  margin-top: clamp(0.15rem, 0.8vh, 0.4rem);
  margin-bottom: max(0px, env(safe-area-inset-bottom));
}

.btn-open:hover .btn-open:focus,
.btn-open:active,
.btn-open:focus-visible {
  background: var(--primary) !important;
  color: var(--accent) !important;
  /* inner shadow gelap */
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.22) !important;
}

.btn-send {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

#countdown {
  background: var(--primary);
  color: var(--accent);
  align-items: center;
  justify-content: center;
}

.countdown-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

#countdown .countdown-title {
  color: var(--accent);
  font-family: "Carattere", cursive;
  font-size: clamp(2.55rem, 14vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
}

#countdown .countdown-subtitle {
  margin: 0 auto 1.35rem;
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.35;
}

#countdown .simply-countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

#countdown .simply-countdown > .simply-section {
  margin: 0 !important;
  min-height: 170px;
  padding: 1.1rem 0.6rem;
  border-radius: 18px;
  background: var(--accent);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#countdown .simply-countdown > .simply-section > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#countdown .simply-countdown > .simply-section .simply-amount {
  color: var(--neutral) !important;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.9rem, 11.5vw, 6.15rem);
  line-height: 0.9;
  font-weight: 500;
}

#countdown .simply-countdown > .simply-section .simply-word {
  color: var(--neutral) !important;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  font-weight: 400;
  text-transform: capitalize;
  border-radius: 999px;
  background: var(--neutral);
  padding: 0.42rem 1.28rem;
  line-height: 1;
}

#rundown h2,
#informasi-acara h2,
#acara-utama h2,
#amplop-digital h2,
#story h2,
#gallery h2,
#rsvp h2,
#footer h3 {
  font-size: 2.55rem;
  color: var(--accent);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

.couple-block {
  min-height: 100vh;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#couple-groom::before,
#couple-bride::before {
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image:
    url("./assets/dekor-atas-section.webp"), url("./assets/bg-section1.webp");
  background-repeat: no-repeat, no-repeat;
  background-position:
    center top,
    center center;
  background-size:
    100% auto,
    cover;
}

.couple-photo {
  position: relative;
  width: min(70vw, 300px);
  aspect-ratio: 3 / 4;
  margin-top: clamp(3rem, 5vh, 8rem);
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  border-radius: 220px;
  background: var(--accent);
  border: 4px solid var(--neutral);
}

.couple-content {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  text-align: center;
  padding: 0 1.25rem;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.couple-content h2 {
  margin-top: 0.9rem;
  color: var(--primary);
  font-size: clamp(2.5rem, 14.2vw, 2.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.couple-desc {
  margin: 1rem auto 1.15rem !important;
  max-width: 21em;
  color: rgba(44, 93, 99, 0.95);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.45;
}

.couple-parent {
  display: inline-block;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--neutral);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.98rem, 2.7vw, 1rem);
  line-height: 1.45;
  font-weight: 500;
}
.couple-block p {
  margin: 0;
}

.couple-block .panel,
.couple-block .role {
  display: none;
}

/* Rundown: bg-section follows card width */
#rundown {
  background: var(--primary) !important;
  padding: 3rem 1.2rem !important;
  position: relative;
  overflow: visible;
}

#rundown .rundown-list {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

#rundown .rundown-card {
  width: min(100%, 280px) !important;
  max-width: 280px !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  padding: 0 !important;

  /* bg card */
  background-color: var(--accent) !important;
  background-image: url("./assets/bg-section1.webp") !important;
  background-repeat: no-repeat !important;

  /* isi penuh area card, tidak ada bagian kosong */
  background-size: cover !important;
  background-position: top !important;

  border: 2px solid var(--neutral) !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

#rundown .rundown-event {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;

  gap: 0.35rem !important;
  padding: 2rem 1.4rem !important;

  background: transparent !important;
  position: relative !important;
}

#rundown .rundown-event + .rundown-event {
  border-top: none !important;
}

#rundown .rundown-event-icon {
  margin-bottom: 1rem !important;
  line-height: 0 !important;
}

#rundown .rundown-event-icon svg {
  width: 38px !important;
  height: 38px !important;
  stroke: var(--neutral) !important;
}

#rundown .rundown-event-icon svg path {
  fill: var(--neutral) !important;
  stroke: var(--neutral) !important;
}

#rundown .rundown-event-name {
  margin: 0 0 0.4rem !important;

  font-size: clamp(1rem, 8vw, 1.85rem) !important;
  font-family: "Vidaloka", serif !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;

  color: var(--neutral) !important;
  font-weight: 400 !important;
}

#rundown .rundown-event-time,
#rundown .rundown-event-date {
  margin: 0 !important;

  font-size: clamp(0.95rem, 3.05vw, 1rem) !important;
  line-height: 1.35 !important;

  color: var(--neutral) !important;
  font-weight: 500 !important;
}

/* semua teks dalam card rundown warna primary */
#rundown .rundown-card h3,
#rundown .rundown-card p,
#rundown .rundown-card span,
#rundown .rundown-card small {
  color: var(--neutral) !important;
}

/* jarak antar data loop */
#rundown .rundown-event:first-child {
  padding-top: 2.4rem !important;
}

#rundown .rundown-event:last-child {
  padding-bottom: 2.4rem !important;
}
#informasi-acara {
  background: var(--neutral);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
  padding: 2rem 1.2rem !important;
}

#amplop-digital {
  position: relative !important;
  overflow: visible !important;
}

#amplop-digital {
  background: var(--accent) !important;
  min-height: 475px !important;
  padding: 7.4rem 1.2rem 6.8rem !important;
  align-items: flex-start;
  transition:
    min-height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#amplop-digital.is-open {
  min-height: 475px !important;
  padding-bottom: 8rem !important;
}

#amplop-digital .amplop-content {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 1.25rem;
  border-radius: 18px;
  background-color: var(--primary);
  background-image: url("./assets/bg-section2.webp");
  background-position:
    center center,
    center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  box-shadow: none;
}

#amplop-digital .amplop-title {
  color: var(--accent) !important;
  font-size: clamp(2rem, 12vw, 2.5rem);
  line-height: 0.95;
  margin: 0 0 1.35rem;
}

#amplop-digital .amplop-subtitle {
  color: var(--accent) !important;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.48;
}

.amplop-reveal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(100%, 208px);
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.85rem;
  background: var(--accent) !important;
  color: var(--neutral) !important;
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: none !important;
}

.amplop-reveal-btn:hover,
.amplop-reveal-btn:focus,
.amplop-reveal-btn:active,
.amplop-reveal-btn:focus-visible {
  background: var(--accent) !important;
  color: var(--neutral) !important;
  box-shadow: inset 0 0 0 1px rgba(43, 43, 43, 0.12) !important;
}

.amplop-reveal-btn i {
  font-size: 1.12rem;
  line-height: 1;
  font-style: normal;
}

#amplop-digital .amplop-list {
  gap: 1.75rem;
  max-height: var(--amplop-list-height, 0px);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.8rem);
  transition:
    max-height 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 1.6rem;
}

#amplop-digital.is-open .amplop-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  gap: 1rem;
}

.info-location-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.info-location-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}

.info-location-address {
  margin: 0 auto 1.35rem;
  color: rgba(var(--accent-rgb), 0.97);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.1vw, 1rem);
  line-height: 1.35;
  max-width: 21em;
}

.info-map-frame {
  background: var(--neutral);
  border: 2px solid var(--neutral);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  margin: 0 auto 1.25rem;
  max-width: 350px;
}

.info-map-frame iframe {
  display: block;
  width: 100%;
}

.info-map-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.65rem;
  background: var(--neutral);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.3vw, 1rem);
  font-weight: 550;
}

.info-map-btn:hover,
.info-map-btn:focus,
.info-map-btn:active,
.info-map-btn:focus-visible {
  background: var(--accent) !important;
  color: var(--primary) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2) !important;
}

/* Amplop digital card with ATM artwork */
.amplop-list {
  display: grid;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}

.amplop-card {
  border: 0 !important;
  border-radius: 5px !important;
  background-color: transparent !important;
  background-image: url("./assets/atm-card.webp") !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  backdrop-filter: none !important;
  width: min(100%, 330px);
  aspect-ratio: 959 / 559;
  height: auto;
  margin-inline: auto;
  padding: clamp(0.9rem, 4.1vw, 1.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: end;
  row-gap: 0.32rem;
  column-gap: clamp(0.45rem, 2.2vw, 0.85rem);
  position: relative;
  overflow: hidden;
}

.amplop-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: clamp(62px, 21vw, 88px);
  height: clamp(24px, 8vw, 34px);
  object-fit: contain;
  object-position: right center;
  min-width: 0;
}

.amplop-name {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
  margin: 0 !important;
  max-width: 13ch;
  font-size: clamp(0.72rem, 3.1vw, 1rem);
  line-height: 1.12;
  color: var(--neutral);
  text-transform: uppercase;
  text-align: start;
  overflow-wrap: anywhere;
}

.amplop-name span {
  display: block;
}

.amplop-number {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  margin: 0 !important;
  font-family: "Poppins", sans-serif;
  max-width: 17ch;
  font-size: clamp(0.78rem, 3.8vw, 1.08rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--neutral);
  text-align: right;
  overflow-wrap: anywhere;
}

.amplop-copy-btn {
  grid-column: 1 / span 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  min-height: 28px;
  font-size: clamp(0.64rem, 2.3vw, 0.72rem);
  font-weight: 600;
  line-height: 1;
  background: var(--neutral);
  color: var(--accent);
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex;
  gap: 5px;
}

.amplop-copy-btn:hover,
.amplop-copy-btn:focus,
.amplop-copy-btn:active,
.amplop-copy-btn:focus-visible {
  background: var(--neutral) !important;
  color: var(--accent) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.amplop-copy-btn i {
  font-size: 0.84rem;
}

.amplop-copy-btn.is-copied {
  background: var(--neutral) !important;
}

#story {
  background: var(--accent);
  color: var(--accent);
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 4rem;
  padding-bottom: 5.4rem;
}

.story-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.story-title {
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.story-subtitle {
  margin: 0 auto 1.9rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.1vw, 1rem);
  line-height: 1.35;
  max-width: 21em;
}

.story-list {
  display: grid;
  gap: 3rem;
  padding: 0 0.2rem;
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  align-items: center;
  gap: 1.5rem;
}

.story-item:nth-child(even) {
  grid-template-columns: 156px minmax(0, 1fr);
}

.story-item:nth-child(even) .story-polaroid {
  order: 1;
  transform: rotate(-9deg);
}

.story-item:nth-child(even) .story-text {
  order: 2;
  text-align: start;
}

.story-item:nth-child(odd) .story-polaroid {
  transform: rotate(9deg);
}

.story-item:nth-child(odd) .story-text {
  text-align: end;
}

.story-text {
  padding: 0 0.2rem;
}

.story-text h3 {
  font-size: clamp(1rem, 9vw, 1.45rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.story-date {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.05vw, 1rem);
  line-height: 1.35;
}

.story-desc {
  margin: 0.35rem 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.1vw, 1rem);
  line-height: 1.35;

  /* potong teks jika terlalu panjang */
  /* display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; */
}

.story-polaroid {
  width: 140px;
  aspect-ratio: 164 / 196;
  justify-self: center;
  position: relative;
  background: url("./assets/polaroid.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
}

.story-polaroid img {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 126px;
  height: 126px;
  object-fit: cover;
  border-radius: 3px;
}

#gallery {
  background: var(--primary);
  color: var(--accent);
  align-items: center;
  justify-content: center;
}

.gallery-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.gallery-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 1.15rem;
}

.gallery-grid {
  columns: 2;
  column-gap: 0.6rem;
  width: 100%;
  max-width: 100%;
}

.gallery-grid a {
  display: block;
  width: 100%;
  max-width: 100%;
  break-inside: avoid;
  margin: 0 0 0.6rem;
  border-radius: 5px;
  overflow: hidden;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 5px;
}

#rsvp {
  background: var(--accent);
  color: var(--accent);
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 4.2rem;
  padding-bottom: 7.4rem;
}

#rsvp .rsvp-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

#rsvp .rsvp-title {
  color: var(--accent);
  font-size: clamp(2.55rem, 14vw, 2.55rem);
  line-height: 0.95;
  margin-top: 0.15rem;
}

#rsvp .rsvp-subtitle {
  margin: 1rem auto 1.45rem;
  max-width: 21em;
  color: rgba(var(--accent-rgb), 0.96);
  font-size: clamp(1rem, 3.45vw, 1rem);
  line-height: 1.42;
}

#rsvp .rsvp-shell {
  width: 100%;
  border: 2px solid var(--primary);
  border-radius: 18px;
  background: var(--accent);
  padding: 1.15rem 1rem 1.05rem;
}

#rsvp .rsvp-form {
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

#rsvp .rsvp-form label {
  color: var(--neutral);
  font-size: clamp(1.02rem, 3.4vw, 1rem);
  font-weight: 500;
  margin-top: 0.1rem;
}

#rsvp .rsvp-form input,
#rsvp .rsvp-form select,
#rsvp .rsvp-form textarea {
  width: 100%;
  border: 1px solid #cfd4d9;
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
  background: var(--secondary);
  color: var(--neutral);
  font-size: clamp(1rem, 3.25vw, 1rem);
}

#rsvp .rsvp-form textarea {
  resize: none;
}

#rsvp .rsvp-form input::placeholder,
#rsvp .rsvp-form select,
#rsvp .rsvp-form textarea::placeholder {
  color: var(--neutral);
}

#rsvp .btn-simpan {
  margin-top: 0.45rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.65rem;
  background: var(--secondary);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.7vw, 1rem);
  font-weight: 550;
}

#rsvp .btn-simpan:hover,
#rsvp .btn-simpan:focus {
  color: var(--accent);
  background: var(--secondary) !important;
}

#rsvp .respon-ucapan {
  margin-top: 1.1rem;
  max-height: 22.5rem;
  overflow: auto;
  border: 1px solid var(--secondary);
  border-radius: 15px;
  background: var(--accent);
  padding: 0.55rem;
  text-align: left;
}

#rsvp .wish-card {
  border-radius: 12px;
  border: 1px solid var(--secondary);
  background: var(--accent);
  text-align: left;
  padding: 0.78rem 0.8rem;
  margin-bottom: 0.5rem;
}

#rsvp .wish-card:last-child {
  margin-bottom: 0;
}

#rsvp .wish-card h5 {
  margin: 0 0 0.15rem;
  color: var(--neutral);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 3.3vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
}

#rsvp .wish-card p {
  margin: 0;
  color: var(--neutral);
  font-size: clamp(0.96rem, 3.12vw, 1rem);
  line-height: 1.35;
}

#footer {
  background: var(--accent);
  color: var(--neutral);
  min-height: auto;
  align-items: center;
  justify-content: center;
  padding-top: 2.6rem;
  padding-bottom: 6.9rem;
}

#footer.decor-frame::after {
  display: none;
}

#footer .footer-content {
  width: min(100%, 760px);
  position: relative;
  z-index: 2;
  text-align: center;
}

#footer .copyright h6 {
  margin: 0;
  color: var(--accent);
  font-family: "Vidaloka", serif;
  font-size: clamp(1.5rem, 3.45vw, 1.35rem);
  font-weight: 500;
}

#footer .sosmed {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

#footer .sosmed a {
  color: var(--accent);
  font-size: 1.45rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#footer .sosmed a:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

#widget.widget {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
  text-align: center;
  padding: 0 1rem calc(14px + env(safe-area-inset-bottom));
}

#widget .widget-sosmed,
#widget .qrcode-btn button,
#widget .music-toggler button {
  pointer-events: auto;
}

#widget .widget-sosmed {
  width: calc(100% - 108px);
  max-width: 680px;
  margin: 0 auto 0 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

#widget .widget-sosmed a {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

#widget .widget-sosmed svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#widget .qrcode-btn,
#widget .music-toggler {
  position: absolute;
  right: 1.1rem;
}

#widget .qrcode-btn {
  bottom: calc(14px + env(safe-area-inset-bottom));
}

#widget .music-toggler {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

#widget .qrcode-btn button,
#widget .music-toggler button {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral);
  color: var(--accent);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

#widget .qrcode-btn button::before,
#widget .music-toggler button::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
}

#widget .qrcode-btn i,
#widget .music-toggler i {
  position: relative;
  z-index: 1;
  line-height: 0;
}

#widget .qrcode-btn i,
#widget .icon-music {
  font-size: 1.1rem;
}

#widget .widget-sosmed a:hover,
#widget .qrcode-btn button:hover,
#widget .music-toggler button:hover {
  filter: brightness(0.97);
}

.modal-content {
  border-radius: 16px;
}

.modal-content img {
  width: 170px;
}

.qrcode-close-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--neutral);
  color: var(--accent);
}

@media (max-width: 576px) {
  body {
    /* --demo-bar-height: 70px; */
    --demo-bar-height: 0px;
  }

  .widget.fixed-top[data-feature="demo_mode"] {
    padding: 0.5rem 0.65rem 0;
  }

  .widget.fixed-top[data-feature="demo_mode"] .widget-pesan {
    grid-template-columns: 40px 1fr auto;
    min-height: 50px;
    padding: 0.38rem 0.45rem;
    gap: 0.35rem;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-back a {
    width: 32px;
    height: 32px;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-back .bi {
    font-size: 1.12rem;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-back .bi::before {
    vertical-align: -0.25em !important;
  }

  .widget.fixed-top[data-feature="demo_mode"] .katalog h6 {
    font-size: 0.84rem;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-pesan {
    min-height: 32px;
    padding: 0.38rem 0.8rem;
    gap: 0.4rem;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-pesan .bi {
    font-size: 0.92rem;
  }

  .widget.fixed-top[data-feature="demo_mode"] .btn-pesan h6 {
    font-size: 0.8rem;
  }

  .vintage-section {
    min-height: 100vh;
  }

  #footer.vintage-section {
    min-height: auto;
  }

  .cover-content {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 3rem 1rem max(2.2rem, calc(env(safe-area-inset-bottom) + 1rem));
  }

  .cover-photo {
    width: clamp(178px, 56vw, 242px);
  }

  #widget.widget {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  #widget .widget-sosmed {
    width: calc(100% - 65px);
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  #widget .widget-sosmed a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  #widget .widget-sosmed svg {
    width: 22px;
    height: 22px;
  }

  #widget .qrcode-btn,
  #widget .music-toggler {
    right: 0.85rem;
  }

  #widget .music-toggler {
    bottom: calc(75px + env(safe-area-inset-bottom));
  }

  #widget .qrcode-btn button,
  #widget .music-toggler button {
    width: 52px;
    height: 52px;
  }

  #widget .qrcode-btn button::before,
  #widget .music-toggler button::before {
    width: 34px;
    height: 34px;
  }

  #countdown {
    padding: 1.25rem 0.9rem 1rem;
  }

  #story {
    padding-top: 3.5rem;
    padding-bottom: 4.8rem;
  }

  .story-subtitle {
    margin-bottom: 1.55rem;
  }

  .story-list {
    gap: 2.5rem;
  }

  .story-item {
    grid-template-columns: minmax(0, 1fr) 146px;
    gap: 0.7rem;
  }

  .story-item:nth-child(even) {
    grid-template-columns: 146px minmax(0, 1fr);
  }

  .story-polaroid {
    width: 130px;
  }

  .story-polaroid img {
    top: 6px;
    left: 6px;
    width: 118px;
    height: 118px;
  }

  #countdown .countdown-subtitle {
    max-width: 21em;
  }

  #countdown .simply-countdown > .simply-section {
    min-height: 140px;
    border-width: 4px;
  }

  #countdown {
    --frame-bottom-h: 160px;
  }
}

@media (min-width: 577px) {
  :root {
    --desktop-canvas-width: 390px;
  }

  html,
  body {
    min-height: 100%;
    background: radial-gradient(
      circle at top,
      #2c231d 0%,
      #17120f 45%,
      #0f0c0a 100%
    );
  }

  body {
    /* --demo-bar-height: 76px; */
    --demo-bar-height: 0px;
  }

  .widget.fixed-top[data-feature="demo_mode"] .widget-pesan {
    width: min(100%, var(--desktop-canvas-width));
  }

  #cover,
  #content {
    width: min(100%, var(--desktop-canvas-width));
    margin-inline: auto;
    overflow: hidden;
    border-left: 1px solid rgba(var(--accent-rgb), 0.08);
    border-right: 1px solid rgba(var(--accent-rgb), 0.08);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
  }

  #widget.widget {
    left: 50%;
    right: auto;
    width: min(100%, var(--desktop-canvas-width));
    transform: translateX(-50%);
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  #widget .widget-sosmed {
    width: calc(100% - 65px);
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  #widget .widget-sosmed a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  #widget .widget-sosmed svg {
    width: 22px;
    height: 22px;
  }

  #widget .qrcode-btn,
  #widget .music-toggler {
    right: 0.85rem;
  }

  #widget .music-toggler {
    bottom: calc(75px + env(safe-area-inset-bottom));
  }

  #widget .qrcode-btn button,
  #widget .music-toggler button {
    width: 52px;
    height: 52px;
  }

  #widget .qrcode-btn button::before,
  #widget .music-toggler button::before {
    width: 34px;
    height: 34px;
  }
}

/* Flower spec overrides based on desc.text */
:root {
  --accent: #ffffff;
  --secondary: #d9d9d9;
  --primary: #646464;
  --neutral: #2b2b2b;
  --gradient-section-top: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.12) 13%,
    rgba(255, 255, 255, 0) 30%
  );
  --gradient-section-bottom: linear-gradient(
    0deg,
    rgba(93, 102, 35, 0.28) 0%,
    rgba(93, 102, 35, 0.14) 13%,
    rgba(93, 102, 35, 0) 32%
  );
}

html,
body {
  background: var(--accent);
  color: var(--neutral);
  font-family: "Poppins", sans-serif;
}
.wish-card h5 {
  font-family: "Poppins", sans-serif;
}

body,
.vintage-section,
.vintage-section p,
.vintage-section a,
.vintage-section button,
.vintage-section input,
.vintage-section select,
.vintage-section textarea,
.vintage-section label {
  font-family: "Poppins", sans-serif;
}

.vintage-section h1,
.vintage-section h2,
.vintage-section h3,
.vintage-section h4,
.vintage-section h6 {
  font-family: "Vidaloka", serif !important;
  font-weight: 400;
}

.vintage-section {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: 5.6rem;
  padding-bottom: 5.8rem;
}

.decor-frame {
  position: relative;
  isolation: isolate;
}

.decor-frame::before,
.decor-frame::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

#informasi-acara.bg-section,
#rundown.bg-section,
#gallery.bg-section {
  background-color: var(--primary) !important;
  background-image: url("./assets/bg-section2.webp") !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

#acara-utama.bg-section,
#story.bg-section,
#rsvp.bg-section,
#amplop-digital.bg-section,
#footer.bg-section {
  background-image: url("./assets/bg-section1.webp") !important;
  background-position:
    center top,
    center bottom,
    center center !important;
  background-size: cover !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
}

#rsvp.bg-section {
  background-position:
    center top,
    center bottom,
    center top !important;
}

#rsvp {
  position: relative !important;
  overflow: hidden !important;
}

#rsvp::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  /* background-image: url('./assets/dekor-cover.webp'); */
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

#cover {
  background-image: url("./assets/bg-cover.webp");
  background-position:
    center top,
    center bottom,
    center center;
  background-size:
    100% 100%,
    100% 100%,
    cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

#cover.vintage-section::before {
  display: none !important;
}

#cover.vintage-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  /* background-image: url('./assets/dekor-cover.webp'); */
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  z-index: 2;
}

.cover-content,
.couple-content,
.countdown-content,
.rundown-content,
.info-location-content,
.amplop-content,
.story-content,
.gallery-content,
#rsvp .rsvp-content,
#footer .footer-content {
  position: relative;
  z-index: 3;
}

.cover-title,
.rundown-title,
.info-location-title,
.amplop-title,
.story-title,
.gallery-title,
#rsvp {
  color: var(--neutral);
}

.cover-to,
.cover-invite,
#countdown .countdown-subtitle,
.rundown-subtitle,
.info-location-address,
.amplop-subtitle,
.story-subtitle,
#rsvp .rsvp-subtitle {
  color: var(--accent);
}

#countdown .countdown-subtitle {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--accent) !important;
}

.cover-title,
.cover-to,
.cover-invite,
.cover-desc {
  color: var(--accent);
}

.btn-open {
  background: var(--neutral);
  color: var(--accent);
}

.btn-open:hover,
.btn-open:focus,
.btn-open:active,
.btn-open:focus-visible {
  background: var(--neutral) !important;
  color: var(--accent) !important;
}

.info-map-btn {
  background: var(--accent) !important;
  color: var(--neutral) !important;
}
#rsvp .btn-simpan,
.btn-send {
  background: var(--neutral) !important;
  color: var(--accent) !important;
}
.widget.fixed-top[data-feature="demo_mode"] .btn-pesan {
  background: var(--neutral) !important;
  color: var(--accent) !important;
}
#widget .qrcode-btn button,
#widget .music-toggler button {
  background: var(--primary) !important;
  color: var(--accent) !important;
}
#rsvp .btn-simpan:hover,
#rsvp .btn-simpan:focus,
.btn-send:hover,
.btn-send:focus {
  background: var(--neutral) !important;
  color: var(--accent) !important;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan:hover {
  background: var(--neutral) !important;
  color: var(--accent) !important;
}

#couple-groom,
#couple-bride {
  background-color: var(--accent);
  background-image: var(--gradient-section-top), var(--gradient-section-bottom);
  background-position:
    center top,
    center bottom;
  background-size:
    100% 100%,
    100% 100%;
  background-repeat: no-repeat, no-repeat;
}

.couple-photo,
.couple-content {
  position: relative;
  z-index: 3;
}

.couple-content h2 {
  color: var(--neutral);
}

.couple-desc {
  color: rgba(93, 102, 35, 0.94);
}

.couple-parent {
  background: var(--neutral);
  color: var(--accent);
}

#countdown .simply-countdown > .simply-section,
#rundown,
.info-map-frame,
#gallery .gallery-grid a {
  border-color: var(--neutral);
  background: var(--accent);
}

#countdown .simply-countdown > .simply-section,
#rundown .rundown-list h3,
.amplop-number,
.story-text h3 {
  color: var(--accent) !important;
}

#rundown .rundown-list h3 {
  color: var(--neutral) !important;
}

#rundown .rundown-list p,
.amplop-name,
.story-date,
.story-desc,
#rsvp .wish-card h5,
#rsvp .wish-card p {
  color: var(--accent);
}

#amplop-digital .amplop-number,
#amplop-digital .amplop-name,
#amplop-digital .amplop-name span,
#rsvp .wish-card h5,
#rsvp .wish-card p,
#rsvp .rsvp-form label {
  color: var(--neutral) !important;
}

#amplop-digital h3,
#amplop-digital .amplop-number {
  font-family: "Poppins", sans-serif !important;
}

#rundown .rundown-icon svg path {
  fill: var(--secondary);
}

#footer {
  align-items: center;
  justify-content: center;
}

#footer .footer-content {
  width: min(100%, 760px);
  text-align: center;
}

#footer .copyright h6,
#footer .copyright span,
#footer .sosmed a,
#footer .sosmed i {
  color: var(--neutral) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#footer .sosmed {
  margin-top: 1.25rem;
}

#footer .sosmed a {
  color: var(--neutral);
}

#widget .widget-sosmed {
  background: var(--primary);
}

#widget .widget-sosmed a,
#widget .qrcode-btn button::before,
#widget .music-toggler button::before {
  background: var(--neutral);
}

#widget .widget-sosmed a,
#widget .qrcode-btn button,
#widget .music-toggler button {
  background: var(--neutral);
  color: var(--accent);
}

#widget .widget-sosmed svg {
  stroke: var(--accent);
}

.widget,
.widget * {
  font-family: "Poppins", sans-serif !important;
}

.vintage-section {
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
}

#cover,
#content {
  border-left: 0 !important;
  border-right: 0 !important;
}

@media (max-width: 576px) {
  .vintage-section {
    padding-top: 4.8rem;
    padding-bottom: 4.6rem;
  }

  #cover.vintage-section::before {
    height: 100%;
  }

  #cover.vintage-section::after {
    height: 132px;
  }

  #couple-groom::before,
  #couple-bride::before {
    height: 132px;
  }

  #couple-groom::after,
  #couple-bride::after {
    height: 138px;
  }

  #story,
  #rsvp,
  #footer {
    min-height: 100vh;
  }
}

#couple-groom.bg-section,
#couple-bride.bg-section {
  background-image: url("./assets/bg-section1.webp") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

#couple-groom.bg-section {
  background-position: center top !important;
}

#couple-bride.bg-section {
  background-position: center bottom !important;
}

#rundown,
#rundown h2,
#rundown h3,
#rundown p,
#rundown span,
#informasi-acara,
#informasi-acara h2,
#informasi-acara h3,
#informasi-acara p,
#informasi-acara span,
#amplop-digital,
#amplop-digital h2,
#amplop-digital h3,
#amplop-digital p,
#amplop-digital span,
#gallery,
#gallery h2,
#gallery h3,
#gallery p,
#gallery span {
  color: var(--accent) !important;
}

#amplop-digital .amplop-title,
#amplop-digital .amplop-subtitle {
  color: var(--accent) !important;
}

#cover::before,
#couple-groom::before,
#couple-groom::after,
#couple-bride::before,
#couple-bride::after {
  background-image: none;
}

/* Font lock: use only Tangerine + Lora */
body,
.vintage-section,
.vintage-section a,
.vintage-section button,
.vintage-section input,
.vintage-section p,
.vintage-section select,
.vintage-section textarea,
.vintage-section label,
.vintage-section span,
.widget,
.widget * {
  font-family: "Poppins", sans-serif !important;
}

.vintage-section h1,
.vintage-section h2,
.vintage-section h3,
.vintage-section h4,
.vintage-section h6,
.cover-title,
.couple-content h2 {
  font-family: "Vidaloka", serif !important;
}

body,
.vintage-section,
.vintage-section h1,
.vintage-section h2,
.vintage-section h3,
.vintage-section h4,
.vintage-section h5,
.vintage-section h6,
.vintage-section p,
.vintage-section label,
.vintage-section span,
.vintage-section li {
  color: var(--neutral) !important;
}

/* Countdown section override (reference style) */
#countdown.vintage-section {
  min-height: 320px !important;
  height: auto !important;
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
  background-color: var(--primary) !important;
  background-image: url("./assets/bg-section2.webp") !important;
  background-position: bottom !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

#countdown .countdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

#countdown .countdown-title {
  font-family: "Carattere", cursive !important;
  font-size: clamp(2.05rem, 9.2vw, 3rem) !important;
  line-height: 1 !important;
  margin-bottom: 0.25rem !important;
}

#countdown .countdown-subtitle {
  font-size: clamp(0.78rem, 2vw, 0.92rem) !important;
  margin-bottom: 0.45rem !important;
}

#countdown .simply-countdown {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  width: min(100%, 700px) !important;
}

#countdown .simply-countdown > .simply-section {
  min-height: 55px !important;
  height: auto !important;
  padding: 0.65rem 0.35rem !important;
  border-radius: 14px !important;
  border: 0 !important;
  background: var(--accent) !important;
}

#countdown .simply-countdown > .simply-section .simply-amount {
  font-size: clamp(1.55rem, 4.1vw, 1.75rem) !important;
  line-height: 1 !important;
  color: var(--neutral) !important;
}

#countdown .simply-countdown > .simply-section .simply-word {
  background: transparent !important;
  padding: 0 !important;
  font-size: clamp(0.8rem, 1.85vw, 0.82rem) !important;
  color: var(--neutral) !important;
}

@media (max-width: 576px) {
  #countdown.vintage-section {
    min-height: 300px !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  #countdown .simply-countdown {
    gap: 0.35rem !important;
  }

  #countdown .simply-countdown > .simply-section {
    min-height: 84px !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.25rem !important;
  }
}

/* Countdown text color rules */
#countdown .simply-countdown > .simply-section,
#countdown .simply-countdown > .simply-section * {
  color: var(--neutral) !important;
}

#countdown .countdown-title,
#countdown .countdown-subtitle {
  color: var(--accent) !important;
}

/* Couple layout follows vintage-2 */
#couple-groom,
#couple-bride {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  padding: 20px !important;
}

#couple-groom .couple-photo-frame,
#couple-bride .couple-photo-frame {
  display: contents !important;
}

#couple-groom .couple-photo,
#couple-bride .couple-photo {
  order: 0 !important;
  width: min(70vw, 300px) !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  margin-top: clamp(3rem, 5vh, 8rem) !important;
  object-fit: cover !important;
  object-position: center top !important;
  align-self: center !important;
}

#couple-groom .couple-content,
#couple-bride .couple-content {
  order: 1 !important;
  width: min(100%, 620px) !important;
  text-align: center !important;
  padding: 0 1.25rem !important;
  margin-top: 1.4rem !important;
  margin-bottom: 0 !important;
}

#couple-groom .couple-parent,
#couple-bride .couple-parent {
  color: var(--accent) !important;
}
/* Final fix: force cover top decor centered and visible */
#cover .cover-top-decor-left,
#cover .cover-top-decor-right,
#cover .cover-top-decor {
  display: none !important;
}

#rundown {
  position: relative;
  overflow: visible;
  padding: 0 !important;
}

#rundown .rundown-inner {
  padding: 3rem 1.2rem;
}

#rundown .rundown-content {
  width: 100%;
  padding-inline: 1.2rem;
}

#rundown .rundown-subtitle {
  max-width: 28rem;
  margin-inline: auto;
}

/* Bride bottom decor follows the reference placement */
#couple-bride {
  position: relative !important;
  overflow: hidden !important;
  padding-bottom: clamp(12rem, 38vw, 15rem) !important;
}

#couple-bride .couple-photo,
#couple-bride .couple-content {
  position: relative !important;
  z-index: 3 !important;
}

#couple-bride .bride-bottom-decor {
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

#couple-bride .bride-bottom-decor-left {
  left: clamp(-2.2rem, -5vw, -0.75rem);
  width: clamp(165px, 38vw, 200px);
  aspect-ratio: 1 / 1;
  background-image: url("./assets/dekor-1.webp");
  background-position: left bottom;
  animation: decorDance 7s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes decorDance {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(3px) rotate(0.6deg) scale(1.01);
  }
  50% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  75% {
    transform: translateX(-3px) rotate(-0.6deg) scale(1.01);
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

#couple-bride .bride-bottom-decor-right {
  right: clamp(-1rem, -3vw, -0.25rem);
  width: clamp(78px, 24vw, 106px);
  bottom: clamp(-1rem, -4vw, -0.5rem);
  aspect-ratio: 192 / 256;
  background-image: url("./assets/dekor-2.webp");
  background-position: right bottom;
}
