/* Tema Undangan Prayoga & Angel — minimalis earthy (sesuai PDF) */
:root {
  --cream: #f5f0e6;
  --cream-dark: #ebe4d8;
  --tan: #c4a484;
  --tan-dark: #a8896a;
  --charcoal: #333333;
  --muted: #5c5c5c;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(51, 51, 51, 0.08);
  --bar-1: #1e4d6b;
  --bar-2: #2a9d8f;
  --bar-3: #6b8e4e;
  --bar-4: #d4a72c;
  --bar-5: #c45c3e;
  --font-bold: "Montserrat", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-bold);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

body.no-scroll,
body.lightbox-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.title-bold {
  font-family: var(--font-bold);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.name-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.container {
  width: min(92%, 960px);
  margin-inline: auto;
}

.container.narrow {
  width: min(92%, 520px);
}

.text-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

code {
  font-size: 0.8em;
  background: var(--cream-dark);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Color bar (aksen PDF) */
.color-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.color-bar span {
  width: 14px;
  height: 14px;
  display: block;
}

.color-bar span:nth-child(1) { background: var(--bar-1); }
.color-bar span:nth-child(2) { background: var(--bar-2); }
.color-bar span:nth-child(3) { background: var(--bar-3); }
.color-bar span:nth-child(4) { background: var(--bar-4); }
.color-bar span:nth-child(5) { background: var(--bar-5); }

.color-bar--center {
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Monogram /PA */
.monogram {
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.monogram--light {
  color: var(--white);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: block;
  padding: 1.5rem 0;
}

.monogram--fade {
  color: var(--tan);
  opacity: 0.35;
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.monogram--footer {
  display: block;
  text-align: center;
  color: var(--tan);
  opacity: 0.4;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Dekorasi gelombang, grain & daun */
.deco-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .deco-grain,
  .deco-waves,
  .deco-leaf,
  .deco-oat,
  .deco-fall-item,
  .deco-botanical,
  .deco-ambient-leaf {
    animation: none !important;
  }
}

.deco-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23c4a484' stroke-width='0.55' stroke-linecap='round'%3E%3Cellipse cx='28' cy='32' rx='3.5' ry='8' transform='rotate(-22 28 32)'/%3E%3Cellipse cx='72' cy='18' rx='2.5' ry='6' transform='rotate(14 72 18)'/%3E%3Cellipse cx='118' cy='44' rx='3' ry='7' transform='rotate(-8 118 44)'/%3E%3Cellipse cx='168' cy='28' rx='2.8' ry='6.5' transform='rotate(28 168 28)'/%3E%3Cellipse cx='42' cy='88' rx='2.2' ry='5.5' transform='rotate(18 42 88)'/%3E%3Cellipse cx='95' cy='72' rx='3.2' ry='7.5' transform='rotate(-15 95 72)'/%3E%3Cellipse cx='148' cy='96' rx='2.6' ry='6' transform='rotate(6 148 96)'/%3E%3Cellipse cx='192' cy='78' rx='2.4' ry='5.8' transform='rotate(-25 192 78)'/%3E%3Cellipse cx='18' cy='142' rx='3' ry='7' transform='rotate(12 18 142)'/%3E%3Cellipse cx='62' cy='158' rx='2.8' ry='6.2' transform='rotate(-18 62 158)'/%3E%3Cellipse cx='108' cy='128' rx='2.5' ry='5.5' transform='rotate(24 108 128)'/%3E%3Cellipse cx='155' cy='162' rx='3.1' ry='7.2' transform='rotate(-10 155 162)'/%3E%3Cellipse cx='198' cy='138' rx='2.3' ry='5.4' transform='rotate(16 198 138)'/%3E%3Cellipse cx='35' cy='198' rx='2.6' ry='6' transform='rotate(-30 35 198)'/%3E%3Cellipse cx='82' cy='188' rx='2.4' ry='5.8' transform='rotate(8 82 188)'/%3E%3Cellipse cx='132' cy='204' rx='2.9' ry='6.8' transform='rotate(-14 132 204)'/%3E%3Cellipse cx='178' cy='192' rx='2.2' ry='5.2' transform='rotate(20 178 192)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grainDrift 48s linear infinite;
}

.deco-waves {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath fill='none' stroke='%23c4a484' stroke-width='0.8' d='M0 80 Q100 40 200 80 T400 80 M0 160 Q120 120 240 160 T400 160 M0 240 Q80 200 160 240 T320 240'/%3E%3C/svg%3E");
  background-size: 320px;
  animation: waveDrift 55s linear infinite;
}

.deco-fall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.deco-fall-item {
  position: absolute;
  top: 0;
  will-change: transform, opacity;
}

.deco-fall-item--leaf {
  opacity: 0;
  animation: fallLeaf linear infinite;
}

.deco-fall-item--oat {
  opacity: 0;
  animation: fallOat linear infinite;
}

.deco-fall-item--1 {
  left: 14%;
  width: 34px;
  height: 48px;
  animation-duration: 28s;
  animation-delay: 0s;
}

.deco-fall-item--2 {
  left: 68%;
  width: 28px;
  height: 40px;
  animation-duration: 32s;
  animation-delay: 14s;
}

.deco-fall-item--3 {
  left: 38%;
  width: 13px;
  height: 18px;
  animation-duration: 24s;
  animation-delay: 6s;
}

.deco-fall-item--4 {
  left: 82%;
  width: 12px;
  height: 16px;
  animation-duration: 26s;
  animation-delay: 20s;
}

.deco-fall-item--5 {
  left: 52%;
  width: 11px;
  height: 15px;
  animation-duration: 30s;
  animation-delay: 11s;
}

.deco-fall-item--f1 {
  left: 22%;
  width: 26px;
  height: 38px;
  animation-duration: 26s;
  animation-delay: 3s;
}

.deco-fall-item--f2 {
  left: 74%;
  width: 11px;
  height: 15px;
  animation-duration: 22s;
  animation-delay: 12s;
}

.deco-leaf--footer-l {
  width: 44px;
  height: 62px;
  left: 6%;
  bottom: 18%;
  opacity: 0.32;
  animation: leafSwayC 11s ease-in-out infinite 0.4s;
}

.deco-oat--footer {
  width: 14px;
  height: 19px;
  right: 10%;
  bottom: 28%;
  opacity: 0.34;
  animation: oatFloatB 15s ease-in-out infinite 1.5s;
}

.deco-leaf,
.deco-oat {
  position: absolute;
  pointer-events: none;
}

.deco-leaf--1 {
  width: 72px;
  height: 102px;
  left: 4%;
  top: 12%;
  opacity: 0.45;
  animation: leafSwayA 9s ease-in-out infinite;
}

.deco-leaf--2 {
  width: 58px;
  height: 82px;
  right: 6%;
  top: 38%;
  opacity: 0.38;
  animation: leafSwayB 11s ease-in-out infinite 1.2s;
}

.deco-leaf--3 {
  width: 46px;
  height: 64px;
  left: 8%;
  bottom: 18%;
  opacity: 0.35;
  animation: leafSwayC 10s ease-in-out infinite 0.6s;
}

.deco-oat {
  opacity: 0.4;
}

.deco-oat--1 {
  width: 18px;
  height: 24px;
  left: 18%;
  top: 28%;
  animation: oatFloatA 14s ease-in-out infinite;
}

.deco-oat--2 {
  width: 16px;
  height: 22px;
  right: 14%;
  top: 16%;
  animation: oatFloatB 16s ease-in-out infinite 2s;
}

.deco-oat--3 {
  width: 14px;
  height: 20px;
  left: 22%;
  bottom: 32%;
  animation: oatFloatC 13s ease-in-out infinite 1s;
}

.deco-oat--4 {
  width: 13px;
  height: 18px;
  right: 20%;
  bottom: 24%;
  animation: oatFloatA 15s ease-in-out infinite 3s;
}

@keyframes grainDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-220px, -220px); }
}

@keyframes waveDrift {
  0% { background-position: 0 0; }
  100% { background-position: 320px 320px; }
}

@keyframes leafSwayA {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-10px); }
}

