:root {
  --evergreen: #1F3A33;
  --evergreen-deep: #16291F;
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --mist: #E3E8E2;
  --sage: #8FA89A;
  --gold: #C2A36B;
  --gold-deep: #9C7F45;
  --ink: #1B2320;
  --muted: #5C6863;
  --display: "Marcellus", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--evergreen); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.loading-screen { min-height: 100vh; display: grid; place-items: center; background: var(--evergreen); color: var(--gold); }
.loading-screen svg { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.preview-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 24px); text-align: center; }
.preview-bar a { color: var(--gold); margin-left: 8px; }

/* ---------- Navigation ---------- */
.topnav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.topnav.solid, .topnav.menu-open { background: rgba(251, 251, 249, .97); color: var(--ink); box-shadow: 0 1px 0 var(--mist); backdrop-filter: blur(8px); }
.monogram { font-family: var(--display); font-size: 24px; color: inherit; text-decoration: none; letter-spacing: .04em; }
.mono-amp { color: var(--gold); margin: 0 3px; font-size: .8em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.nav-links a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .92; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.nav-links .nav-rsvp { border: 1px solid currentColor; padding: 6px 16px; border-radius: 999px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(460px, 68svh, 760px); display: grid; place-items: end center; text-align: center; color: #fff; overflow: hidden; background: var(--evergreen); }
.hero.h-full { min-height: 100svh; }
.hero.h-short { min-height: clamp(360px, 48svh, 540px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transition: opacity 1.4s ease; }
.hero-img.on { opacity: 1; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: transparent; padding: 0; cursor: pointer; }
.hero-dots .dot.on { background: var(--gold); border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .hero-img { transition: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 20, .4) 0%, rgba(14, 24, 20, 0) 22%, rgba(14, 24, 20, 0) 45%, rgba(14, 24, 20, .72) 100%); }
.hero:not(.has-photo) { place-items: center; }
.hero:not(.has-photo) .hero-shade { background: none; }
.hero:not(.has-photo)::before { content: ""; position: absolute; inset: clamp(18px, 3vw, 36px); border: 1px solid rgba(194, 163, 107, .55); pointer-events: none; }
.hero:not(.has-photo)::after { content: ""; position: absolute; inset: calc(clamp(18px, 3vw, 36px) + 7px); border: 1px solid rgba(194, 163, 107, .25); pointer-events: none; }
.hero-content { position: relative; padding: 110px 20px clamp(36px, 6vh, 72px); animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-lead { margin: 0 0 18px; font-size: clamp(16px, 2vw, 19px); letter-spacing: .06em; opacity: .95; }
.hero-names { font-size: clamp(52px, 9vw, 120px); line-height: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .28em; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero-names .amp { font-size: .55em; color: var(--gold); }
.hero:not(.has-photo) .hero-names { flex-direction: column; align-items: center; }
.hero:not(.has-photo) .hero-names .amp { font-size: .42em; margin: .1em 0; }

/* ---------- Date band ---------- */
.dateband { background: var(--evergreen); color: #fff; }
.dateband-inner { max-width: var(--wrap); margin: 0 auto; padding: 26px clamp(18px, 4vw, 40px); display: flex; align-items: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; }
.db-item { display: flex; flex-direction: column; }
.db-label { font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.db-value { font-family: var(--display); font-size: clamp(19px, 2.2vw, 24px); }
.dateband .btn-gold { margin-left: auto; }

.btn-gold { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--evergreen-deep); padding: 12px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; font-size: 16px; cursor: pointer; font-family: var(--body); }
.btn-gold:hover { background: #D1B47E; }
.btn-gold.wide { width: 100%; }
.btn-gold:disabled { opacity: .7; cursor: default; }
.btn-line { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--evergreen); border-radius: 999px; color: var(--evergreen); background: none; font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.btn-line:hover { background: var(--evergreen); color: #fff; }

/* ---------- Sections ---------- */
.intro { max-width: 760px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) 24px clamp(20px, 4vw, 40px); text-align: center; }
.intro p { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); line-height: 1.45; margin: 0; color: var(--evergreen); }
.intro .hashtag { font-family: var(--body); font-size: 15px; color: var(--gold-deep); margin-top: 18px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap.narrow { max-width: 760px; }
.section h2 { font-size: clamp(36px, 5vw, 54px); color: var(--evergreen); margin-bottom: 28px; }
.section h2::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: 18px; }
.section-lead { color: var(--muted); margin: -8px 0 26px; max-width: 60ch; }
.muted { color: var(--muted); }

.story-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-grid.no-photo { grid-template-columns: 1fr; max-width: 760px; }
.story-photo { margin: 0; position: relative; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 2px; }
.story-photo::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); z-index: -1; }
.story-text p { font-size: 18px; line-height: 1.8; max-width: 62ch; }

.details { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.event { border: 1px solid var(--mist); border-top: 3px solid var(--gold); padding: 28px 26px 24px; background: var(--paper); }
.event h3 { font-size: 30px; color: var(--evergreen); margin-bottom: 12px; }
.event p { margin: 0 0 8px; }
.event-when { font-weight: 600; display: flex; flex-direction: column; }
.event-when span { font-weight: 400; color: var(--muted); }
.event-venue { font-size: 19px; }
.event-address, .event-notes { color: var(--muted); font-size: 15px; }
.event-meta strong, .hotel strong { font-weight: 600; margin-right: 6px; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.masonry { columns: 3 280px; column-gap: 14px; }
.shot { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; position: relative; break-inside: avoid; overflow: hidden; }
.shot img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-size: 14px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }

.party { background: var(--white); border-top: 1px solid var(--mist); }
.party-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 24px; }
.member { text-align: center; width: 210px; }
.member img, .member-initial { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; margin: 0 auto 14px; background: var(--evergreen); color: var(--gold); font-family: var(--display); font-size: 48px; box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--white), 0 0 0 8px var(--mist); }
.member h3 { font-size: 22px; color: var(--evergreen); }
.member-role { color: var(--gold-deep); margin: 2px 0 6px; font-size: 15px; }
.member-bio { color: var(--muted); font-size: 15px; margin: 0; }

.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.sub-head { font-family: var(--body); font-size: 17px; font-weight: 700; color: var(--evergreen); margin: 24px 0 4px; }
.hotels { display: grid; gap: 14px; }
.hotel { background: var(--white); border: 1px solid var(--mist); padding: 22px 24px; }
.hotel h3 { font-size: 24px; color: var(--evergreen); margin-bottom: 6px; }
.hotel p { margin: 0 0 6px; font-size: 16px; }

.registry { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.registry-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.registry-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--mist); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s; }
.registry-card:hover { border-color: var(--gold); }
.registry-name { font-family: var(--display); font-size: 24px; color: var(--evergreen); }
.registry-note { color: var(--muted); font-size: 15px; }
.registry-go { margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--gold-deep); }

