/* The shelf only. The tales stand on it as a picture book's plates: each tale's cover, with the ink line and
   the strip of bare paper every plate on the site has, and its names under it. Two to a row on a phone, three
   on anything wider, and a row that is not full is centred, as a book sets its last plates.
   It is a stylesheet of its own, linked from the shelf alone, because the look of every tale's stage is marked
   from styles.css and player.js (tools/pagestill.js): a change here leaves every page's still picture as it is. */
#story.shelf-page{max-width:70rem}
#story.shelf-page .bookplate{max-width:39rem;margin:6px auto 2rem}
#story.shelf-page .tales{display:flex;flex-wrap:wrap;justify-content:center;gap:1.7rem 1rem;border-top:0;margin:2.4rem 0 0}
#story.shelf-page .tales li{flex:0 0 calc((100% - 1rem) / 2);margin:0;border-bottom:0;min-width:0}
#story.shelf-page .tales a{padding:0 0 .2rem}
/* the cover: a plate, as the stage is (the ink line and the outer line come from styles.css) */
#story.shelf-page .tales img,#story.shelf-page .tales .cover-box{width:calc(100% - 10px);margin:5px 5px 14px}
#story.shelf-page .tales .tt{font-size:1.25rem;line-height:1.15}
#story.shelf-page .tales .tg{font-size:.95rem;line-height:1.3}
#story.shelf-page .tales a:hover img{outline-color:var(--ink-soft)}
/* (a rehearsal only) a tale whose cover is still to come: an empty plate the cover's shape */
#story.shelf-page .tales .cover-box{display:grid;place-items:center;aspect-ratio:3/2;border:1.5px dashed var(--rule-strong);color:var(--ink-soft);font-style:italic;font-size:.9rem;text-align:center;padding:.5rem}
@media (min-width:40rem){
  #story.shelf-page .tales{gap:2.4rem 1.6rem}
  #story.shelf-page .tales li{flex-basis:calc((100% - 3.2rem) / 3)}
  #story.shelf-page .tales .tt{font-size:1.45rem}
  #story.shelf-page .tales .tg{font-size:1rem}
}
/* The decoration: John's paintings from Kimi (docs/art/kimi/00-the-shelf.md). None of it is a plate, so none of it
   has the ink line. The country of the tales is across the head of the page, with a corner piece at each of its top
   corners (the one at the right is the same painting, turned over). The painting fades to bare paper by itself; its
   outermost strip is faded a little more, so that its paper melts into the page's. */
#story.shelf-page .deco{border:0;outline:0;margin:0;height:auto}
.shelf-head{position:relative;margin:0 0 1.2rem}
#story.shelf-page .frieze{display:block;width:100%;max-width:62rem;margin:0 auto;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  mask-composite:intersect}
#story.shelf-page .corner{position:absolute;top:0;width:clamp(4rem,14%,10rem);z-index:1}
#story.shelf-page .corner.left{left:0}
#story.shelf-page .corner.right{right:0;transform:scaleX(-1)}
/* the garland over the covers, and the wren at the foot of the page */
#story.shelf-page .garland{display:block;width:min(36rem,92%);margin:2rem auto 0}
#story.shelf-page .garland + .tales{margin-top:1.8rem}
#story.shelf-page .wren{display:block;width:clamp(5rem,10vw,7.5rem);margin:3.2rem auto 0}
/* a shamrock leaf either side of the site's Irish name, the one at the right turned over (00-the-shamrocks.md) */
#story.shelf-page .bookplate .sham{display:inline-block;height:1.05em;width:auto;margin:0 .35em;vertical-align:-.1em}
#story.shelf-page .bookplate .sham.r{transform:scaleX(-1)}
