@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--paper:#f4f0e7;--surface:#fffcf5;--ink:#253c32;--muted:#576658;--line:#c5c7b6;--accent:#a34b32;--danger:#923e32;--camera:#17271f;--on-camera:#f5f1e7;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--space:24px;--fast:150ms;--ring:#a34b32}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 var(--sans)}[hidden]{display:none!important}button,input,a{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;min-height:44px}a{color:inherit}button,a{touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--ring);outline-offset:4px}button{transition:background var(--fast),opacity var(--fast)}button:active{opacity:.7}h1,h2,p,figure{margin:0}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{vertical-align:middle}.site-header,.welcome,.album,footer{width:min(1100px,100%);margin:auto}.site-header{padding:24px 40px;display:flex;align-items:center;justify-content:space-between}.wordmark{text-decoration:none;font:600 28px/1 var(--serif)}.wordmark span{display:block;font:12px var(--sans);margin-top:6px}.header-album{font-size:14px;text-underline-offset:5px;padding:10px 0}.welcome{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:72px;padding:24px 40px 80px}.cover-photo{min-width:0}.cover-photo>img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:160px 160px 4px 4px}.cover-photo figcaption{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:14px}.cover-photo figcaption span{color:var(--muted)}.small-title{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:14px}.welcome h1{font:500 clamp(56px,6.5vw,80px)/.94 var(--serif);letter-spacing:-2px}.welcome h1 em{font-weight:500;color:var(--accent)}.intro-copy{max-width:350px;margin-top:24px;color:var(--muted)}.quick-guide{border-top:1px solid var(--line);margin-top:32px;padding-top:20px;max-width:370px}.quick-guide h2{font:600 21px var(--serif);margin-bottom:8px}.quick-guide p{font-size:14px;color:var(--muted)}.welcome-action{margin-top:28px;display:flex;flex-wrap:wrap;align-items:center;gap:16px}.welcome-action>p{font-size:12px;color:var(--muted)}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:52px;padding:12px 24px;border-radius:6px;background:var(--ink);color:var(--surface);font-weight:600;text-decoration:none}.primary:hover{background:#355744}.secondary{background:transparent;border:1px solid currentColor;color:inherit}.storage-note{font-size:12px;color:var(--muted);margin-top:14px}.album{border-top:1px solid var(--line);padding:44px 40px 56px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.section-heading h2{font:500 42px/1.05 var(--serif)}.section-heading .small-title{margin-bottom:8px}.text-button{padding:8px 0;text-decoration:underline;text-underline-offset:5px;font-size:13px}.album-note{font-size:13px;color:var(--muted);margin:18px 0 24px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.photo-tile{position:relative;min-width:0}.photo{display:block;width:100%;padding:0;aspect-ratio:1;background:#e4e2d5;overflow:hidden;border-radius:4px;position:relative}.photo img{width:100%;height:100%;object-fit:cover;display:block}.sample{position:absolute;bottom:8px;left:8px;padding:3px 7px;background:var(--surface);color:var(--ink);font-size:11px;border-radius:2px}.delete-photo{display:block;margin-left:auto;padding:4px 6px;font-size:12px;color:var(--danger);text-decoration:underline;text-underline-offset:4px}.photo:hover img{opacity:.9}#gallery-status{font-size:13px;color:var(--muted);margin-bottom:12px}#gallery-status:empty{display:none}footer{padding:24px 40px 40px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}footer p{font:600 30px var(--serif)}footer span{font-size:12px;color:var(--muted)}
dialog{background:var(--surface);color:var(--ink);border:0;border-radius:16px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;overflow:auto}dialog::backdrop{background:#15261dc7}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.modal-heading .small-title{margin:0}.icon-button{width:44px;height:44px;display:grid;place-items:center;padding:10px;font-size:28px;border-radius:6px;flex-shrink:0}.icon-button:hover{background:#253c320d}#name-title{font:600 38px/.98 var(--serif);max-width:290px;margin:14px 0}.modal-intro{font-size:14px;color:var(--muted);margin-bottom:28px}label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}input{width:100%;min-height:52px;border:1px solid #788779;border-radius:6px;background:var(--surface);color:var(--ink);padding:12px 14px;font-size:16px}input::placeholder{color:var(--muted)}#guest-results{max-height:160px;overflow:auto}#guest-results>button{display:block;width:100%;text-align:left;padding:10px;border-bottom:1px solid var(--line);font-size:14px}#guest-results>button[aria-pressed=true]{background:#e1e8da}.field-hint{font-size:12px;color:var(--muted);margin-top:8px}#manual-toggle{margin:12px 0 16px}#entry-error{font-size:13px;color:var(--danger);margin:10px 0}#entry>.primary{width:100%;margin-top:12px}#name-modal[open]{animation:modal-in 160ms ease-out}@keyframes modal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
body.camera-open{background:var(--camera)}#camera{width:min(520px,100%);height:100dvh;min-height:440px;margin:auto;background:var(--camera);color:var(--on-camera);display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) 16px max(12px,env(safe-area-inset-bottom,0px));gap:0;overflow:hidden;--ring:#e4b795}.camera-top{display:grid;grid-template-columns:44px minmax(0,1fr) 64px;gap:12px;align-items:center;flex:0 0 72px}.camera-title{text-align:center;min-width:0}.camera-title h2{font:600 26px/1 var(--serif)}.camera-title p{font-size:12px;color:#c7d0c6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}#back{background:#ffffff0c}#filter-toggle{font-size:12px;border:1px solid #7f9384;border-radius:6px;padding:8px}.viewfinder{position:relative;width:min(100%,calc((100dvh - 270px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * .75));aspect-ratio:3/4;flex:0 0 auto;margin:auto;background:#0d1711;border-radius:12px;overflow:hidden;touch-action:none}#video,#demo-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.92) contrast(1.08) brightness(.84) sepia(.2)}#video[data-facing=user]{transform:scaleX(-1)}body[data-preset=original] #video,body[data-preset=original] #demo-image{filter:none}.film-vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 36%,#08190c33 80%,#05100666 100%)}body[data-preset=original] .film-vignette{display:none}.camera-tools{flex:0 0 56px;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:8px;padding-top:6px}.tool-button{display:flex;align-items:center;justify-content:center;gap:4px;padding:4px;min-height:44px;font-size:11px}.tool-button svg{width:18px;height:18px}#flash[aria-pressed=true]{color:#ecc8a4}#flash[aria-pressed=true] .flash-slash{display:none}#lens-controls{display:flex;justify-content:center;gap:4px;overflow-x:auto;scrollbar-width:none}#lens-controls button{flex:0 0 44px;height:44px;padding:4px;font-size:12px;border-radius:50%;color:var(--on-camera)}#lens-controls button[aria-pressed=true]{background:#ebc8a4;color:#18291f}#camera-status{font-size:11px;line-height:16px;min-height:32px;max-height:32px;flex:0 0 32px;text-align:center;padding:4px 0;color:#c7d0c6;overflow:auto}.camera-bottom{display:grid;grid-template-columns:1fr 84px 1fr;gap:16px;align-items:center;flex:0 0 96px;padding:4px 8px}.remaining{text-align:left}.remaining strong{display:block;font:500 40px/.9 var(--serif);font-variant-numeric:tabular-nums}.remaining>span{display:block;font-size:11px;color:#c7d0c6;margin-top:6px}#shutter{width:78px;height:78px;border-radius:50%;border:2px solid #eac8a7;padding:6px}#shutter>span{display:block;width:100%;height:100%;border-radius:50%;background:#eac8a7}#shutter:active>span{background:#fff}#my-gallery{justify-self:end;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;font-size:11px;color:#c7d0c6}.thumbnail{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border:1px solid #7f9384;border-radius:6px}#gallery-thumbnail{width:100%;height:100%;object-fit:cover}#gallery-empty{width:22px;height:22px}#camera-message{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;background:#13231ff2}#camera-message h2{font:600 28px/1.1 var(--serif)}#camera-message p{font-size:13px;color:#d3dbd2;margin:16px 0}#camera-message button{font-size:13px}#demo{margin-top:16px;text-decoration:underline;text-underline-offset:4px}
.gallery-main{max-width:900px;margin:auto;padding:24px}.gallery-heading{display:grid;grid-template-columns:44px 1fr 44px;gap:12px;align-items:center;margin-bottom:24px}.gallery-heading h1{font:500 42px var(--serif);text-align:center}.gallery-back{display:grid;place-items:center;width:44px;height:44px}.gallery-description{font-size:14px;color:var(--muted);max-width:540px;margin-bottom:16px}#personal-status{font-size:14px;color:var(--muted);margin-bottom:24px}#personal-empty{padding:64px 0;text-align:center}#personal-empty>.primary{margin-top:24px}
#preview{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#080b09;color:#fff;overflow:hidden}#preview::backdrop{background:#080b09}.preview-toolbar{position:absolute;z-index:2;top:calc(12px + env(safe-area-inset-top,0px));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;opacity:var(--dismiss-opacity,1)}.preview-control{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:10px;color:#fff;border-radius:6px;text-decoration:none;font-size:30px}.preview-control:hover{background:#ffffff1a}.preview-control svg{width:24px;height:24px}.delete-control{width:auto;font-size:14px;color:#ffbbb0;margin-left:auto}.preview-control:focus-visible{outline-color:#fff}#preview-stage{width:100%;height:100%;padding:calc(80px + env(safe-area-inset-top,0px)) 0 calc(144px + env(safe-area-inset-bottom,0px))}#preview-carousel{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain}.preview-slide{flex:0 0 100%;height:100%;min-width:0;display:flex;align-items:center;justify-content:center;padding:0 24px;scroll-snap-align:center;scroll-snap-stop:always;position:relative}.preview-slide>img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.slide-status{font-size:13px;max-width:280px;text-align:center;padding:20px}#preview-thumbnails{position:absolute;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:0;right:0;height:70px;display:flex;align-items:center;gap:8px;padding:8px 24px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x;opacity:var(--dismiss-opacity,1)}.preview-thumb{flex:0 0 44px;height:52px;min-height:52px;padding:0;border:2px solid transparent;border-radius:2px;overflow:hidden;opacity:.6}.preview-thumb[aria-current=true]{border-color:#fff;opacity:1}.preview-thumb img{width:100%;height:100%;object-fit:cover}#photo-save-status{position:absolute;bottom:calc(96px + env(safe-area-inset-bottom,0px));left:24px;right:24px;text-align:center;font-size:12px;line-height:18px;pointer-events:none;opacity:var(--dismiss-opacity,1)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}#notices{position:fixed;bottom:max(16px,env(safe-area-inset-bottom,0px));left:16px;right:16px;z-index:100;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.notice{width:min(520px,100%);padding:12px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;background:var(--ink);color:var(--surface);box-shadow:0 6px 24px #16251c33;border-radius:8px;pointer-events:auto}.notice p{flex:1 1 200px;font-size:13px}.notice button{font-size:13px;text-decoration:underline;text-underline-offset:4px}.notice button:last-child{font-size:12px}
@media(max-width:700px){.site-header{padding:24px}.wordmark{font-size:26px}.welcome{display:block;padding:8px 24px 48px}.cover-photo>img{aspect-ratio:5/4;border-radius:120px 120px 4px 4px;object-position:center 40%}.cover-photo figcaption{font-size:11px}.welcome-copy{padding-top:32px}.welcome h1{font-size:64px}.intro-copy{max-width:340px}.quick-guide{margin-top:24px;max-width:none}.welcome-action{gap:12px}.welcome-action .primary{flex:1;white-space:nowrap}.album{padding:32px 16px 40px}.section-heading{align-items:start}.section-heading h2{font-size:34px}.section-heading .text-button{font-size:12px;white-space:nowrap}.grid{gap:8px}footer{padding:24px;display:block}footer span{display:block;margin-top:8px}.sample{font-size:10px;bottom:5px;left:5px;padding:2px 4px}.gallery-main{padding:20px 16px}.gallery-heading h1{font-size:36px}dialog{padding:24px}.delete-photo{font-size:12px}.modal-intro{margin-bottom:20px}}
@media(max-width:360px){.welcome h1{font-size:58px}.welcome-action{display:block}.welcome-action .primary{width:100%}.welcome-action>p{margin-top:12px}.section-heading h2{font-size:30px}.camera-title h2{font-size:23px}}
@media(max-height:560px) and (orientation:landscape){#camera{max-width:820px;min-height:300px;display:grid;grid-template-columns:1fr 180px;grid-template-rows:52px 1fr 52px;gap:0 20px;padding:8px 24px}.camera-top{grid-column:1/3;min-height:52px}.viewfinder{grid-column:1;grid-row:2/4;width:auto;height:calc(100dvh - 76px);max-width:100%;margin:auto;aspect-ratio:3/4}.camera-tools{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;align-content:start;padding:16px 0}.tool-button{flex:1}#lens-controls{order:3;width:100%}#camera-status{grid-column:1;grid-row:3;align-self:end;background:#17271fe6;z-index:3;max-width:100%;pointer-events:none}.camera-bottom{grid-column:2;grid-row:3;align-self:end;grid-template-columns:1fr 1fr;gap:12px}.remaining{grid-row:1;font-size:11px}#shutter{grid-row:2;grid-column:1/3;justify-self:center;width:64px;height:64px}#my-gallery{grid-row:1;grid-column:2}.remaining strong{font-size:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Full-height cover keeps the invitation photo behind the entry action. */
body:not(.camera-open):not(.gallery-page){background:#000}
.album,footer{background:var(--paper)}
.welcome{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:100svh;width:min(600px,100%);padding:180px 24px max(24px,env(safe-area-inset-bottom,0px));color:#fff;background:#000;gap:0}
.cover-photo{position:absolute;inset:0;z-index:-2}
.cover-photo>img{width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:cover;object-position:center}
.welcome::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 20%,rgba(0,0,0,.3) 42%,rgba(0,0,0,.78) 70%,#000 94%,#000 100%)}
.welcome-copy{width:100%;padding-top:0;text-align:center}
.welcome-copy>.small-title{display:inline-block;background:#14221dcc;color:#fff;border-radius:12px;padding:7px 14px;font-size:12px;margin-bottom:18px}
.welcome h1{font:600 italic clamp(38px,8vw,50px)/1.08 var(--serif);letter-spacing:-.8px;margin:0}
.welcome .intro-copy{max-width:none;font-size:12px;color:#e3e8e1;margin-top:14px}
.welcome .quick-guide{max-width:380px;margin:18px auto 0;padding:0;border:0}
.welcome .quick-guide p{color:#e3e8e1;font-size:13px}
.welcome-action{display:flex;flex-direction:column;align-items:stretch;margin-top:18px;gap:14px}
.welcome-action>p{order:-1;color:#e3e8e1;font-size:12px;margin:0}
.welcome-action .primary{width:100%;flex:none;border-radius:14px;background:#f5f1e7;color:#17271f}
.welcome-action .primary:hover{background:#fff}
.welcome .storage-note{color:#d7dfd5;font-size:11px;margin-top:16px}
.cover-album-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#e3e8e1;text-underline-offset:4px}
.grid{gap:3px}
.photo{border-radius:0}
.camera-top{display:flex;align-items:center;justify-content:space-between;flex-basis:56px}
#back{background:none}
.tool-button{width:44px;justify-self:center}
.tool-button svg{width:22px;height:22px}
#video,#demo-image{filter:saturate(.92) contrast(1.08) brightness(.84) sepia(.12)}
.film-vignette{background:radial-gradient(ellipse at center,transparent 36%,#08152a22 80%,#05102455 100%)}
#close-name,.preview-control:not(.delete-control){appearance:none;-webkit-appearance:none;background:transparent;border:0;border-radius:0;box-shadow:none;-webkit-tap-highlight-color:transparent}
#close-name:hover,.preview-control:not(.delete-control):hover{background:transparent}
html[data-input-mode=pointer] #close-name:focus-visible,html[data-input-mode=pointer] .preview-control:focus-visible{outline:none}
.delete-control{appearance:none;-webkit-appearance:none;min-width:48px;width:48px;height:48px;padding:12px;background:transparent;color:#fff;border:0;border-radius:0;box-shadow:none;-webkit-tap-highlight-color:transparent}
.delete-control:hover{background:transparent;color:#ffbbb0}

.album,footer,body.gallery-page{background:#000;color:#f4f0e7;--muted:#b7c0b8;--line:#353b36}
.album{border-top:0}
#gallery-status{color:#b7c0b8}
#preview,#preview::backdrop{background:#000}
#frame-toggle{min-height:44px;padding:8px 14px;border-radius:6px;border:1px solid #7f9384;font-size:12px;color:var(--on-camera)}
#frame-toggle[aria-pressed=true]{background:#fff;color:#17271f;border-color:#fff}
.camera-image{position:absolute;inset:var(--frame-edge,0px) var(--frame-edge,0px) var(--frame-bottom,0px);overflow:hidden}
body[data-frame=polaroid] .viewfinder{background:#fff;border-radius:2px}
body[data-frame=polaroid] .camera-image{border-radius:0}
#name-title:focus{outline:none}
#delete-confirm{width:min(380px,calc(100% - 32px));background:#171b18;color:#f4f0e7}
#delete-confirm::backdrop{background:#000b}
#delete-confirm h2{font:600 34px/1.1 var(--serif);margin-bottom:14px}
#delete-confirm p{font-size:14px;color:#c6cfc7}
.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.confirm-actions button{min-width:100px}
.confirm-actions .danger{background:#a34432;color:#fff}
@media(max-height:560px) and (orientation:landscape){#camera-status{grid-column:2;grid-row:2;align-self:start;margin-top:112px;background:none;max-height:48px;min-height:0}}
