@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ivory: #f8f5f0;
  --paper: #fdfbf8;
  --white: #fffefa;
  --sand: #eee7dc;
  --beige: #e3d8c8;
  --champagne: #d2bd98;
  --gold: #b99257;
  --gold-deep: #947142;
  --ink: #302c28;
  --ink-soft: #6d655c;
  --muted: #988d80;
  --line: rgba(112, 92, 66, .2);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Baskerville', Georgia, serif;
  --sans: 'DM Sans', 'Avenir Next', Avenir, system-ui, sans-serif;
  --page-width: 1180px;
  --page-pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.2, .72, .24, 1);
  --shadow-soft: 0 24px 65px rgba(70, 54, 33, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: var(--sans); }
button, input, select, textarea { font-size: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(185, 146, 87, .22); color: var(--ink); }
[hidden] { display: none !important; }
.site-main[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 300; top: .6rem; left: .6rem; transform: translateY(-160%); padding: .65rem 1rem; border-radius: 99px; background: var(--ink); color: var(--white); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.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; }
.section-shell { width: min(100% - 2 * var(--page-pad), var(--page-width)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 9vw, 8.5rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; color: var(--gold-deep); font-size: .68rem; font-weight: 700; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.eyebrow__line { display: inline-block; width: 26px; height: 1px; background: var(--gold); }
.gold-rule { display: block; width: 58px; height: 1px; margin: 1.2rem auto; background: var(--gold); }
.gold-rule--light { background: rgba(239, 220, 184, .82); }

.opening-screen { position: fixed; z-index: 200; inset: 0; display: grid; min-height: 100svh; place-items: center; overflow: auto; padding: clamp(2rem, 5vh, 4rem) 1.5rem; isolation: isolate; background: #5e5144; color: var(--white); transition: opacity .8s var(--ease), transform .9s var(--ease), visibility .8s; }
.opening-screen__image, .opening-screen__overlay { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.opening-screen__image { object-fit: cover; object-position: center 44%; filter: brightness(.74) saturate(.8); }
.opening-screen__overlay { z-index: -1; background: linear-gradient(180deg, rgba(31, 28, 24, .25), rgba(39, 34, 28, .24) 40%, rgba(28, 25, 22, .58)), linear-gradient(90deg, rgba(45, 39, 32, .23), transparent 55%); }
.opening-screen::before { position: absolute; z-index: -1; inset: clamp(14px, 3vw, 36px); border: 1px solid rgba(244, 226, 196, .42); content: ''; pointer-events: none; }
.opening-screen__content { width: min(100%, 650px); padding-block: 2rem; text-align: center; animation: opening-arrive 1s var(--ease) both; }
.opening-screen__ornament { position: absolute; color: var(--champagne); font-size: 1.3rem; opacity: .78; }
.opening-screen__ornament--top { top: clamp(2rem, 6vh, 4rem); left: 50%; transform: translateX(-50%); }
.opening-screen__names { display: flex; flex-direction: column; align-items: center; gap: .02em; margin: .7rem 0 0; font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3.25rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.ampersand { padding: .04em 0; color: #e4c994; font-size: .57em; font-style: italic; }
.opening-screen__names > .ampersand { padding: 0; font-size: .48em; line-height: 1; }
.eyebrow--light { justify-content: center; color: #f0ddbd; font-size: .75rem; letter-spacing: .29em; }
.opening-screen__date { margin: 1.3rem 0 2rem; color: rgba(255, 250, 240, .92); font-size: .77rem; letter-spacing: .2em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 48px; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: 0; font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--light { border-color: rgba(250, 239, 219, .72); background: rgba(248, 245, 240, .08); color: var(--white); backdrop-filter: blur(8px); }
.button--light:hover { background: var(--white); color: var(--ink); }
.button--solid { background: var(--ink); color: var(--white); }
.button--solid:hover { background: var(--gold-deep); box-shadow: 0 8px 24px rgba(58, 43, 23, .16); }
.button--outline { border-color: var(--gold); background: transparent; color: var(--ink); }
.button--outline:hover { border-color: var(--gold-deep); background: var(--gold-deep); color: var(--white); }
.opening-screen__button { min-width: 210px; }
.opening-screen__footnote { position: absolute; bottom: clamp(1.4rem, 4vh, 2.8rem); color: rgba(255, 250, 240, .72); font-family: var(--serif); font-size: 1.05rem; font-style: italic; letter-spacing: .04em; }
.opening-screen.is-opening { visibility: hidden; opacity: 0; transform: scale(1.025); pointer-events: none; }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem var(--page-pad); border-bottom: 1px solid rgba(121, 102, 77, .1); background: rgba(253, 251, 248, .92); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.wordmark__logo { display: block; width: 76px; height: 65px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.1vw, 2rem); }
.desktop-nav a, .header-date { color: var(--ink-soft); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a.is-active, .header-date:hover { color: var(--gold-deep); }
.header-date { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.header-date > span:first-child { color: var(--gold); }

.hero { display: grid; min-height: min(720px, calc(100svh - 78px)); grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.hero__copy { max-width: 510px; padding-block: 1rem; }
.hero__title { display: flex; flex-direction: column; margin: .2rem 0 1.45rem; font-family: var(--serif); font-size: clamp(3.2rem, 6.4vw, 6.25rem); font-weight: 400; letter-spacing: -.045em; line-height: .83; }
.hero__title > span:not(.hero__ampersand) { font-size: clamp(1.8rem, 4.4vw, 3.7rem); letter-spacing: -.03em; line-height: 1.03; overflow-wrap: anywhere; }
.hero__ampersand { padding-block: .12em .08em; color: var(--gold); font-size: .57em; font-style: italic; }
.hero__description { max-width: 370px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.48rem); font-style: italic; line-height: 1.45; }
.hero__date { margin: 1.4rem 0 1.7rem; color: var(--gold-deep); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; padding-bottom: .25rem; border-bottom: 1px solid var(--champagne); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: color .2s, gap .2s; }
.text-link:hover { gap: 1rem; color: var(--gold-deep); }
.hero__portrait { position: relative; width: 100%; max-width: 555px; justify-self: end; margin: 0; }
.hero__photo-frame { position: relative; padding: 15px; border: 1px solid var(--champagne); }
.hero__photo-frame::after { position: absolute; z-index: -1; top: 27px; right: -27px; bottom: -27px; left: 27px; border: 1px solid rgba(185, 146, 87, .45); content: ''; }
.hero__photo-frame > img { width: 100%; aspect-ratio: 4 / 4.65; object-fit: cover; object-position: center; background: var(--sand); }
.hero__photo-seal { position: absolute; right: -28px; bottom: 30px; display: grid; width: 76px; height: 76px; place-content: center; border: 1px solid rgba(255, 255, 255, .72); border-radius: 50%; outline: 1px solid rgba(185, 146, 87, .7); outline-offset: -5px; background: var(--ivory); color: var(--gold-deep); font-family: var(--serif); font-size: 1.15rem; }
.hero__portrait figcaption { margin-top: 1.4rem; color: var(--muted); font-family: var(--serif); font-size: .94rem; font-style: italic; text-align: right; }

.countdown-band { position: relative; overflow: hidden; padding: clamp(2.75rem, 5vw, 4.5rem) var(--page-pad); background: #ede6db; }
.countdown-band::before, .countdown-band::after { position: absolute; width: 240px; height: 240px; border: 1px solid rgba(185, 146, 87, .19); border-radius: 50%; content: ''; }
.countdown-band::before { top: -135px; left: -90px; }
.countdown-band::after { right: -70px; bottom: -165px; }
.countdown-band__inner { position: relative; z-index: 1; display: grid; max-width: 1000px; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 3rem; margin-inline: auto; }
.countdown-band__intro .eyebrow { margin-bottom: .35rem; }
.countdown-band__intro h2 { margin: 0; font-family: var(--serif); font-size: 2.15rem; font-weight: 500; line-height: 1; }
.countdown-band__note { grid-column: 2; margin: -.4rem 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: .95rem; font-style: italic; text-align: center; }
.countdown { display: flex; align-items: flex-start; gap: clamp(.55rem, 2vw, 1.5rem); }
.countdown__unit { display: grid; min-width: 48px; justify-items: center; }
.countdown__value { color: var(--gold-deep); font-family: var(--serif); font-size: clamp(2.3rem, 4.2vw, 3.45rem); font-variant-numeric: tabular-nums; line-height: 1; transition: transform .22s var(--ease), opacity .22s; }
.countdown__value.is-ticking { transform: translateY(-3px); opacity: .55; }
.countdown__label { margin-top: .5rem; color: var(--ink-soft); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.countdown__separator { padding-top: .16em; color: rgba(148, 113, 66, .48); font-family: var(--serif); font-size: 2.7rem; line-height: .95; }

.section-heading { max-width: 630px; margin: 0 auto clamp(2.6rem, 5vw, 4rem); text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2, .rsvp-section h2, .gift-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 5.5vw, 4.3rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.section-heading > p:last-child { max-width: 560px; margin: 1.15rem auto 0; color: var(--ink-soft); font-size: .91rem; }
.section--couple { padding-block: clamp(5.5rem, 9vw, 9rem); }
.couple-grid { display: grid; grid-template-columns: 1fr 85px 1fr; align-items: center; gap: clamp(1.25rem, 4vw, 4rem); }
.person-card { display: grid; grid-template-columns: minmax(145px, .8fr) 1fr; align-items: center; gap: clamp(1.1rem, 3vw, 2.5rem); }
.person-card--bride { grid-template-columns: 1fr minmax(145px, .8fr); text-align: right; }
.person-card__portrait { position: relative; width: 100%; max-width: 260px; margin: 0; padding: 9px; border: 1px solid var(--champagne); }
.person-card__portrait::after { position: absolute; inset: 4px; border: 1px solid rgba(185, 146, 87, .35); content: ''; pointer-events: none; }
.person-card__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--sand); }
.person-card__initial { position: absolute; right: 2px; bottom: 2px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--champagne); border-radius: 50%; background: var(--paper); color: var(--gold-deep); font-family: var(--serif); font-size: 1.25rem; }
.person-card__copy .eyebrow { margin-bottom: .65rem; font-size: .61rem; }
.person-card__copy h3 { margin: 0 0 .7rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.025em; line-height: .98; }
.person-card__copy > p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.person-card__copy .person-card__parents { margin-top: .25rem; color: var(--gold-deep); font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.person-card--bride .eyebrow { justify-content: flex-end; }
.couple-grid__symbol { display: grid; justify-items: center; gap: .25rem; color: var(--gold); }
.couple-grid__leaf { font-family: var(--serif); font-size: 2rem; }
.couple-grid__leaf--flip { transform: rotate(180deg); }
.couple-grid__amp { color: var(--ink); font-family: var(--serif); font-size: 3.2rem; font-style: italic; line-height: 1; }

.story-section { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 8vw, 7.5rem); background: #f0ebe4; }
.story-section::before, .story-section::after { position: absolute; z-index: -1; top: -160px; right: -85px; width: clamp(240px, 34vw, 450px); aspect-ratio: 1; border: 1px solid rgba(185, 146, 87, .13); border-radius: 50%; content: ''; pointer-events: none; transform: translate3d(0, var(--parallax-y, 0px), 0); }
.story-section::after { top: -98px; right: -20px; width: clamp(170px, 25vw, 330px); border-color: rgba(185, 146, 87, .1); }
.story-section__inner { position: relative; z-index: 1; }
.section-heading--narrow { max-width: 550px; }
.story-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 4.3rem 0 0; padding: 0; list-style: none; }
.story-timeline::before { position: absolute; top: 18px; right: 7%; left: 7%; height: 1px; background: var(--champagne); content: ''; }
.story-timeline__item { position: relative; padding: 3.2rem .6rem 0 0; }
.story-timeline__number { position: absolute; top: 0; left: 0; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: #f0ebe4; color: var(--gold-deep); font-family: var(--serif); font-size: .9rem; }
.story-timeline__date { color: var(--gold-deep); font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.story-timeline__item h3 { margin: .4rem 0 .55rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.story-timeline__item p { max-width: 230px; margin: 0; color: var(--ink-soft); font-size: .81rem; }

.events-section { padding-block: clamp(5rem, 9vw, 8rem); }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.2rem); max-width: 980px; margin-inline: auto; }
.event-card { position: relative; min-width: 0; padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid var(--champagne); background: var(--white); box-shadow: var(--shadow-soft); }
.event-card--accent { background: #f4f0e9; }
.event-card__number { position: absolute; top: 1.25rem; left: clamp(1.7rem, 4vw, 3rem); color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .15em; }
.event-card__ornament { position: absolute; top: 1.1rem; right: clamp(1.5rem, 3vw, 2.6rem); color: var(--gold); font-size: 1.25rem; }
.event-card > .eyebrow { margin-top: 1.5rem; font-size: .59rem; }
.event-card h3 { margin: .2rem 0 1.5rem; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.15rem); font-weight: 500; line-height: 1; }
.event-details { display: grid; gap: 1.1rem; margin: 0 0 1.8rem; }
.event-details > div { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.event-details dt { display: flex; align-items: flex-start; gap: .5rem; color: var(--ink-soft); font-size: .7rem; }
.event-details dt span:first-child { color: var(--gold-deep); font-size: 1rem; line-height: 1.25; }
.event-details dd { display: grid; gap: .1rem; margin: 0; font-size: .78rem; }
.event-details dd strong { color: var(--ink); font-weight: 600; }
.event-details dd span { color: var(--ink-soft); font-size: .72rem; }
.event-card .button { min-height: 43px; font-size: .63rem; }
.map-link[aria-disabled="true"] { border-color: #c9c0b5; color: #83796d; cursor: not-allowed; }
.map-link[aria-disabled="true"]:hover { transform: none; background: transparent; color: #83796d; }
.events-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .7rem; text-align: center; }

.gallery-section { padding-block: clamp(5rem, 9vw, 8.5rem); background: #f1ece5; }
.section-heading--gallery { margin-bottom: 3rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(84px, 9vw, 128px); gap: clamp(.65rem, 1.5vw, 1.2rem); }
.gallery-item { position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; text-align: left; }
.gallery-item--tall { grid-column: span 4; grid-row: span 4; }
.gallery-item--wide { grid-column: span 4; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease), filter .45s; }
.gallery-item::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35, 30, 26, .52), transparent 55%); content: ''; opacity: .72; transition: opacity .3s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.055); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__caption { position: absolute; z-index: 1; right: 1.1rem; bottom: 1rem; left: 1.1rem; color: #fffaf1; font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.55rem); line-height: 1.1; }
.lightbox { position: fixed; width: min(94vw, 1060px); max-width: 1060px; max-height: 92dvh; padding: clamp(2.7rem, 5vw, 4rem) clamp(2.2rem, 6vw, 5rem) 2.2rem; border: 1px solid rgba(210, 189, 152, .65); background: #f8f5f0; color: var(--ink); box-shadow: 0 25px 90px rgba(18, 16, 14, .36); }
.lightbox::backdrop { background: rgba(31, 27, 23, .86); backdrop-filter: blur(7px); }
.lightbox__figure { display: grid; min-height: 200px; max-height: calc(92dvh - 7rem); justify-items: center; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(92dvh - 10rem); object-fit: contain; }
.lightbox__figure figcaption { margin-top: 1rem; color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; font-style: italic; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--champagne); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.lightbox__close { top: .8rem; right: .8rem; font-size: 1.5rem; line-height: 1; }
.lightbox__nav { top: 50%; font-family: var(--serif); font-size: 2rem; transform: translateY(-50%); }
.lightbox__nav--prev { left: .7rem; }
.lightbox__nav--next { right: .7rem; }

.rsvp-section { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.rsvp-section__intro { position: relative; max-width: 445px; }
.rsvp-section__intro h2 { max-width: 440px; }
.rsvp-section__intro > p:not(.eyebrow) { max-width: 380px; margin-top: 1.15rem; color: var(--ink-soft); font-size: .9rem; }
.rsvp-section__stamp { display: grid; width: 96px; height: 96px; margin-top: 2.5rem; place-content: center; border: 1px solid var(--champagne); border-radius: 50%; color: var(--gold-deep); font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.05; text-align: center; transform: rotate(-12deg); }
.form-card { display: grid; min-width: 0; gap: .62rem; padding: clamp(1.4rem, 3.4vw, 2.55rem); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-soft); }
.form-card label { margin-top: .45rem; color: var(--ink); font-size: .72rem; font-weight: 600; }
.form-card label > span { color: var(--gold-deep); }
.form-card input, .form-card select, .form-card textarea { width: 100%; min-height: 46px; padding: .78rem .85rem; border: 1px solid #ded6ca; border-radius: 0; background: #fdfbf8; color: var(--ink); font-size: .82rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card input::placeholder, .form-card textarea::placeholder { color: #a59c90; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 146, 87, .12); }
.form-card [aria-invalid="true"] { border-color: #a44d41; }
.form-card__submit { justify-self: start; min-width: 190px; margin-top: .6rem; }
.form-status { min-height: 1.35rem; margin: .2rem 0 0; color: var(--gold-deep); font-size: .76rem; }
.form-status.is-error { color: #943f35; }
.privacy-note { margin: 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }

.gift-section { padding-block: clamp(5rem, 9vw, 8rem); background: #ede6db; text-align: center; }
.gift-section__inner { position: relative; display: flex; max-width: 760px; flex-direction: column; align-items: center; }
.gift-section__flower { margin-bottom: .9rem; color: var(--gold); font-size: 1.4rem; }
.gift-section h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.gift-section__inner > p:not(.eyebrow) { max-width: 530px; margin: 1rem auto 2rem; color: var(--ink-soft); font-size: .86rem; }
.bank-card { display: grid; width: min(100%, 385px); gap: .2rem; margin: 0 auto 1.6rem; padding: 1.4rem 1.75rem; border: 1px solid rgba(185, 146, 87, .52); background: rgba(255, 254, 250, .7); text-align: left; }
.bank-card__label { margin-top: .6rem; color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.bank-card__label:first-child { margin-top: 0; }
.bank-card strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.bank-card__number { letter-spacing: .1em; }
.gift-section .button { min-width: 245px; }

.wishes-section { padding-block: clamp(5rem, 9vw, 8rem); }
.wishes-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: start; gap: clamp(1.6rem, 5vw, 4.5rem); max-width: 1000px; margin-inline: auto; }
.wishes-form { gap: .65rem; }
.wishes-feed { padding-top: .7rem; }
.wishes-feed__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.wishes-feed__header h3 { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 500; }
.wishes-feed__ornament { color: var(--gold); }
.wishes-list { display: grid; gap: .9rem; padding-top: 1rem; }
.wishes-empty { margin: .7rem 0; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.wish-card { padding: 1.1rem 1.2rem; border: 1px solid rgba(112, 92, 66, .16); background: var(--white); }
.wish-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.wish-card__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.wish-card time { color: var(--muted); font-size: .6rem; }
.wish-card p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.closing-section { position: relative; display: flex; min-height: 405px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 5rem var(--page-pad); background: #3c352e; color: var(--white); text-align: center; }
.closing-section::before, .closing-section::after { position: absolute; width: 280px; height: 280px; border: 1px solid rgba(210, 189, 152, .22); border-radius: 50%; content: ''; }
.closing-section::before { top: -170px; left: -100px; }
.closing-section::after { right: -110px; bottom: -175px; }
.closing-section .eyebrow { color: #e2c996; }
.closing-section h2 { max-width: 800px; margin: .4rem 0 1rem; font-family: var(--serif); font-size: clamp(2.9rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.closing-section h2 > span:not(:nth-child(2)) { display: block; font-size: clamp(1.65rem, 4.4vw, 3.25rem); line-height: 1.08; overflow-wrap: anywhere; }
.closing-section h2 > span:nth-child(2) { color: var(--champagne); font-style: italic; }
.closing-section > p:not(.eyebrow) { margin: 0 0 1.6rem; color: rgba(255, 250, 240, .75); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.closing-section__ornament { margin-bottom: .5rem; color: var(--champagne); font-family: var(--serif); font-size: 2.2rem; }
.text-link--light { border-color: rgba(210, 189, 152, .7); color: var(--white); }
.text-link--light:hover { color: #e2c996; }
.site-footer { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem var(--page-pad); background: var(--paper); }
.site-footer > p, .site-footer > span { margin: 0; color: var(--muted); font-size: .65rem; }
.wordmark--footer .wordmark__logo { width: 70px; height: 60px; }

.mobile-dock { display: none; }
.music-toggle { position: fixed; z-index: 70; right: max(1.4rem, env(safe-area-inset-right)); bottom: max(1.4rem, env(safe-area-inset-bottom)); display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; outline: 1px solid var(--champagne); outline-offset: -5px; background: var(--ink); color: var(--white); box-shadow: 0 8px 25px rgba(31, 27, 23, .22); cursor: pointer; transition: transform .25s, background .25s; }
.music-toggle:hover { transform: rotate(8deg); background: var(--gold-deep); }
.music-toggle[aria-pressed="true"] .music-toggle__icon { animation: music-pulse 1.2s ease-in-out infinite; }
.music-toggle__icon { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.toast { position: fixed; z-index: 250; right: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 2rem); padding: .75rem 1.15rem; border: 1px solid rgba(255, 255, 255, .24); background: var(--ink); color: white; font-size: .78rem; text-align: center; box-shadow: 0 12px 35px rgba(30, 25, 20, .18); opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js .reveal--delay { transition-delay: .12s; }

@keyframes opening-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes music-pulse { 50% { transform: scale(1.14); } }

@media (max-width: 1020px) {
  .header-date { display: none; }
  .site-header { justify-content: space-between; }
  .hero { gap: 2.5rem; }
  .person-card { grid-template-columns: 1fr; }
  .person-card__portrait { max-width: 230px; }
  .person-card--bride { grid-template-columns: 1fr; justify-items: end; }
  .person-card--bride .person-card__copy { grid-row: 2; }
  .person-card--bride .person-card__portrait { grid-row: 1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); font-size: 14px; }
  :root { --page-pad: clamp(1.1rem, 5vw, 2rem); }
  .site-header { min-height: 65px; padding-block: .45rem; }
  .wordmark__logo { width: 70px; height: 60px; }
  .desktop-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4.5rem 5rem; }
  .hero__copy { max-width: 570px; }
  .hero__title { font-size: clamp(3.6rem, 13vw, 6.3rem); }
  .hero__portrait { width: min(91%, 520px); margin-right: .5rem; }
  .hero__photo-frame { padding: 10px; }
  .hero__photo-frame::after { top: 19px; right: -17px; bottom: -17px; left: 17px; }
  .hero__photo-seal { right: -15px; width: 62px; height: 62px; font-size: .95rem; }
  .countdown-band__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .countdown-band__note { grid-column: auto; margin: 0; }
  .countdown-band__intro .eyebrow { justify-content: center; }
  .countdown-band__intro h2 { font-size: 1.9rem; }
  .countdown { gap: clamp(.35rem, 2vw, 1rem); }
  .countdown__unit { min-width: 44px; }
  .countdown__value { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .countdown__separator { font-size: 2.2rem; }
  .couple-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .person-card { grid-template-columns: 1fr; align-content: start; justify-items: center; text-align: center; }
  .person-card--bride { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .person-card--bride .person-card__copy, .person-card--bride .person-card__portrait { grid-row: auto; }
  .person-card__portrait { max-width: 220px; padding: 7px; }
  .person-card--bride .eyebrow, .person-card .eyebrow { justify-content: center; }
  .person-card__copy h3 { font-size: clamp(1.55rem, 6vw, 2.15rem); }
  .person-card__copy .person-card__parents { font-size: .98rem; }
  .couple-grid__symbol { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; align-items: center; gap: .5rem; }
  .couple-grid__symbol + .person-card { grid-row: 3; grid-column: 1 / -1; }
  .couple-grid__leaf { font-size: 1.3rem; }
  .couple-grid__amp { font-size: 2rem; }
  .story-timeline { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.6rem; }
  .story-timeline::before { top: 10px; bottom: 11px; left: 18px; width: 1px; height: auto; }
  .story-timeline__item { min-height: 95px; padding: .15rem 0 .3rem 3.5rem; }
  .story-timeline__number { top: 0; left: 0; width: 37px; height: 37px; }
  .story-timeline__item h3 { margin-block: .22rem; font-size: 1.55rem; }
  .story-timeline__item p { max-width: 440px; }
  .event-grid { grid-template-columns: 1fr; max-width: 540px; }
  .event-card { padding: 1.7rem; }
  .event-card__number { left: 1.7rem; }
  .event-card h3 { font-size: 2.55rem; }
  .gallery-grid { grid-auto-rows: clamp(80px, 19vw, 130px); gap: .6rem; }
  .gallery-item, .gallery-item--tall, .gallery-item--wide { grid-column: span 6; grid-row: span 2; }
  .gallery-item--tall { grid-row: span 3; }
  .gallery-item__caption { right: .65rem; bottom: .6rem; left: .65rem; font-size: clamp(.92rem, 3.2vw, 1.25rem); }
  .rsvp-section { grid-template-columns: 1fr; gap: 2rem; }
  .rsvp-section__stamp { position: absolute; top: 0; right: .1rem; width: 75px; height: 75px; margin: 0; font-size: .9rem; }
  .rsvp-section__intro { padding-right: 1.4rem; }
  .rsvp-section__intro h2 { max-width: 320px; }
  .wishes-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding-bottom: 1.2rem; text-align: center; }
  .site-footer > p { order: 3; width: 100%; }
  .mobile-dock { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: calc(62px + env(safe-area-inset-bottom)); padding: .35rem .12rem calc(.35rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(121, 102, 77, .16); background: rgba(253, 251, 248, .96); backdrop-filter: blur(14px); }
  .mobile-dock a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: .06rem; color: var(--ink-soft); font-size: clamp(.49rem, 2.2vw, .61rem); line-height: 1.35; text-decoration: none; }
  .mobile-dock a > span:first-child { color: var(--gold-deep); font-size: 1.05rem; line-height: 1.1; }
  .mobile-dock a.is-active { color: var(--gold-deep); font-weight: 700; }
  .music-toggle { right: 1rem; bottom: calc(74px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .lightbox { width: 100%; max-width: none; max-height: 100dvh; padding: 4rem 2.5rem 1.6rem; border-right: 0; border-left: 0; }
  .lightbox__figure { max-height: calc(100dvh - 6rem); }
  .lightbox__figure img { max-height: calc(100dvh - 9rem); }
  .lightbox__nav--prev { left: .25rem; }
  .lightbox__nav--next { right: .25rem; }
}

@media (max-width: 430px) {
  :root { --page-pad: 1.1rem; }
  .opening-screen::before { inset: 10px; }
  .opening-screen__names { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .opening-screen__date { font-size: .65rem; letter-spacing: .14em; }
  .opening-screen__footnote { bottom: 1.4rem; }
  .hero__title { font-size: clamp(3.25rem, 14vw, 4.9rem); }
  .hero__description { font-size: 1.15rem; }
  .countdown-band { padding-inline: .7rem; }
  .countdown { gap: .23rem; }
  .countdown__unit { min-width: 40px; }
  .countdown__value { font-size: 2.1rem; }
  .countdown__separator { font-size: 1.75rem; }
  .countdown__label { font-size: .51rem; letter-spacing: .09em; }
  .couple-grid { gap: 1.3rem .55rem; }
  .person-card__portrait { max-width: 175px; }
  .person-card__copy .eyebrow { font-size: .53rem; letter-spacing: .14em; }
  .person-card__copy h3 { font-size: 1.55rem; overflow-wrap: anywhere; }
  .person-card__copy > p:not(.eyebrow) { font-size: .7rem; }
  .person-card__copy .person-card__parents { font-size: .87rem; }
  .gallery-grid { grid-auto-rows: 73px; }
  .gallery-item__caption { font-size: .84rem; }
  .event-details > div { grid-template-columns: 82px 1fr; gap: .6rem; }
  .form-card { padding: 1.25rem; }
  .mobile-dock { padding-right: 0; padding-left: 0; }
  .mobile-dock a { font-size: .49rem; }
  .closing-section h2 { font-size: clamp(2.55rem, 11vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal, html.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* An unavailable or still-generating media asset leaves a calm color field instead of a broken-image glyph. */
img.image-failed { visibility: hidden; }
