:root {
  --ivory: #faf7f0;
  --surface: #fffdf8;
  --powder: #f0e6e2;
  --ink: #432c32;
  --muted: #715d61;
  --accent: #783346;
  --accent-deep: #592334;
  --deep-surface: #492330;
  --on-accent: #ecdfd7;
  --champagne: #c6ae80;
  --line: #d9ccc5;
  --control-border: #947078;
  --display: 'Lora', Georgia, serif;
  --sans: 'Instrument Sans', Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--champagne); color: var(--deep-surface); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.18; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.02em; }
.container { max-width: 1312px; margin-inline: auto; padding-inline: 48px; }
.section { padding-block: 120px; }
.eyebrow { font-size: .875rem; line-height: 1.5; font-weight: 500; letter-spacing: .055em; color: var(--accent); }
.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 24px; background: var(--accent); color: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.svg-definitions { position: absolute; pointer-events: none; }
[hidden] { display: none !important; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; pointer-events: none; }
.icon-label { display: inline-flex; align-items: center; gap: 10px; }
.section-emblem { display: block; color: var(--accent); margin-bottom: 22px; }
.section-emblem .ui-icon { display: block; width: 32px; height: 32px; }
.hero-copy > .section-emblem { margin-inline: auto; width: fit-content; color: #876940; margin-bottom: 18px; }
.tiny-star .ui-icon { width: 28px; height: 28px; }
.dress-code .section-emblem { color: var(--champagne); }
.event-info dt { display: flex; align-items: center; gap: 10px; }
.event-info dt .ui-icon { width: 18px; height: 18px; color: var(--accent); }
.button:has(> .ui-icon), .text-link:has(> .ui-icon) { gap: 10px; }
.icon-button .ui-icon { width: 24px; height: 24px; }
.gift-card-icon { display: block; width: 32px; height: 32px; color: var(--accent); margin-bottom: 18px; }
.payment-choice .payment-icon { grid-column: 1; grid-row: 1 / span 3; width: 28px; height: 28px; align-self: start; margin-top: 2px; color: var(--accent); }
.payment-choice:has(.payment-icon) { grid-template-columns: 28px minmax(0,1fr); column-gap: 16px; }
.payment-choice:has(.payment-icon) > span, .payment-choice:has(.payment-icon) > small { grid-column: 2; }
.payment-choice:disabled .payment-icon { color: var(--muted); }
.presence-saved, .confirmation-badge { display: flex; align-items: center; gap: 8px; }
.no-script { padding-block: 16px; background: var(--powder); }

/* Um convite: monograma, nomes, data e uma única moldura arquitetônica. */
.header { height: 104px; max-width: 1312px; margin: auto; padding-inline: 48px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.brand { position: relative; display: flex; align-items: center; justify-content: center; width: 76px; height: 68px; font: 500 1.25rem/1 var(--display); letter-spacing: -.025em; color: var(--accent-deep); white-space: nowrap; }
.brand:before, .brand:after { content: ''; position: absolute; border: 1px solid var(--champagne); border-radius: 50%; pointer-events: none; }
.brand:before { inset: 0; }
.brand:after { inset: 5px; opacity: .55; }
.header nav { display: flex; align-items: center; gap: 32px; font-size: .875rem; }
.header nav a { display: inline-flex; align-items: center; min-height: 48px; transition: color 160ms ease, background-color 160ms ease; }
.header .nav-gift { color: var(--accent); }
.menu-toggle { display: none; }
.nav-rsvp { font-size: inherit; padding-inline: 20px; }
.hero-surface { background: var(--ivory); color: var(--accent-deep); }
.hero { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); padding-top: 36px; }
.hero-copy { grid-column: 1/7; align-self: center; min-width: 0; padding: 0 52px 32px 0; text-align: center; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { display: flex; flex-direction: column; font-family: 'Alex Brush', var(--display); font-weight: 400; font-size: clamp(4.3rem,7.2vw,6.5rem); line-height: .98; letter-spacing: 0; margin: 32px 0 36px; }
.hero h1 > span:not(.ampersand) { white-space: nowrap; }
.ampersand { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: .48em; color: #876940; margin: 12px 0; line-height: 1; }
.ampersand:before, .ampersand:after { content: ''; width: 44px; height: 1px; background: var(--champagne); opacity: .7; }
.hero-meta { padding-top: 20px; border-top: 1px solid var(--line); max-width: 340px; margin-inline: auto; }
.hero-date { font: 500 1.25rem/1.5 var(--display); }
.hero-location { font-size: .9375rem; color: var(--muted); margin-top: 6px; }
.hero-phrase { max-width: 30ch; color: var(--muted); margin: 22px auto 0; }
.hero-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.button { min-height: 48px; padding: 13px 24px; border: 1px solid transparent; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-size: .875rem; font-weight: 500; line-height: 1.5; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); }
.button.primary { background: var(--accent); color: var(--ivory); }
.button.secondary { border-color: var(--control-border); background: transparent; }
.button:active { transform: scale(.98); }
.button:focus-visible { transition: none; }
.button:active:focus-visible { transform: none; }
.payment-choice:focus-visible { transition: none; }
.payment-choice:active:focus-visible:not(:disabled) { transform: none; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; border: 0; padding: 0; background: transparent; text-decoration: underline; text-decoration-color: var(--control-border); text-underline-offset: 7px; }
.hero-art { grid-column: 7/13; position: relative; width: 100%; max-width: 544px; justify-self: end; padding: 14px 24px 36px 0; align-self: center; }
.photo-frame { position: relative; overflow: hidden; background: var(--powder); }
.photo-frame > img, .gallery-frame > img { position: absolute; inset: 0; }
.hero-frame { height: 640px; clip-path: url(#wedding-arch); isolation: isolate; }
.arch-outline { position: absolute; inset: 0 0 70px 24px; pointer-events: none; }
.arch-outline svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--champagne); stroke-width: 1; overflow: visible; opacity: .8; }
.arch-outline path { vector-effect: non-scaling-stroke; }
.art-note { display: block; margin-top: 18px; text-align: right; font: 500 1rem/1.5 var(--display); color: var(--muted); }
.tiny-star { position: absolute; right: -10px; bottom: 80px; font-size: 2rem; color: var(--champagne); }
.hero-footnote { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); margin-top: 28px; color: var(--muted); font-size: .875rem; }
.footnote-date { white-space: nowrap; letter-spacing: .25em; }
.placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.placeholder-monogram { font: 500 3rem/1 var(--display); letter-spacing: -.04em; color: var(--accent); }
.placeholder-rule { width: 40px; height: 1px; background: var(--control-border); margin: 16px 0 24px; }
.placeholder-caption { font-size: .75rem; color: var(--muted); letter-spacing: .08em; }

/* Fotografias com espaço de respiro e um detalhe do noivado. */
.story { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; align-items: center; }
.story-art-wrap { grid-column: 1/7; position: relative; padding: 0 48px 56px 0; min-width: 0; }
.story-art { height: 560px; }
.story-detail { position: absolute; right: 0; bottom: 0; width: 196px; height: 248px; border: 10px solid var(--ivory); }
.story-copy { grid-column: 8/13; min-width: 0; }
.story-copy h2 { margin: 22px 0 28px; }
.story-copy > p:not(.eyebrow) { color: var(--muted); max-width: 40ch; font-size: 1.0625rem; }
.story-copy .story-note { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1rem; }
.signature { font: 500 1.25rem/1.5 var(--display); letter-spacing: -.025em; color: var(--accent); margin-top: 32px; }

/* Três sonhos apresentados como páginas de um editorial. */
.gifts { background: var(--powder); color: var(--accent-deep); }
.section-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px 96px; align-items: end; margin-bottom: 56px; }
.section-intro .eyebrow { grid-column: 1/-1; }
.section-intro h2 { font-size: clamp(2rem,3.7vw,3.25rem); }
.section-intro > p:last-child { color: var(--muted); max-width: 40ch; padding-bottom: 6px; }
.gift-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; align-items: start; }
.gift-card { min-width: 0; }
.gift-photo { width: 100%; aspect-ratio: 4/3; isolation: isolate; }
.gift-motif { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); z-index: -1; }
.gift-motif svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.gift-card-content { padding-top: 24px; }
.gift-card h3 { font-size: clamp(1.5rem,2.2vw,1.875rem); letter-spacing: -.025em; margin-bottom: 12px; }
.gift-card p { max-width: 30ch; min-height: 56px; color: var(--muted); margin-bottom: 18px; }
.gift-card .button { background: transparent; border-color: var(--control-border); padding-inline: 24px; color: var(--accent-deep); }
.gift-note { border-top: 1px solid #bba19b70; padding-top: 28px; margin-top: 56px; text-align: center; font-size: .9375rem; color: var(--muted); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.gallery-heading h2 { margin-top: 22px; }
.gallery-note { max-width: 200px; text-align: right; color: var(--muted); font: 1rem/1.6 var(--sans); }
.gallery-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; }
.gallery-frame { grid-column: span 4; height: 440px; border: 0; padding: 0; width: 100%; background: var(--powder); position: relative; overflow: hidden; }
.gallery-frame:first-child { grid-column: span 8; grid-row: span 2; height: 576px; }
.gallery-frame:nth-child(2), .gallery-frame:nth-child(3) { grid-column: span 4; height: 276px; }
.gallery-frame .placeholder-monogram { font-size: 2.5rem; }
.gallery-frame.is-photo { cursor: zoom-in; }
.gallery-frame img { transition: transform 240ms var(--ease-out); }

