:root{--ink:#191a17;--paper:#fbfaf7;--line:#cfcec6;--accent:#ef421a;--mono:Consolas,'Courier New',monospace;font:16px/1.35 'Helvetica Neue',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button,label:has(input[type=radio]){cursor:pointer}button{background:transparent;border:0}button:focus-visible,input:focus-visible{outline:3px solid #365ac8;outline-offset:3px}button:disabled{cursor:default;opacity:.4}
header{border-bottom:1px solid var(--line)}.mast,main{width:min(1600px,100%);margin:auto;padding-inline:clamp(18px,3.15vw,58px)}.mast{height:68px;display:flex;justify-content:space-between;align-items:center}.identity{display:flex;align-items:center;gap:10px}.identity img{width:39px}.identity strong{font-size:31px;letter-spacing:-2.4px;line-height:1}.identity span{margin-left:9px;padding-left:19px;border-left:1px solid #b9b8b0;font-size:15px;letter-spacing:-.45px}.guide-link{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}.guide-link span{font-size:19px}
.intro{margin:clamp(21px,3.3vh,44px) 0 clamp(19px,2.7vh,35px)}h1,h2,h3,p{margin:0}h1{font-size:clamp(46px,5.6vw,88px);line-height:1;letter-spacing:-.07em;font-weight:700}h1 span{color:var(--accent)}.intro p{font-size:clamp(15px,1.4vw,21px);letter-spacing:-.03em;color:#52534c;margin-top:8px}
.workbench{display:grid;grid-template-columns:minmax(0,1fr) clamp(282px,25.5vw,397px);gap:clamp(24px,2.7vw,50px);align-items:stretch;padding-bottom:28px}.stage{isolation:isolate;position:relative;min-width:0;min-height:540px;overflow:hidden;background-color:#eae8e2;background-image:radial-gradient(#bdbab195 .72px,transparent .9px);background-size:15px 15px}.stage canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:grab}.stage canvas:active{cursor:grabbing}.marks{position:absolute;inset:14px;pointer-events:none;z-index:2}.marks i{position:absolute;width:12px;height:12px;border:solid #66685e;border-width:1px 0 0 1px}.marks i:nth-child(2){right:0;transform:rotate(90deg)}.marks i:nth-child(3){bottom:0;transform:rotate(-90deg)}.marks i:nth-child(4){right:0;bottom:0;transform:rotate(180deg)}
.switch,.dimension,.rotate{position:absolute;z-index:2}.switch{top:27px;left:28px;display:flex;background:#e7e5df;border:1px solid #b8b8ae;border-radius:5px;padding:2px}.switch button{display:flex;align-items:center;gap:7px;padding:7px 12px;font-size:13px;border-radius:3px}.switch button[aria-pressed=true]{background:#fcfbf7;box-shadow:0 1px 4px #28291e24;font-weight:700}.switch svg,.rotate svg,.download svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.dimension{left:28px;bottom:24px;font:12px var(--mono);letter-spacing:.03em}.dimension span{color:#5d6058}.rotate{right:24px;bottom:19px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #b9b9ad;border-radius:50%;background:#eeede6}.rotate svg{width:19px;height:19px}
.setup h2,.dialog-head h2{font-size:clamp(25px,2.1vw,34px);letter-spacing:-.06em;line-height:1.05}.setup h2{padding:1px 0 13px;border-bottom:1px solid var(--line);margin-bottom:16px}.brand-label,legend{display:block;font-size:14px;font-weight:700;letter-spacing:-.02em;margin-bottom:7px;padding:0}#brand{height:41px;width:100%;border:1px solid #b9bab2;border-radius:4px;padding:0 12px;background:#ffffff70;letter-spacing:.015em}fieldset{min-width:0;padding:0;border:0;margin:17px 0 0}.stocks{display:grid;gap:6px}label:has(input[type=radio]){position:relative}input[type=radio]{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.stock{display:flex;align-items:center;gap:11px;border:1px solid #c4c4bb;border-radius:4px;padding:7px 10px;font-size:14px;min-height:43px}.stock .sample{width:27px;height:27px;border-radius:2px}.sample{display:inline-block;flex:none}.kraft{background:#c39563 url('assets/kraft.webp') center/125px}.ivory{background-color:#ece6d9;background-image:linear-gradient(#f7f3e5e8,#f7f3e5e8),url('assets/kraft.webp');background-size:125px}.radio{margin-left:auto;width:14px;height:14px;border:1px solid #9fa096;border-radius:50%}input:checked+.stock,input:checked+.run{box-shadow:inset 0 0 0 1px var(--ink);border-color:var(--ink)}input:checked+.stock .radio{border-color:var(--ink);background:radial-gradient(var(--ink) 40%,transparent 46%)}input:focus-visible+span{outline:3px solid #365ac8;outline-offset:2px}
.inks,.runs{display:flex}.inks{justify-content:space-between;max-width:350px}.ink{align-items:center;display:flex;flex-direction:column;gap:5px;font-size:11px}.ink i{width:28px;height:28px;border-radius:50%;border:1px solid #0002;background:var(--color)}input:checked+.ink i{outline:1.5px solid var(--ink);outline-offset:2px}.inks label{padding:4px 4px 0}.runs{gap:5px}.runs label{flex:1}.run{display:block;text-align:center;border:1px solid #c4c4bb;border-radius:4px;padding:7px 0;font-size:14px}input:checked+.run{font-weight:700}
.summary{border-top:1px solid var(--line);margin:17px 0 13px;padding-top:13px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.estimate{display:block;font-size:11px;color:#5b5c54}.summary strong{font-size:clamp(30px,2.6vw,42px);letter-spacing:-.065em;line-height:1.1}.summary #unit{font-size:13px;color:#57594f;margin-bottom:3px}.download{width:100%;min-height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:var(--accent);color:white;font-size:16px;font-weight:700;letter-spacing:-.025em;border-radius:4px}.download:hover{background:#cc3413}.fine{margin-top:7px;text-align:center;color:#626359;font:10px/1.4 var(--mono)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
dialog{width:min(440px,calc(100% - 32px));padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#24251f62}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-head button{font-size:27px;line-height:1.1}.guide-row{display:flex;gap:15px;margin:18px 0}.guide-row i{width:46px;height:54px}.guide-row h3{font-size:17px}.guide-row p,.guide-foot{font-size:14px;color:#52544a}.guide-foot{border-top:1px solid var(--line);padding-top:14px}
@media(min-width:1400px){.stage{min-height:clamp(570px,60vh,740px)}.setup h2{margin-bottom:20px}fieldset{margin-top:21px}.stock{min-height:46px}}
@media(max-width:760px){.mast{height:58px}.identity img{width:29px}.identity strong{font-size:25px}.identity span{font-size:12px;padding-left:10px;margin-left:2px}.guide-link{font-size:12px;gap:4px}.intro{margin:25px 0 19px}.workbench{grid-template-columns:1fr;gap:24px}.stage{min-height:0;height:clamp(315px,79vw,490px)}.switch{top:18px;left:18px}.switch button{padding:6px 8px;font-size:12px}.marks{inset:9px}.dimension{left:19px;bottom:18px;font-size:10px}.rotate{bottom:13px;right:13px;width:33px;height:33px}.inks{justify-content:flex-start;gap:22px}.setup{padding-bottom:10px}.setup h2{font-size:29px}.setup .stock{min-height:46px}.fine{font-size:11px}.summary strong{font-size:36px}}
@media(max-width:360px){.identity span{display:none}}
@media(min-width:1400px) and (min-height:900px){
  .stage{min-height:min(73vh,780px)}
  .setup{display:flex;flex-direction:column}.summary{margin-top:auto}
  .brand-label,legend{font-size:17px}.stock,.run{font-size:16px}.stock{min-height:51px}
  .ink{font-size:13px}.ink i{width:33px;height:33px}.setup fieldset{margin-top:23px}
  .setup fieldset:last-of-type{margin-bottom:22px}.download{min-height:54px;font-size:18px}
}
