:root { color-scheme:dark; --paper:#f1dfc8; --muted:#c7b8ac; --line:#655451; }
* { box-sizing:border-box; }
body { margin:0; color:var(--paper); background:#231d21; font:1rem/1.65 system-ui,sans-serif; }
header,main { width:min(calc(100% - 2.5rem),1160px); margin:auto; }
header { min-height:4.25rem; border-bottom:1px solid var(--line); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:1rem; }
header a { color:var(--paper); text-underline-offset:.3em; width:fit-content; }
header a:last-child { justify-self:end; }
.brand,h1,.variant { font-family:Georgia,"Yu Mincho",serif; }
.brand { letter-spacing:.12em; }
main { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(16rem,1fr); align-items:center; gap:clamp(1.5rem,5vw,5rem); padding:clamp(1rem,4vw,3rem) 0; }
.stage { height:clamp(24rem,74svh,51rem); overflow:hidden; position:relative; isolation:isolate; border:1px solid #655251; background:radial-gradient(ellipse at 32% 28%,#68514a,#493e40 52%,#302b32); touch-action:none; cursor:grab; }
.stage:active { cursor:grabbing; }
.stage img,.stage canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; image-rendering:pixelated; }
[hidden] { display:none !important; }
.kind { margin:0; font-size:.9rem; letter-spacing:.13em; color:#e6bd86; }
h1 { font-weight:500; line-height:1.2; font-size:clamp(2rem,3.8vw,2.8rem); margin:.48rem 0; text-wrap:balance; }
.variant { margin:0; color:var(--muted); font-size:1.25rem; }
.description { margin:1.6rem 0; max-width:35ch; line-height:1.9; }
fieldset { padding:0; margin:0; border:0; }
legend { color:var(--muted); margin-bottom:.4rem; }
.angles,.lens { display:flex; gap:.4rem; flex-wrap:wrap; margin:.4rem 0; }
button { min-height:42px; padding:.45rem .75rem; border:1px solid #897369; border-radius:.2rem; font:inherit; color:var(--paper); background:#34292c; cursor:pointer; }
button[aria-pressed=true],button:hover { background:#695044; }
button:disabled { opacity:.5; cursor:default; }
button:focus-visible,a:focus-visible,.stage:focus-visible { outline:3px solid #f1c78e; outline-offset:2px; }
#gesture,#status { font-size:.93rem; color:var(--muted); }
#status:empty { display:none; }
.visually-hidden { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
@media(max-width:710px) { main { grid-template-columns:1fr; gap:1.2rem; } .stage { height:clamp(18rem,53svh,32rem); } .description { margin:.8rem 0; max-width:50ch; } }
