@font-face {
  font-family: "Wedding Display";
  src: url("fonts/display-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Wedding Display";
  src: url("fonts/display-Italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --linen: #eee8db;
  --forest: #252c24;
  --forest-deep: #1d241d;
  --ink: #282b23;
  --soft-ink: #55574b;
  --gold: #d7bc90;
  --line: #c9c1ae;
  --light-line: #ded0b45c;
  --serif: "Wedding Display", Baskerville, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(22px, 6vw, 104px);
  --space: clamp(70px, 10vw, 156px);
  --header-height: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.72 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.055em; }
h2 { font-size: clamp(2.6rem, 5vw, 5.5rem); }
h3 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); letter-spacing: -.045em; }
h1 i, h2 i, .wordmark i { font-weight: 400; }
p { margin-top: 1rem; }
a { color: inherit; text-underline-offset: .29em; }
img, picture { display: block; }
img { width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #966a30; outline-offset: 4px; }
:is(.hero, .closing, .wedding-band, .site-footer) :focus-visible { outline-color: #fff3d5; }
[id] { scroll-margin-top: calc(var(--header-height) + 17px); }
main:focus, section[tabindex="-1"]:focus { outline: none; }
.skip { position: fixed; z-index: 8; top: 10px; left: 10px; padding: 10px 18px; transform: translateY(-150%); background: white; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }
.space { padding-block: var(--space); }
.space-after { padding-bottom: var(--space); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 8vw, 128px); align-items: center; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-inline: var(--gutter); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; justify-self: start; font-size: 1.45rem; text-decoration: none; white-space: nowrap; }
.monogram {
  min-width: 39px;
  min-height: 39px;
  display: inline-grid;
  grid-auto-flow: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 .86rem/1 var(--serif);
  letter-spacing: -.08em;
}
.monogram i { font-size: .65em; margin-inline: 1px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 46px); }
.site-header nav a, .header-rsvp, .menu { font-size: .875rem; }
.site-header nav a { text-decoration: none; padding-block: 10px; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }
.header-actions { justify-self: end; display: flex; align-items: center; }
.header-rsvp { min-height: 43px; padding: 7px 21px; border: 1px solid #9d9887; display: inline-flex; align-items: center; text-decoration: none; }
.header-rsvp:hover, .header-rsvp[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.menu { display: none; min-height: 44px; padding: 0; margin-left: 14px; background: transparent; color: inherit; border: 0; }
.menu span { display: inline-block; width: 15px; height: 7px; margin-left: 6px; border-block: 1px solid; vertical-align: .1em; }
.menu[aria-expanded="true"] span { border-bottom-color: transparent; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 24px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 550;
  transition: background-color .25s, color .25s, border-color .25s;
}
.button:hover { background: #425040; border-color: #425040; }
.actions { display: flex; flex-wrap: wrap; gap: 0 23px; margin-top: 20px; }
.actions a, .footer-links a, .return-link { min-height: 44px; display: inline-flex; align-items: center; }
.actions a { font-size: .875rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: clamp(570px, 77svh, 880px);
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}
.hero-visual { position: relative; grid-area: 1 / 2; overflow: hidden; background: #414036; }
.hero-visual img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 76% 51%; }
.hero-visual::after { position: absolute; z-index: 1; inset: 17px; border: 1px solid #f2ead361; content: ""; pointer-events: none; }
.hero-content {
  grid-area: 1 / 1;
  align-self: center;
  position: relative;
  z-index: 1;
  padding: 46px clamp(22px, 3.2vw, 61px) 51px var(--gutter);
}
.hero h1 { font-size: clamp(4.8rem, 9.4vw, 11rem); line-height: .88; letter-spacing: -.078em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { margin-top: .075em; }
.hero h1 i { font-size: .65em; color: var(--gold); letter-spacing: -.11em; }
.hero-details { display: grid; gap: 3px; max-width: 290px; margin-top: 35px; padding-top: 19px; border-top: 1px solid var(--light-line); color: #f1e7d5; font-size: .93rem; }
.hero-details time { font-weight: 600; color: var(--paper); }
.place-divider { color: var(--gold); padding-inline: 2px; }
.hero .button, .closing .button { margin-top: 25px; border-color: var(--paper); background: var(--paper); color: var(--ink); }
.hero .button { min-width: 110px; }
.hero .button:hover, .closing .button:hover { background: #e5d0a9; border-color: #e5d0a9; }

.welcome { text-align: center; }
.welcome h2::before, .closing h2::before {
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto 28px;
  background: currentColor;
  opacity: .43;
  content: "";
}
.welcome p { max-width: 57ch; margin-inline: auto; color: var(--soft-ink); }
.welcome .signature { margin-top: 1.3rem; font: italic 1.48rem/1.25 var(--serif); color: var(--ink); }
.welcome .actions { justify-content: center; }

.story-preview { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.portrait-photo { position: relative; isolation: isolate; margin: 0 20px 20px 0; }
.portrait-photo::before { content: ""; position: absolute; z-index: -1; inset: 17px -17px -17px 17px; border: 1px solid #bfb298; }
.portrait-photo img { aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 33%; }
.split-text p { max-width: 54ch; color: var(--soft-ink); }
.split-text h2 + p { margin-top: 1.6rem; }

.wedding-band { background: var(--forest-deep); color: var(--paper); }
.wedding-band .split { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.wedding-band h2 i { color: var(--gold); }
.wedding-band p { color: #e1d8c8; }
.landscape-photo { position: relative; }
.landscape-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.ceremony-photo::after { position: absolute; inset: 12px; border: 1px solid #f4e9d575; content: ""; pointer-events: none; }
.ceremony-photo img { aspect-ratio: 1.15; }
.schedule { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--light-line); }
.schedule li { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--light-line); font-size: .95rem; }
.schedule time { color: var(--gold); font: 400 1.34rem/1.3 var(--serif); font-variant-numeric: tabular-nums; }

.guest-notes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(34px, 8vw, 128px); align-items: start; }
.guest-notes h2 { font-size: clamp(2.4rem, 4.5vw, 4.85rem); }
.guest-notes p, .travel-details p { color: var(--soft-ink); }
.guest-notes > div:nth-child(2) { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 65px); }
.guest-notes > div > div + div { margin-top: 26px; }

.paper-band { background: var(--linen); }
.travel-intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); padding-bottom: clamp(36px, 6vw, 72px); }
.estate-photo img { aspect-ratio: 1.62; }
.travel-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(25px, 4vw, 72px); }
.travel-details > div { padding-top: 22px; border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: clamp(24px, 8vw, 120px); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 53px; padding-block: 11px; cursor: pointer; font-weight: 550; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: 0 0 17px; max-width: 60ch; color: var(--soft-ink); }

.closing { position: relative; display: grid; isolation: isolate; place-items: center; min-height: clamp(420px, 51vw, 690px); background: var(--forest); color: var(--paper); overflow: hidden; }
.closing > img, .closing::after { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; }
.closing::after { content: ""; z-index: -1; background: linear-gradient(90deg, #15191489, #151914bd 50%, #15191485); }
.closing-content { text-align: center; max-width: 880px; padding: 50px var(--gutter); }
.closing h2 { font-size: clamp(3rem, 6.3vw, 7rem); }
.closing h2::before { opacity: .8; color: var(--gold); }
.closing p { margin-top: 1.4rem; }

.inner-page { background: var(--linen); }
.rsvp-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 0; align-items: start; max-width: 1230px; padding-top: clamp(56px, 6vw, 90px); }
.ring-photo { position: sticky; top: calc(var(--header-height) + 24px); isolation: isolate; background: var(--linen); }
.ring-photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid #fff5dfbc; pointer-events: none; }
.ring-photo img { aspect-ratio: 4 / 5.55; object-fit: cover; object-position: 50% 53%; }
.rsvp-panel { padding: clamp(27px, 5vw, 76px); background: var(--paper); border: 1px solid var(--line); }
.rsvp-panel h1 { font-size: clamp(3rem, 6.4vw, 6.75rem); text-wrap: balance; }
.rsvp-panel h1 i { white-space: nowrap; }
.reply-date { padding-bottom: 15px; margin-top: 1.15rem; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 600; }
.demo-note { padding: 9px 12px; margin-bottom: 25px; background: #ebe4d4; font-size: .84rem; color: var(--soft-ink); }
form label, form legend { font-size: .9rem; font-weight: 600; }
form small { display: block; color: var(--soft-ink); font-size: .79rem; font-weight: 400; }
form input:not([type="radio"]), form textarea { display: block; width: 100%; padding: 10px 13px; margin: 5px 0 17px; border: 1px solid #a7a08d; border-radius: 0; min-height: 47px; color: var(--ink); background: #fffcf5; }
form textarea { resize: vertical; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.attendance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 17px; }
.attendance legend { margin-bottom: 7px; }
.attendance label { display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); padding: 7px 9px; min-height: 47px; cursor: pointer; font-weight: 450; }
.attendance label:has(input:checked) { background: var(--linen); border-color: var(--forest); }
.attendance input { margin: 0; flex: none; width: 16px; height: 16px; accent-color: var(--forest); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.song-block { margin: 3px 0 17px; padding-top: 16px; border-block: 1px solid var(--line); }
.song-block h2 { font-size: 1.65rem; margin-bottom: 11px; }
.return-link { margin-inline-start: 12px; font-size: .875rem; }
.rsvp-confirmation { border-block: 1px solid var(--line); padding-block: 23px; }
.rsvp-confirmation h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.rsvp-confirmation a, .text-button { display: inline-flex; align-items: center; min-height: 44px; margin: 9px 10px 0 0; }
.text-button { border: 0; background: none; color: inherit; padding: 0; text-decoration: underline; text-underline-offset: .28em; }

.site-footer { padding: 44px var(--gutter) 29px; text-align: center; background: var(--forest-deep); color: var(--paper); }
.site-footer .wordmark { color: inherit; }
.site-footer p { margin-top: 14px; font-size: .875rem; }
.site-footer small { color: #d9ceba; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin: 1px 0 4px; }
.footer-links a { font-size: .875rem; }

.opening { display: none; }
.with-opening .opening { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9; pointer-events: none; animation: opening-end 1.37s step-end both; }
.opening-paper { position: absolute; inset: 0 0 49.9%; background: var(--forest); animation: paper-lift 1.37s cubic-bezier(.76, 0, .24, 1) both; }
.opening-paper-bottom { inset: 49.9% 0 0; animation-name: paper-drop; }
.opening-inner { display: grid; justify-items: center; gap: 15px; z-index: 1; color: var(--paper); animation: lettering 1.13s ease both; }
.opening-mark { min-width: 1.58em; display: grid; grid-auto-flow: column; justify-content: center; align-items: baseline; padding: .18em .18em .22em; border: 1px solid var(--light-line); border-radius: 50%; font: 400 clamp(4rem, 11vw, 8rem)/.9 var(--serif); letter-spacing: -.11em; }
.opening-mark i { font-size: .55em; color: var(--gold); padding-inline: .08em; }
.opening-date { font-size: .875rem; }
.with-opening .hero-visual img { animation: photograph 1.85s cubic-bezier(.2, .65, .3, 1) both; }
.with-opening .hero-content { animation: arrive .65s .91s ease-out both; }
[data-reveal].revealed { animation: scroll-arrive .72s cubic-bezier(.2, .65, .25, 1) both; }
@keyframes opening-end { to { visibility: hidden; } }
@keyframes paper-lift { 0%, 57% { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes paper-drop { 0%, 57% { transform: translateY(0); } to { transform: translateY(101%); } }
@keyframes lettering { 0% { opacity: .05; transform: translateY(10px); } 33%, 60% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes scroll-arrive { from { opacity: .6; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes photograph { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 1050px) {
  .header-inner { gap: 13px; }
  .header-inner .wordmark { gap: 9px; }
  .attendance { grid-template-columns: 1fr; }
}
@media (max-width: 850px) and (min-width: 761px) {
  .header-inner { padding-inline: 22px; }
  .header-inner .monogram { display: none; }
  .hero-content { padding-left: 30px; }
}
@media (max-width: 760px) {
  :root { --header-height: 64px; --space: clamp(62px, 13vw, 92px); }
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
  .header-inner .wordmark { font-size: 1.32rem; }
  .monogram { min-width: 32px; min-height: 32px; }
  .header-actions { margin-left: auto; }
  .header-rsvp { min-height: 44px; padding-inline: 13px; }
  .menu { display: inline-block; }
  .site-header nav { order: 3; flex-wrap: wrap; width: 100%; gap: 0 16px; }
  .site-header nav a { min-height: 44px; }
  .enhanced .site-header nav { position: absolute; top: 100%; left: 0; display: none; padding: 7px var(--gutter) 12px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #29271916; }
  .enhanced .site-header nav.is-open { display: grid; }
  .enhanced .site-header nav a { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .enhanced .site-header nav a:last-child { border-bottom: 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; min-height: clamp(480px, calc(100svh - 84px), 780px); }
  .hero-visual { position: absolute; inset: 0; grid-area: auto; }
  .hero-visual img { object-position: 51% 33%; }
  .hero-visual::after { inset: 11px; border-color: #fbf2df72; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1c221bf7 0%, #1c221bc9 20%, #1c221b48 44%, transparent 66%); }
  .hero-content { grid-area: auto; align-self: end; text-align: center; padding: 30px var(--gutter) 35px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 5.8rem); line-height: 1; }
  .hero h1 span { display: inline; white-space: normal; }
  .hero h1 i { font-size: .76em; }
  .hero-details { margin: 12px auto 0; padding-top: 11px; max-width: 250px; font-size: .875rem; }
  .hero .button { margin-top: 15px; }
  .split, .story-preview, .wedding-band .split, .guest-notes, .travel-intro, .travel-details, .faq-layout, .rsvp-layout { grid-template-columns: minmax(0, 1fr); }
  .portrait-photo { margin: 0 12px 12px 0; }
  .portrait-photo::before { inset: 11px -11px -11px 11px; }
  .portrait-photo img { aspect-ratio: 1.33; object-position: 75% 50%; }
  .ceremony-photo img { aspect-ratio: 1.45; }
  .guest-notes > div:nth-child(2) { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .estate-photo { order: 2; }
  .travel-details { gap: 24px; }
  .closing { min-height: 408px; }
  .rsvp-layout { padding-block: 23px 54px; }
  .ring-photo { position: relative; top: 0; }
  .ring-photo img { aspect-ratio: 2.5; object-position: 50% 57%; }
  .ring-photo::after { inset: 7px; }
  .rsvp-panel { padding: clamp(19px, 5vw, 37px); }
}
@media (max-width: 420px) {
  .header-inner .wordmark { font-size: 1.18rem; gap: 7px; }
  .header-rsvp { padding-inline: 9px; }
  .menu { margin-left: 10px; }
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rsvp-panel .return-link { margin: 8px 0 0; display: flex; width: max-content; }
}
@media (max-width: 355px) {
  .header-inner .monogram { display: none; }
  .header-inner { gap: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition: none !important; }
  .opening { display: none !important; }
}
