:root {
  --ink: #222;
  --muted: #616161;
  --line: #b8b8b8;
  --paper: #fff;
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --header-height: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 2000;
  background: #111;
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: blur(12px);
}
.monogram {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.menu-toggle {
  width: 35px;
  height: 35px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 0;
  padding: 7px 3px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 29px;
  height: 1px;
  background: #111;
  transition: transform .25s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.desktop-nav { display: none; }
.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 auto;
  display: grid;
  justify-items: center;
  gap: 19px;
  padding: 34px 20px 40px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #ddd;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a, .mobile-menu button {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}

main { overflow: hidden; }
.section-pad { padding: clamp(80px, 24vw, 128px) 22px; }
.narrow { width: min(100%, 540px); margin-inline: auto; text-align: center; }
.section-title {
  margin: 0 0 38px;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 60px);
  font-weight: 400;
  line-height: 1.08;
}
.script-title {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(50px, 15vw, 78px);
  font-weight: 400;
  line-height: .95;
}
.overline {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.editorial-text { max-width: 420px; margin: 28px auto 0; }

.hero { padding-top: var(--header-height); text-align: center; }
.hero-eyebrow {
  margin: 0;
  padding: 24px 16px 21px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.hero-photo { height: min(74svh, 680px); margin: 0; overflow: hidden; }
.hero-photo img { height: 100%; object-fit: cover; object-position: center 47%; }
.hero-copy { padding: 50px 18px 72px; }
.hero-names {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 3vw, 18px);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 12.5vw, 68px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: normal;
}
.hero-names span:nth-child(2) { font-size: .7em; }
.hero-intro {
  max-width: 310px;
  margin: 40px auto 12px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.8;
  text-transform: uppercase;
}
.hero-date {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 8vw, 40px);
  letter-spacing: .14em;
}
.hero-message { max-width: 290px; margin: 26px auto 0; color: var(--muted); font-size: 12px; }

.countdown { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.countdown .section-title { margin-bottom: 25px; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}
.countdown-grid div { position: relative; display: grid; gap: 6px; }
.countdown-grid div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 1px;
  height: 34px;
  background: var(--line);
}
.countdown-grid strong { font-family: var(--serif); font-size: clamp(24px, 8vw, 42px); font-weight: 400; line-height: 1; }
.countdown-grid span { font-size: 7px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.countdown-today { margin: 30px 0 0; font-family: var(--serif); font-size: 26px; }

.venues { padding-inline: 0; }
.venue-row {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.venue-row-reverse { grid-template-columns: minmax(0, 54%) minmax(0, 46%); }
.venue-row-reverse .venue-photo { order: 2; }
.venue-photo { height: 265px; overflow: hidden; }
.venue-photo img { height: 100%; object-fit: cover; filter: grayscale(1); }
.venue-content { padding: 20px 18px; text-align: center; }
.venue-content h2 {
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: clamp(42px, 13vw, 64px);
  font-weight: 400;
  line-height: .9;
}
.venue-time { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; }
.venue-name { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.4; }
.venue-address { margin: 7px 0 14px; font-size: 9px; line-height: 1.55; }
.text-button, .venue-link, .calendar-options a, .calendar-options button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.is-disabled { opacity: .45; cursor: not-allowed; }
.calendar-wrap { position: relative; display: grid; justify-items: center; margin: 14px auto 0; }
.calendar-options { display: flex; gap: 20px; margin-top: 20px; }

.itinerary { border-top: 1px solid #eee; }
.itinerary-list { display: grid; gap: 62px; margin-top: 50px; }
.itinerary-item { position: relative; }
.itinerary-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  width: 1px;
  height: 30px;
  background: #bbb;
}
.itinerary-item time { display: block; font-family: var(--serif); font-size: 23px; }
.itinerary-item h3 { margin: 4px 0 0; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }

.story-copy { margin-bottom: 58px; }
.story-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: min(100%, 1100px); margin: auto; }
.story-triptych figure { height: clamp(250px, 74vw, 620px); margin: 0; overflow: hidden; }
.story-triptych img { height: 100%; object-fit: cover; filter: grayscale(1); }

.gallery { padding-inline: 0; }
.gallery > .section-title { padding-inline: 22px; text-align: center; }
.gallery-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; max-width: 1100px; margin: 54px auto 0; }
.gallery-item { grid-column: span 6; height: 300px; margin: 0; overflow: hidden; cursor: zoom-in; }
.gallery-item:nth-child(1) { grid-column: 1 / 9; height: 390px; }
.gallery-item:nth-child(2) { grid-column: 9 / 13; height: 310px; margin-top: 80px; }
.gallery-item:nth-child(3) { grid-column: 1 / 6; height: 310px; }
.gallery-item:nth-child(4) { grid-column: 6 / 13; height: 365px; }
.gallery-item button { width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-item img { height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .7s ease; }
.gallery-item button:hover img { transform: scale(1.025); }

.details { display: grid; width: min(100%, 760px); margin: auto; padding-top: 40px; }
.detail-block { padding: 62px 10px; text-align: center; border-top: 1px solid var(--line); }
.detail-block:last-child { border-bottom: 1px solid var(--line); }
.detail-block h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.detail-block p { max-width: 390px; margin: 0 auto 13px; }
.detail-value { font-family: var(--serif); font-size: 25px; }
.iban { overflow-wrap: anywhere; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.copy-iban { margin-top: 15px; }

.rsvp-banner { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.rsvp-banner > img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: grayscale(1); }
.rsvp-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.rsvp-panel {
  position: relative;
  z-index: 1;
  width: min(76%, 345px);
  padding: 55px 32px;
  background: rgba(35, 35, 35, .68);
  color: white;
  text-align: center;
}
.rsvp-panel h2 { margin: 0; font-family: var(--script); font-size: clamp(48px, 14vw, 70px); font-weight: 400; line-height: .9; }
.rsvp-panel p { margin: 25px auto; font-size: 11px; }
.light-button { border: 0; border-bottom: 1px solid #fff; padding: 4px 0; background: none; color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }

.photo-sharing { text-align: center; }
.dark-button {
  display: inline-block;
  margin-top: 32px;
  border: 1px solid #171717;
  padding: 13px 27px;
  background: #171717;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.site-footer { padding-top: 30px; text-align: center; }
.footer-names { margin: 0; font-family: var(--serif); font-size: 35px; }
.site-footer p:last-child { margin: 6px 0 0; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }

.music-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 900;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(25, 25, 25, .88);
  color: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .16);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.modal, .lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, .65); }
.modal {
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-dialog {
  position: relative;
  width: min(100%, 650px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 55px 22px 42px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 200;
  cursor: pointer;
}
.modal-heading { max-width: 470px; margin-inline: auto; text-align: center; }
.modal-heading h2 { margin: 6px 0 14px; font-family: var(--serif); font-size: clamp(35px, 10vw, 52px); font-weight: 400; line-height: 1.1; }
.rsvp-deadline { max-width: 360px; margin: 0 auto 26px; color: #666; font-size: 10px; line-height: 1.6; }
.rsvp-progress { width: 100%; height: 1px; margin: 0 0 14px; background: #dedede; overflow: hidden; }
.rsvp-progress span { display: block; width: 0; height: 100%; background: #181818; transition: width .35s ease; }
.rsvp-form { display: grid; gap: 0; }
.form-section { display: grid; gap: 26px; padding: 48px 0; border-top: 1px solid #d3d3d3; }
.form-section-first { border-top: 0; }
.form-section-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 2px; }
.form-section-heading span { color: #969696; font-family: var(--serif); font-size: 11px; }
.form-section-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(25px, 8vw, 33px); font-weight: 400; line-height: 1.1; }
.rsvp-form label:not(.choice):not(.check-choice), .rsvp-form legend {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
}
.field-hint { position: absolute; right: 0; top: 0; color: #888; font-size: 7px; font-weight: 400; letter-spacing: .1em; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]), .rsvp-form textarea, .rsvp-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #888;
  border-radius: 0;
  padding: 9px 1px;
  background: transparent;
  color: #222;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}
.rsvp-form textarea { border: 1px solid #aaa; padding: 10px; resize: vertical; }
.rsvp-form select { min-height: 46px; appearance: none; background: linear-gradient(45deg, transparent 50%, #555 50%) calc(100% - 13px) 21px / 5px 5px no-repeat, linear-gradient(135deg, #555 50%, transparent 50%) calc(100% - 8px) 21px / 5px 5px no-repeat; }
.rsvp-form input:focus, .rsvp-form textarea:focus, .rsvp-form select:focus { border-color: #000; box-shadow: 0 1px 0 #000; }
.rsvp-form fieldset { margin: 0; border: 0; padding: 0; }
.rsvp-form legend { margin-bottom: 12px; }
.choice, .check-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-right: 20px; font-size: 11px; cursor: pointer; }
.choice input { accent-color: #222; }
.check-choice input { width: 16px; height: 16px; margin: 0; accent-color: #222; }
.attendance-choices, .stacked-choices { display: grid; justify-items: start; }
.attendance-choices .choice { width: 100%; margin: 0; border-bottom: 1px solid #e2e2e2; }
.conditional-group { display: grid; gap: 0; }
.rsvp-nested { display: grid; gap: 28px; padding-top: 4px; }
.rsvp-subfield { margin-top: 2px; }
.people-list { display: grid; gap: 32px; }
.person-block { display: grid; gap: 24px; padding: 28px 0 0; border-top: 1px solid #e5e5e5; }
.person-block h4 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.child-fields { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; }
.quick-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rsvp-reveal { opacity: 0; transform: translateY(10px); transition: opacity .32s ease, transform .32s ease; }
.rsvp-reveal.is-visible { opacity: 1; transform: none; }
.rsvp-final { display: grid; padding-top: 46px; border-top: 1px solid #d3d3d3; }
.rsvp-summary { margin-bottom: 34px; padding: 0 2px; }
.rsvp-summary > .overline { margin-bottom: 15px; }
.rsvp-summary div { display: grid; gap: 7px; }
.rsvp-summary div p { display: flex; justify-content: space-between; gap: 18px; margin: 0; font-size: 10px; }
.rsvp-summary strong { font-weight: 600; text-transform: uppercase; }
.rsvp-summary span { text-align: right; }
.submit-button { width: 100%; min-height: 52px; justify-self: stretch; margin: 0; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.privacy-note { max-width: 390px; margin: 18px auto 0; color: #777; font-size: 8px; line-height: 1.6; text-align: center; }
.form-status { min-height: 24px; margin: 12px 0 0; color: #7c2626; font-size: 10px; text-align: center; }
.rsvp-success { min-height: 360px; display: grid; align-content: center; justify-items: center; padding: 40px 10px; text-align: center; }
.rsvp-success h3 { max-width: 420px; margin: 0; font-family: var(--serif); font-size: clamp(37px, 11vw, 52px); font-weight: 400; line-height: 1.1; }
.rsvp-success p { max-width: 370px; margin: 24px auto 0; }

.lightbox { padding: 16px; }
.lightbox-dialog { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; object-fit: contain; box-shadow: 0 20px 70px rgba(0, 0, 0, .35); }
.lightbox button { position: absolute; z-index: 2; border: 0; background: transparent; color: #fff; cursor: pointer; }
.lightbox-close { top: 0; right: 0; font-size: 38px; }
.lightbox-prev, .lightbox-next { top: 50%; font-size: 52px; transform: translateY(-50%); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox p { position: absolute; bottom: 0; margin: 0; color: white; font-size: 10px; letter-spacing: .15em; }

.reveal, .image-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .65, .3, 1);
}
.image-reveal { transform: scale(.97) translateY(20px); transition-duration: 1s; }
.reveal.is-visible, .image-reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (min-width: 700px) {
  :root { --header-height: 70px; }
  body { font-size: 15px; }
  .site-header { padding-inline: 35px; }
  .monogram, .menu-toggle, .mobile-menu { display: none; }
  .desktop-nav { width: 100%; display: flex; justify-content: center; gap: clamp(20px, 3vw, 52px); }
  .desktop-nav a, .desktop-nav button { border: 0; background: none; font-size: 8px; font-weight: 500; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
  .hero-eyebrow { padding-block: 32px; }
  .hero-photo { height: min(78vh, 880px); }
  .hero-copy { padding-block: 72px 110px; }
  .venue-row { margin-bottom: 100px; }
  .venue-photo { height: 380px; }
  .venue-content { padding: 45px; }
  .story-triptych { gap: 12px; padding-inline: 18px; }
  .gallery-layout { gap: 14px; padding-inline: 18px; }
  .gallery-item:nth-child(1) { height: 630px; }
  .gallery-item:nth-child(2) { height: 490px; margin-top: 140px; }
  .gallery-item:nth-child(3) { height: 500px; }
  .gallery-item:nth-child(4) { height: 590px; }
  .rsvp-banner { min-height: 600px; }
  .modal-dialog { padding: 70px 70px 55px; }
}

@media (min-width: 1100px) {
  .hero-photo { width: min(100%, 1366px); height: min(78vh, 850px); margin-inline: auto; }
  .hero-copy { padding-bottom: 130px; }
  .section-pad { padding-block: 130px; }
  .venues { display: grid; grid-template-columns: repeat(2, minmax(0, 550px)); justify-content: center; column-gap: 80px; }
  .venue-row, .venue-row-reverse { width: 100%; grid-template-columns: 47% 53%; margin: 0; }
  .venue-row-reverse .venue-photo { order: initial; }
  .venue-photo { height: 350px; }
  .venue-content { padding: 28px; }
  .calendar-wrap { grid-column: 1 / -1; margin-top: 85px; }
  .itinerary-list { grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 950px; margin-inline: auto; }
  .itinerary-item:not(:last-child)::after { left: calc(50% + 70px); top: 30px; width: calc(100% - 140px); height: 1px; }
  .rsvp-banner { width: min(100%, 1366px); margin-inline: auto; }
}

@media (max-width: 350px) {
  .hero-names { font-size: clamp(35px, 11.5vw, 42px); gap: 6px; }
  .hero-photo { height: 67svh; }
  .venue-content { padding-inline: 12px; }
  .venue-content h2 { font-size: 39px; }
  .venue-photo { height: 235px; }
  .gallery-item:nth-child(1) { height: 330px; }
  .gallery-item:nth-child(2) { height: 255px; }
  .gallery-item:nth-child(3) { height: 260px; }
  .gallery-item:nth-child(4) { height: 310px; }
  .children-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .image-reveal { opacity: 1; transform: none; }
}