.qa { border-top: 1px solid var(--mist); }
.qa:last-of-type { border-bottom: 1px solid var(--mist); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 28px; color: var(--gold); transition: transform .2s; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa-a { padding: 0 0 18px; color: #36413C; }
.qa-a p { margin: 0 0 10px; }
.faq-contact { margin-top: 24px; color: var(--muted); }

/* ---------- RSVP ---------- */
.rsvp { background: var(--evergreen); color: #fff; }
.rsvp h2 { color: #fff; }
.rsvp-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.rsvp-intro p { font-size: 18px; color: #DCE5DF; }
.rsvp-deadline { color: var(--gold) !important; font-weight: 600; }
.rsvp-card { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 40px); border-radius: 2px; }
.rsvp-card a { color: var(--evergreen); }
.f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.f > span, .f legend { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.f input, .f select, .f textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #CBD3CD; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--evergreen); box-shadow: 0 0 0 3px rgba(31, 58, 51, .14); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.attend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attend legend { grid-column: 1 / -1; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 14px 10px; border: 1px solid #CBD3CD; border-radius: 4px; font-weight: 600; background: #fff; }
.choice input:checked + span { border-color: var(--evergreen); background: var(--evergreen); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: #A33B52; min-height: 1.4em; margin: 0 0 10px; font-size: 15px; }
.rsvp-thanks { text-align: center; padding: 30px 10px; }
.rsvp-thanks h3 { font-size: 34px; color: var(--evergreen); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--evergreen-deep); color: #C9D4CD; text-align: center; padding: 56px 20px 40px; }
.footer p { margin: 4px 0; }
.footer-names { font-family: var(--display); font-size: 34px; color: #fff; }
.footer .amp { color: var(--gold); }
.footer-note { font-style: italic; margin-top: 12px !important; }
.footer .hashtag { color: var(--gold); }
.footer-signin { margin-top: 28px !important; font-size: 13px; }
.footer-signin a { color: #9FB0A6; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 13, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 100vh; padding: 20px 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.lightbox figcaption { color: #E4EAE6; font-size: 15px; }
.lb-close { position: absolute; top: 12px; right: 16px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 36px; cursor: pointer; }
.lb-nav { height: 64px; border: 0; background: none; color: #fff; font-size: 54px; cursor: pointer; font-family: var(--display); }

/* ---------- Coming soon ---------- */
.soon { min-height: 100vh; background: var(--evergreen); color: #DCE5DF; display: grid; place-items: center; padding: 24px; text-align: center; position: relative; }
.soon-frame { border: 1px solid rgba(194, 163, 107, .6); outline: 1px solid rgba(194, 163, 107, .25); outline-offset: 8px; padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 72px); max-width: 640px; }
.soon-lead { color: var(--gold); margin: 0 0 12px; letter-spacing: .06em; }
.soon-names { font-size: clamp(44px, 8vw, 80px); color: #fff; margin-bottom: 18px; }
.soon-names .amp { color: var(--gold); }
.soon-signin { position: absolute; bottom: 20px; font-size: 13px; color: #9FB0A6; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 12px 20px rgba(0, 0, 0, .08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 17px; }
  .nav-links .nav-rsvp { margin-top: 12px; text-align: center; border-color: var(--evergreen); }
  .story-grid, .travel-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .story-photo { margin-right: 16px; }
  .dateband-inner { gap: 16px 28px; }
  .dateband .btn-gold { margin-left: 0; width: 100%; }
  .f-row { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { font-size: 40px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .shot { margin-bottom: 8px; }
  .shot-cap { display: none; }
  .member img, .member-initial { width: 120px; height: 120px; }
  .attend { grid-template-columns: 1fr; }
}

@media print {
  .topnav, .preview-bar, .lightbox, .event-actions, .rsvp { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
}
