@font-face{font-family:"ShxHand";font-weight:400 700;font-display:swap;src:url(/fonts/caveat-2ddf82.woff2) format('woff2')}
@font-face{font-family:"ShxDisplay";font-weight:400;font-display:swap;src:url(/fonts/anton-a6f395.woff2) format('woff2')}
@font-face{font-family:"ShxBody";font-weight:400 700;font-display:swap;src:url(/fonts/inter-tight-1bf6b3.woff2) format('woff2')}
.shx-scope{box-sizing:border-box;--neon:#baff29;--ink:#0b0c0a;--paper:#efede6;--bone:#ecefe6;--display:"ShxDisplay","Anton","Impact",sans-serif;--body:"ShxBody","Inter Tight",system-ui,sans-serif;--hand:"ShxHand","Caveat",cursive;display:block;max-width:1200px;margin:0 auto;padding:0 0 20px;font-family:'Inter Tight',sans-serif;color:#0b0c0a}
.shx-scope .shelfbeat{margin-top:24px;border-top:2px solid #0b0c0a;padding-top:18px}
@font-face{font-family:"Anton";font-weight:400;font-display:swap;src:url(./fonts/anton.woff2) format('woff2')}
@font-face{font-family:"Caveat";font-weight:500 700;font-display:swap;src:url(./fonts/caveat.woff2) format('woff2')}
@font-face{font-family:"Inter Tight";font-weight:400 700;font-display:swap;src:url(./fonts/inter-tight.woff2) format('woff2')}
.shx-scope *{margin:0;padding:0;box-sizing:border-box}
.shx-scope html,body{height:100%}
.shx-scope .kicker{display:inline-block;font-weight:600;font-size:12px;letter-spacing:.16em;text-transform:uppercase}
/* shelf beat */
.shx-scope .shelfbeat{margin-top:40px;border-top:2px solid var(--ink);padding-top:20px}
.shx-scope .sb-hand{font-family:var(--hand);font-size:30px;line-height:1.05;transform:rotate(-1.2deg);display:inline-block;margin:8px 0 4px}
.shx-scope .sb-hint{font-size:13px;font-weight:600;letter-spacing:.04em;opacity:.6;margin-bottom:4px;transition:opacity .3s}
.shx-scope .shelf-wrap{position:relative}
.shx-scope .shelf{display:flex;align-items:flex-end;gap:10px;padding:96px 8px 14px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x pan-y;perspective:1300px}
.shx-scope .shelf::-webkit-scrollbar{display:none}
.shx-scope .baseline{position:absolute;left:0;right:0;bottom:8px;border-bottom:3px solid var(--ink);pointer-events:none}
.shx-scope .shelf.open{overflow-x:auto}
.shx-scope .bk{position:relative;flex:0 0 auto;width:var(--bw);box-shadow:4px 5px 0 rgba(11,12,10,.18),0 16px 20px -10px rgba(11,12,10,.28);cursor:grab;will-change:transform,opacity;user-select:none;-webkit-user-select:none;touch-action:pan-x pan-y}
@media (max-width:600px){.bk{width:calc(var(--bw)*0.78)}}
.shx-scope .bk img{display:block;width:100%;height:auto;pointer-events:none}
.shx-scope .bk3d{position:relative;transform-style:preserve-3d;will-change:transform}
.shx-scope .face{position:absolute;inset:0;backface-visibility:hidden}
.shx-scope .face.front{position:relative;transform:translateZ(calc(var(--th)*0.5));border:2px solid var(--ink);background:var(--paper);overflow:hidden}
.shx-scope .face.front:after{content:"";position:absolute;inset:0;background:linear-gradient(108deg,rgba(255,255,255,.22),rgba(255,255,255,0) 45%);opacity:.3;transition:opacity .35s;pointer-events:none}
.shx-scope .bk.held .face.front:after{opacity:.85}
.shx-scope .face.back{transform:rotateY(180deg) translateZ(calc(var(--th)*0.5));background:var(--paper);border:2px solid var(--ink)}
.shx-scope .face.pages{left:auto;right:calc(var(--th)*-0.5);width:var(--th);top:1px;bottom:1px;transform:rotateY(90deg);background:repeating-linear-gradient(90deg,#f2eddf 0 1px,#c9c1ad 1px 2.5px);box-shadow:inset 0 0 3px rgba(11,12,10,.25)}
.shx-scope .face.spine{left:calc(var(--th)*-0.5);width:var(--th);top:1px;bottom:1px;transform:rotateY(90deg);background:var(--sp);display:flex;align-items:center;justify-content:center;overflow:hidden}
.shx-scope .face.spine span{writing-mode:vertical-rl;font-family:var(--body);font-weight:600;font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.85);white-space:nowrap;max-height:96%;overflow:hidden}
.shx-scope .face.topf{top:calc(var(--th)*-0.5);height:var(--th);left:1px;right:1px;bottom:auto;transform:rotateX(90deg);background:repeating-linear-gradient(0deg,#f2eddf 0 1px,#c9c1ad 1px 2.5px)}
.shx-scope .face.front .dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--neon);border:2px solid var(--ink);z-index:2}
.shx-scope .shelf.open .bk{box-shadow:0 10px 22px rgba(11,12,10,.18)}
.shx-scope .bk.held{z-index:8;cursor:pointer;box-shadow:0 22px 44px rgba(11,12,10,.28)}
/* stage: held overlay area + notes */
.shx-scope .shelfbeat{position:relative}
.shx-scope .stage{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:5}
.shx-scope .stage .notes,.stage .putback.show{pointer-events:auto}
.shx-scope .notes{position:absolute;z-index:5;display:grid;grid-template-columns:230px 1fr;gap:22px;background:var(--paper);border:2px solid var(--ink);padding:20px;box-shadow:0 30px 60px rgba(0,0,0,.14);opacity:0;transform:translateX(46px) rotate(.8deg);pointer-events:none;transition:opacity .45s cubic-bezier(.16,1,.3,1),transform .55s cubic-bezier(.16,1,.3,1);max-width:860px}
.shx-scope .notes.show{opacity:1;transform:translateX(0) rotate(0);pointer-events:auto}
.shx-scope .sticky{font-family:var(--hand);font-size:19px;line-height:1.15;background:#fffdf4;border:1px solid rgba(11,12,10,.12);padding:14px 16px;transform:rotate(-1.6deg);box-shadow:4px 6px 0 rgba(11,12,10,.1);align-self:start}
.shx-scope .notes-body{max-height:380px;overflow-y:auto;padding-right:8px}
.shx-scope .notes-body h3{font-family:var(--display);font-weight:400;font-size:19px;text-transform:uppercase;margin:14px 0 6px}
.shx-scope .notes-body h3:first-child{margin-top:0}
.shx-scope .notes-body p{font-size:13.5px;line-height:1.5}
.shx-scope .idea{margin:9px 0;border-top:1px solid rgba(11,12,10,.15);padding-top:7px}
.shx-scope .idea b{font-family:var(--display);font-weight:400;font-size:14px;text-transform:uppercase;letter-spacing:.02em}
.shx-scope .idea .use{font-family:var(--hand);font-size:18px;margin-top:2px}
.shx-scope .notes-body ol,.notes-body ul{margin:4px 0 8px 18px;font-size:13.5px;line-height:1.5}
.shx-scope .cruxq{font-family:var(--hand);font-size:22px;border-top:2px solid var(--ink);padding-top:10px;margin-top:12px}
.shx-scope .putback{position:absolute;z-index:7;font-family:var(--hand);font-size:22px;background:none;border:none;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s;padding:6px 10px}
.shx-scope .putback.show{opacity:.85;pointer-events:auto}
.shx-scope .putback:hover{opacity:1}
@media (max-width:600px){
.shx-scope .stage{position:static;pointer-events:auto}
.shx-scope .shelfbeat{margin-top:30px}
.shx-scope .shelf{gap:10px;padding:76px 4px 12px}
.shx-scope .notes{grid-template-columns:1fr;max-width:none;left:0!important;right:0;top:auto!important;position:relative;transform:translateY(26px);margin-top:14px}
.shx-scope .notes.show{transform:translateY(0)}
.shx-scope .notes-body{max-height:44vh}
}
/* active-book states: give the book clear space, never fight the instructions */
.shx-scope .kicker,.sb-hand,.sb-hint{transition:opacity .3s ease}
.shx-scope .shelfbeat.holding .sb-hint{opacity:0!important}
.shx-scope .shelfbeat.holding .kicker,.shelfbeat.holding .sb-hand{opacity:0}
.shx-scope .shelfbeat.reading .kicker,.shelfbeat.reading .sb-hand{opacity:0}
@media (max-width:600px){
.shx-scope{max-width:calc(100vw - 40px);margin:0}
.shx-scope .notes{max-width:100%;padding:14px}
.shx-scope .notes-body{max-height:46vh}
.shx-scope .notes:not(.show){display:none}
.shx-scope .putback.show{position:static;display:inline-block;margin:14px 0 4px 96px}
}
