/* ===== Trial (2026-11-17): the library grid four to a row, bigger books, each standing on a block of the new palette.
   Deep Red #750A0A · Russet Oak #923C27 · Crimson Red #632223 · Golden Batter #E8D1A7 · Toasted Caramel #84592B
   · Cowhide Cocoa #442D1C · Spiced Wine #743014 — cycling, so neighbours never share a colour. Remove this file to undo. ===== */
/* four to a row, on the site's 12-column grid: each book spans 3 columns (the system's own --col and --gut) */
html body #app#app main .lbgrid{--wide:calc(3 * var(--col) + 2 * var(--gut));grid-template-columns:repeat(4,var(--wide))!important}
html body #app#app main .lbgrid > a.lb{width:var(--wide)!important}
html body #app#app main .lbgrid .lbcv{width:var(--wide)!important;height:auto!important}
html body #app#app .lbgrid > .lb{display:flex!important;flex-direction:column;gap:12px!important}
/* the coloured block: a 4:5 panel with the paper grain, the book standing in the middle of it */
html body #app#app .lbgrid > .lb .lbcv{display:grid!important;place-items:center;width:100%!important;aspect-ratio:4/5!important;margin:0!important;
  background:var(--blk) var(--paper-tex)!important;background-blend-mode:multiply!important;box-shadow:none!important;transform:none!important}
html body #app#app .lbgrid > .lb{box-shadow:none!important;filter:none!important}
html body #app#app main .lbgrid > .lb .lbcv{position:relative!important;overflow:hidden!important;isolation:isolate;clip-path:inset(0)!important;contain:paint}
/* the book's own drawing pressed into its block as an all-over pattern, a shade darker than the block (lighter on the dark ones) */
html body #app#app .lbgrid > .lb .lbcv::before{content:""!important;position:absolute!important;inset:-12%!important;z-index:0;opacity:1!important;
  background:color-mix(in srgb,var(--blk) 88%,var(--tone,#000))!important;-webkit-mask:var(--m) 0 0/46% auto repeat;mask:var(--m) 0 0/46% auto repeat;
  transform:rotate(-8deg);clip-path:none!important;box-shadow:none!important}
html body #app#app .lbgrid > .lb .lbcv::after{content:none!important}
html body #app#app .lbgrid > .lb .lbcv img{position:relative;z-index:1}
html body #app#app .lbgrid > .lb .lbcv img{width:56%!important;height:auto!important;aspect-ratio:2/3;object-fit:cover;background:#fff;
  box-shadow:-1px 1px 1.5px rgba(0,0,0,.28),-10px 6px 16px -6px rgba(0,0,0,.5)!important;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){html body #app#app .lbgrid > .lb:hover .lbcv{transform:none!important}html body #app#app .lbgrid > .lb:hover .lbcv img{transform:translateY(-6px)}}
html body #app#app .lbgrid > .lb .lbt{font-size:18px!important}
/* the palette, with the cover's own red (#C4000C) worked in twice in every nine */
html body #app#app .lbgrid > .lb:nth-child(9n+1){--blk:#A8352C;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+2){--blk:#E9E1D3;--tone:#000} /* bone, in place of Golden Batter #E8D1A7 (2026-11-17) */
html body #app#app .lbgrid > .lb:nth-child(9n+3){--blk:#750A0A;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+4){--blk:#442D1C;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+5){--blk:#923C27;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+6){--blk:#A8352C;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+7){--blk:#84592B;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+8){--blk:#632223;--tone:#fff}
html body #app#app .lbgrid > .lb:nth-child(9n+9){--blk:#743014;--tone:#fff}
@media (max-width:900px){html body #app#app main .lbgrid{--wide:var(--shelf);grid-template-columns:repeat(2,var(--shelf))!important}}
/* the drawing pressed into the block like a blind emboss: a lit edge upper-left, a firm shade lower-right */
html body #app#app .lbgrid > .lb .lbcv::before{
  filter:drop-shadow(-1px -1px 0 rgba(255,250,238,.30)) drop-shadow(1.1px 1.1px 0 rgba(25,12,0,.32)) drop-shadow(1.5px 1.5px 1.5px rgba(25,12,0,.14))}
