@font-face{font-family:Barlow;src:url(assets/Barlow-Regular.ttf)}@font-face{font-family:Instrument;src:url(assets/InstrumentSerif-Regular.ttf)}
:root{color:#26352e;background:#f8f6ef;font:17px/1.5 Barlow,system-ui,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:60rem;margin:auto;padding:clamp(1rem,4vw,3rem)}
header{border-bottom:2px solid #334d40;padding-bottom:1.2rem}a,summary{color:#365943}a{text-underline-offset:.18em}header>a,footer span{font-weight:bold}
h1,h2{font-family:Instrument,Georgia,serif;font-weight:400;line-height:1.08;margin:.45rem 0}h1{font-size:clamp(2.8rem,8vw,5.1rem)}h2{font-size:2.25rem}
p{margin:.5rem 0 .85rem}section{padding:1.25rem 0;border-bottom:1px solid #b6bdad}.section-head,.actions,form,footer{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.section-head{justify-content:space-between}button,.file,select,input,textarea{font:inherit;color:inherit}button,.file,select,input{border:1px solid #889685;border-radius:.2rem;background:#fffefa;padding:.38rem .75rem}
button,.file,summary,select{cursor:pointer}button:disabled{opacity:.5;cursor:default}.primary,.file{color:white;background:#2c503d;border-color:#2c503d}
.file{position:relative;display:inline-block}.file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
:focus-visible,.file:focus-within{outline:3px solid #b06b25;outline-offset:2px}#source-name{color:#505e51;overflow-wrap:anywhere}
#frame{position:relative;width:fit-content;max-width:100%;line-height:0;touch-action:none;cursor:crosshair;outline:1px solid #b6bdad;background:white}
#scan{display:block;width:auto;max-width:100%;max-height:70vh;user-select:none;pointer-events:none}
#outline{position:absolute;pointer-events:none;border:2px solid #9a4921;outline:1px solid white;background:rgb(224 144 47 / .09)}
details{margin:.75rem 0}form{align-items:flex-end;margin:.6rem 0}form label{display:grid;font-size:.95rem}form input{width:5.7rem}
#selection,#help,#source-name,#status{font-size:.95rem}#selection{margin:.45rem 0}#status{min-height:1.5em;margin-bottom:0}
textarea{display:block;width:100%;font-size:1.2rem;line-height:1.5;padding:.75rem;border:1px solid #889685;background:#fffefa;border-radius:.2rem;resize:vertical}
footer{padding:1.15rem 0;gap:.5rem 1.25rem;font-size:.95rem}

#magnifier{max-width:100%;max-height:58vh;overflow:auto;background:white;border:1px solid #b6bdad;margin:.6rem 0}#line-view{display:block;width:auto;height:auto}
