/* The pressed stamp on the coloured book blocks (press.js), in place of palette.css's flat ::before pattern:
   the book's drawing repeated upright, a shade off the block colour, pressed in (lit edge upper-left, shade lower-right),
   with the paper's grain over the colour and under the book. */
html body #app#app .lbgrid > .lb .lbcv::before{content:none!important}
html body #app#app .lbgrid > .lb .lbcv .prs{position:absolute;inset:-4%;z-index:0;pointer-events:none;
  filter:drop-shadow(-.8px -.8px 0 rgba(255,250,238,.20)) drop-shadow(.9px .9px 0 rgba(25,12,0,.19)) drop-shadow(1.2px 1.2px 1.2px rgba(25,12,0,.08))}
html body #app#app .lbgrid > .lb .lbcv .prs i{position:absolute;inset:0;background:color-mix(in srgb,var(--blk) 96%,var(--tone,#000));
  -webkit-mask:var(--m) 0 0/50% auto repeat;mask:var(--m) 0 0/50% auto repeat}
html body #app#app .lbgrid > .lb .lbcv .prg{position:absolute;inset:0;z-index:0;pointer-events:none;background:var(--paper-tex);mix-blend-mode:multiply;opacity:.9}
html body #app#app .lbgrid > .lb .lbcv img{z-index:2}
/* the stamped-card option (?cards=stamp) draws its own paper: don't double it */
html.cards-stamp body #app#app main.booksp .lbgrid > .lb .lbcv .prs,html.cards-stamp body #app#app main.booksp .lbgrid > .lb .lbcv .prg{display:none}
/* the terracotta red (#A8352C) becomes a deep oxblood, sampled from the user's swatch */
html body #app#app .lbgrid > .lb:nth-child(9n+1),html body #app#app .lbgrid > .lb:nth-child(9n+6){--blk:#6B1712!important;--tone:#fff}

/* (iteration) Blocks: Hover (press.js switch): plain paper behind the books; the block's colour, grain and stamp fade in on hover */
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv{background:transparent!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv .prg{z-index:-1;mix-blend-mode:normal;opacity:0;background:var(--paper-tex),var(--blk);background-blend-mode:multiply;transition:opacity .45s cubic-bezier(.2,.7,.2,1)}
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv .prs{opacity:0;transition:opacity .45s cubic-bezier(.2,.7,.2,1)}
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv :is(.prg,.prs){opacity:1}

/* matte paper, not gloss (2026-11-17): the blocks get a real paper surface (tooth, fibres, mottling, lit grain) instead of the
   page's faint tile, and the press loses its bright lit rim: a soft, low emboss, as when a stamp bites into card */
html body #app#app .lbgrid > .lb .lbcv .prg{background:url(img/paper-matte.svg?v=2) 0 0/360px 360px repeat!important;mix-blend-mode:multiply;opacity:.8}
html body #app#app .lbgrid > .lb .lbcv .prs{filter:drop-shadow(-.6px -.6px .3px rgba(255,248,235,.10)) drop-shadow(.8px .9px .5px rgba(25,12,0,.24))!important}
html body #app#app .lbgrid > .lb .lbcv .prs i{background:color-mix(in srgb,var(--blk) 93%,#000)}
/* Hover mode keeps the block's colour on the grain layer itself: the matte paper must sit over that colour, not replace it */
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv .prg{background:url(img/paper-matte.svg?v=2) 0 0/360px 360px repeat,var(--blk)!important;background-blend-mode:multiply!important;mix-blend-mode:normal!important;z-index:-1}
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv .prg{opacity:1!important}

/* the block box itself never casts a shadow (the cover image has its own); without the clip it drew a pale frame round every book */
html body #app#app .lbgrid > .lb .lbcv{box-shadow:none!important;border:0!important;outline:0!important}
html[data-shadow]:root body #app#app main .lbgrid > .lb .lbcv,html:root body #app#app main .lbgrid > .lb .lbcv{box-shadow:none!important}

/* the hover block arrives with weight, not a jolt (the user, 2026-11-17): a short pause so passing over a book doesn't flash it,
   then a slow ease-in-out over 0.9s; the colour settles first and the stamped pattern follows a beat later; leaving fades a little faster */
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv .prg{transition:opacity .55s cubic-bezier(.4,0,.2,1)!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv .prs{transition:opacity .55s cubic-bezier(.4,0,.2,1)!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv .prg{transition:opacity .9s cubic-bezier(.45,0,.25,1) .12s!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv .prs{transition:opacity 1.1s cubic-bezier(.45,0,.25,1) .3s!important}
@media (prefers-reduced-motion:reduce){html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv :is(.prg,.prs){transition:opacity .2s!important}}
/* (the user, 2026-11-18) the 0.9s version was too slow: a quicker arrival that still eases in rather than snapping */
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv .prg{transition:opacity .5s cubic-bezier(.4,0,.2,1) .04s!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb:is(:hover,:focus-visible) .lbcv .prs{transition:opacity .6s cubic-bezier(.4,0,.2,1) .12s!important}
html[data-blocks="hover"] body #app#app .lbgrid > .lb .lbcv :is(.prg,.prs){transition:opacity .35s cubic-bezier(.4,0,.2,1)!important}
@media (hover:hover){a.lb:is(:hover,:focus-visible) .lbcv > .rbn.on{transition:opacity .55s cubic-bezier(.4,0,.2,1) .1s!important}}