@keyframes leafSwayB {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-8px); }
}

@keyframes leafSwayC {
  0%, 100% { transform: rotate(-4deg) translateX(0); }
  50% { transform: rotate(6deg) translateX(6px); }
}

@keyframes oatFloatA {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-14px) rotate(12deg); opacity: 0.5; }
}

@keyframes oatFloatB {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-10px) rotate(-10deg); opacity: 0.48; }
}

@keyframes oatFloatC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.32; }
  50% { transform: translate(8px, -12px) rotate(8deg); opacity: 0.46; }
}

@keyframes fallLeaf {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(-10deg);
    opacity: 0;
  }
  7% { opacity: 0.3; }
  28% { transform: translate3d(10px, 22vh, 0) rotate(6deg); }
  55% { transform: translate3d(-6px, 52vh, 0) rotate(-4deg); }
  82% { transform: translate3d(12px, 82vh, 0) rotate(12deg); opacity: 0.22; }
  100% {
    transform: translate3d(4px, 106vh, 0) rotate(18deg);
    opacity: 0;
  }
}

@keyframes fallOat {
  0% {
    transform: translate3d(0, -4vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.26; }
  45% { transform: translate3d(-10px, 48vh, 0) rotate(-14deg); }
  100% {
    transform: translate3d(8px, 106vh, 0) rotate(20deg);
    opacity: 0;
  }
}

.deco-botanical {
  position: absolute;
  width: 120px;
  height: 200px;
  pointer-events: none;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 140' fill='none' stroke='%23a8896a' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M40 130 C20 100 60 90 40 60 C15 35 55 20 40 10'/%3E%3Cpath d='M40 90 C25 70 50 55 35 40'/%3E%3Cpath d='M40 70 C55 50 30 35 45 25'/%3E%3C/svg%3E") center/contain no-repeat;
}

.deco-ambient-leaf {
  animation: leafSwayB 12s ease-in-out infinite 0.8s;
}

.deco-botanical--right {
  right: 0;
  top: 20%;
  animation: leafSwayA 10s ease-in-out infinite;
}

.deco-botanical--left {
  left: -20px;
  bottom: 10%;
}

/* Buttons */
.btn {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-tan {
  background: var(--tan);
  color: var(--white);
  padding: 0.85rem 2rem;
}

.btn-tan:hover {
  background: var(--tan-dark);
}

.btn-open {
  margin-top: 0;
  padding: 1rem 2rem;
  min-height: 52px;
  width: 100%;
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
  background: var(--charcoal);
  color: var(--white);
  border-radius: 2px;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cover-actions {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding-top: 1.25rem;
  width: 100%;
  flex-shrink: 0;
}

.btn-map {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--tan);
  text-decoration: none;
  font-size: 0.65rem;
}

.btn-copy {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--tan);
  color: var(--white);
  font-size: 0.65rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--tan-dark);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(51, 51, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--white);
  padding: 2rem;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ========== COVER (PDF halaman 1) ========== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--cream);
  transition: opacity 0.7s, visibility 0.7s;
}

