/* =========================================================
   Luxury Minimalist Wedding Invitation
   EDIT COLORS HERE
========================================================= */
:root {
  --ivory: #f7f2e8;
  --warm-white: #fffdf8;
  --champagne: #e7d8bd;
  --beige: #d8c6aa;
  --gold: #b99a61;
  --gold-dark: #8f7449;
  --charcoal: #332f2a;
  --brown: #594f44;
  --line: rgba(185, 154, 97, 0.28);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(67, 57, 45, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

button, input, textarea { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,.6) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, rgba(0,0,0,.5) 0 0.7px, transparent 0.8px);
  background-size: 7px 7px, 9px 9px;
  mix-blend-mode: multiply;
}

/* COVER */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(rgba(247,242,232,.96), rgba(255,253,248,.98)),
    radial-gradient(circle at top, rgba(185,154,97,.12), transparent 40%);
  transition: opacity .9s ease, visibility .9s ease, transform .9s ease;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: var(--gold);
  opacity: .5;
}

.cover::before {
  left: 22px;
  top: 22px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.cover::after {
  right: 22px;
  bottom: 22px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.cover.is-open {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
}

.cover__content { width: min(100%, 540px); }

.cover h1,
.hero h2,
.section h2,
.closing h2,
.couple-card h3,
.bank-card h3,
.event-card h3 {
  font-family: var(--serif);
}

.cover h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 4.8rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.03em;
}

.amp {
  margin: 10px 0;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2rem;
}

.cover__date {
  margin: 24px 0 18px;
  letter-spacing: .18em;
  font-size: .78rem;
  text-transform: uppercase;
}

.guest-card {
  margin: 28px auto;
  padding: 16px 18px;
  width: min(100%, 320px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guest-card span,
.guest-card strong { display: block; }

.guest-card span {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brown);
}

.guest-card strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

/* GLOBAL TYPOGRAPHY */
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow.light { color: #ead9b8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .73rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover { background: var(--gold-dark); }

.btn--outline {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* HERO TANPA FOTO - fokus ke 2 foto pada section couple */
.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(185,154,97,.22), transparent 36%),
    linear-gradient(135deg, #f8f2e7, #fffdf8 60%, #efe3d0);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero::before {
  width: 360px;
  height: 360px;
  left: -190px;
  top: -100px;
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -250px;
  bottom: -220px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
}

.hero h2 {
  margin: 4px 0 12px;
  font-size: clamp(3.3rem, 13vw, 7rem);
  line-height: .9;
  font-weight: 500;
}

.hero__date {
  margin-top: 24px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* SECTIONS */
.section { padding: 88px 22px; }

.section--soft { background: var(--ivory); }

.section__inner {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.section__inner.narrow { width: min(100%, 720px); }

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  line-height: 1;
  font-weight: 500;
}

.section-copy {
  width: min(100%, 620px);
  margin: 20px auto 0;
  color: var(--brown);
}

/* TWO-PHOTO COUPLE SECTION */
.couple-section {
  background: var(--warm-white);
}

.couple-grid {
  display: grid;
  gap: 38px;
  align-items: start;
}

.couple-card {
  text-align: center;
}

.portrait-frame {
  position: relative;
  margin: 0 auto 28px;
  width: min(100%, 430px);
  padding: 9px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 18px -10px -10px 18px;
  border: 1px solid rgba(185,154,97,.2);
  z-index: -1;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.role {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.couple-card h3 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.parents-label {
  margin: 22px 0 6px;
  color: var(--brown);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.parents {
  margin: 0 auto;
  color: var(--brown);
  line-height: 1.85;
}

.parents strong {
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.couple-divider {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.4rem;
}

.couple-divider::before,
.couple-divider::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 10px auto;
  background: var(--line);
}

/* EVENT */
.event-grid,
.gift-grid {
  display: grid;
  gap: 20px;
}

.event-card,
.bank-card {
  padding: 34px 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.event-card__label,
.bank-name {
  color: var(--gold-dark);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 6px 0;
  font-size: 2.1rem;
  font-weight: 500;
}

.event-card p { margin: 8px 0 20px; }

.meta {
  color: var(--brown);
  font-size: .9rem;
}

.divider {
  width: 56px;
  height: 1px;
  margin: 20px auto;
  background: var(--line);
}

/* COUNTDOWN */
.countdown-section { text-align: center; }

.countdown {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.countdown > div {
  padding: 24px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown strong,
.countdown span { display: block; }

.countdown strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  margin-top: 8px;
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--brown);
}

/* QUOTE */
.quote-section {
  text-align: center;
  background: linear-gradient(to bottom, var(--warm-white), #f9f3e9);
}

.ornament {
  margin-bottom: 24px;
  color: var(--gold);
}

.quote {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--brown);
}

/* WISHES */
.wish-form {
  display: grid;
  gap: 20px;
}

.wish-form label {
  display: grid;
  gap: 8px;
}

.wish-form label > span {
  color: var(--brown);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wish-form input,
.wish-form textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--beige);
  outline: none;
  background: transparent;
  color: var(--charcoal);
}

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

.form-note {
  margin: 0;
  color: var(--brown);
  font-size: .78rem;
}

/* GIFT */
.gift-section { background: var(--warm-white); }

.bank-card h3 {
  margin: 14px 0 6px;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .05em;
}

/* CLOSING */
.closing {
  min-height: 78svh;
  padding: 96px 22px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(45,38,30,.86), rgba(45,38,30,.9)),
    radial-gradient(circle at center, rgba(185,154,97,.22), transparent 55%);
}

.closing__inner { width: min(100%, 720px); }

.closing p {
  margin: 20px auto;
  max-width: 560px;
}

.closing h3 {
  margin: 30px 0 4px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

/* FOOTER */
footer {
  padding: 28px 18px;
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  background: #29251f;
  color: #d8ccb9;
  font-size: .75rem;
}

footer strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

/* MUSIC */
.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(47,41,34,.88);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .35s ease;
}

.music-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-btn.playing span {
  animation: spin 4s linear infinite;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}

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

.reveal-now {
  animation: fadeUp .9s ease both;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (min-width: 720px) {
  .section { padding: 112px 36px; }

  .event-grid,
  .gift-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .couple-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 34px;
  }

  .couple-divider {
    align-self: center;
    min-width: 70px;
  }

  .couple-divider::before,
  .couple-divider::after {
    height: 74px;
  }
}

@media (min-width: 1100px) {
  .event-card,
  .bank-card {
    padding: 44px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
