:root {
  --bg: #F8F3EE;
  --surface: #FFFFFF;
  --primary: #B38B59;
  --secondary: #738A6E;
  --text: #2C2C2C;
  --muted: #77736F;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(64, 45, 30, .10);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.wd-overlay-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 75%, white); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100000; padding: 10px 16px; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.site-header { height: 0; overflow: hidden; }

.wd-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wd-section { padding: 104px 0; }
.wd-section__narrow { max-width: 920px; }
.wd-section__heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.wd-section__heading h2,
.wd-section h2,
.wd-section h3,
.wd-closing h2,
.wd-hero h1 { font-family: var(--font-heading); }
.wd-section__heading h2 { margin: 0; font-size: clamp(42px, 6vw, 70px); line-height: .98; font-weight: 600; }
.wd-section__heading > p:last-child { color: var(--muted); }
.wd-kicker { margin: 0 0 12px; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.wd-kicker--light { color: #f0dfc6; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }

.wd-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.wd-button:hover { transform: translateY(-2px); }
.wd-button--gold { background: var(--primary); color: #fff; }
.wd-button--outline { border-color: rgba(179,139,89,.55); background: transparent; color: var(--primary); }

.wd-welcome { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; min-height: 100dvh; overflow: hidden; color: #fff; transition: opacity .7s ease, visibility .7s ease; }
.wd-welcome__background { position: absolute; inset: -22px; background-size: cover; background-position: center; filter: blur(10px) saturate(.8); transform: scale(1.08); }
.wd-welcome__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,26,23,.42), rgba(30,26,23,.72)); }
.wd-welcome__content { position: relative; z-index: 2; width: min(620px, calc(100% - 40px)); text-align: center; }
.wd-welcome__monogram { width: 92px; height: 92px; object-fit: contain; margin-bottom: 24px; }
.wd-welcome__names { margin: 0; font-family: var(--font-heading); font-size: clamp(52px, 9vw, 92px); font-weight: 600; line-height: .95; }
.wd-welcome__guest-label { margin: 32px 0 2px; font-size: 12px; opacity: .72; }
.wd-welcome__guest { margin: 0 0 24px; font-family: var(--font-heading); font-size: 26px; }
.wd-welcome.is-closing { opacity: 0; visibility: hidden; pointer-events: none; }
.wd-invitation-opened .wd-welcome { display: none; }

.wd-hero { position: relative; min-height: 100svh; display: grid; place-items: end center; padding: 110px 0 90px; background: #293129 center/cover no-repeat; color: #fff; }
.wd-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,25,22,.12), rgba(20,20,18,.74)); }
.wd-hero__content { position: relative; z-index: 2; text-align: center; }
.wd-hero__title { margin: 0; font-size: clamp(64px, 11vw, 132px); line-height: .86; font-weight: 600; text-wrap: balance; }
.wd-hero__quote { max-width: 720px; margin: 30px auto 0; font-family: var(--font-heading); font-size: clamp(20px, 3vw, 30px); font-style: italic; line-height: 1.35; }
.wd-hero__date { margin: 24px 0 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }

