@font-face{font-family:Bodoni Moda;src:url("assets/fonts/bodoni-moda.woff") format("woff");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:Bodoni Moda;src:url("assets/fonts/bodoni-moda-italic.woff") format("woff");font-weight:400 900;font-style:italic;font-display:swap}
@font-face{font-family:DM Sans;src:url("assets/fonts/dm-sans.woff") format("woff");font-weight:100 1000;font-style:normal;font-display:swap}
:root{
  --paper:#fcf8f4;--paper-light:#fffcf8;--ink:#361720;--wine:#68072e;--wine-deep:#4e0624;
  --gold:#b68732;--gold-light:#d6b780;--soft:#f5e5e4;--line:#e8dcd5;--muted:#775f62;
  --side:clamp(17px,4.45vw,25px);--serif:"Bodoni Moda",Georgia,serif;--sans:"DM Sans",Arial,sans-serif;
  color-scheme:light;font-family:var(--sans);font-synthesis:none;color:var(--ink);background:var(--paper);
}
*,*::before,*::after{box-sizing:border-box}
html{min-height:100%;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100svh;background:var(--paper);overscroll-behavior-y:none}
img{display:block;max-width:100%}
button,input,textarea{font:inherit;color:inherit}
button,a,label,input,textarea{-webkit-tap-highlight-color:transparent}
button,a.button{touch-action:manipulation}
button{cursor:pointer}button:disabled{cursor:default}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #996b25;outline-offset:4px}
h1:focus,h2:focus{outline:none}
.sr-only,.choices legend{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.shell{width:100%;max-width:480px;min-height:100vh;min-height:100svh;margin:0 auto;display:flex;flex-direction:column;background:radial-gradient(ellipse at 86% 80%,#fffaf6 0,transparent 57%),var(--paper)}
.masthead{position:relative;flex:none;padding:calc(8px + env(safe-area-inset-top,0px)) var(--side) 9px;text-align:center}
.brand-lock{display:flex;align-items:center;justify-content:center;gap:clamp(16px,5vw,28px);min-height:38px}
.brand-lock span{display:none}.emblem{width:clamp(36px,9.5vw,46px);height:auto}
.shell[data-screen="welcome"] .brand-lock span{display:block;width:min(24vw,118px);height:1px;background:var(--gold)}
.shell[data-screen="welcome"] .masthead{padding-top:calc(12px + env(safe-area-inset-top,0px));padding-bottom:5px}
.icon-button{display:inline-grid;place-items:center;border:0;background:transparent;width:44px;height:44px;border-radius:8px;padding:10px}
.icon-button img{width:20px;height:20px}
.back{position:absolute;top:calc(6px + env(safe-area-inset-top,0px))}
.back{left:calc(var(--side) - 12px)}
.progress{height:4px;border-radius:8px;background:#efddda;overflow:hidden;margin-top:9px}
.progress span{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#bc8c32,#caa24e);transform:scaleX(0);transform-origin:left;transition:transform 340ms ease}
main,#rsvp,.page{display:flex;flex-direction:column;flex:1;min-width:0}
.page{will-change:auto;padding-bottom:0}
.intro,.fields{padding-inline:var(--side);min-width:0}
.intro{margin-top:clamp(19px,4.3vw,27px)}
.kicker,.confirmed-label{margin:0;display:flex;align-items:center;gap:12px;font:550 clamp(14px,3.9vw,18px)/1.3 var(--sans);letter-spacing:-.015em}
.kicker::after{content:"";height:1px;flex:1;min-width:16px;background:var(--gold)}
.kicker.clean::after{display:none}
h1,h2{font-family:var(--serif);font-optical-sizing:auto;font-weight:570;letter-spacing:-.059em;line-height:1.06;margin:clamp(13px,3.8vw,21px) 0 0;text-wrap:pretty}
h1 em,h2 em{font-weight:480}
h2{font-size:clamp(33px,9.1vw,51px)}
.lead,.fine,.error,.receipt-note{font-family:var(--sans)}
.lead{font-size:clamp(15px,4.1vw,19px);line-height:1.43;letter-spacing:-.018em;margin:clamp(14px,3.7vw,21px) 0 0}
.visual{display:block;flex:none;min-width:0}
.hero{width:100%;height:clamp(124px,41.2vw,230px);overflow:hidden}
.hero img,.confirm-photo img{width:100%;height:100%;object-fit:cover}
.party .hero{height:clamp(150px,49vw,270px)}
.fields{margin-top:clamp(19px,5vw,28px)}
.fields>label,dialog label{display:block;font-weight:580;margin-bottom:8px;font-size:clamp(16px,4.15vw,19px)}
.input-wrap{display:flex;align-items:center;gap:12px;padding:0 13px;border:1.5px solid var(--wine);border-radius:9px;min-height:51px;background:rgba(255,255,255,.24);transition:box-shadow .18s}
.input-wrap img{width:22px;height:22px;flex:none}
.input-wrap:focus-within{box-shadow:0 0 0 3px #68072e14}
.input-wrap input{width:100%;min-width:0;background:transparent;border:0;outline:none;padding:12px 0;font-size:clamp(16px,4.25vw,20px)}
.input-wrap input::placeholder,textarea::placeholder{color:#88797a}
.actions{margin-top:auto;padding:22px var(--side) max(13px,env(safe-area-inset-bottom,0px));min-width:0}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;border:1px solid transparent;font:570 clamp(17px,4.45vw,21px)/1.15 var(--sans);text-align:center;letter-spacing:-.015em;text-decoration:none;min-height:51px;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.primary{width:100%;padding:12px 15px;background:linear-gradient(112deg,#720a34,#60062e);color:#fffaf4}
.primary img,.secondary img{width:21px;height:21px;flex:none}
.primary img{filter:brightness(0) invert(1)}
.secondary{padding:10px 12px;color:var(--ink);border-color:#bd934c;background:#f8e8e5}
.primary:active,.secondary:active,.icon-button:active{transform:translateY(1px) scale(.99)}
.primary:disabled,.secondary:disabled{opacity:.68}
@media (hover:hover){.primary:hover:not(:disabled){background:var(--wine-deep);box-shadow:0 4px 12px #66052d1a}.secondary:hover,.icon-button:hover{background:#f1e5df}.choice:hover .tile{border-color:var(--wine)}}
.error{margin:8px 0 0;font-size:14px;line-height:1.4;color:#922044}.error:empty{display:none}
.receipt-note{font-size:12px;text-align:center;color:var(--muted);line-height:1.4;margin:0 0 8px}
.receipt-note{margin:8px 0 0}.receipt-note:empty{display:none}
.welcome .intro{margin-top:clamp(15px,4.3vw,27px)}
.welcome h1{font-size:clamp(44px,12.15vw,71px);line-height:1.03;margin-top:clamp(10px,3.2vw,20px)}
.welcome .lead{font-size:clamp(16px,4.35vw,20px)}
.welcome-visual,.date-visual{margin:clamp(22px,6.5vw,36px) var(--side) 0}
.ticket{position:relative;isolation:isolate;border:1px solid var(--gold);border-radius:17px;background:linear-gradient(145deg,#fffdf8,#faf3e9);box-shadow:2px 3px 0 var(--wine),0 5px 10px #593f3010}
.diptych{display:grid;grid-template-columns:2fr 1fr;gap:3px;padding:4px 4px 0;overflow:hidden;border-radius:16px 16px 0 0}
.diptych img{width:100%;height:clamp(146px,47vw,265px);object-fit:cover}
.diptych img:first-child{object-position:45% 58%}.diptych img:last-child{object-position:51% 54%}
.ticket-stub{position:relative;padding:clamp(12px,3.5vw,20px) clamp(17px,5.5vw,28px) clamp(16px,4vw,22px)}
.ticket-stub::before,.ticket-stub::after,.pass::before,.pass::after{content:"";position:absolute;width:13px;height:21px;top:50%;transform:translateY(-50%);background:var(--paper);border:1px solid var(--gold);z-index:1}
.ticket-stub::before,.pass::before{left:-2px;border-left:0;border-radius:0 12px 12px 0}
.ticket-stub::after,.pass::after{right:-3px;border-right:0;border-radius:12px 0 0 12px}
.ticket-stub{background-image:radial-gradient(circle,var(--gold) .85px,transparent 1.2px);background-size:5px 2px;background-position:0 5px;background-repeat:repeat-x}
.cover-stub p{display:flex;align-items:center;gap:13px;font-size:clamp(16px,4.5vw,22px);font-weight:550;margin:6px 0 0;letter-spacing:-.025em}
.cover-stub p+p{margin-top:9px}.cover-stub img{width:24px;height:24px}
.gold,.round-check img{filter:brightness(0) saturate(100%) invert(52%) sepia(65%) saturate(679%) hue-rotate(1deg) brightness(95%) contrast(90%)}
.date .intro{margin-top:clamp(25px,7vw,40px)}.date h2{font-size:clamp(39px,10.9vw,62px)}
.date-ticket{border-color:#d2bfa9;box-shadow:0 5px 12px #3c1b2015}
.ticket-photo{width:100%;height:clamp(143px,43vw,245px);object-fit:cover;object-position:50% 59%;border-radius:16px 16px 0 0}
.date-stub{display:flex;align-items:center;justify-content:space-between;gap:9px}
.date-stub strong,.pass-date{font:560 clamp(21px,5.8vw,32px)/1.14 var(--serif);letter-spacing:-.045em}
.date-stub div>span{display:block;font-size:clamp(17px,4.5vw,22px);margin-top:6px}
.round-check{display:inline-grid;place-items:center;width:30px;height:30px;border:1.2px solid var(--gold);border-radius:50%;flex:none}.round-check img{width:18px;height:18px}
.choices{display:grid;gap:9px;margin:0;padding:0;border:0;min-width:0}
.party-grid,.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice{position:relative;display:block;min-width:0;cursor:pointer}
.choice>input{position:absolute;width:1px;height:1px;left:8px;top:50%;opacity:0}
.tile{display:flex;align-items:center;gap:9px;width:100%;height:100%;border:1px solid #bd9146;border-radius:8px;background:rgba(255,255,255,.22);font-weight:550;line-height:1.18;transition:background .17s,border-color .17s,box-shadow .17s,transform .17s}
.choice input:checked+.tile{background:#f8e7e7;border-color:var(--wine);box-shadow:inset 0 0 0 .5px var(--wine)}
.choice input:focus-visible+.tile{outline:3px solid #946a29;outline-offset:3px}
.choice:active .tile{transform:scale(.988)}
.party-grid .tile{position:relative;flex-direction:column;justify-content:center;gap:7px;min-height:66px;padding:9px 5px;font-size:clamp(15px,4vw,18px)}
.party-grid .tile>img{width:26px;height:26px}
.party-grid input:checked+.tile{background:linear-gradient(120deg,#770b35,#62062e);color:white}
.party-grid input:checked+.tile>img{filter:brightness(0) invert(1)}
.party-grid input:checked+.tile::after,.source-grid input:checked+.tile::after{content:"";background:var(--wine) url('assets/icons/check.svg') center/63% no-repeat;position:absolute;right:8px;top:8px;width:13px;height:13px;border-radius:50%;filter:brightness(0) invert(1)}
.party-grid input:checked+.tile::after{background:transparent url('assets/icons/check.svg') center/100% no-repeat}
.party-grid .choice.wide{grid-column:1/-1}
.arrival .fields,.discover .fields{margin-top:clamp(15px,4vw,22px)}
.arrival-list .tile{border-color:var(--line);padding:5px 10px 5px 6px;gap:clamp(12px,3vw,20px);font-size:clamp(17px,4.65vw,22px)}
.arrival-list .thumbnail{width:41%;height:clamp(54px,15.7vw,78px);object-fit:cover;border-radius:5px}
.arrival-list .tile::after{content:"";width:19px;height:19px;margin-left:auto;border:1.5px solid var(--gold);border-radius:50%;flex:none}
.arrival-list input:checked+.tile{background:transparent;border-color:var(--wine);box-shadow:inset 0 0 0 .8px var(--wine)}
.arrival-list input:checked+.tile::after,.source-grid input:checked+.tile::after{background:var(--wine) url('assets/icons/tick-light.svg') center/64% no-repeat;border-color:var(--wine);filter:none}
.fine{font-size:14px;line-height:1.45;letter-spacing:-.014em;margin:12px 0 0}
.source-grid{gap:8px}.source-grid .tile{position:relative;min-height:47px;padding:8px 16px 8px 10px;gap:8px;font-size:clamp(13px,3.6vw,17px)}
.source-grid .tile>img{width:clamp(22px,6.4vw,32px);height:clamp(22px,6.4vw,32px);flex:none;object-fit:contain}
.source-grid input:checked+.tile::after{top:50%;right:4px;transform:translateY(-50%);width:12px;height:12px}
.confirmation .intro{margin-top:clamp(17px,4.3vw,25px)}.confirmed-label{font-weight:650;gap:10px}.confirmed-label .round-check{width:23px;height:23px}.confirmed-label img{width:14px;height:14px}
.confirmation h2{font-size:clamp(38px,10.6vw,60px)}.confirmation .lead{margin-top:10px}
.pass{position:relative;margin:clamp(16px,4vw,22px) var(--side) 0;padding:14px clamp(17px,4.8vw,25px);border:1px solid var(--gold);border-radius:7px;background:linear-gradient(120deg,#fdeeee,#faf3ed);color:var(--wine)}
.pass-date{display:block;padding-bottom:8px;border-bottom:1px solid #c8aa74}.pass-details{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:10px}
.pass-details>div+div{border-left:1px solid #cdaf81;padding-left:12px}.pass-details span{display:block;color:var(--ink);font-size:13px;font-weight:550}.pass-details b{font:550 clamp(23px,6.3vw,36px)/1.12 var(--serif);letter-spacing:-.05em}
.pass>p{margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--ink)}
.confirmation .hero{height:clamp(118px,36vw,200px)}.confirm-photo img{object-position:50% 58%}
.text-link{border:0;background:none;color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-size:14px;padding:10px 2px;min-height:40px}
/* The calendar and directions buttons stay in reach as a footer on the confirmation screen. */
.confirm-actions{position:sticky;bottom:0;z-index:2;margin-top:auto;padding:12px var(--side) max(12px,env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -8px 24px #3c1b200d}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pair>a,.pair>button{font-size:clamp(13px,3.5vw,17px);min-height:46px;gap:6px;padding:9px 4px}.pair img{width:18px;height:18px}
dialog{position:fixed;inset:0;margin:auto;width:min(92vw,430px);padding:25px;border:1px solid var(--gold-light);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #26041435}
dialog::backdrop{background:#20101c76}dialog h2{font-size:36px;margin:18px 0 24px}dialog .kicker{padding-right:35px}.close{position:absolute;right:10px;top:7px}
dialog textarea{width:100%;resize:vertical;min-height:92px;max-height:32vh;border:1px solid #ac8f95;border-radius:8px;padding:12px;background:#fffaf6;font-size:16px}dialog .primary{margin-top:18px}
.toast{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:5;border-radius:9px;background:#422031;color:#fffaf6;padding:11px 17px;font-size:14px;text-align:center;max-width:90vw;box-shadow:0 9px 30px #26041428}
.noscript{margin:7vh auto;max-width:440px;padding:25px;line-height:1.5}
@media (max-width:355px){.source-grid .tile{font-size:12px;gap:5px;padding-left:7px}.source-grid .tile>img{width:20px;height:20px}.pair{gap:6px}.pair>a,.pair>button{font-size:12px}.kicker{font-size:14px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
/* A lower optical size retains the fine serif strokes at phone scale. */
h1,h2,.pass-date,.pass-details b,.date-stub strong{font-optical-sizing:none;font-variation-settings:"opsz" 22}
/* Phone-first by design: larger screens show the same mobile layout as a centred card. */
@media (min-width:520px){
  body{display:flex;justify-content:center;align-items:flex-start;padding:24px 16px;background:radial-gradient(ellipse at 20% 0,#f8f3eb,transparent 60%),linear-gradient(135deg,#eee7df,#e5d9ce)}
  .shell{min-height:min(860px,calc(100vh - 48px));min-height:min(860px,calc(100svh - 48px));border:1px solid #dfd2c4;border-radius:22px;overflow:hidden;box-shadow:0 22px 70px #4d29171c}
  .masthead{padding-top:12px}.shell[data-screen="welcome"] .masthead{padding-top:16px}.back,  .actions{padding-bottom:20px}.confirm-actions{padding-bottom:16px}
  .toast{bottom:28px}
}
@media (min-width:520px) and (max-height:700px){body{padding:12px 16px}.shell{min-height:calc(100vh - 24px);min-height:calc(100svh - 24px)}}
/* One gold-ruled group per guest; first name and surname sit side by side. */
.guests{display:grid;gap:14px}
.guest{margin:0;padding:0;border:0;min-width:0}
.guest legend{display:flex;align-items:center;gap:10px;width:100%;padding:0;margin-bottom:8px;font-weight:580;font-size:clamp(15px,4vw,18px);letter-spacing:-.015em}
.guest legend::after{content:"";height:1px;flex:1;background:var(--gold-light)}
.input-row{display:grid;grid-template-columns:1.1fr 1fr;gap:8px}
.input-row .input-wrap{padding:0 11px;min-height:49px}
.input-row .input-wrap input{font-size:clamp(16px,4.1vw,18px);padding:11px 0}
.guests .fine{margin-top:4px}
@media (max-width:355px){.input-row{grid-template-columns:1fr}}
