/* =========================================================
   UNDANGAN PERNIKAHAN — IVORY / BURGUNDY / OLIVE / DUSTY ROSE
   ========================================================= */
:root {
  --ivory: #f8f3ea;
  --ivory-deep: #eee4d4;
  --burgundy: #5d2633;
  --burgundy-dark: #35151e;
  --olive: #687056;
  --dusty-rose: #c79a9d;
  --baby-pink: #f4d9dc;
  --white: #fffdf9;
  --ink: #30272a;
  --muted: #74696b;
  --line: rgba(93, 38, 51, .15);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.7;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
section { position: relative; overflow: hidden; }
.section-ivory { background: var(--ivory); }
.section-pink { background: linear-gradient(135deg, var(--baby-pink), #f8e8e7); }
.section-dark { background: var(--burgundy-dark); color: var(--white); }

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: .98; margin: 12px 0 22px; }
p { margin: 0 0 16px; }
.eyebrow {
  letter-spacing: .25em;
  font-size: .72rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow.olive { color: var(--olive); }
.eyebrow.burgundy { color: var(--burgundy); }
.lead { font-size: 1.06rem; color: var(--muted); }
.lead.small { max-width: 640px; margin-left: auto; margin-right: auto; }

.opening {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(199,154,157,.22), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(104,112,86,.20), transparent 30%),
    var(--ivory);
  transition: opacity .8s ease, visibility .8s ease;
}
.opening.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-card {
  width: min(680px, 100%); text-align: center;
  padding: clamp(32px, 8vw, 72px);
  border: 1px solid var(--line);
  background: rgba(255,253,249,.62);
  box-shadow: 0 30px 80px rgba(53,21,30,.10);
  backdrop-filter: blur(8px);
}
.opening-card h1 {
  font-size: clamp(3.1rem, 9vw, 6.5rem);
  line-height: .8; margin: 12px 0 28px;
  color: var(--burgundy);
}
.opening-card h1 span { display: block; }
.opening-card h1 i { font-size: .52em; color: var(--olive); }
.open-caption { max-width: 500px; margin: 0 auto 28px; color: var(--muted); }
.guest-name { font-size: .9rem; margin-bottom: 24px; color: var(--burgundy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); margin-top: 8px; }
.btn-outline:hover { background: var(--burgundy); color: var(--white); }

.music-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: var(--burgundy); color: white; cursor: pointer;
  box-shadow: 0 8px 30px rgba(53,21,30,.2);
}
.music-toggle.playing { animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.hero {
  min-height: 100svh; display: grid; place-items: center;
  background:
    linear-gradient(rgba(53,21,30,.54), rgba(53,21,30,.72)),
    radial-gradient(circle at 30% 30%, rgba(199,154,157,.55), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(104,112,86,.45), transparent 28%),
    var(--burgundy-dark);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.hero::before { width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; }
.hero::after { width: 48vw; height: 48vw; max-width: 560px; max-height: 560px; }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 40px 20px; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7.2rem); line-height: .76; margin: 10px 0 30px; }
.hero h1 i { font-size: .55em; color: var(--baby-pink); }
.hero-date { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }
.scroll-link { display: inline-block; margin-top: 55px; opacity: .8; text-decoration: none; font-size: .75rem; }

.intro, .gallery, .gift, .closing { padding: clamp(80px, 12vw, 150px) 0; }
.intro { text-align: center; }
.names {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
  margin-top: 65px;
}
.names h3 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; margin: 0 0 12px; color: var(--burgundy); }
.names p { color: var(--muted); font-size: .9rem; }
.ampersand { font: 3rem var(--serif); color: var(--dusty-rose); }

.event { padding: clamp(75px, 10vw, 120px) 0; text-align: center; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 45px 0 28px; }
.event-card {
  padding: 38px 30px; border: 1px solid rgba(93,38,51,.14);
  background: rgba(255,253,249,.45); min-height: 230px;
}
.event-icon { display: block; font-size: 1.4rem; color: var(--burgundy); margin-bottom: 14px; }
.label { letter-spacing: .18em; font-size: .7rem; font-weight: 700; color: var(--burgundy); }
.event-card h3 { font-size: 2rem; margin: 6px 0; }
.event-card p:last-child { max-width: 450px; margin: 0 auto; color: var(--muted); font-size: .92rem; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 650px;
  margin: 45px auto 0;
}
.countdown div { padding: 14px; border-top: 1px solid var(--line); }
.countdown strong { display: block; font: 2.3rem var(--serif); color: var(--burgundy); }
.countdown span { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.gallery { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 45px; }
.gallery-item { aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-deep); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
code { font-size: .85em; color: var(--burgundy); }

.quote { padding: clamp(90px, 12vw, 150px) 0; text-align: center; }
.quote-mark { font: 5rem/0 var(--serif); color: var(--baby-pink); }
blockquote { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin: 35px 0; }
.quote-source { letter-spacing: .15em; font-size: .75rem; text-transform: uppercase; color: var(--baby-pink); }

.gift { text-align: center; }
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 45px auto 0; max-width: 850px; }
.bank-card {
  padding: 30px; background: rgba(255,253,249,.68); border: 1px solid rgba(93,38,51,.12);
  text-align: left;
}
.bank-name { color: var(--burgundy); letter-spacing: .1em; font-size: .8rem; font-weight: 700; }
.account-number { font: 2rem var(--serif); margin: 10px 0; word-break: break-word; }
.account-holder { color: var(--muted); font-size: .9rem; }
.copy-btn { margin-top: 18px; background: transparent; color: var(--burgundy); border: 1px solid var(--line); }

.closing { text-align: center; }
.closing-names { font-size: clamp(2.4rem, 6vw, 4.5rem); color: var(--burgundy); margin-top: 45px; }
.closing-names i { color: var(--dusty-rose); font-weight: 400; }

.footer { padding: 35px 0; text-align: center; background: var(--burgundy-dark); color: rgba(255,255,255,.72); font-size: .75rem; }
.footer-names { font: 2rem var(--serif); color: var(--white); margin-bottom: 4px; }
.footer-note { opacity: .6; margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .names, .event-grid, .bank-grid { grid-template-columns: 1fr; }
  .names { gap: 14px; margin-top: 45px; }
  .ampersand { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .countdown strong { font-size: 1.8rem; }
  .event-card { min-height: 0; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .opening-card { padding: 28px 20px; }
  .hero h1 { font-size: 3rem; }
}
