:root { color-scheme: dark; font: 16px/1.45 "Instrument Sans", system-ui, sans-serif; background: #152027; color: #f4f0e8; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(100%, 68rem); margin: auto; padding: .75rem clamp(.75rem, 2vw, 1.5rem); }
header { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
header span { flex: none; color: #bcd1d3; font-variant-numeric: tabular-nums; }
h1 { font-weight: 630; font-size: 1.3rem; line-height: 1.15; margin: .4rem 0; }
a { color: #a5dfcf; }
nav, form, .extras { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
nav { justify-content: center; padding: .8rem 0 .4rem; }
button, input { font: inherit; min-height: 44px; }
button { cursor: pointer; border: 1px solid #648086; background: #253941; color: #f4f0e8; border-radius: .5rem; padding: .4rem .75rem; }
button:disabled { opacity: .48; cursor: default; }
input { border: 1px solid #648086; border-radius: .35rem; padding: .25rem .4rem; }
input[type=number] { width: 5rem; }
.scrub { display: flex; align-items: center; gap: .6rem; color: #bcd1d3; }
.scrub input { flex: 1; min-width: 0; }
#sheet { display: block; margin: auto; max-width: 100%; max-height: 72svh; height: auto; object-fit: contain; background: #fff; }
#sheet[hidden] { display: none; }
.enlarged { overflow-x: auto; }
.enlarged #sheet { max-width: none; width: min(200%, 1100px); max-height: none; }
#loading { min-height: 10rem; color: #bcd1d3; }
.extras { display: block; }
details { border-top: 1px solid #42575d; margin-top: .6rem; padding: .55rem 0; }
summary { cursor: pointer; width: fit-content; padding: .35rem; }
#grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(75px,1fr)); gap: .5rem; padding: .5rem 0; }
#grid img { width: 100%; min-height: 4rem; object-fit: contain; display: block; }
.library { max-width: 57rem; }
.library > h1 { font-size: 2rem; margin: 1rem 0; }
article { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem; margin: .5rem 0; background: #1e3038; border-radius: .5rem; }
article img { height: auto; max-height: 8rem; object-fit: contain; }
article p { margin: .2rem 0 .4rem; color: #bcd1d3; overflow-wrap: anywhere; }
