:root{color-scheme:light;font-family:system-ui,sans-serif;background:#f1ebde;color:#253535;--line:#cbbda8;--soot:#233a38;--cream:#fff9ed}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 15% 0,#fffaf0,#efe7d8 70%)}
main{max-width:42rem;margin:auto;padding:1.3rem 1.15rem 2.7rem}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:600}
h1{font-size:1.86rem;letter-spacing:.02em}
h2{font-size:1.75rem;line-height:1.32}
h3{font-size:1.05rem}
.expo{font-size:.64rem;letter-spacing:.19em;color:#805c38;margin-bottom:.3rem}
.masthead{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:.8rem;padding-bottom:.85rem;border-bottom:1px solid var(--line)}
.receipt{align-self:center;font-size:1rem}
.receipt[open]{width:100%}
summary{cursor:pointer;min-height:2.75rem;padding:.65rem .2rem;color:#24473b;font-weight:700}
label{display:block;margin-bottom:.45rem;color:#504e44}
.claim-row,.actions,.moments{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
input,button{font:inherit;border:1px solid #aa9e89;border-radius:.42rem;padding:.56rem .72rem;min-height:2.75rem}
input{flex:1;min-width:0;background:#fffaf1;color:#202d29;letter-spacing:.06em}
button{background:#fbf4e6;color:#293b35;cursor:pointer}
form button,#replay{background:#294742;color:#fff9e9;border-color:#294742;font-weight:650}
button:disabled{color:#5b5145;background:#eee4d3;border-color:#a2947d;cursor:default}
:focus-visible{outline:2px solid #9c632c;outline-offset:3px}
#status,#when{font-size:.94rem;line-height:1.5;color:#42392e}
#status{margin:.65rem 0}
#status:empty{display:none}
nav{display:flex;flex-wrap:wrap;gap:.45rem;margin:.25rem 0 1.05rem}
nav button{font-size:.94rem;background:#fbf4e6;border-color:#aa9e89;min-height:2.75rem}
nav button[aria-pressed=true]{background:#eadcc3;border-color:#b99767}
article{padding-top:.25rem}
.heading{margin-bottom:.75rem}
#place{font-size:.94rem;color:#583a27;letter-spacing:.04em;margin-bottom:.3rem}
.gallery{background:#182c31;border:1px solid #89745c;border-radius:.64rem;overflow:hidden}
canvas{width:100%;height:auto;display:block;touch-action:pan-y;cursor:grab}
figcaption{display:flex;justify-content:space-between;align-items:center;gap:.75rem;color:#fff4db;padding:.3rem .75rem;font-size:.94rem;border-top:1px solid #89745c}
#rotate{border:0;color:#f2dfbd;background:none;font-size:1.35rem;padding:.25rem .55rem}
.moments{margin-top:.75rem}
.moments button{flex:1 1 9rem}
#letter{margin-top:1rem;padding:.85rem .75rem;background:#fbf0d8;border:1px solid #c7ab7c;border-radius:.56rem;display:grid;grid-template-columns:2rem minmax(0,1fr);align-items:center;gap:.6rem}
.seal{width:1.69rem;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#873d38;color:#ffe1a2}
#letter button{grid-column:2;justify-self:start}
#words{grid-column:1/-1;white-space:pre-wrap;overflow-wrap:anywhere;color:#4a382c}
#words:empty{display:none}
.formats{border-top:1px solid var(--line);margin-top:1rem}
.actions button{min-height:2.75rem;font-size:.9375rem}
#ar-link{display:inline-flex;align-items:center;gap:.45rem;color:#24473b;min-height:2.75rem}
#ar-thumb{width:2rem;border-radius:.3rem}
[hidden]{display:none!important}
