@font-face{font-family:Estedad;src:url('fonts/Estedad-Variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--wine:#441015;--rose:#aa766c;--gold:#a58a60;--paper:#f7f1e8;--ink:#66564d;--line:#967f5936}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{background:radial-gradient(ellipse at 50% 0,#fcf9f4,var(--paper) 68%);color:var(--ink);font-family:Estedad,serif;font-weight:350}
a{color:inherit;text-decoration:none}
.photo-header{height:76px;padding:0 clamp(1rem,6vw,5rem);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.back-link{display:inline-flex;gap:.6rem;align-items:center;color:#806f5e;font-size:.82rem}
.monogram{width:42px;height:42px;border:1px solid #786f5055;border-radius:50%;display:grid;place-items:center;color:var(--wine);font:italic 1rem Georgia,serif}
.photo-page{min-height:calc(100svh - 76px);padding:clamp(1.2rem,5vw,3.5rem) 1rem;display:grid;place-items:center}
.photo-card{position:relative;width:min(100%,650px);padding:clamp(2rem,6vw,4rem);background:#fffdf9;border:1px solid #a58a602b;box-shadow:0 24px 65px #3b21130e;text-align:center;overflow:hidden}
.photo-card:before{content:'';position:absolute;inset:11px;border:1px solid #a58a601d;pointer-events:none}
.heart-seal{position:relative;margin:0 auto 1rem;width:58px;height:58px;border:1px solid #b88978a8;border-radius:50%;display:grid;place-items:center;color:var(--rose);font:2.25rem/1 Georgia,serif}
.eyebrow{margin:0 0 .65rem;color:var(--gold);font:500 .64rem/1.7 Georgia,serif;letter-spacing:.22em}
h1{margin:.3rem 0 1rem;color:var(--wine);font-size:clamp(2rem,7vw,3.1rem);font-weight:450;line-height:1.5}
.intro{max-width:440px;margin:0 auto;color:#74645b;font-size:.96rem;line-height:2}
.privacy-note{max-width:460px;margin:1rem auto 1.8rem;color:#8d7968;font-size:.77rem;line-height:1.9}
.file-picker{min-height:142px;padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;border:1px dashed #9c806c8a;background:#faf6ef;color:var(--wine);cursor:pointer;-webkit-tap-highlight-color:transparent}
.camera-mark{width:35px;height:35px;border:1px solid #b88978a8;border-radius:50%;display:grid;place-items:center;color:var(--rose);font:1.6rem/1 Georgia,serif}
.file-picker small{color:#9a8776;font-size:.69rem}
#photoInput{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.file-picker.focused{outline:2px solid var(--rose);outline-offset:3px}
.photo-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:.55rem;margin-top:.8rem}
.preview-tile{min-width:0;border:1px solid var(--line);padding:.3rem;background:white}
.preview-tile img{width:100%;height:92px;object-fit:cover;display:block}
.preview-tile span{display:block;padding:.25rem .1rem 0;color:#857363;font-size:.63rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.submit-button{width:min(100%,260px);min-height:48px;margin:1.2rem auto 0;padding:.7rem 1rem;border:0;background:var(--wine);color:#f7ebdd;display:inline-flex;align-items:center;justify-content:center;gap:1rem;font:500 .86rem Estedad,serif;cursor:pointer;transition:opacity .2s,transform .2s}
.submit-button:disabled{opacity:.45;cursor:not-allowed}
.submit-button:not(:disabled):active{transform:translateY(1px)}
.upload-status{min-height:1.5rem;margin:.75rem 0 0;color:#786f50;font-size:.78rem}
.upload-status.error{color:#9c3232}
.back-bottom{display:inline-block;margin-top:.55rem;color:#8a7766;font-size:.74rem;border-bottom:1px solid #967f5945;padding-bottom:.2rem}
.name-label{display:block;margin:0 0 .4rem;text-align:right;color:var(--wine);font-size:.8rem}
#uploaderName{display:block;width:100%;min-height:46px;margin-bottom:.25rem;padding:.7rem .85rem;border:1px solid #a58a604d;border-radius:2px;background:#fffdf9;color:var(--ink);font:400 .88rem Estedad,serif;outline:none}
#uploaderName:focus{border-color:var(--rose);box-shadow:0 0 0 3px #aa766c1a}
.name-hint{display:block;margin:0 0 1rem;text-align:right;color:#9a8776;font-size:.67rem;line-height:1.7}
@media(max-width:480px){.photo-header{height:64px;padding-inline:1rem}.photo-page{min-height:calc(100svh - 64px);padding:1rem .75rem}.photo-card{padding:2rem 1.3rem}.photo-card:before{inset:7px}.intro{font-size:.9rem}.file-picker{min-height:128px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.preview-tile .preview-unavailable{height:92px;display:grid;place-items:center;text-align:center;white-space:normal;line-height:1.6;padding:.5rem;background:#f6f0e8;color:#857363}
