:root {
  --ivory: #f5efe4;
  --paper: #fbf7f0;
  --ink: #2a2924;
  --muted: #6e695d;
  --olive: #4a5639;
  --olive-deep: #2e3624;
  --clay: #a9583d;
  --line: #ddd2bf;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --body: "Karla", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.locked {
  overflow: hidden;
  height: 100vh;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.1;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* tombol */
.btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition:
    background 0.25s,
    color 0.25s;
}
.btn:hover {
  background: var(--olive-deep);
}
.btn-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.btn-light:hover {
  background: #fff;
  color: var(--ink);
}
.btn-sm {
  margin-top: 0.6rem;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
}
.btn-ghost {
  background: transparent;
  color: var(--olive);
}
.btn-ghost:hover {
  background: var(--olive);
  color: var(--paper);
}

/* cover */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  color: #fff;
  text-align: center;
  padding: 0 24px 12vh;
  transition:
    transform 0.9s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.9s;
}
.cover.gone {
  transform: translateY(-100%);
  opacity: 0.6;
}
.cover-bg,
.hero-bg,
.closing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.cover::before,
.hero::before,
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 15, 0.15) 0%,
    rgba(20, 22, 15, 0.75) 100%
  );
}
.cover-names {
  font-size: clamp(3.2rem, 12vw, 5rem);
  margin: 0.3rem 0 1.6rem;
}
.to p {
  font-size: 0.9rem;
  opacity: 0.85;
}
.to .to-name {
  font-family: var(--display);
  font-size: 1.6rem;
  opacity: 1;
  margin-top: 0.2rem;
}

/* layout */
.side {
  display: none;
}
.col {
  background: var(--paper);
  min-height: 100vh;
  overflow: hidden;
}
@media (min-width: 900px) {
  .stage {
    display: grid;
    grid-template-columns: 1fr 470px;
  }
  .side {
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    color: #fff;
  }
  .side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 22, 15, 0.7), transparent 55%);
  }
  .side-text {
    position: absolute;
    left: 56px;
    bottom: 56px;
    z-index: 1;
  }
  .side-names {
    font-size: 5rem;
  }
  .side-date {
    font-family: var(--display);
    font-size: 1.3rem;
    letter-spacing: 0.2em;
  }
  .col {
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
  }
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-align: center;
  padding: 0 22px 10vh;
  isolation: isolate;
}
.hero-in {
  width: 100%;
}
.hero-names {
  font-size: clamp(3.4rem, 13vw, 4.6rem);
  margin: 0.4rem 0 0.2rem;
}
.hero-date {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.6rem;
}
.countdown div {
  min-width: 64px;
  padding: 0.6rem 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}
.countdown strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}
.countdown span {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* blok umum */
.block {
  padding: 72px 26px;
  text-align: center;
}
.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.3rem;
  color: var(--olive-deep);
  margin-bottom: 1.6rem;
}
.title::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: var(--clay);
  margin: 0.9rem auto 0;
}

.quote {
  background: var(--olive-deep);
  color: var(--ivory);
}
.quote-text {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
}
.quote-src {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8c9a9;
}
.video {
  width: 100%;
  border-radius: 2px;
  background: #000;
}

/* mempelai */
.person {
  margin: 0 auto;
  max-width: 340px;
}
.person-photo {
  width: 190px;
  height: 250px;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border-radius: 95px 95px 4px 4px;
}
.person-groom .person-photo {
  border-radius: 4px 4px 95px 95px;
}
.person-nick {
  font-size: 3.4rem;
  color: var(--olive);
  margin: 0.2rem 0;
}
.person-full {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}
.person-parents {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0.4rem 0 0.6rem;
}
.link {
  font-size: 0.88rem;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.amp {
  font-size: 3.6rem;
  color: var(--clay);
  margin: 1.8rem 0;
}

/* acara */
.events {
  background: var(--ivory);
}
.event {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 38px 22px;
  margin-bottom: 22px;
  position: relative;
}
.event::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.event h3,
.stream h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--olive-deep);
}
.ev-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 1rem 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ev-date strong {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1;
}
.ev-time {
  color: var(--clay);
  font-weight: 500;
}
.ev-place {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.ev-place strong {
  color: var(--ink);
}
.stream {
  padding: 20px 10px 0;
}
.stream p {
  color: var(--muted);
}

/* cerita */
.story-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto 2.4rem;
}
.timeline {
  list-style: none;
  text-align: left;
  border-left: 1px solid var(--clay);
  margin-left: 8px;
  padding-left: 24px;
}
.timeline li {
  position: relative;
  padding-bottom: 36px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
}
.timeline img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.9rem;
}
.tl-when {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}
.timeline h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}
.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* galeri */
.gallery-sec {
  background: var(--ivory);
  padding-left: 10px;
  padding-right: 10px;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 6px;
}
.g-item {
  border: 0;
  padding: 0;
  background: var(--line);
  overflow: hidden;
}
.g-item:nth-child(5n + 1) {
  grid-row: span 2;
}
.g-item:nth-child(5n + 4) {
  grid-column: span 2;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.g-item:hover img {
  transform: scale(1.04);
}

/* hadiah */
.gift p {
  color: var(--muted);
}
.gift-panel {
  margin-top: 1.6rem;
  display: grid;
  gap: 14px;
}
.acc {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--ivory);
}
.acc-bank {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
.acc-num {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: 0.06em;
}
.acc-name {
  font-size: 0.92rem;
}

/* form */
.rsvp,
.wishes {
  background: var(--ivory);
}
.rsvp {
  padding-bottom: 20px;
}
.form {
  text-align: left;
  display: grid;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--olive-deep);
}
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}
.form .btn {
  margin-top: 4px;
  justify-self: start;
}
.form-who {
  font-size: 0.95rem;
}
.form-msg {
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-msg.err {
  color: #a3332a;
}
.form-msg.ok {
  color: var(--olive);
}
.counter {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: -8px;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.note {
  color: var(--muted);
  font-style: italic;
}
.pax-field[hidden] {
  display: none;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--olive-deep);
}
.wish-list {
  list-style: none;
  text-align: left;
  margin-top: 2.2rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.wish {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.wish-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 20px;
  background: var(--line);
  color: var(--ink);
}
.tag-hadir {
  background: #dfe6d2;
  color: var(--olive-deep);
}
.tag-tidak {
  background: #f1dcd3;
  color: #7d3a26;
}
.wish-msg {
  margin: 0.3rem 0;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.wish-time {
  font-size: 0.75rem;
  color: var(--muted);
}

/* penutup */
.closing {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 26px 12vh;
  isolation: isolate;
}
.closing-in p:first-child {
  max-width: 360px;
  margin: 0 auto 1.6rem;
}
.closing-names {
  font-size: 3.6rem;
  margin-top: 0.3rem;
}

/* musik */
.music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
}
.music span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--olive);
  position: relative;
}
.music.playing span {
  animation: spin 2.4s linear infinite;
  border-color: var(--clay) var(--olive) var(--olive) var(--olive);
}
.music:not(.playing)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: var(--clay);
  transform: rotate(-45deg);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 15, 11, 0.94);
  display: grid;
  place-items: center;
  padding: 56px 12px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  padding: 10px 14px;
}
.lb-prev {
  left: 4px;
}
.lb-next {
  right: 4px;
}

/* animasi muncul */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .music.playing span {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