.cover:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 2;
}

.cover-sidebar {
  width: clamp(56px, 14vw, 88px);
  background: var(--tan);
  border-radius: 0 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.cover-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='0.6' d='M0 30 Q15 15 30 30 T60 30'/%3E%3C/svg%3E");
}

.cover-main {
  flex: 1;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cover.active .cover-main {
  padding-right: 1.25rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.cover-top {
  display: grid;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

@media (min-width: 640px) {
  .cover-top {
    grid-template-columns: 1fr minmax(140px, 200px) minmax(100px, 140px);
    align-items: start;
  }

  .btn-open {
    width: auto;
    min-width: 240px;
  }
}

@media (max-width: 639px) {
  .cover-top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "intro intro"
      "photo date"
      "photo date";
    align-items: start;
  }

  .cover-intro {
    grid-area: intro;
  }

  .cover-photo-wrap {
    grid-area: photo;
    max-width: 168px;
    max-height: 224px;
  }

  .cover-date-block {
    grid-area: date;
    text-align: right;
    align-self: start;
  }

  .cover-guest {
    margin-top: 1rem;
  }
}

.cover-names-bold {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cover-script {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 4.5vw, 1.9rem);
  margin: 0;
  color: var(--muted);
}

.cover-line {
  border: none;
  border-top: 1px solid var(--tan);
  width: 60%;
  margin: 0.65rem 0;
}

.cover-meta {
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
}

.cover-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 280px;
  margin: 0 auto;
  width: 100%;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}

.cover-photo.is-fallback {
  display: none;
}

.cover-photo-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--cream-dark), var(--tan));
  display: none;
}

