/* ENERGY 2 / RHYTHM 2 / MOTION 1. Native type avoids font downloads on guests' phones.
   Off-white keeps the invitation readable outdoors; moss is reserved for actions.
   Thin rules separate stories, while corner brackets connect the camera and empty album.
   The dark camera stage frames actual media, not a second site theme. */
:root{color-scheme:light;--paper:#F8F8F5;--ink:#171918;--muted:#5F625E;--moss:#355747;--rule:#D4D6CE;--edge:#797D75;--soft:#EDEEE8;--camera:#202421;--on-camera:#C9CDC6;--space:clamp(1.25rem,4.3vw,4.5rem);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html{scroll-padding-top:1rem}body{margin:0;font-size:1rem;line-height:1.55}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit}button,a[href],summary,select,label[for],label:has(input),[role=button],[role=tab],[role=switch],input[type=checkbox],input[type=radio]{cursor:pointer}button:disabled,input:disabled,textarea:disabled,[aria-disabled=true]{cursor:not-allowed}button{color:inherit}img,video{max-width:100%;aspect-ratio:4/3}img{display:block}video{display:block}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.12;font-weight:550}h1{font-size:clamp(2.7rem,6.1vw,5.3rem);letter-spacing:-.065em;margin-bottom:1.6rem}h2{font-size:clamp(1.65rem,2.7vw,2.5rem);letter-spacing:-.045em}h3{font-size:1.3rem;letter-spacing:-.025em}p{margin-bottom:1rem}button{border-radius:3px}button:disabled{opacity:.55}a:hover{text-decoration-thickness:2px}a:active{opacity:.7}button:active:not(:disabled),.button:active:not(:disabled){transform:translateY(1px)}:focus-visible{outline:3px solid var(--moss);outline-offset:4px}.capture-workspace :focus-visible,.camera-entry :focus-visible{outline-color:var(--paper)}[hidden]{display:none!important}.muted,.optional,.field-hint{color:var(--muted)}.optional{font-weight:400}.full-width{width:100%}.page-shell{max-width:1536px;padding:0 var(--space);margin:auto}.skip-link{position:fixed;left:1rem;top:-10rem;padding:.8rem 1rem;background:var(--ink);color:var(--paper);z-index:99}.skip-link:focus{top:1rem}.site-header{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding:1.4rem 0;border-bottom:1px solid var(--rule)}.wordmark{font-size:1.3rem;font-weight:650;letter-spacing:-.055em;text-decoration:none;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}.wordmark-stop{margin-left:1px}.event-identity{flex-basis:100%;order:3;border-top:1px solid var(--rule);padding-top:1rem;overflow-wrap:anywhere}.event-identity p{margin:0;font-size:.85rem}.event-identity p:first-child{font-weight:600;font-size:.95rem}.header-actions{display:flex;align-items:center;gap:.7rem}.text-link{display:inline-flex;align-items:center;min-height:44px;padding:.4rem 0;font-size:.85rem;text-underline-offset:.25em}.button{min-height:48px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--edge);border-radius:3px;background:transparent;padding:.65rem 1.1rem;font-weight:550;font-size:.9rem;line-height:1.35;text-decoration:none;gap:.5rem}.button:hover:not(:disabled){background:var(--soft);border-color:var(--ink)}.button.small{min-height:44px;font-size:.82rem;padding:.55rem .8rem}.button.primary{background:var(--moss);border-color:var(--moss);color:var(--paper)}.button.primary:hover:not(:disabled){background:#254637;text-decoration:underline;text-underline-offset:.25em}.button.light{color:var(--ink);background:var(--paper);border-color:var(--paper)}.button.light:hover:not(:disabled){background:#DEDFD8;border-color:#DEDFD8}.button.on-dark{color:var(--paper);border-color:#8C938A}.button.on-dark:hover:not(:disabled){background:#343B34;border-color:var(--paper)}.page-status{min-height:0;margin:0}.page-status:not(:empty){padding:1rem 0;border-bottom:1px solid var(--rule);color:var(--moss);font-weight:550}.hero{display:grid;gap:2.2rem;padding:1.5rem 0 3rem}.hero-story{order:2;max-width:36rem;align-self:center}.hero-story h1{font-size:clamp(2.65rem,6.1vw,5.3rem)}.subtle-heading{color:var(--muted)}.hero-copy{font-size:1rem;max-width:28rem;line-height:1.7}.story-note{font-size:.82rem;color:var(--muted);margin:2rem 0 0;padding-left:2rem;position:relative}.story-note:before{content:"";position:absolute;left:0;top:.75em;width:1.2rem;border-top:1px solid var(--edge)}.camera-entry{order:1;background:var(--camera);color:var(--paper);padding:1.1rem;min-width:0}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.workspace-top h2{font-size:.82rem;letter-spacing:0;font-weight:500;max-width:9rem;line-height:1.4;margin:0}.mode-switch{display:inline-flex;gap:.15rem;border-bottom:1px solid #737B71}.mode-switch button{border:0;min-width:54px;min-height:44px;padding:.45rem .7rem;background:transparent;color:var(--on-camera);font-size:.85rem;position:relative}.mode-switch button[aria-pressed=true]{color:var(--paper);font-weight:650}.mode-switch button[aria-pressed=true]:after{content:"";position:absolute;bottom:-1px;left:10px;right:10px;border-bottom:2px solid var(--paper)}.mode-switch button:hover:not(:disabled){background:#343B34}.corner-frame{position:relative}.corner-frame:before,.corner-frame:after{content:"";position:absolute;width:21px;height:21px;pointer-events:none;z-index:1}.corner-frame:before{left:0;top:0;border-left:1px solid currentColor;border-top:1px solid currentColor}.corner-frame:after{right:0;bottom:0;border-right:1px solid currentColor;border-bottom:1px solid currentColor}.camera-invitation{min-height:190px;margin:1.4rem .3rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:1.5rem 1rem;color:#BFC6BB}.viewfinder-mark{display:block;width:38px;height:28px;border:1.5px solid var(--on-camera);border-radius:3px;position:relative;margin:0 auto 1.2rem}.viewfinder-mark:before{content:"";position:absolute;width:10px;height:10px;border:1.5px solid var(--on-camera);border-radius:50%;top:7px;left:12px}.viewfinder-mark:after{content:"";position:absolute;width:13px;height:4px;border:1.5px solid var(--on-camera);border-bottom:0;top:-6px;left:10px}.camera-invitation p{font-size:1.15rem;letter-spacing:-.025em;margin-bottom:.4rem;color:var(--paper)}.camera-hint{font-size:.77rem;max-width:16rem;line-height:1.6}.camera-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.camera-entry-actions .button{padding:.75rem .5rem}.camera-footnote{font-size:.75rem;color:var(--on-camera);margin:.9rem 0 0;text-align:center;line-height:1.6}.album-section{border-top:1px solid var(--ink);padding:1.7rem 0 3.5rem}.section-heading{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:1rem}.section-label{font-size:.78rem;font-weight:550;color:var(--muted);margin-bottom:.6rem}.section-heading h2{margin-bottom:0}.filter-group{display:flex;gap:.35rem}.filter-group button{border:1px solid transparent;background:none;padding:.6rem .9rem;min-height:44px;font-size:.85rem;color:var(--muted)}.filter-group button[aria-pressed=true]{border-color:var(--ink);font-weight:650;color:var(--ink)}.filter-group button:hover{background:var(--soft)}.gallery-status{font-size:.85rem;color:var(--muted);min-height:1.5rem;margin:1.25rem 0}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem .8rem}.media-card{min-width:0}.media-open{display:block;width:100%;padding:0;border:0;background:var(--soft);border-radius:0;position:relative;text-align:left}.media-open img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}.media-open:hover img{filter:brightness(.94)}.media-open:focus-visible{outline-offset:3px}.media-kind{position:absolute;bottom:.55rem;left:.55rem;color:var(--paper);background:var(--ink);font-size:.7rem;padding:.25rem .5rem;line-height:1.4}.media-info{padding:.65rem 0 .2rem}.media-info p{font-size:.8rem;margin:0 0 .3rem;overflow-wrap:anywhere}.media-info .media-caption{color:var(--muted);font-size:.78rem;white-space:pre-wrap}.media-info time{font-size:.7rem;color:var(--muted)}.empty-album{grid-column:1/-1;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1.5rem;border-bottom:1px solid var(--rule);color:var(--muted)}.empty-album .empty-frame{width:64px;height:49px;margin-bottom:1.5rem}.empty-album :is(h2,h3){font-weight:500;font-size:1.25rem;color:var(--ink);margin-bottom:.65rem}.empty-album p{max-width:28rem;margin:0;font-size:.9rem}.load-more{display:flex;margin:2rem auto 0}.notice{border:1px solid var(--edge);background:var(--soft);padding:1rem;font-size:.88rem;overflow-wrap:anywhere}.notice p:last-child{margin-bottom:0}.notice .button{margin-top:.5rem}.site-footer{border-top:1px solid var(--rule);padding:1.5rem 0 2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.7rem 2rem;font-size:.75rem}.site-footer span{max-width:100%}dialog{color:var(--ink);background:var(--paper);border:1px solid var(--edge);border-radius:4px;padding:1.25rem;width:calc(100% - 1.5rem);max-width:560px;max-height:calc(100dvh - 1.5rem);overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:rgb(12 17 13 / .68)}body:has(dialog[open]){overflow:hidden}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:1.2rem;margin-bottom:1.1rem}.dialog-heading h2{font-size:1.4rem;letter-spacing:-.035em;margin:.35rem 0;max-width:24rem}.dialog-heading .button{flex-shrink:0}.capture-dialog{max-width:1100px;padding:1rem}.capture-layout{display:grid;gap:1.5rem}.capture-workspace{background:var(--camera);color:var(--paper);padding:1rem;min-width:0}.capture-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:1rem}.recording-time{font-variant-numeric:tabular-nums;font-size:.78rem}.recording-time:not([hidden]){border:1px solid var(--on-camera);padding:.2rem .45rem}.capture-stage{width:100%;aspect-ratio:4/3;display:grid;place-items:center;min-height:120px;background:#101510;color:var(--on-camera)}.capture-stage video,.capture-stage img{width:100%;height:100%;aspect-ratio:4/3;object-fit:contain;grid-area:1/1}.capture-stage #camera-live{object-fit:cover}.camera-placeholder{grid-area:1/1;text-align:center;padding:1rem;z-index:0;font-size:.9rem}.capture-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.capture-controls .button{font-size:.8rem;padding:.65rem .8rem;flex:1}.camera-fallback{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin-top:.75rem}.camera-fallback .button{font-size:.75rem;min-height:44px}.upload-panel{min-width:0;padding:.25rem .25rem 1rem}.upload-panel h3{margin-bottom:.9rem}.upload-panel p{font-size:.9rem}.field{margin-bottom:1.15rem;display:flex;flex-direction:column;gap:.4rem}.field label{font-size:.85rem;font-weight:600}.field input,.field textarea{border:1px solid var(--edge);border-radius:3px;background:var(--paper);color:var(--ink);padding:.7rem .8rem;width:100%;min-width:0;min-height:48px;font-size:1rem}.field textarea{resize:vertical}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}.field input:read-only{background:var(--soft)}.field-hint{font-size:.75rem}.checkbox-label{display:flex;align-items:start;gap:.75rem;min-height:44px;margin:1.2rem 0;font-size:.8rem;line-height:1.65}.checkbox-label input{width:24px;height:24px;flex-shrink:0;accent-color:var(--moss);margin:2px 0 0}.checkbox-label span{padding:1px 0}.form-status{font-size:.85rem;min-height:1.4rem;margin:.8rem 0 0}.button-row{display:flex;gap:.7rem;flex-wrap:wrap}.share-dialog>p{font-size:.9rem}.qr-image{width:260px;height:260px;aspect-ratio:1;margin:1.5rem auto;background:white;border:1px solid var(--rule);padding:.5rem}.detail-dialog{max-width:960px}.detail-media{background:var(--camera);min-height:140px;display:grid;place-items:center;margin-bottom:1.25rem}.detail-media img,.detail-media video{max-height:65dvh;width:100%;height:auto;object-fit:contain;aspect-ratio:4/3}.detail-caption{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:.6rem}.detail-dialog #detail-meta{font-size:.8rem}.entry-main{margin:3rem 0;padding:2rem 1.3rem;max-width:54rem}.entry-main h1{margin:1.5rem 0}.admin-main{padding:2rem 0 3rem}.admin-intro{margin-bottom:2rem;max-width:50rem}.admin-intro h1{font-size:clamp(2.7rem,5vw,4.25rem)}.header-subtitle{font-size:.8rem}.login-section,.setup-notice{max-width:32rem;border-top:1px solid var(--ink);padding:1.5rem 0}.login-section h2,.setup-notice h2{font-size:1.5rem}.setup-notice code{display:block;background:var(--soft);padding:1rem;font-size:.85rem;white-space:normal;overflow-wrap:anywhere}.setup-notice p{font-size:.9rem}.event-settings{border-top:1px solid var(--ink);padding:1.5rem 0 2.5rem;display:grid;gap:1.5rem}.settings-description p{font-size:.9rem;max-width:27rem}.settings-description h2{font-size:1.8rem}.button-stack{display:flex;flex-wrap:wrap;gap:.6rem}.moderation-note{font-size:.85rem;margin:1.2rem 0}.admin-grid .media-open img{aspect-ratio:1}.moderation-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.65rem}.moderation-actions .button{font-size:.76rem;padding:.6rem .7rem;flex:1}.hidden-label{font-size:.75rem;font-weight:600;padding:.2rem 0;margin:0}.media-card[data-hidden=true] .media-open img{opacity:.65}.admin-grid .media-card{padding-bottom:1rem;border-bottom:1px solid var(--rule)}.confirm-dialog p{font-size:.9rem}
/* The camera is the entire first task, with compact identity and thumb-sized controls.
   A single light shutter is the focal action; brackets repeat the album's framing motif.
   The separate preview places consent beside media on wide screens, below it on phones. */
.camera-body{background:var(--camera);color:var(--paper);min-height:100dvh}
.camera-shell{max-width:900px;margin:auto;padding:0 clamp(1rem,3vw,2rem)}
.camera-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0}
.camera-identity{min-width:0}
.camera-identity h1{font-size:clamp(1.1rem,2.6vw,1.5rem);letter-spacing:-.035em;margin:0 0 .25rem}
.camera-identity p{color:var(--on-camera);font-size:.8rem;margin:0}
.camera-body :focus-visible{outline-color:var(--paper)}
.camera-body dialog :focus-visible{outline-color:var(--moss)}
.camera-body .notice{color:var(--ink)}
.camera-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem 0 .8rem}
.live-stage{display:grid;place-items:center;background:#101510;color:var(--on-camera);width:100%;height:clamp(240px,52dvh,620px);min-width:0}
.live-stage video{width:100%;height:100%;object-fit:cover;grid-area:1/1;min-height:0}
.live-stage .camera-placeholder{margin:0;background:#101510}
#camera-page .camera-footnote{font-size:.8rem;min-height:2.7em;margin:.8rem 0}
.live-controls{display:flex;justify-content:center;gap:.75rem;align-items:center;flex-wrap:wrap}
.live-controls .button{min-height:52px}
.live-controls .shutter{min-width:150px;font-size:1rem}
.camera-footer{text-align:center;color:var(--on-camera);font-size:.72rem;padding:1rem 0 max(1rem,env(safe-area-inset-bottom))}
.camera-footer p{margin:0 0 .25rem}
.preview-dialog{max-width:1000px}
.preview-layout{display:grid;gap:1.5rem}
.preview-workspace{min-width:0}
.preview-workspace .capture-stage{margin-bottom:.75rem}
.preview-workspace .capture-stage img,.preview-workspace .capture-stage video{max-height:55dvh}
.album-main{padding-top:1.5rem}
.album-main .album-section{border-top:0}
.album-main h1{font-size:clamp(2rem,4vw,3rem);margin:0;letter-spacing:-.05em}
@media(min-width:600px){.camera-header{padding:1.2rem 0}.live-stage{height:clamp(300px,58dvh,620px)}.camera-footer{padding-top:1.25rem}}
@media(min-width:850px){.preview-layout{grid-template-columns:1.2fr 1fr}.preview-dialog{padding:1.5rem}.preview-workspace .capture-stage{position:sticky;top:0}.camera-header{padding:1rem 0}}
/* Text zoom reflows the viewfinder and filters instead of widening the page. */
.hero{grid-template-columns:minmax(0,1fr)}
.hero-story{min-width:0}
h1,h2,h3{overflow-wrap:anywhere}
.filter-group{flex-wrap:wrap;max-width:100%}
.mode-switch{max-width:100%;flex-wrap:wrap}
.header-actions{max-width:100%;flex-wrap:wrap}
.moderation-actions .button{overflow-wrap:anywhere}
.event-settings{grid-template-columns:minmax(0,1fr)}
.event-settings>*{min-width:0}
@media(min-width:600px){.site-header{padding:1.7rem 0}.event-identity{order:initial;flex:1;flex-basis:auto;padding:0 0 0 1.5rem;border-top:0;border-left:1px solid var(--rule)}.camera-entry{padding:1.5rem}.camera-invitation{min-height:230px}.workspace-top h2{font-size:.9rem;max-width:none}.hero{padding-top:2rem;gap:2.7rem}.hero-story{max-width:40rem}.hero-copy{font-size:1.05rem}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem 1.1rem}.album-section{padding-top:2rem}.capture-dialog{padding:1.5rem}.capture-layout{gap:1.5rem}.upload-panel{padding:.5rem 0}.event-settings{grid-template-columns:1fr 1.2fr;gap:2rem}.settings-description .button-stack{display:grid;justify-items:start}.entry-main{padding:3rem}.header-actions{gap:1.2rem}.share-dialog,.detail-dialog,.confirm-dialog{padding:1.6rem}.header-subtitle{margin-right:auto;margin-left:1rem}}
@media(min-width:960px){.site-header{gap:2rem;padding:2rem 0}.wordmark{font-size:1.55rem}.event-identity{padding-left:2rem}.hero{grid-template-columns:1.08fr 1fr;gap:clamp(2rem,5vw,5rem);padding:3.5rem 0 4.5rem;align-items:center}.hero-story{order:1}.camera-entry{order:2;max-width:580px}.camera-invitation{min-height:250px;margin:1.7rem .5rem}.camera-entry-actions .button{min-height:52px}.camera-footnote{font-size:.76rem}.hero-copy{font-size:1.05rem;max-width:26rem}.story-note{margin-top:2.5rem}.media-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1.25rem}.album-section{padding-top:2.3rem}.gallery-status{margin:1.5rem 0}.capture-layout{grid-template-columns:1.35fr 1fr;gap:1.8rem}.upload-panel{padding:.5rem .5rem}.capture-controls .button{font-size:.85rem}.admin-main{padding-top:3rem}.admin-intro{margin-bottom:2.8rem}.event-settings{grid-template-columns:1fr 1fr;gap:5rem;padding:2.3rem 0 3.5rem}.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.entry-main{margin:5rem 0}.site-footer{padding:1.8rem 0 2.5rem}}
@media(min-width:1300px){.hero{min-height:560px}.camera-invitation{min-height:270px}.admin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:370px){.header-actions{gap:.5rem}.header-actions .text-link{font-size:.75rem}.wordmark{font-size:1.15rem}.workspace-top{flex-wrap:wrap}.camera-entry-actions{grid-template-columns:1fr}.capture-controls{flex-direction:column}.media-grid{gap:1rem .6rem}.filter-group button{padding:.6rem .75rem}.qr-image{width:100%;height:auto;max-width:260px}.dialog-heading{gap:.65rem}.dialog-heading h2{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){.button,.mode-switch button[aria-pressed=true],.filter-group button[aria-pressed=true]{border:1px solid ButtonText}.media-kind{border:1px solid CanvasText}}
