:root {
  --burgundy: #5b1a2b;
  --burgundy-deep: #3d0f1a;
  --navy: #12233f;
  --navy-deep: #0b1626;
  --ink: #06060a;
  --ivory: #f4efe7;
  --ivory-dim: #d9d1c4;
  --gold: #c8a96a;
  --gold-soft: #dcc79f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shell: min(1120px, 92vw);
  --maxw: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ivory);
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(91, 26, 43, 0.55), transparent 60%),
    radial-gradient(120% 90% at 0% 110%, rgba(18, 35, 63, 0.75), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, #0a1320 55%, var(--burgundy-deep) 160%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--ink); }

.amp { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 400; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  border-radius: 0 0 6px 0; text-decoration: none; font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem clamp(1rem, 4vw, 2.5rem);
  transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 22, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(200, 169, 106, 0.18);
  padding-block: 0.7rem;
}
.brand {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: .04em;
  color: var(--ivory); text-decoration: none;
}
.brand .amp { font-size: 1.1em; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); flex-wrap: wrap; }
.nav-links a {
  color: var(--ivory-dim); text-decoration: none;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; background: transparent; border: 0;
  cursor: pointer; color: var(--ivory);
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; isolation: isolate;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; object-position: center 30%; z-index: -2; }
.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(120% 120% at 50% 40%, transparent 40%, rgba(6, 6, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(18, 35, 63, 0.55) 0%, rgba(91, 26, 43, 0.35) 45%, rgba(11, 22, 38, 0.88) 100%);
}
.hero-inner { padding: 6rem 1.25rem 4rem; max-width: 960px; }

.eyebrow {
  font-size: clamp(.72rem, 1.6vw, .95rem); letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 clamp(1rem, 2.5vh, 1.8rem);
  font-weight: 400;
}
.names {
  font-family: var(--serif); font-weight: 500; line-height: .98; margin: 0;
  font-size: clamp(3.1rem, 13vw, 8.5rem); letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-date {
  margin: clamp(1.2rem, 3vh, 2rem) 0 0; font-size: clamp(.9rem, 2.4vw, 1.2rem);
  letter-spacing: .3em; text-transform: uppercase; color: var(--ivory);
}
.hero-date .dot { color: var(--gold); margin: 0 .15em; }

.countdown {
  margin: clamp(2.2rem, 5vh, 3.4rem) auto 0;
  display: flex; justify-content: center; gap: clamp(.7rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.unit { display: grid; justify-items: center; min-width: 60px; }
.num {
  font-family: var(--serif); font-weight: 500; color: var(--ivory);
  font-size: clamp(2.1rem, 7vw, 4rem); line-height: 1;
  font-variant-numeric: tabular-nums; min-width: 1.6ch;
}
.lbl {
  margin-top: .5rem; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-soft);
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(244, 239, 231, 0.6);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue span {
  width: 3px; height: 7px; background: var(--gold-soft); border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--shell); margin-inline: auto;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}
.kicker {
  margin: 0 0 .7rem; font-size: .76rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.section-title {
  font-family: var(--serif); font-weight: 500; margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.1;
}
.rule {
  width: 62px; height: 1px; margin: 1.5rem auto 2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-lead {
  max-width: var(--maxw); margin: 0 auto 1rem; color: var(--ivory-dim);
  font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 300;
}

/* ---------- Story ---------- */
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem); line-height: 1.5; color: var(--ivory);
  max-width: var(--maxw); margin: 0.5rem auto 0;
}
.pull::first-letter { color: var(--gold); }

/* ---------- Celebrations ---------- */
.events {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem); margin-top: 2.6rem;
}
.event {
  position: relative; padding: 2.6rem 1.5rem 2.2rem;
  border: 1px solid rgba(200, 169, 106, 0.22); border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.event:hover { transform: translateY(-4px); border-color: rgba(200, 169, 106, 0.5); }
.event-label, .event-tag {
  margin: 0 0 1.1rem; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.event-place { font-family: var(--serif); font-weight: 500; margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; }
.event-region { margin: .55rem 0 0; letter-spacing: .28em; text-transform: uppercase; font-size: .74rem; color: var(--ivory-dim); }
.event-date { margin: 1.4rem 0 0; color: var(--gold-soft); font-size: .95rem; letter-spacing: .06em; }

.event--feature {
  border-color: var(--gold); background:
    linear-gradient(180deg, rgba(91, 26, 43, 0.35), rgba(18, 35, 63, 0.4));
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.7);
  transform: translateY(-10px);
}
.event--feature:hover { transform: translateY(-14px); }
.event--feature .event-tag {
  display: inline-block; padding: .35rem .9rem; border: 1px solid var(--gold);
  border-radius: 999px;
}
.event--feature .event-region { color: var(--gold-soft); }

/* ---------- Photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2.4rem auto 0; max-width: 900px; }
.photo {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 3px;
  font: inherit; color: inherit; aspect-ratio: 1 / 1;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(0.98);
}
.photo::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; color: var(--ivory);
  background: rgba(11, 22, 38, 0.35); opacity: 0; transition: opacity .4s ease;
}
.photo:hover img, .photo:focus-visible img { transform: scale(1.05); }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }

/* ---------- Registry ---------- */
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .95rem 2.1rem; text-decoration: none;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border: 1px solid var(--gold);
  border-radius: 2px; font-weight: 500;
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.btn--ghost { background: transparent; color: var(--gold-soft); }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); transform: translateY(-2px); }
.btn--ghost:hover { background: rgba(200, 169, 106, 0.14); }
.inline-link {
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(200, 169, 106, 0.5);
}
.inline-link:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 3.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(200, 169, 106, 0.14);
}
.footer-names { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 2rem); margin: 0; }
.footer-date { margin: .6rem 0 0; letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--gold-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 6, 10, 0.95);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; justify-self: center; text-align: center; max-width: 92vw; }
.lb-figure img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 3px; box-shadow: 0 30px 80px -30px #000; }
.lb-count { margin-top: .9rem; color: var(--gold-soft); letter-spacing: .2em; font-size: .8rem; }
.lb-close { position: absolute; top: 14px; right: 18px; }
.lb-nav, .lb-close {
  background: none; border: 0; color: var(--ivory); cursor: pointer; line-height: 1;
  font-family: var(--serif); transition: color .2s ease, transform .2s ease;
}
.lb-close { font-size: 2.2rem; }
.lb-nav { font-size: 3rem; padding: 1rem .6rem; }
.lb-nav:hover, .lb-close:hover { color: var(--gold); transform: scale(1.08); }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0; visibility: hidden;
    background: rgba(11, 22, 38, 0.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 169, 106, 0.18);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease, padding .35s ease, visibility 0s .35s;
  }
  .nav.open .nav-links { max-height: 60vh; opacity: 1; visibility: visible; padding-block: .4rem 1rem; transition: max-height .35s ease, opacity .3s ease, padding .35s ease, visibility 0s; }
  .nav-links a { display: block; width: 100%; padding: .95rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links a:last-child { border-bottom: 0; }
  .events { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .event--feature { transform: none; order: -1; }
  .event--feature:hover { transform: translateY(-4px); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .lb-figure img { max-height: 78vh; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
