:root {
  --paper: #eef3f0;
  --paper-2: #e3ece7;
  --card: #f8fbf9;
  --ink: #3b5f4d;
  --ink-soft: #5d7c6c;
  --sage: #a9c0b2;
  --gold: #b8924a;
  --gold-soft: #d9c08a;
  --serif: "Old Standard TT", "Baskerville", "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 15% 10%, #f6faf8 0%, transparent 60%),
    radial-gradient(50rem 40rem at 90% 40%, #f4f8f6 0%, transparent 60%),
    var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.caps { text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; margin: 0; }
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(238, 243, 240, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 146, 74, .28);
}
.nav-mark { font-family: var(--script); font-size: 1.7rem; text-decoration: none; white-space: nowrap; line-height: 1; }
.nav-mark span { color: var(--gold); }
.nav-links { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  white-space: nowrap; padding: .5rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 7rem 1.5rem 5rem; overflow: hidden;
}
.floral { position: absolute; pointer-events: none; user-select: none; mix-blend-mode: multiply; height: auto; }
.floral.tl { top: 0; left: 0; width: min(42vw, 400px); }
.floral.tr { top: 0; right: 0; width: min(40vw, 390px); }
.floral.bl { bottom: 0; left: 0; width: min(42vw, 410px); }
.floral.br { bottom: 0; right: 0; width: min(40vw, 380px); }
.floral.ml { left: 0; top: 50%; transform: translateY(-50%); width: min(13vw, 150px); }
.floral.mr { right: 0; top: 50%; transform: translateY(-50%); width: min(13vw, 145px); }
@media (max-width: 720px) { .floral.ml, .floral.mr { display: none; } }

.hero-inner { position: relative; max-width: 44rem; animation: rise 1.2s ease both; }
.hero-kicker { font-size: clamp(3.4rem, 11vw, 6rem); margin: .2rem 0 .1rem; }
.names { font-size: clamp(3.6rem, 12vw, 6.5rem); margin: 1.2rem 0 1.4rem; display: grid; gap: .1em; }
.names .amp { font-size: .8em; }
.amp { color: var(--gold); }
.hero-date { font-size: clamp(1.25rem, 3.4vw, 1.6rem); margin: 0; }
.hero-place { margin: .2rem 0 0; font-size: clamp(1.05rem, 2.8vw, 1.25rem); color: var(--ink-soft); }
.hero-note { margin: 1.4rem 0 0; font-style: italic; }

.countdown { display: flex; justify-content: center; gap: clamp(1rem, 5vw, 2.6rem); margin-top: 2rem; }
.countdown div { display: grid; min-width: 3.4rem; }
.countdown b { font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--ink-soft); margin-top: .45rem; }