.cover-photo.is-fallback + .cover-photo-fallback {
  display: block;
}

.cover-date-block {
  text-align: right;
}

.cover-date-block .monogram--fade {
  font-size: clamp(1.75rem, 5vw, 2.15rem);
}

.cover-date-big {
  font-weight: 800;
  font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.cover-date-big span {
  display: block;
}

.cover-date-names {
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  font-weight: 600;
  margin: 0.5rem 0 0;
  letter-spacing: 0.08em;
}

.cover-date-block .cover-std-link {
  margin-top: 0.65rem;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
}

.cover-guest {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 164, 132, 0.4);
}

.cover-guest-label {
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cover-guest-line {
  font-size: clamp(0.92rem, 2.6vw, 1rem);
  margin: 0.35rem 0;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 600;
  margin: 0.35rem 0 0;
  min-height: 1.5em;
}

.cover-std {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  font-style: italic;
  text-align: right;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.cover-std-link {
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.cover-std-link:hover {
  color: var(--tan-dark);
  text-decoration: underline;
}

/* ========== MAIN ========== */
.main {
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  position: relative;
  z-index: 1;
}

.main.visible {
  opacity: 1;
}

/* Hero — foto couple + veil cream (blend halus) */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  background-color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.38;
  filter: saturate(0.9) brightness(1.12) blur(0.5px);
  transform: scale(1.04);
}

.hero-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(245, 240, 230, 0.94) 0%,
      rgba(245, 240, 230, 0.72) 45%,
      rgba(243, 235, 224, 0.88) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.hero-brand {
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--charcoal);
}

.hero-quote {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--tan-dark);
  margin: 0 0 1.5rem;
}

.hero-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-day {
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1;
  color: var(--charcoal);
}

.hero-full {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Invite card — PDF halaman 2 */
.section-invite {
  padding: 2rem 0 3rem;
}

.invite-card {
  width: min(96%, 1000px);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .invite-card {
    grid-template-columns: 38% 62%;
  }
}

.invite-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--cream);
  border-right: 1px solid rgba(196, 164, 132, 0.25);
}

