:root { color-scheme: light; --paper: #f9f2de; --ink: #222b39; --muted: #4e5460; --rule: #9a846d; --red: #9a3b22; }
* { box-sizing: border-box; }
body { margin: 0; background: #e8d8bf; color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
main { width: min(100% - 2rem, 59rem); margin: 0 auto; padding: 1.25rem 0 3rem; }
a { color: var(--red); text-underline-offset: .2em; }
header { margin: 1.6rem 0 1.25rem; }
h1 { font: bold clamp(2.3rem, 8vw, 5rem)/.95 Georgia, serif; letter-spacing: -.05em; margin: .3rem 0; }
h2 { font: 700 1.55rem/1.15 Georgia, serif; margin: 0; }
p { margin: .45rem 0 .8rem; }
.imprint, label, legend, figcaption { font: 750 .75rem/1.3 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.imprint { color: var(--red); margin: 0; }
.bench { padding: clamp(.8rem, 4vw, 1.5rem); background: var(--paper); border: 1px solid var(--rule); border-top: .35rem solid var(--red); box-shadow: .25rem .3rem #bc987c; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem .8rem; }
.controls label { display: grid; gap: .25rem; }
select { min-height: 2.75rem; max-width: 100%; padding: .3rem .5rem; border: 1px solid var(--rule); color: var(--ink); background: #fffaf0; font: 500 .95rem/1.2 system-ui, sans-serif; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
figure { margin: 0; border: 1px solid var(--rule); background: #fffaf0; padding: .35rem; }
.plate { position: relative; overflow: hidden; background: #222; }
canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.target { position: absolute; transform: translate(-50%, -50%); width: .8rem; height: .8rem; border: 2px solid #ffb08b; box-shadow: 0 0 0 1px #21232b; pointer-events: none; }
figcaption { padding: .6rem .2rem .25rem; }
figcaption .imprint { margin-inline-end: .4rem; }
.caption { color: var(--muted); font-size: .94rem; }
fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .85rem; margin: 0; min-width: 0; border: 1px dashed var(--rule); }
legend { padding: 0 .3rem; }
input[type="range"] { display: block; width: 100%; height: 2rem; margin: .1rem 0 0; accent-color: var(--red); }
#sample { grid-column: 1 / -1; margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .proofs { grid-template-columns: 1fr; } }
