:root{--lotus:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20120%2048%22%20fill%3D%22none%22%20stroke%3D%22%23aa824c%22%20stroke-width%3D%221.35%22%3E%3Cpath%20d%3D%22M4%2033q14%206%2027-1t20%200m18%200q10-6%2020%200t27%201M37%2019q14-1%2023%2016-18%201-23-16zm46%200q-14-1-23%2016%2018%201%2023-16zM60%207q-13%2015%200%2026%2013-11%200-26zM46%2011q12%204%2014%2022m14-22q-12%204-14%2022M50%2039q10%205%2020%200%22/%3E%3Ccircle%20cx%3D%224%22%20cy%3D%2233%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%22116%22%20cy%3D%2233%22%20r%3D%222%22/%3E%3C/svg%3E");--weave:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22%23d6b780%22%20stroke-opacity%3D%22.24%22%20stroke-width%3D%22.8%22%3E%3Cpath%20d%3D%22M32%202q6%2017%2020%2018-1%2010%2010%2012-11%202-10%2012-14%201-20%2018-6-17-20-18%201-10-10-12%2011-2%2010-12Q26%2019%2032%202Z%22/%3E%3Cpath%20d%3D%22M32%2017q-8%208%200%2015%208-7%200-15zm0%2015q-8%208%200%2015%208-7%200-15zm-15%200q8-8%2015%200-7%208-15%200zm15%200q8-8%2015%200-7%208-15%200z%22/%3E%3C/svg%3E");--royal:#152342;--wine:#602f35;--brass:#b59356;--sheet:#fff8e8;--lift:0 2px 3px #120c091a,0 10px 22px #131d1538,0 32px 58px -24px #0d1e18a8}
/* Woven surround and ivory invitation paper. */
body,body.shooting{background:var(--weave);background-color:var(--royal)}
header{height:72px;color:#f7e5bd;border-color:#b798614f;width:min(90%,1080px)}
header .seal{border:1px solid #bb9c6380;border-radius:50%;width:46px;height:46px;text-align:center;line-height:44px;font-size:25px;box-shadow:inset 0 0 0 3px #233e33,inset 0 0 0 4px #c3ad763a}
#home,#gate,#album,#result,#processing,dialog{
 background:radial-gradient(ellipse at top left,#fffdf5,transparent 64%),linear-gradient(130deg,#efe3ca,#fff8e9 54%,#f0e2c8);color:var(--ink);
 border:1px solid #c7a468;border-radius:30px;box-shadow:inset 0 0 0 5px #faf2de,inset 0 0 0 6px #ba976c8c,var(--lift)
}
#home{padding:clamp(22px,3.5vw,50px);gap:clamp(20px,3vw,48px);max-width:1050px;grid-template-columns:1fr 1fr}
.portrait{border:0;outline:0;border-radius:48% 48% 20px 20px;overflow:hidden;background:#755841;padding:5px;box-shadow:0 0 0 1px #987144,0 0 0 3px #f8e9cd,0 0 0 4px #b49869,0 14px 24px -8px #47311d88}
.portrait img{border-radius:inherit;height:clamp(420px,63svh,640px);object-position:50% 38%}
.portrait:after{content:'';position:absolute;inset:5px;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 22px #2616094d}
#home .invitation{padding:0} .invitation:before,#gate form:before,#processing:before,#result:before{content:'';display:block;width:92px;height:38px;background:var(--lotus) center/contain no-repeat;margin:0 auto 18px}
#home h1{font-size:clamp(3.8rem,6vw,6.4rem);color:#243b60}#home h1 i{color:var(--wine)}#home .note{color:#5c5145}
#enter,#gate form button,#download.button,#share,#retrySave{background:linear-gradient(#784249,#54272e);color:#fff6de;border:1px solid #a58157;box-shadow:inset 0 1px #ffffff35,0 3px 0 #43262c,0 8px 14px #653f302a}
#gate,#album,#result,#processing{padding:clamp(24px,4vw,48px)}#gate{min-height:65svh}#album .heading{border-bottom:1px solid #bfaa87;padding-bottom:18px}
#grid button{border:1px solid #c7ae84;background:#fff8e9;border-radius:16px;box-shadow:0 7px 18px #492c1e22}#grid img,#large,#print{border-radius:10px}
dialog{padding:25px}dialog::backdrop{background:#101b39e0}#result #print{max-height:54svh}#processing{margin:12svh auto}
body.shooting main{padding:10px}
#camera{width:min(100%,520px);min-height:calc(100svh - 20px);border-radius:26px;padding:8px clamp(10px,3vw,22px) max(12px,env(safe-area-inset-bottom));border:1px solid #af93624f;background:linear-gradient(155deg,#ffffff0d,transparent 70%),var(--royal);box-shadow:inset 0 1px #f1d2a52b,var(--lift)}
.camera-top{color:#f6e6c6;padding:5px 0 10px}.camera-top h2{font-size:24px}.camera-top button,#flip{background:#1b3262;border:1px solid #b596615e;box-shadow:inset 0 1px #ffffff18,0 3px 8px #0003}
#camera .view{border-radius:20px;background:#101d3a;box-shadow:0 0 0 1px #bc9e65,0 0 0 4px #101d3a,0 8px 24px #0005;width:min(100%,460px,calc((100svh - 272px) * .75))}
#camera video{object-fit:cover;display:block}#camera .deck{margin-top:12px}.shutter-row{margin-top:10px}#shoot{border-color:#d9bb83;background-color:#fff1d4;box-shadow:0 5px 12px #08181096}
#filter button[aria-pressed=true]{background:var(--wine);border-color:#d7b57e;color:#fff4da}#filter button{border-radius:13px}#status{color:#f1e8d6}
@media(max-width:680px){
 header{height:56px}header .seal{height:36px;width:36px;line-height:34px;font-size:21px}
 main{padding:16px 12px 28px}#home{padding:19px 18px 25px;border-radius:25px}
 .portrait{border-radius:44% 44% 14px 14px;padding:3px}.portrait img{height:clamp(200px,32svh,280px);object-position:50% 25%}
 #home .invitation{padding:14px 0 0}.invitation:before{width:66px;height:25px;margin:0 auto 4px}#home h1{font-size:clamp(2.8rem,11vw,4rem)}
 #gate{gap:0}#gate form:before{margin-bottom:6px}#album{padding:20px}dialog{padding:20px}
}
/* Flat controls. Depth belongs to the surface underneath each control. */
button,.button,#enter,#gate form button,#download.button,#share,#retrySave,#filter button,.camera-top button,#flip,#shoot,.light{
 box-sizing:border-box;max-inline-size:100%;min-inline-size:0;
 text-align:center;line-height:1.25;overflow-wrap:anywhere;
}
#enter,#gate form button,#download.button,#share,#retrySave{
 background:#67343c;border:1px solid transparent;border-radius:14px;
 box-shadow:0 4px 10px #442c281f;padding:14px 26px;
}
.light,.camera-top button,#flip{box-shadow:0 2px 6px #10251e26}
.camera-top button,#flip,#shoot{
 display:inline-grid;place-items:center;padding:0;aspect-ratio:1;border-radius:50%;flex-shrink:0
}
#shoot{padding:4px;box-shadow:0 3px 8px #0d211b40}
#flip svg{display:block;width:21px;height:21px}
.seal{display:inline-flex;align-items:center;justify-content:center;gap:1px;flex-shrink:0;letter-spacing:-1px;white-space:nowrap}
header .seal{font-size:21px;line-height:1;box-shadow:none}.seal span{font-size:11px;line-height:1}
#filter{flex-wrap:wrap}#filter button{min-width:52px;padding-inline:7px}
#actions,.heading{flex-wrap:wrap}#actions>*{flex-shrink:1}
#sharing>div,.heading>div,.invitation,form{min-width:0}
#sharing{flex-wrap:wrap}#sharing>div{flex:1 1 160px}
button:focus-visible,.button:focus-visible,a:focus-visible{outline:3px solid #ae8646;outline-offset:3px}
@media(max-width:680px){header .seal{font-size:17px}.seal span{font-size:9px}}
/* Reserve room for the controls first. The 3:4 finder uses the space left over. */
@media(max-width:700px),(max-height:600px){
 body.shooting main{padding:0}
 #camera{width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);
  justify-items:center;align-items:center;gap:8px;border:0;border-radius:0;
  padding:max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .camera-top,.deck{max-width:460px}.camera-top{padding:0}
 #camera .view{height:100%;width:auto;min-width:0;max-width:100%;max-height:calc((100vw - 32px)*1.33333);aspect-ratio:3/4}
 #camera .deck{margin:0}.shutter-row{margin:4px auto 0}.deck #status{margin:3px 0 6px}
}
@media(max-width:370px),(max-height:650px){
 #camera{gap:5px}#camera #shoot{width:58px;height:58px}#camera #filter{margin:0}#camera #filter button:before{height:8px}
}
@media(orientation:landscape) and (max-height:600px){
 #camera{grid-template-columns:minmax(0,1fr) minmax(195px,34%);grid-template-rows:auto minmax(0,1fr);column-gap:18px;padding-inline:max(18px,env(safe-area-inset-left),env(safe-area-inset-right))}
 #camera .camera-top{grid-column:1/-1;max-width:none}#camera .view{grid-column:1;max-height:none}
 #camera .deck{grid-column:2;width:100%}#camera #filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shutter-row{grid-template-columns:1fr auto 1fr}.shutter-row .mode{font-size:10px}
}

/* Both names share one signature treatment on the invitation. */
:root{--ink:#45392f}
#home h1{
 font-family:"Snell Roundhand","Apple Chancery","Segoe Script","URW Chancery L",Georgia,cursive;
 font-style:italic;font-weight:400;letter-spacing:-.045em;line-height:1.12;color:var(--wine)
}
#home h1 i{font:inherit;letter-spacing:inherit;color:inherit}
#nativePhoto{justify-self:center;background:transparent;color:#f7dfb4;border:1px solid #b69b6a80;font-size:12px;padding:5px 8px;border-radius:12px;min-height:44px;max-width:70px}
html,body{overscroll-behavior:none}
html{background-color:var(--royal)}
body{min-height:100vh;min-height:100dvh;font-family:"DM Sans",sans-serif}
header{padding-top:env(safe-area-inset-top);height:calc(72px + env(safe-area-inset-top))}
body:not(.shooting) main{padding-bottom:max(28px,env(safe-area-inset-bottom));padding-inline-start:max(clamp(12px,4vw,60px),env(safe-area-inset-left));padding-inline-end:max(clamp(12px,4vw,60px),env(safe-area-inset-right))}
header .seal{height:auto;width:auto;border:0;border-radius:0;background:none;box-shadow:none;font:400 34px/1 "Italiana",Georgia,serif;letter-spacing:-2px;gap:3px}
header .seal span{font-size:.65em}
header,#home h1,h1,h1 i,h2,.camera-top h2,#count{font-family:"Cormorant Garamond",Georgia,serif}
#home h1,h1 i{font-style:italic}
.tamil{font-family:"Noto Serif Tamil",serif}
dialog{overscroll-behavior:contain}
@media(max-width:680px){header{height:calc(56px + env(safe-area-inset-top))}header .seal{font-size:30px}}

header .seal{padding:5px 4px;line-height:1.15}

.signin{padding:32px;background:#fff8e8;border-radius:24px}.signin input{display:block;margin:6px auto 16px;padding:12px;width:min(100%,320px);font:inherit}.signin label{display:block}

body.shooting #private-app>header{display:none}
