@font-face { font-family: Hanken; src: url("fonts/hanken-grotesk-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Hanken; src: url("fonts/hanken-grotesk-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Cormorant; src: url("fonts/cormorant-garamond-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cormorant; src: url("fonts/cormorant-garamond-italic.ttf") format("truetype"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: Buffalo; src: url("fonts/buffalo.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --white: #fffcf7;
  --ink: #45382f;
  --muted: #7b6d62;
  --rose: #916052;
  --blush: #efded5;
  --line: #ddcfc2;
  --dark: #584237;
  --serif: Cormorant, Georgia, serif;
  --sans: Hanken, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, summary { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #edc9bd; }
:focus-visible { outline: 2px solid #8c5949; outline-offset: 6px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 12px 20px; border-radius: 6px; color: #fff; background: var(--dark); }
.skip-link:focus { top: 12px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .event-symbol, .dress-code__icon, .gifts-copy__decoration, .rsvp-sparkle { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 19px; height: 19px; flex-shrink: 0; }
.wrap { width: min(100% - 96px, 1100px); margin-inline: auto; }
.eyebrow { font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 0.2em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 54px; padding: 16px 23px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 700; line-height: 1.4; transition: background-color 180ms ease, transform 180ms ease; }
.button--dark { color: var(--white); background: var(--dark); }
.button--dark:hover { background: #745548; transform: translateY(-2px); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid var(--line); }
.monogram { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.05em; }
.monogram span { padding-inline: 3px; color: var(--rose); font-size: 28px; font-style: italic; }
.header-date { margin-left: 100px; color: var(--muted); font-size: 10px; letter-spacing: 0.2em; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; }
.header-nav a { padding-block: 12px; }
.header-nav a:hover { color: var(--rose); }
.header-nav__rsvp { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.header-nav__rsvp .icon { width: 14px; height: 14px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding-block: 68px 72px; }
.hero__copy { padding-left: 28px; animation: enter 650ms ease both; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; color: var(--rose); }
.hero__eyebrow > span { width: 28px; height: 1px; background: currentColor; }
.hero__names { margin-top: 28px; font-family: var(--serif); font-size: clamp(100px, 9.5vw, 140px); line-height: 0.84; letter-spacing: -0.065em; }
.hero__names em { color: var(--rose); font-size: 0.77em; font-weight: 400; }
.hero__names > span { display: block; margin-top: 12px; padding-left: 70px; }
.hero__message { max-width: 310px; margin-top: 32px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero__button { margin-top: 28px; }
.hero__location { margin-top: 21px; color: var(--muted); font-size: 11px; }
.hero__location > span { padding-inline: 5px; }
.hero__visual { position: relative; width: min(100% - 36px, 414px); margin: 0 auto; animation: enter 850ms 80ms ease both; }
.portrait-frame { position: relative; aspect-ratio: 0.8; border-radius: 220px 220px 6px 6px; }
.portrait-frame::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid #bfa997; border-radius: inherit; pointer-events: none; }
.portrait { position: relative; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center 42%; }
.hero__flowers { position: absolute; right: -32px; bottom: 5px; z-index: 1; width: 206px; height: auto; transform: rotate(14deg); pointer-events: none; }
.date-note { position: absolute; left: -36px; bottom: 69px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 126px; height: 142px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 30px #45382f0c; transform: rotate(-7deg); }
.date-note__day { font-size: 9px; letter-spacing: 0.2em; }
.date-note__number { margin-block: 3px; font-family: var(--serif); font-size: 66px; line-height: 1; }
.date-note__month { font-size: 8px; letter-spacing: 0.08em; }
.portrait-caption { margin-top: 20px; color: var(--muted); font-family: var(--serif); font-size: 19px; font-style: italic; text-align: center; }

.countdown-band { color: var(--paper); background: var(--dark); }
.countdown-band__inner { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 20px 64px; min-height: 188px; padding-block: 36px; }
.countdown-heading .eyebrow { color: #d6c2b2; font-size: 9px; }
.countdown-heading h2 { margin-top: 9px; font-family: var(--serif); font-size: 35px; line-height: 1.2; }
.countdown-heading h2 em { color: #e3bdb1; }
.countdown { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: start; }
.countdown__segment { min-width: 0; text-align: center; }
.countdown__value { display: block; font-family: var(--serif); font-size: 60px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.countdown__divider { padding-top: 9px; color: #bda593; font-family: var(--serif); font-size: 34px; }
.countdown__label { display: block; margin-top: 10px; color: #e0cfc2; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.countdown-note { grid-column: 1 / -1; font-size: 14px; text-align: center; }

.section { padding-block: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading .eyebrow, .gifts-copy .eyebrow { color: var(--rose); }
.section-heading h2, .gifts-copy h2 { margin-top: 16px; font-family: var(--serif); font-size: 49px; line-height: 1.05; letter-spacing: -0.025em; }
.section-heading h2 em, .gifts-copy h2 em { color: var(--rose); }
.section-heading > p { padding-bottom: 6px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.event-card { padding: 26px 30px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.event-card--party { background: #f5ece5; }
.event-card__top { display: flex; justify-content: space-between; align-items: center; min-height: 37px; color: var(--rose); }
.event-card__top .eyebrow { font-size: 9px; }
.event-symbol { width: 40px; height: 36px; stroke-width: 1.2; }
.event-card__date { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.date-block { flex-shrink: 0; width: 88px; padding: 10px 0 12px; border-right: 1px solid var(--line); text-align: left; }
.date-block span:first-child { display: block; font-family: var(--serif); font-size: 69px; line-height: 0.9; }
.date-block span:last-child { display: block; margin-top: 12px; color: var(--muted); font-size: 8px; letter-spacing: 0.12em; }
.event-card__date h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 33px; line-height: 1.2; }
.event-card__date p { color: var(--muted); font-size: 13px; }
.event-card__date .event-card__time { margin-top: 5px; color: var(--ink); font-size: 15px; }
.event-card__place { display: flex; gap: 11px; align-items: flex-start; margin-block: 26px; }
.event-card__place .icon { margin-top: 2px; color: var(--rose); }
.event-card__place strong { font-size: 15px; font-weight: 700; }
.event-card__place span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.map-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.map-link > span { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.map-link .icon { width: 15px; height: 15px; color: var(--rose); transition: transform 180ms ease; }
.map-link:hover .icon { transform: translate(2px, -2px); }
.map-link:hover { color: var(--rose); }
.dress-code { display: flex; align-items: center; gap: 27px; margin-top: 24px; padding: 28px 40px; border-radius: 4px; background: var(--blush); }
.dress-code__icon { width: 47px; height: 43px; flex-shrink: 0; color: var(--rose); }
.dress-code .eyebrow { font-size: 8px; letter-spacing: 0.15em; }
.dress-code h3 { margin-top: 5px; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.dress-code__note { margin-left: auto; padding-left: 30px; border-left: 1px solid #d2bcb0; color: #705d50; font-size: 12px; line-height: 1.7; }
.dress-code__note strong { color: var(--ink); font-weight: 400; }

.gifts-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; padding-top: 0; }
.gifts-copy > p:not(.eyebrow) { max-width: 320px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.gifts-copy__decoration { width: 55px; height: 43px; margin-top: 26px; color: #b49879; stroke-width: 1; }
.gift-card { padding: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.gift-card__heading p { font-size: 16px; font-weight: 700; }
.gift-card__heading > span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.alias-label { margin-top: 27px; color: var(--rose); font-size: 9px; letter-spacing: 0.18em; }
.alias-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 53px; margin-top: 9px; padding: 13px; border: 1px solid #e7d6ca; border-radius: 3px; background: #f5ebe4; font-size: 14px; font-weight: 700; letter-spacing: 0.025em; text-align: left; overflow-wrap: anywhere; }
.alias-copy:hover { background: #efddd2; }
.alias-copy .icon { width: 17px; height: 17px; color: var(--rose); }
.copy-hint { margin-top: 8px; color: var(--muted); font-size: 11px; }
.bank-details { margin-top: 24px; border-top: 1px solid var(--line); }
.bank-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding-top: 13px; font-size: 12px; list-style: none; }
.bank-details summary::-webkit-details-marker { display: none; }
.bank-details summary > span { color: var(--rose); font-size: 23px; font-weight: 400; transition: transform 180ms ease; }
.bank-details[open] summary > span { transform: rotate(45deg); }
.bank-details dl { display: grid; gap: 16px; padding-top: 17px; }
.bank-details dt { color: var(--muted); font-size: 11px; }
.bank-details dd { margin-top: 3px; font-size: 13px; overflow-wrap: anywhere; }
.copy-value { max-width: 100%; padding: 3px 0; border: 0; background: transparent; font: inherit; text-decoration: underline; text-decoration-color: #b99888; text-underline-offset: 4px; overflow-wrap: anywhere; }

.playlist-section { position: relative; padding-block: 78px; color: var(--paper); background: #59443a; overflow: hidden; }
.playlist-section::before { content: ""; position: absolute; top: -300px; left: -210px; width: 600px; height: 600px; border: 1px solid #d4b9aa33; border-radius: 50%; }
.playlist-section__inner { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 80px; }
.playlist-copy .eyebrow { color: #dfbdb2; }
.playlist-copy h2 { margin-top: 15px; font-family: var(--serif); font-size: 53px; line-height: 1.02; letter-spacing: -0.03em; }
.playlist-copy h2 em { color: #e4b9ad; }
.playlist-copy > p:not(.eyebrow) { max-width: 355px; margin-top: 20px; color: #e2d5cd; font-size: 14px; line-height: 1.8; }
.playlist-record { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin-top: 31px; border: 1px solid #bfa497; border-radius: 50%; background: repeating-radial-gradient(circle, #4c3930 0 4px, #5a4439 5px 7px); box-shadow: 0 13px 28px #241b1730; }
.playlist-record::before { content: ""; position: absolute; width: 45px; height: 45px; border-radius: 50%; background: #d8b1a5; }
.playlist-record span { position: relative; z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--paper); }
.playlist-record svg { width: 12px; height: 12px; fill: none; stroke: var(--rose); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.playlist-card { position: relative; padding: 31px; border-radius: 5px; color: var(--ink); background: var(--white); box-shadow: 0 24px 60px #261b1740; overflow: hidden; }
.playlist-card__heading { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.playlist-card__heading > svg { width: 37px; height: 37px; fill: none; stroke: var(--rose); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.playlist-card__heading p { font-family: var(--serif); font-size: 25px; line-height: 1; }
.playlist-card__heading span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.playlist-field { display: block; margin-top: 16px; }
.playlist-field > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.playlist-field input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fffdfa; font: inherit; font-size: 13px; outline: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.playlist-field input::placeholder { color: #a6988e; }
.playlist-field input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px #91605215; }
.playlist-field input:user-invalid { border-color: #a34d42; }
.playlist-submit { width: 100%; margin-top: 22px; }
.playlist-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.playlist-status { min-height: 18px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.playlist-status.is-success { color: #52634a; }
.playlist-status.is-error { color: #8b4037; }
.playlist-link { display: flex; align-items: center; justify-content: center; gap: 9px; width: max-content; max-width: 100%; margin: 11px auto 0; padding-bottom: 4px; border-bottom: 1px solid #b99888; color: var(--rose); font-size: 11px; }
.playlist-link .icon { width: 14px; height: 14px; }
.music-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.music-burst i { position: absolute; left: var(--x); bottom: 22px; color: var(--rose); font-family: var(--serif); font-size: var(--size); font-style: normal; opacity: 0; animation: note-float var(--duration) var(--delay) ease-out forwards; }

.rsvp-section { position: relative; overflow: hidden; background: var(--blush); }
.rsvp-section::before, .rsvp-section::after { content: ""; position: absolute; top: 50%; width: 460px; height: 460px; border: 1px solid #d8bfb1; border-radius: 50%; transform: translateY(-50%); opacity: 0.55; pointer-events: none; }
.rsvp-section::before { left: -335px; }
.rsvp-section::after { right: -335px; }
.rsvp-section__inner { position: relative; z-index: 1; padding-block: 57px 44px; text-align: center; }
.rsvp-sparkle { display: block; width: 31px; height: 31px; margin: 0 auto 21px; color: var(--rose); stroke-width: 1; }
.rsvp-section .eyebrow { color: var(--rose); font-size: 9px; }
.rsvp-section h2 { margin-top: 17px; font-family: var(--serif); font-size: 55px; line-height: 1.03; letter-spacing: -0.025em; }
.rsvp-section h2 em { color: #865f53; }
.rsvp-section__message { margin-top: 19px; color: #705c51; font-size: 14px; }
.rsvp-section .button { margin-top: 27px; }
.rsvp-note { max-width: 390px; margin: 20px auto 0; font-size: 14px; }
.signature { margin-top: 24px; font-family: Buffalo, cursive; font-size: 43px; font-weight: 400; line-height: 1.4; }

body.modal-open { overflow: hidden; }
.rsvp-dialog { width: min(calc(100% - 32px), 620px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 7px; color: var(--ink); background: transparent; box-shadow: 0 30px 90px #2f211b42; overflow: visible; }
.rsvp-dialog::backdrop { background: #342720a8; backdrop-filter: blur(7px); }
.rsvp-dialog__panel { position: relative; max-height: calc(100dvh - 32px); padding: 46px 52px 42px; border: 1px solid #eadbd0; border-radius: 7px; background: var(--white); overflow: hidden; overscroll-behavior: contain; }
.rsvp-dialog__panel::before, .rsvp-dialog__panel::after { content: ""; position: absolute; z-index: 0; border: 1px solid #d9c4b7; border-radius: 50%; pointer-events: none; }
.rsvp-dialog__panel::before { top: -220px; right: -230px; width: 430px; height: 430px; }
.rsvp-dialog__panel::after { bottom: -260px; left: -270px; width: 470px; height: 470px; }
.rsvp-dialog__form-view, .rsvp-success { position: relative; z-index: 2; }
.rsvp-dialog__ornament { position: absolute; top: 19px; left: 24px; z-index: 2; color: #9d7c6c; font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -0.05em; }
.rsvp-dialog__ornament span { padding-inline: 2px; color: var(--rose); font-size: 18px; font-style: italic; }
.rsvp-dialog__close { position: absolute; top: 15px; right: 17px; z-index: 7; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dfcfc4; border-radius: 50%; color: var(--muted); background: #fffaf5cc; font-family: Arial, sans-serif; font-size: 25px; font-weight: 300; line-height: 1; transition: color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.rsvp-dialog__close:hover { color: var(--rose); border-color: #b98e7e; transform: rotate(5deg); }
.rsvp-dialog .eyebrow { color: var(--rose); font-size: 9px; text-align: center; }
.rsvp-dialog h2 { margin-top: 13px; font-family: var(--serif); font-size: clamp(42px, 6vw, 55px); line-height: 0.98; letter-spacing: -0.035em; text-align: center; }
.rsvp-dialog h2 em { color: var(--rose); font-weight: 400; }
.rsvp-dialog__intro { max-width: 410px; margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.rsvp-form { margin-top: 31px; }
.rsvp-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.attendance-options legend { width: 100%; margin-bottom: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.attendance-option { position: relative; display: flex; align-items: center; gap: 11px; min-height: 73px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fffdfa; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.attendance-option:hover { border-color: #bd9483; transform: translateY(-1px); }
.attendance-option:has(input:checked) { border-color: var(--rose); background: #f5e8e1; box-shadow: inset 0 0 0 1px #91605224; }
.attendance-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attendance-option:has(input:focus-visible) { outline: 2px solid #8c5949; outline-offset: 3px; }
.attendance-option__mark { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #b9a295; border-radius: 50%; background: var(--white); }
.attendance-option input:checked + .attendance-option__mark { border-color: var(--rose); }
.attendance-option input:checked + .attendance-option__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--rose); }
.attendance-option strong, .attendance-option small { display: block; }
.attendance-option strong { font-size: 12px; }
.attendance-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.rsvp-field { display: block; margin-top: 18px; transition: opacity 180ms ease; }
.rsvp-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.rsvp-field > span small { color: var(--muted); font-size: 9px; font-weight: 400; }
.rsvp-field input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fffdfa; font: inherit; font-size: 14px; outline: none; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.rsvp-field input::placeholder { color: #a6988e; }
.rsvp-field input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px #91605215; }
.rsvp-field input:user-invalid { border-color: #a34d42; }
.rsvp-field.is-disabled { opacity: 0.42; }
.rsvp-field.is-disabled input { background: #eee7e1; }
.rsvp-form__error { margin-top: 14px; color: #8b4037; font-size: 11px; text-align: center; }
.rsvp-form__submit { width: 100%; margin-top: 24px; }
.rsvp-form__submit:disabled { cursor: wait; opacity: 0.72; transform: none; }
.rsvp-success { padding: 28px 4px 3px; text-align: center; }
.rsvp-success__seal { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; border: 1px solid #cdb3a5; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 8px #f7ede7; }
.rsvp-success__seal svg { width: 31px; height: 31px; fill: none; stroke: var(--rose); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-success > p:not(.eyebrow):not(.signature) { max-width: 390px; margin: 20px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rsvp-success__delivery { font-size: 10px !important; }
.rsvp-success__close { margin-top: 22px; padding: 7px 3px; border: 0; border-bottom: 1px solid #b99888; color: var(--muted); background: transparent; font-size: 11px; }
.rsvp-success .signature { margin-top: 20px; color: var(--rose); font-size: 38px; }
.confetti-layer { position: absolute; inset: 0; z-index: 5; border-radius: inherit; overflow: hidden; pointer-events: none; }
.confetti-layer i { position: absolute; top: -18px; left: var(--x); width: 7px; height: 13px; border-radius: 1px; background: var(--confetti-color); opacity: 0; animation: confetti-fall var(--duration) var(--delay) cubic-bezier(.2,.72,.38,1) forwards; }
.confetti-layer i.is-round { width: 8px; height: 8px; border-radius: 50%; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; color: var(--muted); font-size: 10px; }
.site-footer > span { color: var(--ink); font-size: 9px; letter-spacing: 0.16em; }
.site-footer p > span { padding-inline: 8px; }
.site-footer a { padding-block: 10px; }
.site-footer a:hover { color: var(--rose); }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; z-index: 10; width: max-content; max-width: calc(100vw - 32px); padding: 13px 21px; border: 1px solid #ffffff21; border-radius: 5px; background: var(--dark); color: var(--white); box-shadow: 0 5px 24px #45382f22; font-size: 14px; text-align: center; opacity: 0; transform: translate(-50%, 8px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(0); } 12% { opacity: 0.8; } 78% { opacity: 0.7; } 100% { opacity: 0; transform: translate3d(var(--drift), 560px, 0) rotate(var(--spin)); } }
@keyframes note-float { 0% { opacity: 0; transform: translateY(0) rotate(-8deg) scale(.7); } 18% { opacity: .75; } 100% { opacity: 0; transform: translateY(-210px) rotate(15deg) scale(1.15); } }

@media (min-width: 1600px) {
  .wrap { max-width: 1180px; }
  .hero { gap: 90px; }
  .hero__visual { width: 440px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .header-date { margin-left: 20px; }
  .hero { gap: 28px; padding-block: 52px 62px; }
  .hero__copy { padding-left: 0; }
  .hero__names { font-size: 110px; }
  .hero__names > span { padding-left: 42px; }
  .hero__flowers { width: 168px; right: -30px; }
  .date-note { left: -22px; bottom: 56px; width: 108px; height: 124px; }
  .date-note__number { font-size: 58px; }
  .countdown-band__inner { gap: 28px; }
  .countdown-heading h2 { font-size: 29px; }
  .countdown__value { font-size: 49px; }
  .section-heading h2, .gifts-copy h2 { font-size: 43px; }
  .event-card { padding: 23px 23px 0; }
  .event-card__date { gap: 17px; }
  .date-block { width: 73px; }
  .event-card__date h3 { font-size: 30px; }
  .event-card__date p { font-size: 12px; }
  .gifts-section { gap: 40px; }
  .gift-card { padding: 24px; }
  .playlist-section__inner { gap: 40px; }
  .playlist-copy h2 { font-size: 47px; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 18px; }
  .wrap { width: calc(100% - 40px); }
  .site-header__inner { min-height: 72px; }
  .monogram { font-size: 29px; }
  .monogram span { font-size: 23px; }
  .header-date { margin-left: 0; font-size: 8px; letter-spacing: 0.11em; }
  .header-nav { font-size: 11px; }
  .header-nav__details { display: none; }
  .header-nav__rsvp { gap: 6px; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-block: 37px 43px; }
  .hero__copy { text-align: center; }
  .hero__eyebrow { justify-content: center; font-size: 9px; }
  .hero__eyebrow > span { width: 20px; }
  .hero__names { margin-top: 18px; font-size: clamp(56px, 17vw, 100px); line-height: 1; letter-spacing: -0.055em; }
  .hero__names > span { display: inline; margin: 0; padding: 0; }
  .hero__names em { font-size: 0.82em; }
  .hero__message { max-width: 285px; margin: 18px auto 0; font-size: 14px; line-height: 1.7; }
  .hero__button { min-height: 48px; margin-top: 21px; padding: 13px 19px; font-size: 12px; }
  .hero__location { margin-top: 15px; font-size: 10px; }
  .hero__visual { width: min(100% - 42px, 328px); }
  .portrait-frame { aspect-ratio: 0.84; }
  .portrait-frame::before { inset: -9px 9px 9px -9px; }
  .hero__flowers { right: -20px; bottom: 9px; width: 145px; }
  .date-note { left: -18px; bottom: 58px; width: 95px; height: 111px; }
  .date-note__day { font-size: 8px; }
  .date-note__number { font-size: 50px; }
  .date-note__month { font-size: 6.5px; }
  .portrait-caption { margin-top: 19px; font-size: 17px; }
  .countdown-band__inner { grid-template-columns: 1fr; gap: 25px; padding-block: 29px 33px; text-align: center; }
  .countdown-heading .eyebrow { font-size: 8px; }
  .countdown-heading h2 { margin-top: 7px; font-size: 29px; }
  .countdown { width: min(100%, 350px); margin-inline: auto; gap: 5px; }
  .countdown__value { font-size: 45px; }
  .countdown__divider { padding-top: 3px; font-size: 28px; }
  .countdown__label { margin-top: 7px; font-size: 8px; letter-spacing: 0.1em; }
  .section { padding-block: 54px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading .eyebrow, .gifts-copy .eyebrow { font-size: 9px; }
  .section-heading h2, .gifts-copy h2 { margin-top: 12px; font-size: 41px; }
  .section-heading > p { margin-top: 19px; padding: 0; font-size: 13px; }
  .event-grid { grid-template-columns: 1fr; gap: 18px; }
  .event-card { padding: 23px 24px 0; }
  .event-card__date { gap: 20px; }
  .event-card__date h3 { font-size: 32px; }
  .event-card__date p { font-size: 12px; }
  .event-card__date .event-card__time { font-size: 14px; }
  .date-block { width: 78px; }
  .date-block span:first-child { font-size: 65px; }
  .event-card__place { margin-block: 23px; }
  .event-card__place strong { font-size: 14px; }
  .event-card__place span { font-size: 11px; }
  .map-link { min-height: 59px; font-size: 12px; }
  .dress-code { flex-wrap: wrap; gap: 15px 19px; padding: 23px; margin-top: 18px; }
  .dress-code__icon { width: 38px; height: 36px; }
  .dress-code .eyebrow { font-size: 7.5px; }
  .dress-code h3 { font-size: 26px; }
  .dress-code__note { width: 100%; margin-left: 57px; padding: 12px 0 0; border-left: 0; border-top: 1px solid #d2bcb0; font-size: 11px; }
  .gifts-section { grid-template-columns: 1fr; gap: 26px; padding-top: 0; }
  .gifts-copy > p:not(.eyebrow) { max-width: 330px; margin-top: 17px; font-size: 13px; }
  .gifts-copy__decoration { display: none; }
  .gift-card { padding: 24px; }
  .alias-copy { font-size: 13px; }
  .playlist-section { padding-block: 55px; }
  .playlist-section__inner { grid-template-columns: 1fr; gap: 29px; }
  .playlist-copy { text-align: center; }
  .playlist-copy h2 { font-size: 43px; }
  .playlist-copy > p:not(.eyebrow) { max-width: 330px; margin-inline: auto; font-size: 13px; }
  .playlist-record { width: 86px; height: 86px; margin: 24px auto 0; }
  .playlist-record::before { width: 36px; height: 36px; }
  .playlist-card { padding: 25px 22px; }
  .rsvp-section__inner { padding-block: 43px 33px; }
  .rsvp-section h2 { font-size: clamp(36px, 10.4vw, 49px); }
  .rsvp-section__message { max-width: 260px; margin-inline: auto; font-size: 13px; line-height: 1.7; }
  .rsvp-section .button { min-height: 51px; margin-top: 23px; font-size: 13px; }
  .rsvp-section::before { left: -405px; }
  .rsvp-section::after { right: -405px; }
  .signature { margin-top: 22px; font-size: 39px; }
  .rsvp-dialog { width: min(calc(100% - 20px), 620px); max-height: calc(100dvh - 20px); }
  .rsvp-dialog__panel { max-height: calc(100dvh - 20px); padding: 46px 25px 29px; }
  .rsvp-dialog h2 { font-size: clamp(39px, 12vw, 49px); }
  .rsvp-dialog__intro { font-size: 12px; }
  .rsvp-form { margin-top: 25px; }
  .attendance-options { grid-template-columns: 1fr; }
  .attendance-option { min-height: 64px; }
  .rsvp-field { margin-top: 15px; }
  .rsvp-form__submit { min-height: 52px; margin-top: 20px; }
  .rsvp-success { padding-top: 20px; }
  .site-footer { flex-wrap: wrap; justify-content: center; gap: 13px 20px; min-height: 96px; padding-block: 23px; font-size: 9px; text-align: center; }
  .site-footer > span { display: none; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .header-date { font-size: 7px; letter-spacing: 0.06em; }
  .hero__names { font-size: 55px; }
  .hero__location { font-size: 9px; }
  .event-card { padding-inline: 18px; }
  .event-card__date { gap: 15px; }
  .date-block { width: 67px; }
  .event-card__date p { font-size: 11px; }
  .gift-card { padding: 20px; }
  .alias-copy { padding: 12px 10px; font-size: 11px; }
}

@media (max-height: 720px) {
  .rsvp-dialog__panel { overflow-x: hidden; overflow-y: auto; }
  .rsvp-dialog__panel::before, .rsvp-dialog__panel::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; }
  .wrap { width: 100%; }
  .hero, .countdown-band, .event-card, .dress-code, .gift-card, .playlist-section, .rsvp-section { break-inside: avoid; print-color-adjust: exact; }
  .header-nav, .skip-link, .toast, .hero__button, .rsvp-dialog { display: none; }
}
