@font-face {
  font-family: Cormorant;
  src: url('/assets/cormorant.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('/assets/cormorant-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/dm-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --blue: #174a80;
  --deep: #103e6d;
  --paper: #fbfcfa;
  --soft: #edf3f7;
  --line: #c7d5e1;
  --muted: #56728b;
  --serif: Cormorant, Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --header: 80px;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
em { font-weight: 400; }
.screen { min-height: 680px; height: 100svh; position: relative; scroll-margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }

.site-header {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}
.monogram { font-family: var(--serif); font-size: 34px; letter-spacing: .02em; line-height: 1; }
.monogram span { font-style: italic; font-size: 25px; padding: 0 3px; }
.header-date { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.header-rsvp { font-size: 14px; letter-spacing: .1em; border-bottom: 1px solid; padding: 8px 0; }
.header-rsvp span { padding-left: 14px; }

.hero { padding: calc(var(--header) + 25px) 5% 0; display: flex; flex-direction: column; }
.hero-heading { text-align: center; margin-bottom: 28px; }
.hero h1 { font-size: clamp(70px, 7.8vw, 118px); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 em { font-size: .72em; padding: 0 .1em; }
.hero-intro { max-width: 36em; margin: 0 auto 12px; font-size: 17px; color: var(--muted); }
.hero-gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-height: 0; width: 100%; max-width: 1120px; margin: 0 auto; }
.hero-photo-wrap { min-width: 0; min-height: 0; height: 100%; position: relative; overflow: hidden; background: var(--blue); border-radius: 48% 48% 0 0 / 20% 20% 0 0; }
.hero-photo { object-position: 50% 58%; }
.hero-photo.couple-photo { object-position: 64% 65%; }
.hero-bottom { height: 76px; flex-shrink: 0; display: flex; gap: 15px; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.hero-bottom > span:not(.scroll-cue) { flex: 1; }
.hero-bottom > span:last-child { text-align: right; }
.scroll-cue { font-size: 26px; font-family: var(--serif); }

.celebration { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 7vh 9%; gap: 9%; background: var(--soft); }
.venue-photo-wrap { position: relative; width: 100%; height: min(62svh, 560px); min-height: 0; overflow: hidden; border-radius: 48% 48% 0 0 / 30% 30% 0 0; background: var(--blue); }
.venue-photo { object-position: center 58%; }
.venue-photo-credit { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 13px 10px; color: white; background: linear-gradient(transparent, #062747df); font-size: 12px; line-height: 1.4; }
.venue-photo-credit span { margin-left: 5px; }
.venue-intro { max-width: 380px; color: var(--muted); font-size: 19px; }
.event-details { margin: 32px 0; }
.event-details > div { display: grid; grid-template-columns: 85px 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); }
.event-details p { font-size: clamp(22px, 1.9vw, 26px); }
.event-details p span { font-size: 18px; color: var(--muted); }
.detail-label { text-transform: uppercase; font-size: 14px; letter-spacing: .1em; padding-top: 7px; }
.venue-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; justify-items: start; text-align: left; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; border: 0; border-bottom: 1px solid; background: transparent; color: inherit; padding: 7px 0; }
.text-link span { font-size: 18px; }
.venue-links .text-link { max-width: 100%; font-size: 17px; }
.dress-code { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 24px; text-align: center; }
.dress-code .detail-label { padding-top: 0; }
.dress-code p { font-size: clamp(22px, 1.9vw, 26px); }

.gifts { display: flex; align-items: center; justify-content: center; padding: clamp(48px, 8svh, 80px) 5%; }
.gifts-inner { width: 100%; max-width: 780px; text-align: center; }
.gifts-copy { max-width: 650px; margin: auto; font-size: 18px; line-height: 1.6; }
.gifts-copy p + p { margin-top: 14px; }
.gift-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 28px; text-align: left; }
.gift-card { border: 1px solid var(--line); padding: 22px; background: var(--soft); min-width: 0; }
.gift-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gift-card h3 { font: 16px/1.4 var(--sans); letter-spacing: .08em; }
.copy-button { min-width: 76px; min-height: 44px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--blue); color: var(--blue); font-size: 14px; }
.copy-button:hover { background: var(--blue); color: white; }
.iris-number, .bank-details { font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.iris-number { user-select: all; }
.bank-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bank-detail-row:first-child { border-top: 0; padding-top: 0; }
.bank-detail-row:last-child { padding-bottom: 0; }
.bank-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.bank-value { display: block; user-select: all; }
.gift-copy-status { min-height: 24px; margin-top: 14px; font-size: 14px; color: var(--muted); }

.rsvp { position: relative; padding: 24px 5%; background: var(--blue); color: #fff; overflow: hidden; }
.rsvp::before, .rsvp::after { content: ''; position: absolute; width: 500px; height: 500px; border: 1px solid #ffffff14; border-radius: 46%; pointer-events: none; }
.rsvp::before { right: -370px; top: -180px; transform: rotate(30deg); }
.rsvp::after { left: -420px; bottom: -180px; transform: rotate(-15deg); }
.rsvp-inner { width: 100%; max-width: 480px; margin: 0 auto; }
.rsvp-heading { text-align: center; margin-bottom: 25px; }
.rsvp-heading .eyebrow { color: #c5d9e8; }
.rsvp h2 { font-size: clamp(54px, 5vw, 70px); letter-spacing: -.025em; margin: 10px 0 14px; }
.rsvp-heading > p:last-child { color: #d0deea; font-size: 15px; }
.rsvp-deadline strong { color: #fff; font-weight: 700; font-synthesis: weight; }
.rsvp-form { display: grid; gap: 18px; }
.field > label, legend { font-size: 15px; letter-spacing: .01em; display: block; margin-bottom: 8px; }
.field label > span[aria-hidden], legend > span { opacity: .6; }
input[type=text], input[type=password] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #ffffff80; border-radius: 0; background: #ffffff07; color: inherit; outline-color: #fff; font-size: 16px; }
input::placeholder { color: #c4d4e3; font-size: 15px; }
.attendance-field { padding: 0; margin: 0; border: 0; min-width: 0; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attendance-option { position: relative; cursor: pointer; }
.attendance-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.attendance-option > span { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 8px; border: 1px solid #ffffff80; min-height: 52px; font-size: 15px; line-height: 1.3; transition: background .15s, color .15s; }
.attendance-option > span > span { font-size: 20px; }
.attendance-option input:checked + span { background: var(--paper); color: var(--blue); border-color: var(--paper); }
.attendance-option input:focus-visible + span { outline: 2px solid #fff; outline-offset: 4px; }
.people-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.people-field > label { margin: 0; }
.label-note { display: block; color: #c5d9e8; font-size: 13px; margin-top: 2px; }
.stepper { display: flex; height: 46px; border: 1px solid #ffffff80; flex-shrink: 0; }
.stepper button { width: 42px; border: 0; background: transparent; color: #fff; font-size: 23px; }
.stepper input { width: 44px; appearance: textfield; -moz-appearance: textfield; color: #fff; text-align: center; background: transparent; border: 0; outline-offset: -4px; font-size: 17px; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; border: 1px solid var(--paper); color: var(--blue); background: var(--paper); padding: 12px 17px; font-size: 15px; }
.submit-button > span:last-child { font-size: 22px; line-height: 1; }
.submit-button:hover { background: #e6eef5; }
.privacy-note { text-align: center; font-size: 13px; color: #d0deea; }
.form-status { font-size: 14px; color: #ffe2be; }
.form-status:empty { display: none; }
.site-footer { display: flex; justify-content: space-between; gap: 8px; margin: 0 5%; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 18px; letter-spacing: .01em; }
.rsvp-success { text-align: center; padding: 20px 0; }
.success-mark { font: 60px var(--serif); }
.rsvp-success h3 { font-size: 43px; margin: 10px 0 18px; }
.rsvp-success p { font-size: 16px; color: #d0deea; margin-bottom: 25px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.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: 16px; top: -60px; z-index: 100; padding: 10px; background: #fff; }
.skip-link:focus { top: 12px; }
.noscript-note { background: #fff5dc; padding: 20px; text-align: center; color: var(--blue); }
[hidden] { display: none !important; }

@media (min-width: 1500px) {
  .hero { padding-left: max(5%, calc((100vw - 1450px) / 2)); padding-right: max(5%, calc((100vw - 1450px) / 2)); }
  .celebration { padding-left: max(9%, calc((100vw - 1220px) / 2)); padding-right: max(9%, calc((100vw - 1220px) / 2)); }
}
@media (max-width: 700px) {
  :root { --header: 66px; }
  .site-header { padding: 0 22px; }
  .monogram { font-size: 31px; }
  .monogram span { font-size: 23px; }
  .header-date { font-size: 13px; letter-spacing: .05em; }
  .header-date span { display: none; }
  .header-rsvp { font-size: 13px; }
  .header-rsvp span { padding-left: 7px; }
  .screen { min-height: 650px; }
  .hero { padding: calc(var(--header) + 26px) 20px 0; }
  .hero-heading { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(47px, 10.8vw, 76px); margin: 0 -7px; letter-spacing: -.045em; white-space: nowrap; }
  .hero h1 em { padding: 0 .04em; }
  .hero-intro { font-size: 16px; }
  .hero-photo-wrap { border-radius: 48% 48% 0 0 / 16% 16% 0 0; }
  .hero-bottom { height: 72px; font-size: 12px; letter-spacing: .03em; gap: 12px; }
  .hero-bottom > span:not(.scroll-cue) { max-width: 44%; }
  .scroll-cue { font-size: 24px; }
  .celebration { padding: 28px 24px; gap: 20px; grid-template-columns: 1fr; grid-template-rows: minmax(100px, 1fr) auto; }
  .venue-photo-wrap { height: 100%; max-height: 44svh; }
  .venue-photo-credit { font-size: 12px; padding: 22px 9px 7px; }
  .celebration-copy { text-align: center; }
  .venue-intro { font-size: 17px; margin: auto; max-width: 340px; }
  .event-details { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 16px; text-align: left; gap: 16px; }
  .event-details > div { grid-template-columns: 1fr; gap: 8px; padding: 14px 0 0; }
  .detail-label { font-size: 14px; padding: 0; }
  .event-details p { font-size: 20px; }
  .event-details p span { font-size: 16px; }
  .text-link { font-size: 14px; }
  .venue-links .text-link { font-size: 16px; }
  .dress-code { margin-top: 20px; }
  .dress-code p { font-size: 20px; }
  .gifts { padding: 40px 24px; }
  .gifts-copy { font-size: 17px; }
  .gift-options { grid-template-columns: 1fr; gap: 12px; max-width: 440px; margin: 24px auto 0; }
  .gift-card { padding: 16px 18px; }
  .gift-card-heading { margin-bottom: 10px; }
  .iris-number, .bank-details { font-size: 17px; }
  .rsvp { padding: 24px 25px; }
  .rsvp-inner { max-width: 440px; }
  .rsvp-heading { margin-bottom: 23px; }
  .rsvp h2 { font-size: 54px; margin: 10px 0 12px; }
  .rsvp-heading > p:last-child { font-size: 14px; }
  .rsvp-form { gap: 16px; }
  .attendance-option > span { font-size: 14px; gap: 7px; padding: 10px 6px; }
  .site-footer { margin: 0 25px; gap: 4px; flex-direction: column; align-items: center; font-size: 12px; padding: 18px 0; text-align: center; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .celebration { padding: 22px 20px; gap: 14px; }
  .event-details { margin-top: 18px; }
  .gifts { padding: 32px 20px; }
  .gifts-copy { font-size: 16px; }
  .rsvp { padding-top: 20px; padding-bottom: 20px; }
  .rsvp-heading { margin-bottom: 18px; }
  .rsvp-form { gap: 14px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 45px; }
  .hero-bottom { font-size: 12px; }
  .rsvp { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
