:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --cream: #fffdf8;
  --ink: #18283b;
  --navy: #183654;
  --navy-dark: #10243b;
  --mute: #475970;
  --line: #c7d1d9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #4f718d; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip, .sr-only, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: .5rem; left: .5rem; z-index: 5; clip-path: none; width: auto; height: auto; background: var(--cream); padding: .5rem; }
.masthead { padding: .7rem clamp(1.1rem, 5vw, 5rem); min-height: 67px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.monogram { color: var(--navy); font: 1.75rem/1 var(--serif); letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.monogram span { font-style: italic; font-size: .75em; padding: 0 .11em; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3.3vw, 2.75rem); font-size: .82rem; }
nav a { text-decoration: none; padding: .45rem .15rem; }
nav a:hover, .text-link:hover { color: #3c6689; }
.nav-reply { border: 1px solid var(--navy); color: var(--navy); padding: .35rem .85rem; }
.hero { display: grid; grid-template-columns: 46% 54%; min-height: clamp(470px, 44vw, 710px); border-bottom: 1px solid var(--line); }
.hero-copy {
  --champagne: #d7bc87;
  --hero-frame: clamp(.8rem, 1.45vw, 1.65rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(ellipse at 45% 28%, #233e59, #122941 66%, #102237);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.35rem, 3vw, 3.25rem);
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: var(--hero-frame);
  border: 1px solid rgb(215 188 135 / .42);
  pointer-events: none;
}
.hero-copy .eyebrow { color: var(--champagne); letter-spacing: .22em; margin-bottom: 1.15rem; }
.eyebrow { margin: 0 0 .95rem; font-size: .72rem; font-weight: 650; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { color: var(--navy-dark); font-size: clamp(3rem, 6.4vw, 7.9rem); line-height: .96; letter-spacing: -.075em; }
.hero-copy h1 {
  color: inherit;
  font-size: clamp(1.95rem, 4.6vw, 6.35rem);
  line-height: 1.08;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.hero-copy h1 span { color: var(--champagne); font-style: italic; font-size: .67em; margin-inline: .11em; }
.hero-rule { display: flex; align-items: center; gap: .9rem; width: min(13rem, 66%); color: var(--champagne); margin: 1.45rem 0 1.15rem; }
.hero-rule::before, .hero-rule::after { content: ""; background: currentColor; opacity: .48; height: 1px; flex: 1; }
.hero-rule svg { display: block; flex: none; }
.hero-date { margin: 0 0 1.55rem; font: clamp(1.45rem, 2.5vw, 2.4rem)/1.2 var(--serif); }
.hero-date span { padding: 0 .24em; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; padding: .75rem 1.05rem; background: var(--navy); color: #fffdf8; text-decoration: none; border: 1px solid var(--navy); font-size: .9rem; font-weight: 600; }
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.button:disabled { opacity: .7; cursor: wait; }
.hero-copy .button { color: var(--cream); background: transparent; border-color: var(--champagne); }
.hero-copy .button:hover { color: var(--navy-dark); background: var(--champagne); }
.hero-copy .button:focus-visible { outline-color: var(--champagne); }
.hero-image { margin: 0; position: relative; background: #354a59; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 43% center; position: absolute; inset: 0; }
.section { padding: clamp(3.5rem, 7vw, 7.5rem) max(1.2rem, calc((100vw - 1080px) / 2)); }
.section-intro { text-align: center; margin: 0 auto clamp(2rem, 4vw, 3.6rem); }
.section-intro > p:not(.eyebrow) { color: var(--mute); margin-bottom: 0; }
h2 { font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 1.04; letter-spacing: -.055em; color: var(--navy-dark); }
h3 { font-size: clamp(1.4rem, 2.7vw, 2.35rem); line-height: 1.12; letter-spacing: -.03em; }
.venues { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.venue { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 4vw, 3.6rem); }
.venue + .venue { border-left: 1px solid var(--line); }
.venue > p:not(.eyebrow) { color: var(--mute); }
.text-link { text-underline-offset: .28em; color: var(--navy); font-size: .91rem; font-weight: 600; }
.schedule-date { display: block; color: var(--navy); font: clamp(1.55rem, 3.4vw, 2.65rem)/1.2 var(--serif); margin-top: .6rem; }
.venue-time { display: block; color: var(--navy); font: clamp(1.85rem, 4vw, 3.75rem)/1.1 var(--serif); margin: 0 0 1rem; letter-spacing: -.04em; }
.venue .text-link { margin-top: auto; }
.travel { margin: 2rem auto 0; padding: 1.15rem 0; max-width: 44rem; text-align: center; }
.travel h3 { font-size: 1.55rem; color: var(--navy-dark); }
.travel p { color: var(--mute); margin-bottom: 0; }
.gallery { background: #e5edf1; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 1.5vw, 1.2rem); }
.photo { display: block; overflow: hidden; background: #617689; aspect-ratio: 3 / 2; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo:hover img { transform: scale(1.025); }
.photo-hands, .photo-water { grid-column: 1 / -1; aspect-ratio: 2.65; }
.photo-water img { object-position: center 40%; }
.response { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(1.6rem, 5vw, 5.2rem); background: var(--navy-dark); color: #f9f6ed; }
.response h2 { color: inherit; font-size: clamp(2.25rem, 4.3vw, 4.1rem); }
.reply-deadline { color: #f4e5c8; font: clamp(1.55rem, 3vw, 2.5rem)/1.2 var(--serif); margin: 1.1rem 0; }
.response-intro { padding-top: .7rem; }
.response-intro > p:last-child { max-width: 28ch; color: #dce6ee; }
.form-paper { padding: clamp(1.15rem, 3vw, 2.5rem); background: var(--cream); color: var(--ink); }
form { display: grid; gap: 1.1rem; }
.field { display: block; font-weight: 600; font-size: .91rem; }
input:not([type="radio"], [type="checkbox"]), textarea, select { display: block; color: var(--ink); background: #fffdf8; border: 1px solid #899bac; border-radius: 0; padding: .62rem .75rem; margin-top: .4rem; width: 100%; min-height: 44px; font-size: 1rem; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 .45rem; font-size: .91rem; font-weight: 600; }
.attendance { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.choice { display: flex; align-items: center; gap: .5rem; font-size: .91rem; cursor: pointer; min-height: 44px; }
.attendance .choice { padding: .5rem; border: 1px solid var(--line); }
.attendance .choice:has(:checked) { border-color: var(--navy); background: #e7eff6; }
.choice input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.optional, .choice small { color: var(--mute); font-weight: 400; }
.travel-options { margin-top: 1rem; }
.travel-options small { display: block; font-size: .81rem; }
.privacy-note { font-size: .78rem; color: var(--mute); margin: 0; }
.form-status { margin: 0; background: #e1eee8; padding: .75rem; }
.form-status.error { background: #f6dddd; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.4rem clamp(1.1rem, 5vw, 5rem); font-size: .84rem; color: var(--mute); }
footer p { margin: 0; }
dialog { background: #112338; border: 0; color: #fffdf8; width: min(95vw, 1000px); padding: .65rem; }
dialog::backdrop { background: #09192aed; }
dialog img { display: block; width: 100%; max-height: 75dvh; object-fit: contain; }
.lightbox-head, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; }
dialog button { background: transparent; border: 1px solid #9baebf; color: inherit; min-width: 44px; min-height: 44px; font-size: 1.25rem; }
@media (max-width: 700px) {
  .masthead { min-height: 57px; }
  nav { gap: .6rem; font-size: .76rem; }
  .nav-reply { padding-inline: .45rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: clamp(2.5rem, 9vw, 4rem) 1.4rem; }
  h1 { font-size: clamp(2.5rem, 10vw, 4.3rem); line-height: 1; }
  .hero-copy h1 { font-size: clamp(1.8rem, 10.2vw, 4.8rem); }
  .hero-rule { margin-block: 1rem; }
  .hero-image { aspect-ratio: 1.25; }
  .hero-date { margin-bottom: 1rem; }
  .venues, .response { grid-template-columns: 1fr; }
  .venue + .venue { border-left: 0; border-top: 1px solid var(--line); }
  .response-intro > p:last-child { max-width: 42ch; margin-bottom: 0; }
  .photo { aspect-ratio: 1.24; }
  .photo-hands, .photo-water { aspect-ratio: 1.85; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero { view-timeline: --invitation block; }
    .hero-copy h1 {
      animation: invitation-rise linear both;
      animation-timeline: --invitation;
      animation-range: exit 0% exit 75%;
    }
    .hero-rule svg {
      animation: compass-turn linear both;
      animation-timeline: --invitation;
      animation-range: exit 0% exit 75%;
    }
    @keyframes invitation-rise { to { transform: translateY(14px); } }
    @keyframes compass-turn { to { transform: rotate(32deg); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
