:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#111015;color:#f3ebdf}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 75% 0%,#332021 0%,transparent 55%),#111015;min-height:100vh}
main{width:min(1040px,100%);margin:auto;padding:clamp(1rem,3vw,2.5rem)}
header{margin-bottom:1.4rem}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:750;color:#ffd294}.eyebrow span{padding:0 .2rem}h1,h2{font-family:Georgia,serif;margin:0}h1{font-size:clamp(2.35rem,7vw,4.25rem);line-height:1}h2{font-size:1.33rem}
.intro,.links,.performance p,.hint,.caption{color:#cec4b7;line-height:1.5}.intro{max-width:50ch}.links{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1.15rem;font-size:.85rem}.links a{display:inline-flex;align-items:center;min-height:44px}
a{color:#ffd294}a:hover{color:#fff4d9}
.bench,.performance{border:1px solid #57453c;background:#1c1820;border-radius:.8rem;overflow:hidden}
.controls{display:flex;flex-wrap:wrap;gap:.65rem 1rem;padding:.75rem 1rem;background:#241a20}
fieldset{border:0;min-inline-size:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem}legend{font-size:.78rem;color:#e4d2bb;font-weight:650;margin-bottom:.25rem;padding:0}
label{position:relative;display:inline-flex;cursor:pointer}
label input{position:absolute;opacity:0;width:1px;height:1px}
label span{display:flex;align-items:center;background:#19161c;border:1px solid #715e55;min-height:44px;padding:.3rem .69rem;border-radius:.38rem;color:#f7eadb;font-size:.87rem;white-space:nowrap}
label:hover span{background:#34272c}label input:checked+span{color:#1e1110;background:#ffd294;border-color:#ffe1ba;font-weight:700}
label input:focus-visible+span,a:focus-visible{outline:2px solid #fff8d8;outline-offset:2px}
fieldset:disabled{opacity:.6}fieldset:disabled label{cursor:not-allowed}
#stage{background:#08090e;position:relative;height:clamp(250px,52vw,560px);overflow:hidden}
#preview{width:100%;height:100%;display:block}
#preview-status{position:absolute;inset:auto 1rem 1rem;width:max-content;max-width:calc(100% - 2rem);margin:0;padding:.6rem .8rem;border:1px solid #8d6b53;border-radius:.3rem;color:#fff5e5;background:#201919;line-height:1.45}
.caption{margin:0;padding:.55rem 1rem;font-size:.86rem}
.performance{padding:.9rem 1rem;margin-top:1rem}.performance p,.hint{font-size:.83rem;margin:.25rem 0 .65rem}.hint{margin-top:.85rem}
dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:.45rem;margin:0}dl div{background:#262029;padding:.55rem .65rem;border-radius:.3rem}dt{font-size:.72rem;color:#e0cdb8}dd{font-variant-numeric:tabular-nums;margin:.2rem 0 0;font-size:.9rem;font-weight:700}
#swatches{padding:.85rem 1rem}
#swatches p{color:#cec4b7;line-height:1.5;font-size:.86rem}
.swatch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.75rem}
figure{margin:0;overflow:hidden;border:1px solid #57453c;border-radius:.4rem}
figure img{display:block;width:100%;max-height:350px;aspect-ratio:1;object-fit:cover;background:#211b22}
figcaption{padding:.55rem .75rem;background:#262029;font-weight:650}
#stage.unavailable{height:auto;min-height:0;padding:1rem}#stage.unavailable canvas{display:none}#stage.unavailable #preview-status{position:static;max-width:100%}
.quality{display:flex;min-width:0;flex-direction:column;gap:.25rem}.quality label{font-size:.78rem;color:#e4d2bb;font-weight:650;cursor:default}.quality select{min-height:44px;min-width:7.2rem;padding:.42rem .65rem;border-radius:.38rem;border:1px solid #715e55;background:#19161c;color:#f7eadb;font:inherit;font-size:16px}.quality select:focus-visible{outline:2px solid #fff8d8;outline-offset:2px}
