:root {
    --ivory: #f8f6f0;
    --sand: #e8e0d2;
    --sage: #899781;
    --forest: #35483c;
    --burgundy: #6e1730;
    --champagne: #b89478;
    --paper: #fffdf8;
    --text: #344036;
    --text-soft: #5c675b;
    --line: rgba(53, 72, 60, .2);
    --line-light: rgba(248, 246, 240, .52);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: Gabriola, 'Monotype Corsiva', 'Apple Chancery', 'URW Chancery L', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Manrope', Arial, sans-serif;
    --content-width: 75rem;
    --content-narrow: 39rem;
    --space-2xs: .5rem;
    --space-xs: .75rem;
    --space-sm: 1.25rem;
    --space-md: 2rem;
    --space-lg: clamp(3.5rem, 8vw, 7rem);
    --radius-sm: .125rem;
    --radius-pill: 999px;
    --shadow-card: 0 1rem 2.75rem rgba(53, 72, 60, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ivory); font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.75; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: .95; }
p { margin-bottom: var(--space-sm); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: .25rem; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; isolation: isolate; padding: var(--space-lg) 1.5rem; color: var(--ivory); text-align: center; background: center / cover no-repeat var(--hero-image); }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 35, 28, .4), rgba(23, 35, 28, .72)); }
.hero__content { display: grid; justify-items: center; gap: var(--space-xs); width: min(100%, 68rem); padding: var(--space-md) 0 calc(var(--space-md) + 1rem); }
.eyebrow { color: var(--burgundy); margin-bottom: var(--space-xs); font-size: .68rem; font-weight: 600; letter-spacing: .19em; line-height: 1.45; text-transform: uppercase; }
.eyebrow--light { color: var(--ivory); }
.hero :focus-visible { outline-color: var(--ivory); }
.hero h1 { margin-bottom: var(--space-2xs); font-family: var(--script); font-size: clamp(4.25rem, 15vw, 9.75rem); font-style: italic; font-weight: 400; letter-spacing: -.065em; line-height: 1; }
.hero__date { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(.82rem, 2.5vw, 1rem); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.countdown { display: flex; justify-content: center; gap: 0; padding: var(--space-xs) 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.countdown__item { min-width: clamp(4.25rem, 13vw, 6.25rem); padding: 0 var(--space-xs); border-left: 1px solid var(--line-light); text-align: center; }
.countdown__item:first-child { border-left: 0; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 400; line-height: 1; }
.countdown span { display: block; margin-top: .4rem; font-size: .57rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.countdown__message { margin-bottom: 0; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.7rem); font-style: italic; }
.section { padding: var(--space-lg) 1.5rem; }
.story { display: grid; gap: clamp(2.75rem, 7vw, 7rem); max-width: var(--content-width); margin: 0 auto; align-items: center; }
.story__image { overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); }
.story__carousel { position: relative; isolation: isolate; width: 100%; height: 31rem; }
.story__carousel img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.story__carousel img.is-active { opacity: 1; }
.story__content { order: -1; max-width: 31rem; }
h2 { margin-bottom: var(--space-sm); font-size: clamp(3.25rem, 10vw, 5.7rem); color: var(--forest); letter-spacing: -.035em; }
.story__content p:not(.eyebrow) { margin-bottom: var(--space-sm); }
.story__content p:not(.eyebrow):last-child { margin-bottom: 0; }
.flourish { margin: var(--space-sm) 0 calc(var(--space-sm) + .25rem); color: var(--champagne); font-size: 1.2rem; }

.arrival { background: var(--sand); }
.section-heading { max-width: var(--content-narrow); margin: 0 auto clamp(2.75rem, 6vw, 4rem); text-align: center; }
.section-heading h2 { margin-bottom: var(--space-xs); }
.section-heading > p:last-child { margin-bottom: 0; color: var(--text-soft); }
.arrival__note { max-width: 31rem; margin: var(--space-sm) auto 0; font-size: .84rem; line-height: 1.65; }
.arrival__grid { display: grid; gap: var(--space-md); max-width: var(--content-width); margin: 0 auto; }
.itinerary { background: var(--paper); }
.itinerary__date { margin: 0 0 var(--space-xs); color: var(--text-soft); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.itinerary__timeline { position: relative; max-width: 38rem; margin: 0 auto; padding: 0; list-style: none; }
.itinerary__timeline::before { position: absolute; top: 3rem; bottom: 3rem; left: 1.15rem; width: 1px; background: var(--line); content: ''; }
.itinerary__item { position: relative; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: var(--space-sm); align-items: center; min-height: 6rem; }
.itinerary__item + .itinerary__item { margin-top: var(--space-sm); }
.itinerary__marker { z-index: 1; display: grid; justify-self: center; width: 2.3rem; height: 2.3rem; place-items: center; border: 1px solid var(--champagne); border-radius: 50%; background: var(--paper); color: var(--burgundy); }
.itinerary__marker img { display: block; width: 1.05rem; height: 1.05rem; object-fit: contain; }
.itinerary__content { padding: var(--space-xs) 0; }
.itinerary__time { margin: 0 0 .2rem; color: var(--burgundy); font-size: .7rem; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.itinerary__content h3 { margin: 0; color: var(--forest); font-size: clamp(1.95rem, 7vw, 2.5rem); }
.place-card { display: flex; overflow: hidden; flex-direction: column; border-radius: var(--radius-sm); background: var(--paper); box-shadow: var(--shadow-card); }
.place-card > img { width: 100%; height: 17rem; object-fit: cover; }
.place-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--space-md) calc(var(--space-md) - .3rem) calc(var(--space-md) + .2rem); }
.place-card h3 { margin-bottom: var(--space-xs); font-size: clamp(2.45rem, 8vw, 3.65rem); color: var(--forest); letter-spacing: -.025em; }
.lodging-card h3 { max-width: 18ch; font-size: clamp(2.15rem, 4.5vw, 3rem); }
.lodging-card .place-card__body { align-items: center; text-align: center; }
.lodging-card .button { align-self: center; }
.place-card__venue { margin-bottom: var(--space-2xs); font-family: var(--serif); font-size: 1.42rem; font-weight: 500; line-height: 1.18; }
.place-card__address { min-height: 2.9rem; margin-bottom: 1.5rem; color: var(--text-soft); font-size: .9rem; }
dl { margin: 1.6rem 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-2xs); padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
dt { color: var(--burgundy); font-weight: 600; }
dd { margin: 0; }
.button { display: inline-flex; align-items: center; align-self: flex-start; gap: var(--space-xs); margin-top: auto; padding: .85rem 1.2rem; border: 1px solid var(--forest); border-radius: var(--radius-sm); color: var(--forest); font-size: .68rem; font-weight: 600; letter-spacing: .14em; line-height: 1; text-decoration: none; text-transform: uppercase; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.button:hover { border-color: var(--forest); background: var(--forest); color: var(--ivory); transform: translateY(-1px); }
.button span { font-size: 1rem; }

.site-footer { position: relative; padding: clamp(4.75rem, 9vw, 7rem) 1.5rem clamp(4rem, 8vw, 6rem); border-top: 1px solid rgba(184, 148, 120, .72); background: var(--forest); color: var(--ivory); text-align: center; }
.site-footer::before { position: absolute; top: 1.25rem; left: 50%; width: 2.25rem; height: 2.25rem; background: url('../img/favicon-32x32.png') center / contain no-repeat; content: ''; transform: translateX(-50%); }
.site-footer p { margin-bottom: var(--space-2xs); font-size: .82rem; letter-spacing: .04em; }
.site-footer__names { margin-bottom: var(--space-xs); font-family: var(--script); font-size: clamp(3.15rem, 10vw, 4.75rem); font-style: italic; font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.site-footer__thanks { max-width: 21rem; margin: var(--space-md) auto 0; color: rgba(248, 246, 240, .82); font-size: .78rem; }

.rsvp { padding-bottom: clamp(4.5rem, 9vw, 7rem); background: var(--paper); }
.rsvp__layout { max-width: var(--content-narrow); margin: 0 auto; }
.rsvp__intro { max-width: 34rem; margin: 0 auto; text-align: center; }
.rsvp__intro h2 { margin-bottom: var(--space-sm); font-size: clamp(3.1rem, 8vw, 5rem); }
.rsvp__intro .eyebrow { margin-bottom: var(--space-sm); }
.rsvp__hint { max-width: 31rem; margin: var(--space-md) auto 0; color: var(--text-soft); font-size: .88rem; line-height: 1.7; }
.rsvp__form { max-width: 34rem; margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); box-shadow: var(--shadow-card); }
.rsvp__field, .rsvp__attendance { margin: 0 0 var(--space-md); }
.rsvp__form label, .rsvp__form legend { display: block; margin-bottom: var(--space-2xs); color: var(--forest); font-size: .76rem; font-weight: 600; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.rsvp__form input[type='text'], .rsvp__form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); font: inherit; line-height: 1.5; }
.rsvp__form input[type='text'] { min-height: 3.15rem; padding: .7rem .85rem; }
.rsvp__form textarea { padding: .75rem .85rem; resize: vertical; }
.rsvp__form input[type='text']:focus, .rsvp__form textarea:focus { border-color: var(--forest); outline: 2px solid var(--forest); outline-offset: 2px; }
.rsvp__attendance { padding: 0; border: 0; }
.rsvp__attendance > .rsvp__choice { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rsvp__attendance > .rsvp__choice + label { display: inline-flex; align-items: center; min-height: 2.8rem; margin: 0 var(--space-2xs) var(--space-xs) 0; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; color: var(--text); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.rsvp__attendance > .rsvp__choice:checked + label { border-color: var(--forest); background: var(--forest); color: var(--ivory); }
.rsvp__attendance > .rsvp__choice:focus-visible + label { outline: 2px solid var(--forest); outline-offset: .25rem; }
.rsvp__allergies { display: none; margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--line); }
.rsvp__attendance > #rsvp-yes:checked ~ .rsvp__allergies { display: block; }
.rsvp__optional { color: var(--text-soft); font-weight: 400; letter-spacing: 0; text-transform: none; }
.rsvp__field-note, .rsvp__noscript { margin: var(--space-xs) 0 0; color: var(--text-soft); font-size: .76rem; line-height: 1.65; }
.rsvp__honeypot { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rsvp__submit { margin-top: var(--space-sm); cursor: pointer; background: transparent; }
.rsvp__submit:disabled { cursor: wait; opacity: .65; transform: none; }
.rsvp__status { min-height: 1.7em; margin: var(--space-sm) 0 0; color: var(--forest); font-size: .84rem; font-weight: 500; line-height: 1.55; }
.rsvp__status[data-state='error'] { color: var(--burgundy); }
.rsvp__status[data-state='closed'] { color: var(--text-soft); }

html.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (min-width: 48rem) { .section { padding-right: 2.5rem; padding-left: 2.5rem; } .story__carousel { height: 40rem; } .arrival__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lodging__grid { grid-template-columns: minmax(0, 31rem); justify-content: center; } .place-card > img { height: 20rem; } .place-card__body { padding: 2.5rem; } }
@media (min-width: 64rem) { .hero { padding-right: 3rem; padding-left: 3rem; } .countdown { gap: var(--space-sm); } .countdown__item { min-width: 5.5rem; padding-left: var(--space-sm); } .story { grid-template-columns: minmax(20rem, 1.05fr) minmax(19rem, .72fr); } .story__content { order: 0; } .arrival__grid { gap: 2.25rem; } .itinerary__timeline { max-width: 56rem; } .itinerary__timeline::before { left: 50%; } .itinerary__item { grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr); gap: var(--space-md); } .itinerary__marker { grid-column: 2; } .itinerary__content { grid-column: 3; } .itinerary__item:nth-child(odd) .itinerary__content { grid-column: 1; grid-row: 1; text-align: right; } .lodging__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