.wd-countdown { background: #f2e9df; }
.wd-countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.wd-countdown__item { padding: 30px 12px; background: rgba(255,255,255,.68); border: 1px solid rgba(179,139,89,.15); border-radius: 18px; text-align: center; }
.wd-countdown__item strong { display: block; font-family: var(--font-heading); font-size: clamp(38px, 6vw, 62px); line-height: 1; font-weight: 600; color: var(--primary); }
.wd-countdown__item span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.wd-couple__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.wd-couple-card { overflow: hidden; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.wd-couple-card img { width: 100%; aspect-ratio: 4/5; display: block; object-fit: cover; }
.wd-couple-card__body { padding: 30px; text-align: center; }
.wd-couple-card__body h3 { margin: 2px 0 10px; font-size: clamp(34px, 4vw, 50px); line-height: 1; font-weight: 600; }
.wd-couple-card__body p { margin: 0; color: var(--muted); font-size: 13px; }
.wd-couple-card__role { color: var(--secondary) !important; text-transform: uppercase; letter-spacing: .16em; font-size: 10px !important; }

.wd-story { background: var(--surface); }
.wd-story__timeline { position: relative; padding-left: 42px; }
.wd-story__timeline::before { content:""; position:absolute; left: 9px; top: 6px; bottom: 6px; width:1px; background: rgba(179,139,89,.35); }
.wd-story__timeline > * { position: relative; margin: 0 0 28px; }
.wd-story__timeline > *::before { content:""; position:absolute; left:-39px; top:.65em; width:12px; height:12px; border:3px solid var(--bg); border-radius:50%; background:var(--primary); box-shadow:0 0 0 1px rgba(179,139,89,.25); }
.wd-story__timeline h3 { font-size: 32px; margin-bottom: 6px; }

.wd-event__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.wd-event-card { overflow:hidden; background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow); }
.wd-event-card__body { padding:34px; text-align:center; }
.wd-event-card__label { margin:0 0 8px; color:var(--secondary); font-size:11px; text-transform:uppercase; letter-spacing:.18em; }
.wd-event-card h3 { margin:0; font-size:38px; line-height:1.05; }
.wd-event-card__time { margin:16px 0 0; color:var(--primary); font-weight:600; }
.wd-event-card__venue { margin:18px 0 4px; font-weight:600; }
.wd-event-card__map { aspect-ratio: 16/8; background:#eee; }
.wd-event-card__map iframe { width:100%; height:100%; border:0; display:block; }

.wd-gallery { background:#efe7dd; }
.wd-gallery__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.wd-gallery__item { padding:0; border:0; border-radius:18px; overflow:hidden; background:#ddd; }
.wd-gallery__item img { display:block; width:100%; aspect-ratio:1; object-fit:cover; transition:transform .35s ease; }
.wd-gallery__item:hover img { transform:scale(1.035); }
.wd-lightbox { position:fixed; inset:0; z-index:100000; display:grid; grid-template-columns:70px minmax(0,1fr) 70px; align-items:center; background:rgba(12,12,12,.94); padding:32px; }
.wd-lightbox[hidden] { display:none; }
.wd-lightbox__figure { margin:0; max-height:90vh; display:grid; place-items:center; }
.wd-lightbox__figure img { max-width:100%; max-height:88vh; object-fit:contain; }
.wd-lightbox__close, .wd-lightbox__nav { border:0; background:rgba(255,255,255,.08); color:#fff; width:48px; height:48px; border-radius:50%; font-size:30px; }
.wd-lightbox__close { position:absolute; top:20px; right:20px; }

.wd-rsvp__form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:38px; background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow); }
.wd-field { display:flex; flex-direction:column; gap:8px; }
.wd-field--full { grid-column:1/-1; }
.wd-field label { font-size:12px; font-weight:600; color:var(--secondary); }
.wd-field input, .wd-field select, .wd-field textarea { width:100%; border:1px solid rgba(44,44,44,.14); border-radius:12px; background:#fffdfa; padding:13px 14px; color:var(--text); }
.wd-modal { position:fixed; inset:0; z-index:100000; display:grid; place-items:center; padding:24px; background:rgba(22,20,18,.62); }
.wd-modal[hidden] { display:none; }
.wd-modal__panel { position:relative; width:min(520px,100%); padding:44px; border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); text-align:center; }
.wd-modal__panel h3 { margin:0; font-family:var(--font-heading); font-size:36px; }
.wd-modal__close { position:absolute; top:14px; right:14px; width:38px; height:38px; border:0; border-radius:50%; background:var(--bg); font-size:24px; }

.wd-gift { background:var(--surface); }
.wd-gift__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.wd-bank-card, .wd-qris-card { padding:32px; border:1px solid rgba(179,139,89,.18); border-radius:var(--radius); background:var(--bg); text-align:center; }
.wd-bank-card__bank { margin:0; color:var(--secondary); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.wd-bank-card__number { margin:12px 0 4px; font-family:var(--font-heading); font-size:34px; font-weight:600; line-height:1.1; overflow-wrap:anywhere; }
.wd-bank-card .wd-button { margin-top:18px; }
.wd-qris-card img { width:min(230px,100%); margin-top:18px; }
.wd-toast { position:fixed; left:50%; bottom:28px; z-index:100010; transform:translateX(-50%); padding:12px 18px; border-radius:999px; background:#252525; color:#fff; font-size:12px; box-shadow:var(--shadow); }

.wd-closing { position:relative; min-height:70svh; display:grid; place-items:center; padding:100px 0; background:#394039 center/cover no-repeat; color:#fff; text-align:center; }
.wd-closing__overlay { position:absolute; inset:0; background:rgba(29,31,28,.68); }
.wd-closing__content { position:relative; z-index:2; max-width:760px; }
.wd-closing__text { font-family:var(--font-heading); font-size:clamp(24px,4vw,38px); line-height:1.35; }
.wd-closing h2 { margin:32px 0 4px; font-size:clamp(58px,9vw,100px); line-height:.9; font-weight:600; }
.site-footer { padding:20px 0; background:#222520; color:rgba(255,255,255,.7); text-align:center; font-size:11px; letter-spacing:.08em; }
.site-footer p { margin:0; }
.wd-generic-page__inner { padding:100px 0; }
