@font-face { font-family: Manrope; src: url('/static/assets/manrope-variable.ttf') format('truetype'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root { font-family: Manrope, Arial, sans-serif; color: #25262a; background: #fafafa; font-synthesis: none; --wine: #591c2b; --muted: #666b70; --line: #e2e3e5; --page-gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); }
html { scrollbar-color: var(--wine) #f0eeee; scrollbar-width: thin; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar { width: 8px; height: 8px; }
  html::-webkit-scrollbar-track { background: #f0eeee; }
  html::-webkit-scrollbar-thumb { background: var(--wine); border: 2px solid #f0eeee; border-radius: 8px; }
  html::-webkit-scrollbar-thumb:hover { background: #702a3c; }
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
h1, p { margin: 0; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a46a7a; outline-offset: 3px; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
.lace-edges { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lace-edge { position: absolute; top: 0; bottom: 0; width: clamp(9px, calc((100% - 864px) / 2), 260px); overflow: hidden; }
.lace-edge-left { left: 0; mask-image: linear-gradient(to right, #000 15%, transparent); }
.lace-edge-right { right: 0; mask-image: linear-gradient(to left, #000 15%, transparent); }
.lace-pattern { position: absolute; inset: -80px 0; background: url('/static/assets/schedule.jpg') center / 640px auto repeat-y; filter: grayscale(1) invert(1); opacity: .16; transform: translate3d(0, var(--lace-shift, 0px), 0); }
.lace-edge-right .lace-pattern { background-image: url('/static/assets/transport.png'); background-size: 560px auto; opacity: .12; }
.top-rule { position: sticky; top: env(safe-area-inset-top); z-index: 10; height: 3px; margin-inline: var(--page-gutter); border-radius: 2px; background: var(--wine); pointer-events: none; }
.page-width { position: relative; width: min(800px, calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.side-links { position: relative; display: flex; gap: 10px; width: min(800px, calc(100% - 2 * var(--page-gutter))); margin: 16px auto 0; }
.side-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; min-width: 0; padding: 10px 14px; border: 1px solid #dfd5d8; border-radius: 5px; background: #fffdfd; color: var(--wine); font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; pointer-events: auto; transition: border-color .18s, background-color .18s; }
.side-link span { min-width: 0; }
@media (hover: hover) {
  .side-link:hover { border-color: #a46a7a; background: #f6edef; }
}
.side-link:active { background: #f6edef; }
.side-link svg { width: 17px; height: 17px; }
/* Reserve the form's full width plus a 32px gap on either side. */
@media (min-width: 1280px) {
  .side-links { position: fixed; inset: 50% 0 auto; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) 800px minmax(0, 1fr); gap: 32px; width: min(1232px, calc(100% - 2 * var(--page-gutter))); margin: 0 auto; pointer-events: none; transform: translateY(-50%); }
  .side-link { min-height: 56px; padding-inline: 10px; box-shadow: 0 4px 16px #25262a08; }
  .side-link:last-child { grid-column: 3; }
}
.couple-header { display: grid; grid-template-columns: minmax(0, 1fr) 142px; align-items: center; gap: 24px; padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--wine); margin-bottom: 9px; }
.couple-header > div { min-width: 0; }
.couple-name { font-size: 30px; font-weight: 600; line-height: 1.3; color: var(--wine); overflow-wrap: anywhere; }
.couple-name span { font-weight: 400; color: #ac7883; }
.wedding-date { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 10px; }
.invitation-image { width: 142px; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; transform: rotate(3deg); box-shadow: 0 4px 12px #25262a15; flex-shrink: 0; }
.form-heading { padding: 27px 0 29px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h1 { font-size: 32px; font-weight: 600; line-height: 1.2; }
.deadline { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--wine); white-space: nowrap; }
.form-heading > p { margin-top: 9px; font-size: 16px; color: var(--muted); line-height: 1.5; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { padding: 0; font-size: 19px; font-weight: 600; line-height: 1.5; margin-bottom: 17px; }
.section-number { display: inline-block; margin-right: 10px; font-size: 12px; font-weight: 500; color: #9c6876; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.form-section { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.identity-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.field label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; font-size: 15px; line-height: 1.4; margin-bottom: 9px; }
.required-mark { color: var(--wine); font-weight: 500; }
.optional { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input { display: block; min-width: 0; width: 100%; border: 1px solid #cdd0d3; border-radius: 5px; background: #fff; color: #25262a; padding: 12px 14px; min-height: 49px; font-size: 16px; }
.field input::placeholder { color: #85898f; }
.field input:focus { border-color: var(--wine); }
.field input[aria-invalid=true] { border-color: #ab253f; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 7px; }
.attendance-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 0; cursor: pointer; font-size: 15px; line-height: 1.4; }
.choice span { overflow-wrap: anywhere; }
.choice input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--wine); cursor: pointer; }
.attendance-choice { min-height: 58px; padding: 12px; border: 1px solid #cdd0d3; border-radius: 5px; background: #fff; transition: border-color .15s, background .15s; }
.attendance-choice:has(:checked) { border-color: var(--wine); background: #f6edef; color: var(--wine); box-shadow: inset 0 0 0 .5px var(--wine); }
.attendance-choice:hover { border-color: #a46a7a; }
.question-group > legend { font-size: 15px; margin-bottom: 9px; font-weight: 500; }
.drink-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 22px; }
.drink-choice { border-bottom: 1px solid #ececee; min-height: 49px; }
.drink-choice:has(:checked) { color: var(--wine); }
.allergy-group { margin-top: 24px; }
.allergy-options { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.allergy-detail { margin-top: 14px; }
.preferences { margin-bottom: 0; }
.form-actions { padding: 19px 0 24px; }
#form-status { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#form-status:not(:empty) { margin-bottom: 15px; }
.success { color: #2b684c; }
.error { color: #a3293d; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.required-note { color: var(--muted); font-size: 12px; }
.submit-button { display: flex; justify-content: center; align-items: center; gap: 30px; min-height: 52px; min-width: 245px; padding: 13px 21px; border: 1px solid var(--wine); border-radius: 5px; background: var(--wine); color: #fff; font-size: 16px; font-weight: 500; }
.submit-button:hover { background: #702a3c; }
.submit-button svg { width: 20px; height: 20px; }
.retry-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cdd0d3; border-radius: 5px; background: #fff; color: var(--wine); padding: 12px 16px; margin-top: 12px; }
.saved-notice { display: flex; align-items: flex-start; gap: 12px; border-left: 3px solid #347555; padding: 14px 17px; margin-bottom: 25px; color: #285a43; background: #edf5ef; }
.saved-notice strong { font-size: 16px; font-weight: 600; }
.saved-notice p { font-size: 14px; margin-top: 4px; }
.saved-notice svg { margin-top: 2px; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: 13px; }
.page-footer svg { color: #976371; margin-left: auto; width: 16px; height: 16px; }
#admin-link { color: var(--wine); text-underline-offset: 4px; }
@media (max-width: 600px) {
  :root { --page-gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .side-link { flex: 1 1 0; padding: 9px 8px; font-size: 12px; }
  .side-link svg { width: 16px; height: 16px; }
  .couple-header { grid-template-columns: minmax(0, 1fr) 76px; padding: 22px 0; gap: 16px; }
  .couple-name { font-size: 22px; }
  .eyebrow { font-size: 10px; margin-bottom: 7px; }
  .wedding-date { font-size: 12px; gap: 6px; margin-top: 8px; }
  .invitation-image { width: 76px; transform: none; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  h1 { font-size: 29px; }
  .form-heading { padding: 24px 0; }
  .form-heading > p { font-size: 15px; }
  .identity-fields { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .attendance-options { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .attendance-choice { min-height: 48px; }
  .form-section { padding-bottom: 24px; margin-bottom: 24px; }
  .preferences { margin-bottom: 0; }
  .drink-options { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }
  .drink-choice { min-height: 59px; font-size: 14px; gap: 8px; }
  .drink-choice:last-child { grid-column: 1 / -1; }
  .submit-row { flex-direction: column; align-items: stretch; gap: 13px; }
  .submit-button { width: 100%; min-width: 0; justify-content: space-between; }
}
@media (max-width: 360px) { .couple-header { grid-template-columns: minmax(0, 1fr) 56px; } .couple-name { font-size: 20px; } .invitation-image { width: 56px; } .wedding-date { font-size: 11px; } }
@keyframes reveal-in {
  from { opacity: .15; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
.reveal-enter { animation: reveal-in 520ms cubic-bezier(.2, .65, .3, 1) var(--reveal-delay, 0ms) backwards; }
.saved-notice:not([hidden]), .allergy-detail:not([hidden]) { animation: reveal-in 240ms ease-out; }
.reveal-enter:focus-within, .allergy-detail:focus-within { animation: none; }
@media (max-width: 360px) { .side-link { gap: 5px; padding-inline: 6px; } }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .lace-pattern { transform: none; }
}
