:root{--ink:#203e78;--paper:#faf8f2;color:var(--ink);background:var(--paper);font:16px/1.55 "Avenir Next",Arial,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at 16% 55%,#e9edf16b,transparent 55%),var(--paper);min-height:100svh}header{margin:0 auto;width:min(91%,1250px);height:80px;border-bottom:1px solid #203e7835;display:flex;align-items:center;justify-content:space-between;font:italic 18px Georgia,serif}.seal{font:italic 31px Georgia;letter-spacing:-3px}.seal span{font-size:16px}main{max-width:1240px;margin:auto;padding:32px clamp(18px,4vw,60px)}#home{min-height:min(77svh,850px);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6%}.art canvas{width:100%;display:block;max-height:74svh;object-fit:contain}.invitation{text-align:center}.eyebrow{text-transform:uppercase;letter-spacing:.26em;font-size:.8rem;font-weight:600}h1,h2{font-family:Georgia,serif;font-weight:400}h1{font-size:clamp(4rem,6.8vw,7.2rem);letter-spacing:-.07em;line-height:1;margin:22px 0 14px}h1 i{font-family:"Snell Roundhand","Apple Chancery",Georgia,cursive;font-weight:400;letter-spacing:-.055em}.tamil{font-size:1.1rem;color:#5e7190}.rule{display:flex;align-items:center;justify-content:center;gap:12px;color:#a28854}.rule:before,.rule:after{content:"";width:55px;height:1px;background:#bbac8c}.note{max-width:360px;margin:18px auto 25px;color:#46546b}button,.button,select{font:inherit;border-radius:30px}button,.button{display:inline-block;cursor:pointer;padding:13px 27px;border:1px solid transparent;background:var(--ink);color:white;text-decoration:none}button:hover,.button:hover{filter:brightness(1.16)}button:disabled{opacity:.54;cursor:default}.light,select{color:var(--ink);border:1px solid #b5bfd1;background:#ffffff80;padding:9px 15px}.link{display:block;margin:8px auto;background:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:4px}section:not(#home){max-width:550px;margin:auto;text-align:center}h2{font-size:clamp(2rem,5vw,3.2rem);letter-spacing:-.045em;line-height:1.1;margin:10px 0 22px}.view{position:relative;overflow:hidden;border-radius:15px;aspect-ratio:4/3;background:#232d40}video{width:100%;height:100%;object-fit:cover}#count{position:absolute;inset:0;display:grid;place-items:center;color:white;text-shadow:0 1px 12px #000;font:5rem Georgia}.toolbar{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:14px auto}#print{display:block;max-width:100%;max-height:60svh;margin:0 auto 18px;box-shadow:0 8px 32px #1d355329}#processing{padding:20vh 0}@media(max-width:680px){header{height:56px}main{padding:18px 16px 28px}#home{display:flex;flex-direction:column;gap:12px}.art{width:min(100%,255px)}.art canvas{height:clamp(160px,27svh,255px)}h1{font-size:clamp(3.3rem,13vw,5rem);margin:9px 0}.eyebrow,.tamil{margin:6px}.note{margin:12px auto 18px;max-width:330px}.rule{margin-top:8px}}
body{background:radial-gradient(ellipse at 18% 56%,#e9dccd80,transparent 62%),#faf7ef}
body.shooting{background:#121515;color:#fff}body.shooting>header{display:none}body.shooting main{padding:0;max-width:none}
#camera{max-width:510px;min-height:100svh;margin:auto;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:env(safe-area-inset-top) 10px max(8px,env(safe-area-inset-bottom));box-sizing:border-box}
.camera-top,.deck{width:min(100%,420px)}.camera-top,.shutter-row{display:flex;align-items:center;justify-content:space-between}.camera-top{padding:5px 0}.camera-top h2{font:italic 21px Georgia;margin:0}.camera-top span{color:#e0c38d;font-size:.83rem}.camera-top button,#flip{background:#313735;color:white;width:44px;height:44px;padding:0}.camera-top button{font-size:26px}.view{flex:none;aspect-ratio:2/3;width:min(100%,420px,calc((100svh - 250px) * .6667));min-width:165px;border-radius:5px;background:radial-gradient(ellipse at 50% 32%,#354642,#1f2725 60%,#131a18)}#progress{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:5px;background:#101513a8;padding:7px 10px;border-radius:18px}#progress b{width:10px;height:4px;background:#bbc0bb;border-radius:3px}#progress .done{background:#efc87d}
#filter{border:0;margin:4px 0;padding:0;display:flex;justify-content:center;gap:6px}#filter legend{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}#filter button{background:transparent;border:1px solid transparent;padding:5px 8px;color:#d3d8d3;font-size:14px;min-height:44px;border-radius:12px}#filter button:before{content:'';display:block;margin:0 auto 3px;width:25px;height:13px;border-radius:3px;background:linear-gradient(145deg,#eadbb9 35%,#b66e53 36% 58%,#566851 59%);filter:var(--look)}#filter button[aria-pressed=true]{border-color:#bc9a61;color:#f6d59a;background:#292c25}#status{font-size:14px;line-height:1.3;margin:8px 0;color:#dfded4}#shoot{width:66px;height:66px;border:3px solid white;padding:4px;background:#fcfaf4;background-clip:content-box;border-radius:50%}#shoot:active{transform:scale(.94)}#flip svg{width:23px;vertical-align:middle}.shutter-row{display:grid;grid-template-columns:1fr auto 1fr;justify-items:center;margin:6px auto 0}.mode{font-weight:600;letter-spacing:.12em;font-size:12px;color:#ebc579}#camera button:focus-visible{outline:3px solid #e9c57f;outline-offset:2px}
@keyframes ink-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes screen-out{to{opacity:0}}
@keyframes screen-in{from{opacity:0}}
@media(prefers-reduced-motion:no-preference){
 .invitation h1,#gate h1{animation:ink-appear 1.15s cubic-bezier(.2,.68,.25,1) both}
 .invitation .tamil,.invitation .note,#gate form>p:not(.eyebrow){animation:ink-appear .95s .16s ease-out both}
 ::view-transition-old(root){animation:screen-out .23s ease-in both}
 ::view-transition-new(root){animation:screen-in .43s .16s ease-out both}
}
#home{position:relative;max-width:1000px;margin:0 auto;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:0;min-height:auto;background:#f7efdf;border:1px solid #c8b595;box-shadow:0 12px 50px #57472a10}
.portrait{position:relative;background:#7c8460;border:8px solid #eee4cd;outline:1px solid #a29573;outline-offset:-5px}.portrait img{width:100%;display:block;height:clamp(475px,72svh,720px);object-fit:cover;object-position:55% 63%}
#home .invitation{padding:24px clamp(16px,3vw,54px)}#home .eyebrow{color:#7f4638}#home h1{font-size:clamp(3.6rem,6.2vw,6.3rem)}#home .tamil{display:flex;justify-content:center;gap:12px;align-items:center;color:#795641}#home .tamil:before,#home .tamil:after{content:'';width:30px;height:1px;background:#b39974}#home .note{max-width:310px}#enter{background:#264b46}
#camera{max-width:900px}.camera-top,.deck{width:min(100%,720px)}#camera .view{aspect-ratio:3/4;width:min(100%,480px,calc((100svh - 250px) * .75))}.shutter-row{max-width:410px}
@media(max-width:680px){#home{display:block;max-width:440px}.portrait{border-width:5px}.portrait img{height:clamp(215px,36svh,330px);object-position:50% 27%}#home .invitation{padding:18px 16px 23px}#home h1{font-size:clamp(2.9rem,11vw,4.5rem);line-height:1.03}#home h1 br{display:none}#home h1 i{display:block}#home .note{margin:10px auto 15px}#home .eyebrow{margin-top:0}}
