:root{color-scheme:dark;--bg:#080c14;--panel:#101725;--line:#283247;--text:#f0f4ff;--muted:#a5b4c8;--cyan:#22d3ee;--purple:#a78bfa}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}.review{text-align:center;padding:9px 18px;background:#192337;color:#c6d4ed;font:11px/1.5 monospace;letter-spacing:.08em}header,main,footer{max-width:1240px;margin:auto;padding:0 36px}header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand img{width:195px;height:68px;object-fit:contain}nav{display:flex;gap:28px;font-size:14px}nav a[aria-current]{color:var(--cyan)}.hero{position:relative;min-height:440px;padding:60px 0 65px;border-bottom:1px solid var(--line);overflow:hidden}.eyebrow{font:11px monospace;letter-spacing:.2em;color:var(--cyan)}h1{font-size:clamp(42px,5vw,66px);line-height:1.04;letter-spacing:-.045em;margin:24px 0}h1 span{color:var(--purple)}.intro{max-width:370px;color:var(--muted);font-size:18px}.browse{display:inline-block;margin-top:18px;font-weight:650;border-bottom:1px solid var(--cyan);padding-bottom:8px}.hero-art{position:absolute;right:18px;top:66px;width:46%;height:320px;display:flex;align-items:center;justify-content:center}.hero-art img{width:38%;height:260px;object-fit:contain;filter:drop-shadow(0 18px 14px #0009)}.hero-art img:first-child{transform:rotate(-11deg);margin-right:-24px}.hero-art img:nth-child(2){z-index:2;height:310px;transform:rotate(2deg)}.hero-art img:last-child{transform:rotate(12deg);margin-left:-22px}.shelf-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:44px}h2{font-size:28px;letter-spacing:-.025em}.shelf-heading p{color:var(--muted)}.filters{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 30px}.filters button{border:1px solid var(--line);background:transparent;color:var(--muted);padding:10px 16px;border-radius:3px}.filters button.active{color:var(--bg);background:var(--cyan);border-color:var(--cyan)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.book{border:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column;min-width:0}.cover{height:300px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#1e283d,#111827);padding:24px}.cover img{max-width:100%;height:100%;object-fit:contain;filter:drop-shadow(8px 10px 8px #0007)}.info{padding:23px;display:flex;flex-direction:column;flex:1}.category{color:var(--purple);font:11px monospace;text-transform:uppercase;letter-spacing:.11em}.info h3{font-size:22px;line-height:1.2;margin:12px 0}.edition{font-size:13px;color:var(--cyan);margin:0}.description{color:var(--muted);font-size:15px;flex:1}.note{font-size:12px;color:#e2c88e}.actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}.actions a,.actions button,.soon{padding:10px 12px;border:1px solid #53637c;border-radius:3px;color:var(--text);background:transparent;font-size:13px}.actions a{background:#f0f4ff;color:#101725;border-color:#f0f4ff}.soon{color:var(--muted);border-color:var(--line)}footer{display:flex;gap:22px;justify-content:space-between;margin-top:65px;padding-top:25px;padding-bottom:30px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}footer strong{color:var(--text)}dialog{max-width:1080px;width:94vw;max-height:92vh;border:1px solid #53637c;background:var(--bg);padding:28px}dialog::backdrop{background:#000c}dialog #close{float:right;padding:10px 15px;background:var(--panel);color:var(--text);border:1px solid var(--line)}dialog p{color:var(--muted)}#sample-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}#sample-grid img{display:block;width:100%}#sample-grid a{background:white}body:has(dialog[open]){overflow:hidden}@media(max-width:800px){header,main,footer{padding-left:20px;padding-right:20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{position:relative;right:auto;top:auto;width:100%;height:290px;margin-top:35px}.hero{padding:35px 0}.hero-art img{height:235px;max-width:150px}.hero-art img:nth-child(2){height:280px}.intro{max-width:500px}.shelf-heading{display:block}.cover{height:260px}}@media(max-width:520px){header{height:88px}.brand img{width:135px}nav{gap:15px;font-size:13px}.grid{grid-template-columns:1fr}.cover{height:320px}.info{padding:23px}.filters button{padding:10px 12px;font-size:13px}footer{flex-wrap:wrap}.hero-art{height:260px}.hero-art img:nth-child(2){height:250px}.hero-art img{height:210px}#sample-grid{grid-template-columns:1fr}dialog{padding:18px}dialog h2{font-size:23px;clear:both;padding-top:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep rotated cover corners inside the hero at tablet widths. */
.hero-art{padding:24px 34px}.hero-art img{width:33%;height:auto;max-height:260px}.hero-art img:nth-child(2){height:auto;max-height:290px}
@media(min-width:801px) and (max-width:1100px){.hero-art{right:0;width:45%;padding:32px 28px}.hero-art img{width:35%}.hero-art img:first-child{margin-right:-14px}.hero-art img:last-child{margin-left:-14px}}
@media(max-width:800px){.hero-art{padding:24px 26px}.hero-art img{width:32%;height:auto;max-height:235px}.hero-art img:nth-child(2){height:auto;max-height:260px}}

/* Sample pages stay in a closeable viewer, including on touch devices. */
.viewer-toolbar{position:sticky;top:-1px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--bg);padding:10px 0;border-bottom:1px solid var(--line);color:var(--text)}
#samples .viewer-toolbar{justify-content:flex-end}dialog #close{float:none}#close-full{flex-shrink:0;padding:10px 16px;min-height:44px;background:var(--panel);border:1px solid var(--line);color:var(--text)}
#sample-grid button{padding:0;border:0;background:white;cursor:zoom-in;min-width:0}#full-page{width:96vw;max-width:1100px;height:94dvh;max-height:94dvh;padding:0 18px 18px;color:var(--text)}
#full-image{display:block;width:100%;height:auto;background:white}.page-controls{display:flex;justify-content:space-between;padding:12px 0;gap:12px}.page-controls button{padding:10px 16px;min-height:44px;background:var(--panel);color:var(--text);border:1px solid var(--line)}.page-controls button:disabled{opacity:.4;cursor:default}#full-title{font-size:14px;line-height:1.3}
