:root {
  --ivory: #faf6ef;
  --cream: #f3ece0;
  --champagne: #e9dcc5;
  --gold: #b08d57;
  --gold-soft: #d4bc8f;
  --sage: #7d8f7a;
  --sage-deep: #4f5f4d;
  --ink: #2e2a26;
  --muted: #6f665c;
  --crimson: #7a1c1c;
  --crimson-deep: #4a0f12;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Shared ---------- */
.section { padding: 110px 24px; text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.eyebrow.dark { color: var(--gold); }

.section-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 1.1;
  color: var(--sage-deep);
  margin-bottom: 48px;
}
.section-title.light { color: var(--ivory); }

.ornament { color: var(--gold); width: 140px; margin: 0 auto 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-deep);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--gold); color: var(--ivory); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  padding: 12px 32px;
  box-shadow: 0 1px 0 rgba(176, 141, 87, .25);
}
.nav-mark {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: .15em; text-decoration: none;
  color: var(--ivory); transition: color .4s;
}
.nav-mark span { font-family: var(--script); color: var(--gold-soft); }
.nav.scrolled .nav-mark { color: var(--sage-deep); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory); opacity: .9; transition: color .4s, opacity .3s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--ivory);
  transition: transform .3s, top .3s, background .4s;
}
.nav-toggle span:first-child { top: 8px; }
.nav-toggle span:last-child { top: 15px; }
.nav.scrolled .nav-toggle span, .nav.open .nav-toggle span { background: var(--ink); }
.nav.open .nav-toggle span:first-child { top: 12px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  text-align: center; color: var(--ivory); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 12%;
  transform: scale(1.08); transform-origin: center 30%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 26, 22, .45) 0%, rgba(30, 26, 22, .05) 30%, rgba(30, 26, 22, .15) 55%, rgba(30, 26, 22, .78) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px 130px; }
.hero .eyebrow { color: var(--champagne); }
.names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em;
}
.names .amp { color: var(--gold-soft); font-size: .7em; }
.hero-date {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--sans); font-size: .85rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero-date .line { width: 48px; height: 1px; background: var(--gold-soft); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--champagne);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--champagne), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Countdown ---------- */
.countdown-section {
  background:
    radial-gradient(ellipse at top, rgba(233, 220, 197, .6), transparent 70%),
    var(--ivory);
}
.countdown {
  display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px);
  margin: 0 auto 48px; max-width: 760px;
}
.unit {
  flex: 1 1 0; max-width: 160px;
  padding: 26px 8px 20px;
  border: 1px solid rgba(176, 141, 87, .45);
  border-radius: 999px 999px 18px 18px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 30px -18px rgba(79, 95, 77, .45);
}
.num {
  display: block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}
.label {
  display: block; margin-top: 10px;
  font-family: var(--sans); font-size: clamp(.58rem, 1.6vw, .72rem);
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.countdown-done { font-size: 1.5rem; font-style: italic; color: var(--sage-deep); margin-bottom: 40px; }

/* ---------- Verse ---------- */
.verse {
  padding: 90px 24px;
  background: var(--sage-deep);
  color: var(--ivory); text-align: center;
  position: relative;
}
.verse::before, .verse::after {
  content: ""; position: absolute; left: 50%; width: 1px; height: 40px; background: var(--gold-soft);
}
.verse::before { top: 0; }
.verse::after { bottom: 0; }
.verse blockquote { max-width: 720px; margin: 0 auto; }
.verse p { font-size: clamp(1.3rem, 3.2vw, 1.85rem); font-style: italic; font-weight: 300; line-height: 1.5; }
.verse cite {
  display: block; margin-top: 20px; font-style: normal;
  font-family: var(--sans); font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft);
}

/* ---------- Couple ---------- */
.couple { background: var(--cream); }
.couple-grid {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 80px);
  flex-wrap: wrap;
}
.person-role { font-family: var(--sans); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.person-name { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 8vw, 4.6rem); color: var(--ink); line-height: 1.2; }
.couple-amp { font-family: var(--script); font-size: clamp(3rem, 8vw, 4.6rem); color: var(--gold); }
.couple-note { max-width: 560px; margin: 36px auto 0; font-size: 1.2rem; color: var(--muted); font-style: italic; }

