:root {
  color-scheme: light;
  --ink: #242622;
  --muted: #74776d;
  --paper: #fffefa;
  --cream: #f5f3eb;
  --sage: #6c765e;
  --line: #dcded5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Allura", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 5; padding: 13px 24px 0; text-align: center; background: #f5f1e6; }
.wordmark { display: inline-block; color: var(--ink); font-family: var(--script); font-size: 51px; line-height: 1.12; text-decoration: none; }
.couple-name { margin: 5px 0 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: .19em; line-height: 1.12; text-transform: uppercase; }
.couple-name span { font-size: .7em; font-style: italic; letter-spacing: .04em; }
.event-line { margin: 8px 0 0; color: #53564e; font-size: 10px; font-weight: 500; letter-spacing: .21em; text-transform: uppercase; }
.event-line span { margin: 0 6px; color: #a8aa9f; }
.countdown { margin: 6px 0 12px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.countdown #countdown { color: var(--ink); font-weight: 600; }
.site-nav { background: #ffffff; margin-inline: -24px; padding-inline: 24px; display: flex; justify-content: center; align-items: center; gap: clamp(17px, 3.4vw, 47px); min-height: 43px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-nav a { position: relative; padding: 12px 0 10px; color: #575b51; font-size: 10px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--sage); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.page-banner { padding: 54px 20px 47px; background: var(--cream); text-align: center; }
.page-banner h1, .home-intro h1 { margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(42px, 5.5vw, 66px); font-weight: 400; line-height: 1; }
.page-banner > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 19px; }
.home-intro h1 { font-size: clamp(35px, 4.5vw, 53px); }
.home-intro .button { margin-top: 20px; }
.content-page { min-height: 60vh; }
.story-layout { display: grid; width: min(1120px, calc(100% - 48px)); min-height: 510px; grid-template-columns: 1fr 1fr; margin: 50px auto 82px; background: var(--cream); }
.story-layout > img { display: block; width: 100%; height: 100%; min-height: 510px; max-height: 670px; object-fit: cover; object-position: center 42%; }
.story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(35px, 7vw, 88px); }
.story-copy h2 { margin: 10px 0 14px; font-family: var(--serif); font-size: clamp(38px, 4vw, 54px); font-weight: 400; line-height: 1.02; }
.story-copy > p:not(.script-note) { color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.story-timeline { padding: 48px 24px 85px; }
.story-timeline-list { --timeline-progress: 0; --timeline-gap: clamp(35px, 5vw, 65px); position: relative; max-width: 1000px; margin: 0 auto; padding: 0 0 5px; list-style: none; }
.story-timeline-list::before, .story-timeline-list::after { position: absolute; top: 14px; bottom: 0; left: calc(50% - 1px); width: 2px; content: ""; }
.story-timeline-list::before { background: var(--line); }
.story-timeline-list::after { background: var(--sage); transform: scaleY(var(--timeline-progress)); transform-origin: top; }
.story-milestone { position: relative; width: 50%; padding: 0 var(--timeline-gap) 0 0; }
.story-milestone + .story-milestone { margin-top: 65px; }
.story-milestone:nth-child(even) { margin-left: 50%; padding: 0 0 0 var(--timeline-gap); }
.story-milestone::before { position: absolute; top: 14px; right: 0; width: calc(var(--timeline-gap) - 18px); height: 1px; background: var(--line); content: ""; transform-origin: right; transition: transform .7s ease, background .7s ease; }
.story-milestone:nth-child(even)::before { right: auto; left: 0; transform-origin: left; }
.milestone-marker { position: absolute; z-index: 1; top: 0; right: -15px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: #a5aa9b; font-size: 12px; transition: color .6s ease, border-color .6s ease, background .6s ease; }
.story-milestone:nth-child(even) .milestone-marker { right: auto; left: -15px; }
.milestone-date { margin: 4px 0 10px; color: var(--sage); font-size: 9px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.milestone-copy h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(31px, 3.3vw, 42px); font-weight: 400; line-height: 1.1; }
.milestone-copy > p:not(.milestone-date) { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 20px; line-height: 1.55; }
.milestone-photo { margin: 24px 0 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.milestone-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.milestone-photo-full img { aspect-ratio: auto; }
.milestone-location { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #b8c0ab; border-radius: 999px; background: var(--cream); color: #55684e; font-family: var(--sans); font-size: 12px; line-height: 1.4; letter-spacing: .03em; }
.milestone-location svg { width: 17px; height: 17px; flex: none; }
.story-milestone-wedding { padding-bottom: 30px !important; }
.story-milestone-wedding h3 { color: var(--sage); }
.story-timeline .timeline-end { margin: 64px auto 0; text-align: center; font-size: 36px; }
/* Content remains visible when JavaScript is unavailable. */
.story-timeline-list.is-animated .milestone-copy { opacity: 0; transform: translate(-24px, 14px); transition: opacity .8s ease .12s, transform .8s cubic-bezier(.16, 1, .3, 1) .12s; }
.story-timeline-list.is-animated .story-milestone:nth-child(even) .milestone-copy { transform: translate(24px, 14px); }
.story-timeline-list.is-animated .story-milestone::before { transform: scaleX(0); }
.story-timeline-list.is-animated .story-milestone.is-visible .milestone-copy { opacity: 1; transform: none; }
.story-timeline-list .story-milestone.is-visible::before { background: var(--sage); transform: scaleX(1); }
.story-milestone.is-visible .milestone-marker { color: var(--paper); border-color: var(--sage); background: var(--sage); }
@media (max-width: 760px) {
  .story-timeline { padding: 38px 24px 55px; }
  .story-timeline-list { --timeline-gap: 35px; }
  .story-timeline-list::before, .story-timeline-list::after { left: 14px; }
  .story-timeline-list .story-milestone { width: 100%; margin-left: 0; padding: 0 0 0 50px; }
  .story-milestone + .story-milestone { margin-top: 48px; }
  .story-timeline-list .story-milestone::before { right: auto; left: 15px; width: 22px; transform-origin: left; }
  .story-timeline-list .story-milestone .milestone-marker { right: auto; left: 0; }
  .story-timeline-list.is-animated .story-milestone .milestone-copy { transform: translate(0, 16px); }
  .story-timeline-list.is-animated .story-milestone.is-visible .milestone-copy { transform: none; }
  .milestone-copy > p:not(.milestone-date) { font-size: 19px; }
  .milestone-date { font-size: 8px; letter-spacing: .1em; }
  .story-timeline .timeline-end { padding-left: 36px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-timeline-list { --timeline-progress: 1 !important; }
  .story-timeline-list.is-animated .story-milestone .milestone-copy { opacity: 1; transform: none; }
  .story-timeline-list.is-animated .story-milestone::before { transform: none; }
}
.travel-note, .registry-page { padding-top: 78px; padding-bottom: 88px; }
.travel-note > p:not(.script-note) { max-width: 580px; margin: 0 auto 24px; color: var(--muted); font-family: var(--serif); font-size: 20px; }
.weekend-page { padding-top: 52px; }
.schedule-card h2, .schedule-card h3 { margin: 11px 0 8px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.weekend-rsvp { margin-top: 30px; }
.photos-page { padding-top: 58px; }
.party-grid h2, .party-grid h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.registry-note { color: var(--sage) !important; font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.registry-link-note { margin-top: 16px !important; font-family: var(--sans) !important; font-size: 12px !important; }
.rsvp-page { padding-top: 54px; padding-bottom: 75px; }
.rsvp-page .rsvp-card h2 { font-size: clamp(36px, 4vw, 48px); }
.home-links { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--cream); }
.home-link-card { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; border-right: 1px solid #e2e1d8; text-align: center; text-decoration: none; transition: background .2s ease; }
.home-link-card:last-child { border-right: 0; }
.home-link-card h2 { margin: 7px 0 13px; font-family: var(--serif); font-size: clamp(24px, 3vw, 35px); font-weight: 500; }
.home-rsvp { padding-top: 79px; padding-bottom: 84px; }

.hero-carousel { width: 100%; margin: 0; }
.hero-viewport { --hero-height: clamp(440px, 45vw, 650px); position: relative; height: var(--hero-height); overflow: hidden; background: #e5e1d8; }
.hero-family-name { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 24px; color: #fffdf5; font-family: "Italianno", cursive; font-size: clamp(72px, 9.2vw, 136px); font-weight: 400; line-height: 1.05; text-align: center; text-shadow: 0 1px 16px #1b24161c; pointer-events: none; }
.hero-track { display: flex; width: max-content; height: 100%; gap: 14px; }
.hero-slide { flex: none; width: calc(var(--hero-height) * 5 / 7); height: 100%; }
.hero-track.is-scrolling { animation: hero-drift var(--hero-duration, 60s) linear infinite; will-change: transform; }
.hero-track.is-paused { animation-play-state: paused; }
@keyframes hero-drift { from { transform: translateX(0); } to { transform: translateX(var(--hero-distance)); } }
@media (prefers-reduced-motion: reduce) { .hero-track.is-scrolling { animation: none; transform: none; } }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.script-note { margin: 0; color: var(--sage); font-family: var(--script); font-size: 34px; line-height: 1; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 0 25px; border: 1px solid transparent; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; }
.guest-page-button { min-height: 46px; padding: 10px 23px; border: 1px solid #a5ad93; border-radius: 25px; background: #fffdf6; color: #48543f; font-size: 9px; letter-spacing: .1em; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5px #bbc1ab77; }
.guest-page-button:hover { background: #e9eddf; }

.section-wrap { width: min(1060px, calc(100% - 48px)); margin: 0 auto; text-align: center; }
.intro { padding: 103px 0 92px; }
.section-wrap h2, .details-copy h2, .photo-label h2, .rsvp-card h2 { margin: 9px 0 16px; font-family: var(--serif); font-size: clamp(41px, 5vw, 59px); font-weight: 400; line-height: 1; }
.intro-copy { max-width: 520px; margin: 0 auto; color: var(--muted); font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.tiny-flourish { display: inline-block; margin-top: 19px; color: #b0a895; font-size: 17px; }

.details-band { display: grid; min-height: 490px; grid-template-columns: 1.12fr .88fr; background: var(--cream); }
.details-image { min-height: 490px; background: linear-gradient(0deg, #27302522, #27302500), url("assets/couple-story.jpg") center 45% / cover; }
.details-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px clamp(34px, 8vw, 115px); }
.details-copy h2 { margin-bottom: 22px; font-size: clamp(48px, 6vw, 72px); }
.details-copy > p:not(.script-note) { margin: 0 0 10px; color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.details-copy .detail-date { color: var(--ink) !important; font-family: var(--sans) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 17px; padding-bottom: 4px; border-bottom: 1px solid var(--sage); color: var(--ink); font-size: 10px; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }

.weekend { padding: 99px 0 106px; }
.weekend h2, .party h2, .registry h2 { margin-bottom: 15px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 42px; text-align: left; }
.schedule-card { min-height: 220px; padding: 27px 25px; border: 1px solid var(--line); }
.featured-card { background: var(--cream); border-color: var(--cream); }
.schedule-day { color: var(--sage); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.schedule-card h3 { margin: 11px 0 8px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.schedule-card p { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-card .schedule-time { margin-top: 20px; color: var(--ink); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.photo-section { padding: 88px max(24px, calc((100% - 1200px) / 2)) 96px; background: var(--cream); }
.photo-label { margin: 0 auto 38px; text-align: center; }
.photo-label h2 { margin-bottom: 8px; font-size: clamp(40px, 4.8vw, 61px); }
.photo-label > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 18px; }
.photo-gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(190px, 1fr)); gap: 12px; }
.photo-tile { position: relative; min-width: 0; min-height: 190px; margin: 0; overflow: hidden; background: #e8e6df; }
.photo-tile-featured { grid-row: span 2; }
.photo-tile img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .45s ease; }
.photo-tile-featured img { position: absolute; inset: 0; }
.photo-tile:hover img { transform: scale(1.035); }
.photo-tile figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 13px 10px; color: white; background: linear-gradient(transparent, #1b201bb0); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.party { padding: 99px 0 104px; }
.section-subtitle { margin: -3px 0 0; color: var(--muted); font-family: var(--serif); font-size: 19px; }
.party-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 41px; }
.party-grid > div { padding: 0 12px; }
.party-initial { display: grid; width: 74px; height: 74px; place-items: center; margin: 0 auto 14px; border: 1px solid #d7d8cc; border-radius: 50%; color: var(--sage); font-family: var(--script); font-size: 40px; }
.party-grid h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.party-grid p { margin: 1px 0; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

.registry { max-width: 760px; padding: 88px 30px 95px; border-top: 1px solid var(--line); }
.registry > p:not(.script-note) { max-width: 520px; margin: 0 auto 23px; color: var(--muted); font-family: var(--serif); font-size: 20px; }
.registry-page { max-width: 1160px; }
.registry-page .registry-full-list { margin: 2px 0 16px; }
.registry-page .registry-link-note { max-width: 700px !important; margin: 0 auto 28px !important; font-family: var(--sans) !important; font-size: 12px !important; }
.registry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-top: 32px; text-align: left; }
.registry-loading { grid-column: 1 / -1; color: var(--muted); font-family: var(--serif); font-size: 18px; text-align: center; }
.registry-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.registry-card-image { display: grid; aspect-ratio: 1 / 1; place-items: center; padding: 13px; background: #fff; }
.registry-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.registry-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }
.registry-card-merchant { margin: 0 0 5px; color: var(--sage); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.registry-card h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.12; }
.registry-card .button { width: 100%; margin-top: auto; padding: 0 9px; font-size: 9px; }
.registry-card a:focus-visible, .registry-full-list:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.registry-error { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: center; }
.button-outline { border-color: #a6aa9b; color: var(--ink); background: transparent; }
.button-outline:hover { color: white; background: var(--sage); border-color: var(--sage); }

.rsvp-section { padding: 76px 24px; background: var(--cream); }
.rsvp-card { width: min(490px, 100%); margin: 0 auto; padding: 42px clamp(22px, 5vw, 58px); background: var(--paper); text-align: center; }
.rsvp-card h2 { font-size: 48px; }
.rsvp-card > p:not(.script-note):not(.form-message) { margin: 0 0 26px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
#rsvp-form { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
#rsvp-form label { margin: 13px 0 6px; color: #55594f; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
#rsvp-form input, #rsvp-form select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #d6d8cf; border-radius: 0; color: var(--ink); background: white; font-size: 13px; }
#rsvp-form input:focus, #rsvp-form select:focus { outline: 2px solid #9da58e; outline-offset: 2px; }
.button-dark { margin-top: 22px; color: white; background: var(--ink); }
.button-dark:hover { background: var(--sage); }
.form-message { min-height: 20px; margin: 13px 0 0; color: var(--sage); font-family: var(--serif); font-size: 17px; }

.site-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 35px; padding: 28px 20px 30px; border-top: 1px solid #aeb79d55; background: #f5f1e6; color: #48543f; text-align: center; }
.site-footer .footer-note { margin: 0; font-family: var(--script); font-size: 28px; line-height: 1.2; }
.site-footer .footer-names { color: inherit; font-family: var(--serif); font-size: 18px; text-decoration: none; }
.site-footer .footer-names:focus-visible { outline: 2px solid #697859; outline-offset: 4px; }
.site-footer .footer-date { margin-top: 7px; font-size: 8px; letter-spacing: .22em; }

.back-top { text-decoration: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 19px 0; text-align: left; }
  .site-header > .wordmark { display: none; }
  .couple-name { grid-column: 1; grid-row: 1; margin-top: 0; font-size: 19px; letter-spacing: .14em; }
  .event-line { grid-column: 1; grid-row: 2; margin: 6px 0; font-size: 8px; letter-spacing: .1em; }
  .countdown { display: none; }
  .menu-toggle { display: flex; grid-column: 2; grid-row: 1 / 3; flex-direction: column; gap: 5px; justify-self: end; padding: 12px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.visually-hidden) { width: 22px; height: 1px; background: var(--ink); }
  .site-nav { margin-inline: -19px; padding-inline: 19px; display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 19px 10px; border-bottom: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 2px; border-top: 1px solid var(--line); font-size: 9px; }
  .site-nav a::after { display: none; }
  .page-banner { padding: 42px 17px 37px; }
  .page-banner > p:last-child { font-size: 17px; }
  .story-layout { width: calc(100% - 24px); grid-template-columns: 1fr; margin: 20px auto 42px; }
  .story-layout > img { min-height: 0; max-height: 490px; aspect-ratio: 4 / 5; }
  .story-copy { padding: 35px 26px 39px; }
  .home-links { grid-template-columns: 1fr; }
  .home-link-card { min-height: 170px; border-right: 0; border-bottom: 1px solid #e2e1d8; }
  .home-link-card:last-child { border-bottom: 0; }
  .weekend-page { padding-top: 28px; }
  .photos-page { padding: 30px 16px 45px; }
  .party-page { padding-top: 52px; padding-bottom: 58px; }
  .rsvp-page { padding: 35px 15px 52px; }
  .hero-carousel { width: 100%; margin: 0; }
  .hero-viewport { height: min(620px, 112vw); min-height: 380px; }
  .hero-track { gap: 0; }
  .hero-slide { width: 100vw; }
  .hero-family-name { padding: 0 14px; font-size: clamp(58px, 16.4vw, 68px); }
  .hero-slide img { object-position: center center; }
  .section-wrap { width: calc(100% - 38px); }
  .intro { padding: 75px 0 68px; }
  .intro-copy { font-size: 19px; }
  .details-band { grid-template-columns: 1fr; }
  .details-image { min-height: 340px; }
  .details-copy { padding: 52px 34px 58px; }
  .weekend { padding: 72px 0 76px; }
  .schedule-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 31px; }
  .schedule-card { min-height: auto; padding: 22px; }
  .schedule-card .schedule-time { margin-top: 12px; }
  .photo-section { padding: 69px 16px 74px; }
  .photo-label { margin-bottom: 25px; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; }
  .photo-tile { aspect-ratio: 4 / 5; min-height: 0; }
  .photo-tile-featured { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .photo-tile img, .photo-tile-featured img { position: absolute; inset: 0; min-height: 0; }
  .party { padding: 74px 0; }
  .party-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .registry { padding: 68px 12px 72px; }
  .registry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .registry-card-copy { padding: 12px; }
  .registry-card h2 { font-size: 20px; }
  .rsvp-section { padding: 47px 15px; }
  .site-footer { margin-top: 25px; padding: 25px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* A compact calendar keepsake shared by every page. */
.footer-calendar { position: relative; margin-top: 12px; }
.footer-calendar summary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 22px; border: 1px solid #aeb79d; border-radius: 24px; background: #fffdf5; color: #48543f; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.footer-calendar summary::-webkit-details-marker { display: none; }
.footer-calendar summary:hover { background: #e9eddf; }
.footer-calendar-options { position: absolute; z-index: 20; bottom: calc(100% + 12px); left: 50%; width: min(290px, calc(100vw - 40px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 9px; padding: 20px; border: 1px solid #b5bea5; border-radius: 8px; background: #fffdf5; box-shadow: 0 10px 32px #48543f22; }
.footer-calendar-options p { margin: 0 0 3px; font-family: var(--serif); font-size: 20px; }
.footer-calendar-options a { padding: 11px; border: 1px solid #c4cbb7; border-radius: 22px; color: #48543f; text-decoration: none; font-size: 12px; }
.footer-calendar-options a:hover { background: #e9eddf; }
.footer-calendar-options button { padding: 5px; border: 0; background: transparent; color: #657058; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.footer-calendar :focus-visible { outline: 2px solid #697859; outline-offset: 4px; }
.address-page { padding: 50px 20px 20px; }
.address-card { width: min(610px, 100%); margin: 0 auto; padding: 38px clamp(22px, 5vw, 48px); border: 1px solid #c8cfbc; background: #fffdf5; box-shadow: inset 0 0 0 6px #fffdf5, inset 0 0 0 7px #e1e3d7; text-align: center; }
.address-card .script-note { margin: 0; font-size: 32px; }
.address-card h1 { margin: 8px 0 14px; font-family: var(--serif); font-size: clamp(40px, 6vw, 54px); font-weight: 400; }
.address-intro { margin: 0 auto 25px; max-width: 400px; font-family: var(--serif); color: #657058; font-size: 19px; line-height: 1.5; }
#address-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; text-align: left; }
.address-wide { grid-column: 1 / -1; }
.address-field { display: flex; flex-direction: column; gap: 7px; font-size: 10px; letter-spacing: .04em; color: #48543f; }
.address-field input { width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid #c8cfbc; border-radius: 3px; background: #fffefa; font-size: 15px; color: var(--ink); }
.address-field input:focus { outline: 2px solid #9da58e; outline-offset: 2px; }
.address-submit { justify-self: center; min-width: 220px; margin-top: 8px; border: 1px solid #a5ad93; border-radius: 28px; background: #f5f1e6; color: #48543f; box-shadow: inset 0 0 0 4px #fffdf5, inset 0 0 0 5px #c4cbb799; }
.address-submit:hover { background: #e9eddf; }
.address-privacy { margin: 0; font-size: 10px; color: #737e63; line-height: 1.6; text-align: center; }
#address-status { margin: 0; color: #657058; font-family: var(--serif); font-size: 18px; line-height: 1.4; text-align: center; }
@media (max-width: 480px) { .address-page { padding: 28px 15px 10px; } #address-form { grid-template-columns: 1fr; } .address-field input { font-size: 16px; } }
@media print { .footer-calendar { display: none; } }
.guest-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[data-guest-success][hidden] { display: none; }

.address-success-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; text-align: center; }
.address-success-actions > * { flex: 1; min-width: 0; }
.address-success-actions .footer-calendar { margin: 0; }
.address-success-actions .footer-calendar summary, .address-success-actions > .button { width: 100%; min-width: 0; min-height: 45px; margin: 0; padding: 10px 14px; font-size: 9px; letter-spacing: .1em; }
@media (max-width: 480px) { .address-success-actions { flex-direction: column; align-items: stretch; } }

/* Shared guest-information links, including the save-the-date footer. */
.footer-page-links { display: flex; justify-content: center; gap: 22px; margin-top: 7px; }
.footer-page-links a { display: inline-flex; align-items: center; min-height: 36px; color: #627252; font-size: 9px; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; }
.footer-page-links a:hover { color: #a7636e; }
.footer-page-links a:focus-visible { outline: 2px solid #697859; outline-offset: 4px; }
