@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: #16446e;
  --deep: #103e6d;
  --paper: #edf7f8;
  --soft: #e1eff4;
  --line: #b6cfdb;
  --muted: #3b586f;
  --text: var(--blue);
  --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(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.invitation-body {
  --blue: #3c5748;
  --deep: #2e4438;
  --paper: #fffdf9;
  --soft: #edf1e8;
  --text: #304b3c;
  --muted: #5a6559;
  --rose: #885260;
  --sage: #738566;
  --sage-light: #b5c9a5;
  --sage-hover: #a8bf97;
  --line: #c7cec1;
  --control-border: #778471;
  color-scheme: light;
  background-color: #fffdf9;
  background-image: radial-gradient(ellipse at 95% 4%, #f3dce0 0%, transparent 34%), radial-gradient(ellipse at 0% 40%, #e4ecdf 0%, transparent 34%), radial-gradient(ellipse at 100% 90%, #f4e1df 0%, transparent 35%), linear-gradient(165deg, #fffdf9 0%, #fcf2ed 34%, #f3f5ed 65%, #fffaf6 100%);
  background-repeat: no-repeat;
}
.invitation-body ::selection { background: #efd3da; color: #304b3c; }
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, summary: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: rgb(237 246 250 / .76);
  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;
  background: linear-gradient(180deg, #e5f1f6 0%, #e1eff5 38%, rgb(231 242 246 / .94) 65%, rgb(246 249 244 / .55) 86%, transparent 100%);
}
.hero, .celebration, .dress-code, .gifts { position: relative; isolation: isolate; overflow: clip; }
.hero::before, .hero::after, .celebration::before, .celebration::after, .dress-code::before, .dress-code::after, .gifts::before, .gifts::after, .rsvp::before, .rsvp::after {
  content: '';
  position: absolute;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 4 / 7;
  background: url('/assets/floral-spray.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
.hero::before { top: 80px; left: -65px; transform: rotate(23deg); opacity: .9; }
.hero::after { right: -50px; bottom: -45px; transform: scaleX(-1) rotate(15deg); opacity: .92; }
.celebration::before { left: 1%; bottom: 25px; transform: rotate(-13deg); opacity: .95; }
.celebration::after { right: 0; top: 20px; transform: scaleX(-1) rotate(-12deg); opacity: .88; }
.dress-code::before { left: 12%; top: -30px; width: 150px; transform: rotate(24deg); opacity: .75; }
.dress-code::after { right: 12%; top: -30px; width: 200px; transform: scaleX(-1) rotate(20deg); opacity: .72; }
.dress-code::before, .dress-code::after { mask-image: linear-gradient(#000 45px, transparent 130px); }
.gifts::before { left: 0; bottom: -90px; width: 200px; transform: rotate(-20deg); opacity: .8; }
.gifts::after { right: 0; bottom: -80px; width: 200px; transform: scaleX(-1) rotate(-12deg); opacity: .75; }
.hero-heading { text-align: center; margin-bottom: 32px; flex-shrink: 0; }
.hero h1 { font-size: clamp(88px, 9.8vw, 148px); font-style: italic; line-height: 1.06; letter-spacing: -.045em; color: var(--sage); }
.hero h1 em { font-size: .72em; padding: 0 .1em; }
.hero-intro { max-width: 840px; margin: 0 auto 16px; font: italic 400 clamp(28px, 2.65vw, 38px)/1.2 var(--serif); color: var(--muted); text-wrap: balance; }
.hero-gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-height: 0; width: 100%; max-width: 1000px; margin: 0 auto; }
.hero-photo-wrap { min-width: 0; min-height: 0; height: 100%; position: relative; overflow: hidden; background: var(--soft); border-radius: 48% 48% 0 0 / 20% 20% 0 0; box-shadow: 0 16px 44px #61765a26, 0 0 0 1px #ffffffc4; }
.hero-photo { object-position: 50% 58%; }
.hero-photo.couple-photo { object-position: 64% 65%; }
.hero-bottom { height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.scroll-cue { font-size: 26px; font-family: var(--serif); }

.celebration { display: flex; flex-direction: column; align-items: center; padding: 24px 5% 28px; gap: clamp(20px, 3svh, 32px); }
.venue-photo-wrap { position: relative; width: 90%; max-width: 560px; height: min(28svh, 270px); min-height: 100px; flex-shrink: 1; overflow: hidden; border-radius: 48% 48% 0 0 / 30% 30% 0 0; background: var(--soft); box-shadow: 0 12px 32px #61765a26, 0 0 0 1px #ffffffc4; }
.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, #243a2edf); font-size: 12px; line-height: 1.4; }
.venue-photo-credit span { margin-left: 5px; }
.celebration-copy { width: 100%; max-width: 640px; flex: 1; display: flex; flex-direction: column; gap: clamp(14px, 2svh, 24px); text-align: center; font-family: var(--serif); font-style: italic; line-height: 1.2; }
.venue-intro { max-width: 440px; margin: 0 auto; color: var(--muted); font-size: 30px; text-wrap: balance; }
.event-details { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 24px; }
.invitation-date, .invitation-venue { font-size: 42px; line-height: 1.15; font-style: italic; }
.invitation-time { font-size: 26px; margin-top: 8px; }
.invitation-time span { font-size: 20px; color: var(--muted); }
.invitation-address { font-size: 24px; line-height: 1.3; color: var(--muted); margin-top: 8px; }
.venue-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-family: var(--sans); font-style: normal; }
.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: 15px; }
.guest-subsection { padding: 28px 5%; text-align: center; }
.guest-subsection + .guest-subsection { padding-top: 8px; }
.guest-subsection-inner { max-width: 640px; margin: 0 auto; }
.guest-subsection h2 { font-size: 32px; font-style: italic; line-height: 1.15; margin-bottom: 10px; color: var(--rose); }
.guest-subsection-inner > p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.gifts { display: flex; align-items: center; justify-content: center; }
.gifts-inner { width: 100%; max-width: 640px; text-align: center; }
.gifts-copy { max-width: 580px; margin: auto; font-size: 15px; line-height: 1.6; color: var(--muted); }
.gifts-copy p + p { margin-top: 8px; }
.gift-details { margin-top: 12px; }
.gift-details summary { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; list-style: none; }
.gift-details summary::-webkit-details-marker { display: none; }
.gift-details summary::after { content: '+'; font-size: 18px; line-height: 1; }
.gift-details[open] summary::after { content: '−'; }
.gift-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 253 249 / .85); text-align: left; }
.gift-card { min-width: 0; }
.gift-card-heading { margin-bottom: 8px; }
.gift-card h3 { font: 14px/1.4 var(--sans); letter-spacing: .06em; }
.copy-button { min-width: 60px; min-height: 36px; padding: 6px 10px; background: transparent; border: 1px solid var(--control-border); color: var(--text); font-size: 12px; }
.copy-button:hover:not(:disabled) { background: var(--soft); color: var(--deep); }
.iris-number, .bank-details { font-size: 14px; 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: 8px; padding: 8px 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: 12px; margin-bottom: 2px; }
.bank-value { display: block; overflow-wrap: anywhere; user-select: all; }
.gift-copy-status { min-height: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }

.rsvp { position: relative; isolation: isolate; padding: 24px 5%; border-block: 1px solid #d7d4c8; background: linear-gradient(120deg, #f4e3e4cc, #fffaf3eb 50%, #e8eddfcc); color: var(--text); overflow: hidden; }
.rsvp::before { left: 3%; bottom: -65px; transform: rotate(-16deg); opacity: .85; }
.rsvp::after { right: 2%; top: -30px; transform: scaleX(-1) rotate(-14deg); opacity: .82; }
.rsvp-inner { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.rsvp-heading { text-align: center; margin-bottom: 25px; }
.rsvp-heading .eyebrow { color: var(--muted); }
.rsvp h2 { font-size: clamp(54px, 5vw, 70px); letter-spacing: -.025em; margin: 10px 0 14px; color: var(--rose); }
.rsvp-deadline { color: var(--muted); font-size: 15px; }
.rsvp-deadline strong { color: var(--text); font-weight: 700; font-synthesis: weight; }
.rsvp-calendar { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--control-border); background: #fffdf966; font-size: 13px; }
.rsvp-calendar:hover { background: var(--soft); }
.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 var(--control-border, var(--line)); border-radius: 0; background: #fffdf9d9; color: inherit; outline-color: currentColor; font-size: 16px; }
input::placeholder { color: var(--muted); opacity: 1; 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 var(--control-border); background: #fffdf9b3; 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(--blue); color: var(--paper); border-color: var(--blue); }
.attendance-option input:focus-visible + span { outline: 2px solid var(--blue); 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: var(--muted); font-size: 13px; margin-top: 2px; }
.stepper { display: flex; height: 46px; border: 1px solid var(--control-border); background: #fffdf9b3; flex-shrink: 0; }
.stepper button { width: 42px; border: 0; background: transparent; color: var(--text); font-size: 23px; }
.stepper input { width: 44px; appearance: textfield; -moz-appearance: textfield; color: var(--text); 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(--control-border); color: var(--text); background: var(--sage-light); padding: 12px 17px; font-size: 15px; }
.submit-button > span:last-child { font-size: 22px; line-height: 1; }
.submit-button:hover { background: var(--sage-hover); }
.privacy-note { text-align: center; font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; color: #884353; }
.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: var(--muted); 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: var(--paper); color: var(--blue); }
.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)); }
}
@media (max-width: 700px) {
  :root { --header: 66px; }
  .hero::before { width: 155px; left: -65px; top: 75px; opacity: .68; }
  .hero::after { width: 175px; right: -65px; bottom: -15px; opacity: .82; }
  .celebration::before { width: 175px; left: -80px; bottom: 15px; opacity: .66; }
  .celebration::after { width: 190px; right: -55px; top: -30px; opacity: .92; }
  .dress-code::before { width: 100px; left: -15px; top: -30px; opacity: .6; }
  .dress-code::after { width: 110px; right: -15px; top: -20px; opacity: .6; }
  .rsvp::before { width: 155px; left: -85px; bottom: -30px; opacity: .55; }
  .rsvp::after { width: 150px; right: -80px; top: -5px; opacity: .55; }
  .gifts::before { width: 150px; left: -80px; bottom: -65px; opacity: .52; }
  .gifts::after { width: 150px; right: -70px; bottom: -55px; opacity: .5; }
  .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: 30px; }
  .hero h1 { font-size: clamp(50px, 15vw, 96px); margin: 0 -7px; letter-spacing: -.045em; white-space: nowrap; }
  .hero h1 em { padding: 0 .04em; }
  .hero-intro { font-size: clamp(26px, 7.2vw, 31px); max-width: 420px; }
  .hero-photo-wrap { border-radius: 48% 48% 0 0 / 16% 16% 0 0; }
  .hero-bottom { height: 64px; }
  .scroll-cue { font-size: 24px; }
  .celebration { padding: 20px 24px 24px; }
  .venue-photo-credit { font-size: 12px; padding: 22px 9px 7px; }
  .venue-intro { font-size: 28px; max-width: 320px; }
  .invitation-date, .invitation-venue { font-size: 36px; }
  .invitation-time { font-size: 22px; }
  .invitation-time span { font-size: 19px; }
  .invitation-address { font-size: 22px; }
  .text-link { font-size: 14px; }
  .venue-links .text-link { font-size: 14px; }
  .guest-subsection { padding: 24px; }
  .guest-subsection h2 { font-size: 28px; }
  .gift-options { grid-template-columns: 1fr; gap: 20px; max-width: 440px; margin: 18px auto 0; }
  .copy-button { min-height: 44px; }
  .rsvp { padding: 24px 25px; }
  .rsvp-inner { max-width: 440px; }
  .rsvp-heading { margin-bottom: 23px; }
  .rsvp h2 { font-size: 54px; margin: 10px 0 12px; }
  .rsvp-deadline { 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: 18px 20px 22px; gap: 18px; }
  .event-details { gap: 18px; }
  .guest-subsection { padding: 20px; }
  .rsvp { padding-top: 20px; padding-bottom: 20px; }
  .rsvp-heading { margin-bottom: 18px; }
  .rsvp-form { gap: 14px; }
}
@media (max-width: 360px) {
  .rsvp { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
