:root{--ink:#382c36;--plum:#493041;--muted:#675d62;--paper:#f5eee2;--rule:#b9ad9e;--dye:#176b6e;background:#e6ded1;color:var(--ink);font-family:"Avenir Next",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(at top left,#faf3e1,#e9e0d5 66%);min-height:100vh}main{max-width:1090px;margin:auto;padding:clamp(12px,3.5vw,40px)}header,.bar,.key,.tools{display:flex;gap:10px;align-items:center}header,.bar{justify-content:space-between}header{border-bottom:3px double #9c8a80;padding-bottom:10px;margin-bottom:17px}.eyebrow,#folio{font-size:.73rem;font-weight:730;letter-spacing:.16em;text-transform:uppercase;color:#795466}p,h1,h2,h3{margin:0}h1,h2{font-family:Georgia,serif;font-weight:400;line-height:1.06;letter-spacing:-.055em}h1{font-size:clamp(3rem,7vw,5.4rem)}h2{font-size:clamp(1.6rem,3.1vw,2.45rem)}#work{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(12px,2.5vw,27px);align-items:start}.swatch,.card,#album{border:1px solid var(--rule);border-radius:8px;padding:clamp(13px,2vw,21px);background:var(--paper)}.swatch{background:var(--plum);color:#fff1de;border-color:#503c48}.bar{margin-bottom:12px}.bar h2{font-size:1.5rem}.frame{padding:7px;background:#bb9568;border:3px double #6d503f;border-radius:4px}#board{position:relative;aspect-ratio:1;isolation:isolate;background:#e7dac1 url(linen.webp) center/cover}#lines,#stitches{position:absolute;inset:0;width:100%;height:100%}#lines{pointer-events:none}.thread{fill:none;stroke:#846b5a;stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round}.strike{fill:none;stroke:var(--dye);stroke-width:7;stroke-linejoin:round;stroke-linecap:round}.previewline{stroke:#c06422;stroke-width:5;stroke-dasharray:6 3}.tracing{fill:none;stroke:#fcac31;stroke-width:6;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;animation:trace 1.6s ease-out forwards}@keyframes trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}.stitch{position:absolute;transform:translate(-50%,-50%);border:1px solid #796b57;border-radius:50%;background:#efe6d3;color:#443831;width:var(--dot);height:var(--dot);padding:0;display:grid;place-items:center;font:600 clamp(.71rem,1.3vw,.98rem) ui-monospace,monospace}.stitch.required{border:2px solid #553442;border-radius:25%;box-shadow:0 0 0 2px #eed49c}.stitch.required:after{content:"";position:absolute;width:5px;height:5px;top:-4px;left:calc(50% - 3px);background:#593445;transform:rotate(45deg)}.stitch.ink{background:var(--dye);color:white}.stitch.pick{outline:3px solid #b75d17;outline-offset:1px;background:#ffe5a3;color:#332517}.stitch:disabled{opacity:1}.key{font-size:.78rem;flex-wrap:wrap;margin-top:10px}.key span{display:flex;align-items:center;gap:6px}.key i{width:10px;height:10px;display:inline-block}.target{background:#e8c38a;transform:rotate(45deg)}.sample{background:#f0a049;border-radius:50%}.dyed{background:#4ab4a3;border-radius:50%}.commission{display:grid;grid-template-columns:39% 1fr;gap:14px;align-items:center}.commission img{width:100%;aspect-ratio:1;object-fit:cover;border:3px double #a38456}.commission h2{margin:5px 0}.instructions,#brief,details p,#notice{font-size:.91rem;line-height:1.42;color:var(--muted)}.instructions{margin:14px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--rule);padding:8px 0;font-size:.75rem}.stats strong{display:block;font:1.35rem Georgia,serif;color:var(--ink);margin-top:3px}#selection{margin:12px 0 7px;font-size:.86rem;font-weight:650}.tools{flex-wrap:wrap;gap:5px}button{font:650 .83rem system-ui;border:1px solid #a59a91;border-radius:4px;background:#e8dfcf;color:var(--ink);padding:7px 10px;cursor:pointer}button:disabled{opacity:.48;cursor:default}.primary{background:var(--plum);color:#fff3da;border-color:var(--plum)}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ec951d;outline-offset:2px}#tickets{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0}#tickets:empty{margin:5px}#tickets button{padding:3px 7px;font-size:.75rem}#notice{color:#7d463c;margin-top:9px;min-height:1.4em}#prints{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:13px 0}figure{margin:0;background:#443440;color:#fff1db}figure img{display:block;width:100%;aspect-ratio:1}figcaption{padding:7px;font:italic 1rem Georgia}details{border-top:1px solid var(--rule);padding:12px 0;margin-top:16px}summary{cursor:pointer;color:var(--muted)}details p{margin-top:8px;max-width:78ch}a{color:#235f5d}[hidden]{display:none!important}@media(max-width:700px){main{padding:11px}header{margin-bottom:8px}#work{grid-template-columns:1fr;gap:8px}.swatch,.card{padding:11px}.bar{margin-bottom:7px}.frame{max-width:380px;margin:auto}.commission{grid-template-columns:25% 1fr;gap:9px}.key{margin-top:6px}.instructions{margin:8px 0}.eyebrow,#folio{font-size:.64rem}figcaption{font-size:.78rem}}@media(prefers-reduced-motion:reduce){.tracing{animation-duration:.01s}}