/* ---------- Events ---------- */
.events {
  background:
    linear-gradient(rgba(74, 15, 18, .92), rgba(74, 15, 18, .95)),
    radial-gradient(circle at 20% 20%, var(--crimson), var(--crimson-deep));
  color: var(--ivory);
  position: relative;
}
.events::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(212, 188, 143, .3); pointer-events: none;
}
.event-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.event-card {
  position: relative;
  padding: 48px 32px 40px;
  border: 1px solid rgba(212, 188, 143, .55);
  border-radius: 200px 200px 6px 6px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.event-icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--gold-soft); }
.event-card h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: .04em; }
.event-date { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 8px 0 26px; }
.event-details { display: grid; gap: 12px; margin-bottom: 30px; }
.event-details div { border-top: 1px solid rgba(212, 188, 143, .25); padding-top: 12px; }
.event-details dt { font-family: var(--sans); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.event-details dd { font-size: 1.2rem; font-style: italic; }
.badge {
  display: inline-block;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 999px;
  background: var(--gold-soft); color: var(--crimson-deep);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 188, 143, .5); } 50% { box-shadow: 0 0 0 10px rgba(212, 188, 143, 0); } }
.events-note { margin-top: 40px; font-style: italic; font-size: 1.15rem; opacity: .85; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  max-width: 960px; margin: 0 auto;
}
.photo {
  position: relative; overflow: hidden; cursor: zoom-in;
  border-radius: 220px 220px 4px 4px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 50px -30px rgba(46, 42, 38, .55);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s ease; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 22px;
  background: linear-gradient(transparent, rgba(30, 26, 22, .7));
  color: var(--ivory); font-size: 1.1rem; font-style: italic;
}
.photo figcaption span {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft);
}

/* ---------- Closing ---------- */
.closing {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ivory); overflow: hidden;
}
.closing-bg {
  position: absolute; inset: -40px 0;
  background-size: cover; background-position: center 30%;
  background-attachment: fixed;
}
.closing-overlay { position: absolute; inset: 0; background: rgba(46, 12, 14, .68); }
.closing-content { position: relative; z-index: 2; padding: 80px 24px; }
.closing .eyebrow { color: var(--champagne); }
.closing-names { font-family: var(--script); font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1.15; }
.closing-date { margin-top: 10px; font-family: var(--sans); letter-spacing: .4em; font-size: .9rem; color: var(--gold-soft); }

.footer {
  padding: 28px 24px; text-align: center;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); background: var(--cream);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 17, 14, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: absolute; top: 16px; right: 22px;
  background: none; border: 0; color: var(--ivory); font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .section { padding: 84px 16px; }
  .nav, .nav.scrolled { padding: 14px 18px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: center; gap: 26px;
    padding: 90px 24px 40px;
    background: var(--ivory);
    transform: translateY(-100%); transition: transform .45s ease;
    z-index: -1;
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .3);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { color: var(--ink); font-size: .85rem; }
  .nav.open .nav-mark { color: var(--sage-deep); }

  .hero-content { padding-bottom: 110px; }
  .hero-date { gap: 10px; font-size: .7rem; letter-spacing: .2em; }
  .hero-date .line { width: 24px; }

  .countdown { gap: 8px; }
  .unit { padding: 18px 4px 14px; border-radius: 999px 999px 12px 12px; }

  .event-grid, .gallery-grid { grid-template-columns: 1fr; }
  .event-card { border-radius: 160px 160px 6px 6px; padding: 44px 22px 34px; }
  .couple-grid { flex-direction: column; gap: 4px; }

  .closing-bg { background-attachment: scroll; inset: 0; }
}
@media (max-width: 520px) {
  .names { flex-direction: column; align-items: center; font-size: 3.6rem; }
  .names .amp { margin: -.15em 0; }
}