/* Os detalhes do dia, em uma composição de convite. */
.event { background: var(--deep-surface); padding-block: 88px; }
.event-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; width: min(1216px,calc(100% - 96px)); padding: 72px 80px; background: var(--ivory); color: var(--accent-deep); position: relative; }
.event-inner:before { content: ''; position: absolute; inset: 16px; border: 1px solid var(--champagne); pointer-events: none; }
.event-heading { text-align: center; }
.event-heading h2 { margin-top: 22px; font-size: clamp(2rem,3.3vw,2.875rem); }
.event-monogram { display: block; font: 500 2rem/1.2 var(--display); letter-spacing: -.04em; color: var(--accent); margin-top: 32px; }
.event-info { min-width: 0; }
.event-info dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.event-info dl > div { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.event-info dt { color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.event-info dd { margin: 0; line-height: 1.5; }
.event-info .detail-wide { grid-column: 1/-1; }
.event-info .detail-date dd { font: 500 clamp(1.5rem,2.3vw,2rem)/1.4 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.event-info .detail-location dd { font: 500 1.375rem/1.4 var(--display); }
.event-note { color: var(--muted); font-size: .875rem; margin-top: 24px; max-width: 44ch; }
.event-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.event-actions:empty { display: none; }
.travel-note { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--champagne); font-size: .875rem; color: var(--muted); }
.dress-code { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; padding-top: 64px; color: var(--ivory); }
.dress-code :focus-visible { outline-color: var(--ivory); }
.dress-code .eyebrow { color: var(--on-accent); }
.dress-code h2 { margin: 16px 0 20px; }
.dress-code > div > p:not(.eyebrow) { color: var(--on-accent); max-width: 38ch; }
.dress-detail { border-top: 1px solid #ecdfd750; }
.dress-detail:last-child { border-bottom: 1px solid #ecdfd750; }
.dress-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; padding: 18px 0; cursor: pointer; list-style: none; }
.dress-detail summary::-webkit-details-marker { display: none; }
.dress-detail summary strong { display: block; font: 500 1.375rem/1.3 var(--display); }
.dress-detail summary span span { display: block; color: var(--on-accent); font-size: .875rem; margin-top: 5px; }
.dress-plus { font-size: 1.5rem; }
.dress-detail[open] .dress-plus { transform: rotate(45deg); }
.dress-copy { padding: 0 30px 24px 0; color: var(--on-accent); font-size: .9375rem; }
.dress-copy p + p { margin-top: 14px; }
@media (max-width: 700px) {
  .dress-code { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}
.footer { padding-block: 64px; text-align: center; background: var(--deep-surface); color: var(--ivory); }
.footer :focus-visible { outline-color: var(--ivory); }
.footer-monogram { display: block; color: var(--champagne); font: 500 2rem/1 var(--display); }
.footer-names { font: 500 clamp(1.375rem,2.4vw,1.875rem)/1.4 var(--display); letter-spacing: -.025em; margin-top: 24px; }
#footer-message { color: var(--on-accent); font-size: .9375rem; margin-top: 12px; }
.footer-date { display: block; color: var(--on-accent); font-size: .875rem; margin-top: 20px; }
.footer .text-link { margin-top: 12px; text-decoration-color: var(--champagne); }
.mobile-gift { display: none; }
.rsvp-feedback { color: var(--accent); font-size: .875rem; margin-top: 16px; }
.rsvp-feedback:empty { display: none; }
.rsvp-progress { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 20px; margin: 0 0 28px; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.rsvp-progress li { display: flex; align-items: center; gap: 8px; }
.rsvp-progress span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.rsvp-progress [aria-current=step] { color: var(--accent-deep); font-weight: 600; }
.rsvp-progress [aria-current=step] span { border-color: var(--accent); background: var(--powder); }
.rsvp-form > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-field { margin-bottom: 20px; }
.form-field label, .attendance legend { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; }
.form-field input, .form-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--control-border); border-radius: 0; background: var(--surface); padding: 12px 16px; min-height: 52px; font-size: 16px; }
.form-field textarea { resize: vertical; }
.attendance { padding: 0; margin: 0 0 24px; border: 0; }
.attendance label, .check-label { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: .9375rem; cursor: pointer; }
.attendance label { border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; margin-top: 8px; background: var(--surface); }
.attendance label:has(input:checked) { border-color: var(--accent); background: var(--powder); }
.attendance label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.attendance input, .check-label input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { color: var(--muted); font-size: .8125rem; }
.rsvp-next-hint { text-align: center; }
.confirmation-badge, .presence-saved { background: var(--powder); color: var(--accent-deep); padding: 12px 16px; font-size: .875rem; margin-bottom: 24px; border-left: 2px solid var(--accent); }
.rsvp-gifts { display: grid; gap: 12px; }
.rsvp-gift-choice { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 8px; min-height: 80px; transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.rsvp-gift-choice:active { transform: scale(.99); }
.rsvp-gift-choice:focus-visible { transition: none; transform: none; }
.rsvp-gift-choice img { width: 64px; height: 64px; }
.rsvp-gift-choice span:nth-child(2) { font: 500 1.0625rem/1.4 var(--display); }
.admin-page { max-width: 1312px; padding-block: 48px 96px; }
.admin-page > .eyebrow { margin-top: 40px; }
.admin-page h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); margin-top: 16px; letter-spacing: -.025em; }
.admin-page h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.admin-page .admin-intro { color: var(--muted); max-width: 64ch; margin: 16px 0 24px; }
.admin-totals { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); margin-block: 24px 48px; }
.admin-totals > div { padding: 24px; border-right: 1px solid var(--line); }
.admin-totals > div:last-child { border: 0; }
.admin-totals span { display: block; color: var(--muted); font-size: .875rem; }
.admin-totals strong { display: block; font: 500 clamp(1.75rem,3vw,2.5rem)/1.3 var(--display); margin-top: 12px; font-variant-numeric: tabular-nums; }
.admin-section { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 48px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-heading-actions, .admin-pagination { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-pagination { margin-top: 16px; }
.table-scroll { overflow: auto; margin-top: 24px; }
.table-scroll:focus-visible { outline-offset: 3px; }
.admin-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.admin-page th, .admin-page td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.admin-page th { background: var(--powder); font-weight: 500; white-space: nowrap; }
.admin-page td { min-width: 120px; }
.status-tag { display: inline-block; background: var(--powder); color: var(--accent-deep); padding: 4px 8px; font-size: .8125rem; }
.account-card { padding: 24px; border: 1px solid var(--line); background: var(--surface); margin-block: 24px; max-width: 650px; }
.account-card h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.account-card p { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.admin-config, .admin-activation { max-width: 650px; }
.admin-config > .button, .admin-activation > .button { display: flex; margin-top: 20px; }
.empty-state { background: var(--powder); padding: 24px; color: var(--muted); }
@media (max-width:700px) { .admin-totals { grid-template-columns: 1fr; } .admin-totals > div { border-right: 0; border-bottom: 1px solid var(--line); } .admin-heading { align-items: flex-start; flex-direction: column; } }

/* Escolha de presente: hierarquia clara e controles confortáveis. */
dialog { border: 1px solid var(--line); color: var(--ink); background: var(--ivory); border-radius: 4px; padding: 0; max-width: calc(100% - 32px); }
dialog::backdrop { background: #4d243199; backdrop-filter: blur(4px); }
.gift-dialog { width: 560px; max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.dialog-content { padding: 40px; position: relative; border-top: 4px solid var(--accent); }
.dialog-close { position: absolute; right: 16px; top: 16px; }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.75rem; display: flex; align-items: center; justify-content: center; line-height: 1; }
.dialog-eyebrow { padding-right: 40px; margin-bottom: 18px; }
.dialog-content h2 { font-size: 2rem; margin-bottom: 16px; max-width: 400px; }
.dialog-content h2:focus { outline: 0; }
.dialog-description { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }
.steps { display: flex; gap: 8px; margin-bottom: 28px; }
.step { flex: 1; height: 2px; background: var(--line); }
.step.current { background: var(--accent); }
.amount-tabs { display: flex; padding: 4px; border: 1px solid var(--line); background: var(--powder); margin: 0 0 24px; gap: 4px; }
.amount-tabs [role=tab] { flex: 1; border: 0; background: transparent; min-height: 48px; padding: 8px 12px; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.amount-tabs [role=tab][aria-selected=true] { background: var(--surface); color: var(--accent-deep); box-shadow: 0 1px 4px #4d243110; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.amounts legend { margin-bottom: 12px; font-size: .875rem; font-weight: 500; }
.amount-choice { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--control-border); font-size: 1rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.amount-choice:has(input:checked) { border-color: var(--accent); background: var(--powder); box-shadow: inset 0 0 0 1px var(--accent); }
.amount-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.amount-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.amount-choice.other { grid-column: 1/-1; }
.category-choices { display: grid; gap: 12px; }
.custom-field label { font-size: .875rem; display: block; margin-bottom: 8px; }
.input-wrapper { display: flex; align-items: center; border: 1px solid var(--control-border); background: var(--surface); }
.input-wrapper:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.input-wrapper span { padding-left: 16px; color: var(--muted); }
.input-wrapper input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px 16px; outline: 0; min-height: 56px; font-variant-numeric: tabular-nums; caret-color: var(--accent); }
.custom-hint { font-size: .875rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.field-error { font-size: .875rem; color: #9b3329; margin-top: 8px; min-height: 24px; }
.dialog-action { width: 100%; margin-top: 16px; }
.dialog-back { border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; min-height: 44px; padding: 0 12px; margin: 12px auto 0; display: block; }
.summary { border-block: 1px solid var(--line); padding: 24px 0; margin: 24px 0; display: flex; justify-content: space-between; gap: 24px; }
.summary > div { min-width: 0; }
.summary dt { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.summary dd { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.summary > div:last-child { text-align: right; }
.summary .summary-value { font: 500 1.75rem/1.3 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.payment-notice { padding: 24px; background: var(--powder); border: 1px solid var(--line); text-align: center; }
.payment-notice h3 { font-size: 1.8rem; margin-bottom: 12px; }
.payment-notice p { color: var(--muted); font-size: .875rem; }
.payment-method { padding: 16px 0; border-bottom: 1px solid var(--line); }
.payment-method h3 { font-size: 1.8rem; margin-bottom: 8px; }
.payment-method p { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.payment-choices { display: grid; gap: 12px; margin-top: 24px; }
.payment-choice { display: grid; gap: 5px; padding: 20px 24px; border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); text-align: left; transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); }
.payment-choice-title { font: 500 1.5rem/1.3 var(--display); color: var(--accent-deep); }
.payment-choice > span:not(.payment-choice-title), .payment-choice small { font-size: .875rem; color: var(--muted); }
.payment-choice:disabled { border-color: var(--line); background: var(--ivory); }
.payment-choice:active:not(:disabled) { transform: scale(.99); }
.pix-transfer { margin-top: 24px; }
.pix-qr { display: block; width: min(100%,240px); height: auto; aspect-ratio: 1; margin: 0 auto 20px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.pix-recipient { text-align: center; margin-bottom: 12px; }
.pix-recipient span { display: block; font-size: .875rem; color: var(--muted); }
.pix-recipient strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pix-transfer > label, .pix-key label { display: block; font-size: .875rem; font-weight: 500; margin: 18px 0 8px; }
.pix-code, .pix-key input { width: 100%; min-width: 0; font: 16px/1.5 var(--sans); padding: 12px; background: var(--surface); border: 1px solid var(--control-border); border-radius: 2px; resize: none; }
.pix-code { overflow-wrap: anywhere; word-break: break-all; }
.pix-key .button { width: 100%; margin: 10px 0; }
.pix-status { background: var(--powder); padding: 16px; margin-top: 20px; font-size: .875rem; }
.pix-status p { margin-top: 8px; }
.copy-feedback { min-height: 24px; margin-top: 8px; font-size: .875rem; color: var(--accent-deep); }
.manual-pix { min-width: 240px; display: grid; gap: 10px; }
.manual-pix input[type=text] { min-height: 44px; padding: 8px; border: 1px solid var(--control-border); background: var(--surface); width: 100%; }
.manual-pix .check-label { font-size: .875rem; line-height: 1.4; }
.manual-pix .button { width: 100%; }
.pix-key { font-family: var(--sans); display: block; background: var(--powder); padding: 12px; margin: 16px 0; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; }
.copy-feedback { min-height: 24px; margin-top: 8px; }
.payment-disclaimer { font-size: .75rem; color: var(--muted); margin-top: 16px; }
.photo-dialog { width: min(1080px,calc(100% - 32px)); background: var(--deep-surface); color: var(--ivory); border: 0; max-height: calc(100dvh - 32px); }
.photo-dialog :focus-visible { outline-color: var(--ivory); }
.lightbox { padding: 48px 24px 16px; position: relative; }
.lightbox-close { position: absolute; right: 8px; top: 4px; color: var(--ivory); }
#lightbox-photo { height: min(70dvh,760px); }
#lightbox-photo img { object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.lightbox-controls p { font-size: .875rem; text-align: center; }
body[data-modal-open] .mobile-gift { visibility: hidden; }

@media (hover:hover) and (pointer:fine) {
  .header nav a:hover { color: var(--accent); }
  .header .nav-gift:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 6px; }
  .button.primary:hover { background: var(--accent-deep); }
  .button.secondary:hover { border-color: var(--accent); }
  .gift-card .button:hover { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
  .gallery-frame.is-photo:hover img { transform: scale(1.025); }
  .amount-choice:hover { border-color: var(--accent); }
  .amount-tabs [role=tab]:hover { color: var(--accent); }
  .rsvp-gift-choice:hover { background: var(--powder); border-color: var(--accent); }
  .nav-rsvp:hover { background: var(--accent-deep); }
  .icon-button:hover { background: #d8c6c935; }
}
@media (max-width:1000px) {
  .container, .header { padding-inline: 32px; }
  .section { padding-block: 96px; }
  .header { height: 88px; }
  .brand { height: 58px; width: 68px; }
  .header nav { gap: 20px; }
  .hero { padding-top: 32px; }
  .hero-copy { grid-column: 1/7; padding-right: 24px; }
  .hero h1 { font-size: clamp(2.6rem,5.8vw,5.1rem); }
  .hero-frame { height: 540px; }
  .story-art-wrap { padding: 0 24px 32px 0; }
  .story-art { height: 480px; }
  .story-detail { width: 140px; height: 184px; border-width: 6px; }
  .story-copy { grid-column: 7/13; padding-left: 16px; }
  .story-copy > p:not(.eyebrow) { font-size: 1rem; }
  .section-intro { column-gap: 40px; }
  .gift-grid { gap: 24px; }
  .gift-card p { min-height: 82px; }
  .gift-card .button { width: 100%; padding-inline: 12px; }
  .gallery-grid { gap: 16px; }
  .gallery-frame:first-child { height: 496px; }
  .gallery-frame:nth-child(2), .gallery-frame:nth-child(3) { height: 240px; }
  .gallery-frame { height: 320px; }
  .event-inner { width: calc(100% - 64px); padding: 48px 40px; gap: 40px; }
  .event-info .detail-date dd { font-size: 1.5rem; }
}
@media (max-width:700px) {
  html { scroll-padding-top: 100px; scroll-padding-bottom: 100px; }
  .container { padding-inline: 24px; }
  .section { padding-block: 72px; }
  .header { height: 80px; padding-inline: 24px; position: sticky; top: 0; background: #faf7f0f5; backdrop-filter: blur(8px); }
  .brand { width: 60px; height: 54px; font-size: 1.0625rem; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; }
  .menu-lines { width: 18px; height: 10px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
  .header nav { display: none; position: absolute; top: 79px; inset-inline: 0; padding: 16px 24px 24px; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 12px 18px #4d243108; }
  .header nav.is-open { display: flex; }
  .header .nav-gift { justify-content: center; margin-top: 8px; }
  .hero { display: flex; flex-direction: column; padding-top: 40px; gap: 36px; }
  .hero-copy { padding: 0; text-align: center; }
  .hero .eyebrow { justify-content: center; font-size: .8125rem; }
  .hero h1 { font-size: clamp(2.5rem,12.8vw,5rem); margin: 24px 0 28px; }
  .hero .ampersand { margin: 6px 0; }
  .hero-meta { margin: auto; padding-top: 20px; max-width: 290px; }
  .hero-phrase { margin: 20px auto 0; max-width: 29ch; }
  .hero-actions { justify-content: center; gap: 8px; margin-top: 24px; }
  .hero-art { width: min(100%,420px); align-self: center; padding: 8px 16px 32px 0; }
  .hero-frame { height: 440px; }
  .arch-outline { inset: 0 0 60px 16px; }
  .art-note { font-size: .875rem; margin-top: 16px; }
  .tiny-star { bottom: 72px; right: -6px; font-size: 1.5rem; }
  .hero-footnote { width: 100%; padding: 24px 0; margin-top: 0; font-size: .75rem; letter-spacing: 0; gap: 16px; }
  .footnote-date { letter-spacing: .1em; }
  .story { display: flex; flex-direction: column; gap: 40px; }
  .story-art-wrap { width: 100%; max-width: 440px; padding: 0 24px 32px 0; }
  .story-art { height: 420px; }
  .story-detail { width: 144px; height: 184px; border-width: 8px; }
  .story-copy { padding: 0; width: 100%; }
  .story-copy h2 { margin: 18px 0 24px; }
  .signature { font-size: 1.125rem; margin-top: 24px; }
  .section-intro { display: block; margin-bottom: 40px; }
  .section-intro h2 { margin: 18px 0 24px; }
  .section-intro > p:last-child { padding: 0; }
  .gift-grid { grid-template-columns: 1fr; gap: 48px; }
  .gift-photo { aspect-ratio: 4/3; }
  .gift-card-content { padding-top: 24px; }
  .gift-card h3 { font-size: 1.75rem; margin-bottom: 12px; }
  .gift-card p { min-height: 0; max-width: 32ch; margin-bottom: 20px; }
  .gift-card .button { width: auto; padding-inline: 24px; }
  .gift-note { margin-top: 48px; padding-top: 28px; font-size: 1.0625rem; }
  .gallery-heading { display: block; margin-bottom: 32px; }
  .gallery-heading h2 { margin-top: 18px; }
  .gallery-note { display: block; text-align: left; max-width: none; margin-top: 20px; font-size: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gallery-frame:first-child { grid-column: span 2; grid-row: auto; height: 280px; }
  .gallery-frame:nth-child(2), .gallery-frame:nth-child(3) { grid-column: span 1; height: 240px; }
  .gallery-frame:nth-child(4), .gallery-frame:nth-child(5) { grid-column: span 1; height: 240px; }
  .gallery-frame:last-child { grid-column: span 2; height: 360px; }
  .event { padding-block: 48px; }
  .event-inner { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 40px 28px; gap: 32px; }
  .event-inner:before { inset: 10px; }
  .event-heading { text-align: left; }
  .event-heading h2 { font-size: 2rem; margin-top: 18px; }
  .event-monogram { display: none; }
  .event-info dl { gap: 20px 16px; }
  .event-info .detail-date dd { font-size: 1.5rem; }
  .event-note { margin-top: 24px; }
  .footer { padding-block: 56px 128px; }
  #footer-message { max-width: 29ch; margin-inline: auto; }
  .mobile-gift { display: block; position: fixed; bottom: 0; inset-inline: 0; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: #faf7f0f5; border-top: 1px solid var(--line); z-index: 15; backdrop-filter: blur(8px); }
  .mobile-gift .button { width: 100%; }
  .gift-dialog { width: calc(100% - 24px); max-width: 480px; max-height: calc(100dvh - 24px); }
  .dialog-content { padding: 32px 24px 24px; }
  .dialog-content h2 { font-size: 1.875rem; }
  .dialog-close { right: 8px; top: 8px; }
  .amount-tabs [role=tab] { padding-inline: 8px; }
  .summary { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .summary > div:last-child { text-align: left; }
  .summary dd { font-size: .875rem; }
  .summary .summary-value { font-size: 1.625rem; }
  .photo-dialog { max-width: calc(100% - 16px); width: calc(100% - 16px); }
  .lightbox { padding-inline: 12px; }
  #lightbox-photo { height: 65dvh; }
}
@media (min-width:701px) and (max-width:900px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; }
  .menu-lines { width: 18px; height: 10px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
  .header nav { display: none; position: absolute; top: 87px; inset-inline: 0; padding: 16px 32px 24px; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; }
  .header nav.is-open { display: flex; }
  .header .nav-rsvp { margin-top: 8px; }
}
@media (prefers-reduced-transparency:reduce) { .header, .mobile-gift { background: var(--ivory); backdrop-filter: none; } dialog::backdrop { background: #4d2431e6; backdrop-filter: none; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; animation: none !important; } .button:active, .payment-choice:active:not(:disabled), .rsvp-gift-choice:active, .gallery-frame.is-photo:hover img { transform: none; } }