.hero-actions, .venue-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.2rem; }
.btn {
  display: inline-block; font: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; cursor: pointer;
  padding: .95rem 1.6rem; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #f6faf8; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover:not(:disabled) { background: #2e4d3e; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn.ghost:hover { background: rgba(184, 146, 74, .12); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 1.5rem; text-align: center; position: relative; }
.section.tint { background: linear-gradient(180deg, transparent, rgba(169, 192, 178, .2) 18%, rgba(169, 192, 178, .2) 82%, transparent); }
.wrap { max-width: 56rem; margin: 0 auto; }
.wrap.wide { max-width: 72rem; }
.eyebrow { color: var(--ink-soft); }
.section h2 { font-size: clamp(3rem, 9vw, 4.6rem); margin: .3rem 0 0; }
.section h2::after {
  content: ""; display: block; width: 7rem; height: 1px; margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lede { max-width: 36rem; margin: 1.4rem auto 0; color: var(--ink-soft); }
.empty { color: var(--ink-soft); font-style: italic; margin-top: 2.5rem; }

/* ---------- stream ---------- */
.stream { margin-top: 2.6rem; padding: clamp(.5rem, 1.6vw, .9rem); background: var(--card); border: 1px solid var(--gold-soft); border-radius: 6px; box-shadow: 0 24px 60px -30px rgba(59, 95, 77, .45); }
.stream-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfe9e3, #f3f7f5 55%, #e2ebe6); border-radius: 3px; overflow: hidden; }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-wait { position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; padding: 1.5rem; }
.stream-wait .script { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.stream-wait p:last-child { max-width: 28rem; margin: 0 auto; color: var(--ink-soft); font-size: clamp(.9rem, 2.6vw, 1.05rem); }
.local-time { margin-top: 1.4rem; font-style: italic; color: var(--ink-soft); }

/* ---------- venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; text-align: left; align-items: stretch; }
.venue-info dl { margin: 0; }
.venue-info dt { font-size: .78rem; color: var(--gold); margin-top: 1.5rem; }
.venue-info dt:first-child { margin-top: 0; }
.venue-info dd { margin: .25rem 0 0; }
.venue-actions { justify-content: flex-start; }
.map { min-height: 20rem; padding: .5rem; background: var(--card); border: 1px solid var(--gold-soft); border-radius: 6px; }
.map iframe { width: 100%; height: 100%; min-height: 19rem; border: 0; border-radius: 3px; filter: saturate(.8); }
@media (max-width: 760px) {
  .venue-grid { grid-template-columns: 1fr; text-align: center; }
  .venue-actions { justify-content: center; }
}

/* ---------- family ---------- */
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.family article { background: var(--card); border: 1px solid rgba(184, 146, 74, .35); border-radius: 6px; padding: 2rem 1.6rem; }
.family img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; margin-bottom: 1.4rem; }
.family h3 { font-family: var(--script); font-weight: 400; font-size: 2.2rem; line-height: 1.1; margin: 0 0 .7rem; }
.family p { margin: 0; color: var(--ink-soft); }

/* ---------- carousel ---------- */
.carousel { position: relative; margin-top: 3rem; }
.car-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem 50%; }
.car-track::-webkit-scrollbar { display: none; }
.car-track figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; height: min(68vh, 34rem); padding: .5rem; background: var(--card); border: 1px solid var(--gold-soft); border-radius: 4px; box-shadow: 0 20px 44px -28px rgba(59, 95, 77, .5); }
.car-track img { height: 100%; width: auto; max-width: 84vw; object-fit: cover; border-radius: 2px; cursor: zoom-in; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold); background: rgba(248, 251, 249, .92); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; padding-bottom: .2rem; }
.car-btn.prev { left: .25rem; } .car-btn.next { right: .25rem; }
.car-btn:hover { background: #fff; }

/* ---------- upload ---------- */
.upload { max-width: 40rem; margin: 2.6rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.field label { display: block; font-size: .74rem; color: var(--gold); margin-bottom: .35rem; }
.field input { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--sage); border-radius: 4px; padding: .75rem .9rem; }
.field input::placeholder { color: #93a99d; font-style: italic; }
.drop { grid-column: 1 / -1; display: grid; gap: .2rem; place-items: center; text-align: center; padding: 2.2rem 1rem; border: 1.5px dashed var(--gold-soft); border-radius: 6px; background: rgba(248, 251, 249, .7); cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: #fff; border-color: var(--gold); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.drop-title { font-size: 2.4rem; }
.drop-sub { color: var(--ink-soft); font-size: .95rem; }
.upload .btn { grid-column: 1 / -1; justify-self: center; }
.status { grid-column: 1 / -1; text-align: center; margin: 0; min-height: 1.6em; }
.status.err { color: #9a3d2e; }
@media (max-width: 560px) { .upload { grid-template-columns: 1fr; } }

.guest-grid { columns: 4 14rem; column-gap: .9rem; margin-top: 3rem; }
.guest-grid figure { break-inside: avoid; margin: 0 0 .9rem; padding: .4rem; background: var(--card); border: 1px solid rgba(184, 146, 74, .3); border-radius: 4px; }
.guest-grid img { width: 100%; border-radius: 2px; cursor: zoom-in; background: var(--paper-2); }
.guest-grid figcaption { font-size: .85rem; font-style: italic; color: var(--ink-soft); padding: .35rem .2rem .1rem; text-align: left; }

/* ---------- footer ---------- */
.footer { position: relative; text-align: center; padding: 6rem 1.5rem 9rem; overflow: hidden; }
.footer .script { font-size: clamp(2.6rem, 8vw, 4rem); }
.footer .amp { margin: 0 .18em; }
.footer .caps { margin-top: .6rem; color: var(--ink-soft); }
.footer-note { font-style: italic; color: var(--ink-soft); }
.floral.fl { bottom: 0; left: 0; width: min(36vw, 320px); }
.floral.fr { bottom: 0; right: 0; width: min(34vw, 300px); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 48, 39, .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; border: .4rem solid var(--card); border-radius: 3px; }
.lightbox p { color: #eef3f0; text-align: center; font-style: italic; margin: .6rem 0 0; }
.lb-close { position: fixed; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--gold-soft); background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 720px) {
  .floral.tl, .floral.tr, .floral.bl, .floral.br { width: 56vw; }
  .floral.fl, .floral.fr { width: 46vw; }
}