.invite-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.invite-photos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.invite-photos figure {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.invite-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-photos figure.ph {
  background: linear-gradient(145deg, var(--cream-dark), var(--tan));
  min-height: 160px;
}

.invite-photos figure.ph img {
  display: none;
}

.invite-quote {
  font-size: 1.5rem;
  margin: 1.25rem 0 0.75rem;
  color: var(--tan-dark);
}

.invite-verse {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 1rem 0.75rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(196, 164, 132, 0.35);
}

.invite-verse-ref {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tan-dark);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.invite-verse-text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.invite-details {
  padding: 1.5rem 1.5rem 2rem;
  position: relative;
}

.invite-opening {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.bride-groom {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .bride-groom {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.couple-portrait {
  text-align: center;
}

.couple-portrait-photo {
  width: min(100%, 220px);
  margin: 0 auto 1rem;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--cream-dark);
}

.couple-portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bride-groom article + article {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (max-width: 599px) {
  .bride-groom article + article {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(196, 164, 132, 0.35);
  }
}

.parents {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.wedding-date-banner {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-block: 1px solid rgba(196, 164, 132, 0.4);
}

.day-name {
  display: block;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.date-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
}

.events-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .events-row {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

.events-divider {
  width: 1px;
  background: rgba(196, 164, 132, 0.5);
  min-height: 120px;
  justify-self: center;
  display: none;
}

@media (min-width: 520px) {
  .events-divider {
    display: block;
    align-self: stretch;
    min-height: auto;
  }
}

.event-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.event-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.event-time {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.event-venue {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  min-height: 2.5em;
}

/* Google Maps + QR — panel sejajar */
.event-location-panel {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 0.5rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 0.75rem;
  align-items: stretch;
}

.event-gmap {
  min-height: 168px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196, 164, 132, 0.45);
  box-shadow: var(--shadow);
  background: var(--cream-dark);
}

.event-gmap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 168px;
  border: 0;
}

.event-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(196, 164, 132, 0.45);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-qr {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.event-qr-label {
  font-family: var(--font-bold);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.event-col .btn-map {
  width: 100%;
  max-width: 300px;
  margin-top: auto;
  text-align: center;
}

@media (max-width: 359px) {
  .event-location-panel {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .event-qr-panel {
    flex-direction: row;
    justify-content: center;
    padding: 0.65rem;
  }
}

  font-family: var(--font-serif);
  font-size: 0.88rem;
  text-align: center;
  margin: 1.5rem 0 1rem;
  line-height: 1.65;
}

.gift-inline {
  text-align: center;
  padding: 1rem;
  background: var(--cream-dark);
  border-radius: 4px;
}

.gift-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
}

.gift-account {
  font-size: 0.85rem;
  margin: 0;
}

.rek-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.qr-hint {
  margin-top: 1rem;
  text-align: center;
}

/* Countdown */
.section-countdown {
  padding: 3rem 0;
  text-align: center;
  background: var(--white);
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 1.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown > div {
  background: var(--cream);
  padding: 1rem 0.85rem;
  min-width: 68px;
  border: 1px solid rgba(196, 164, 132, 0.35);
}

.countdown span {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.countdown small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.save-date-btn {
  margin-top: 1.75rem;
  display: inline-block;
  text-decoration: none;
}

/* Gallery */
.section-gallery {
  padding: 3rem 0;
}

.section-gallery .title-bold {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    gap: 0.6rem;
  }
}

.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
  cursor: pointer;
  border-radius: 4px;
}

.gallery-item--portrait {
  background: #b8b8b8;
}

.gallery-item--finale {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

@media (min-width: 640px) {
  .gallery-item--finale {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.35s ease;
}

.gallery-item--portrait img {
  object-position: center center;
}

.gallery-item--finale img {
  object-position: center 30%;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox galeri — zoom modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.75rem 2.5rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.35s ease;
}

.lightbox.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.lightbox.is-closing {
  pointer-events: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox.is-closing .lightbox-backdrop {
  opacity: 0;
}

.lightbox-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
}

.lightbox-counter {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(96vw, 900px);
  max-height: 78vh;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox.is-closing .lightbox-img {
  opacity: 0;
  transform: scale(0.94);
}

.lightbox-img.is-swapping {
  opacity: 0;
  transform: scale(0.96);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  opacity: 0;
}

.lightbox.is-open .lightbox-nav {
  opacity: 1;
  transition-delay: 0.15s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

.lightbox-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-family: var(--font-bold);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.lightbox.is-open .lightbox-hint {
  opacity: 1;
}

@media (min-width: 640px) {
  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-backdrop,
  .lightbox-img,
  .lightbox-nav {
    transition: none !important;
    animation: none !important;
  }
}

/* RSVP */
.section-rsvp {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.section-rsvp .title-bold {
  text-align: center;
  margin-bottom: 0.35rem;
}

.rsvp-intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.rsvp-form .field-text {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem;
  border: 1px solid rgba(196, 164, 132, 0.5);
  font-family: var(--font-bold);
  font-size: 0.9rem;
  background: var(--cream);
  text-transform: none;
  font-weight: 400;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  outline: none;
  border-color: var(--tan);
  box-shadow: 0 0 0 3px rgba(196, 164, 132, 0.25);
}

/* Panel kehadiran */
.attendance-picker {
  margin-bottom: 1.25rem;
}

.attendance-legend {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

@media (max-width: 520px) {
  .attendance-options {
    grid-template-columns: 1fr;
  }
}

.attendance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.65rem;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(51, 51, 51, 0.06);
}

.attendance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(51, 51, 51, 0.1);
}

.attendance-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.attendance-face {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.25s;
}

.attendance-face svg {
  width: 100%;
  height: 100%;
}

.attendance-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.attendance-desc {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

/* Selected states */
.attendance-card--hadir:has(input:checked) {
  border-color: #5a9e6f;
  background: linear-gradient(160deg, #f0faf3 0%, var(--cream) 100%);
  box-shadow: 0 8px 20px rgba(90, 158, 111, 0.2);
}

.attendance-card--hadir:has(input:checked) .attendance-face {
  color: #5a9e6f;
  transform: scale(1.08);
}

.attendance-card--tidak:has(input:checked) {
  border-color: #8b9aab;
  background: linear-gradient(160deg, #f4f6f8 0%, var(--cream) 100%);
  box-shadow: 0 8px 20px rgba(139, 154, 171, 0.2);
}

.attendance-card--tidak:has(input:checked) .attendance-face {
  color: #6b7d8f;
  transform: scale(1.08);
}

.attendance-card--ragu:has(input:checked) {
  border-color: #d4a72c;
  background: linear-gradient(160deg, #fffbf0 0%, var(--cream) 100%);
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.25);
}

.attendance-card--ragu:has(input:checked) .attendance-face {
  color: #c4921a;
  transform: scale(1.08);
}

.attendance-card:has(input:focus-visible) {
  outline: 2px solid var(--tan);
  outline-offset: 2px;
}

.jumlah-wrap {
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rsvp-success {
  text-align: center;
  padding: 1rem;
  background: var(--cream);
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 164, 132, 0.35);
}

.comments-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 0.25rem;
  color: var(--charcoal);
}

.comments-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
}

.comment-card {
  background: var(--cream);
  border: 1px solid rgba(196, 164, 132, 0.35);
  border-radius: 10px;
  padding: 1rem;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.comment-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.comment-badge--hadir {
  background: rgba(90, 158, 111, 0.15);
  color: #4a8a5c;
}

.comment-badge--tidak {
  background: rgba(139, 154, 171, 0.2);
  color: #5c6b7a;
}

.comment-badge--ragu {
  background: rgba(212, 167, 44, 0.2);
  color: #9a7720;
}

.comment-meta {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted);
}

.comment-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text, var(--charcoal));
  margin: 0;
  white-space: pre-wrap;
}

.comment-jumlah {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.comments-empty {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.comments-api-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #9a7720;
  background: rgba(212, 167, 44, 0.12);
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 1rem;
}

.comments-api-hint.hidden {
  display: none;
}

.comments-empty.hidden {
  display: none;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.5rem 1.5rem 5rem;
  background: linear-gradient(
    180deg,
    rgba(235, 228, 216, 0.82) 0%,
    rgba(235, 228, 216, 0.68) 100%
  );
}

.footer-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-deco .deco-grain {
  opacity: 0.2;
}

.footer-deco .deco-waves {
  opacity: 0.26;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer .title-bold {
  font-size: 1.5rem;
  margin: 0;
}

.footer-date {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

/* Floating controls stack */
.floating-controls {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 650;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body:has(.cover.active) .floating-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:has(.main.visible) .floating-controls {
  bottom: 5.25rem;
}

/* Floating music control */
.music-fab {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  background: var(--white);
  color: var(--tan-dark);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(51, 51, 51, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.music-fab:hover {
  transform: scale(1.06);
}

.music-fab.is-playing {
  background: var(--tan);
  color: var(--white);
  animation: musicPulse 2s ease-in-out infinite;
}

.music-fab__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.music-fab__icon--off {
  display: none;
}

.music-fab.is-muted .music-fab__icon--on {
  display: none;
}

.music-fab.is-muted .music-fab__icon--off {
  display: block;
  opacity: 0.85;
}

.scroll-top-fab {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  background: var(--white);
  color: var(--tan-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.2s, visibility 0.3s;
}

.scroll-top-fab:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.scroll-top-fab.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-top-fab:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

body:not(:has(.main.visible)) .scroll-top-fab {
  display: none;
}

@keyframes musicPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(51, 51, 51, 0.15);
  }
  50% {
    box-shadow: 0 6px 28px rgba(196, 164, 132, 0.55);
  }
}

.floating-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 0.35rem;
  background: var(--white);
  padding: 0.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 164, 132, 0.4);
}

.floating-nav a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
}

.floating-nav a:hover {
  background: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
