/* The five shelves, September 2026, from shelves.html.

   Collections, folk tales, the writers, events and the library. One shell -
   the bar, a stone top with the real count in it, and filter words where they
   earn their place - and then a grid on paper.

   The chrome is _shared.css's. Generated by scratchpad/design-2026/
   build-shelves-2026.py - change the builder, not this file.            */

:root{--paper:#FBF9F6;--stone:#E4DED9;--stone-2:#D8D1CB;--forest:#2B301D;--moss:#414042;--ink:#414042;--ink-75:rgba(65,64,66,.78);--ink-55:rgba(65,64,66,.55);--ink-35:rgba(65,64,66,.35);--serif:'Lora',Georgia,serif;--sans:'Jost','Helvetica Neue',Arial,sans-serif;--face:'Larken','Lora',Georgia,serif;--script:'Cormorant Garamond',Georgia,serif;--ease:cubic-bezier(.22,.8,.24,1);--edge:clamp(20px,4vw,60px);--bar:76px;--tall:1080/1337;--wide:1337/1080}
*{box-sizing:border-box;margin:0;padding:0}
html{color-scheme:light}
body{background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.in{max-width:1400px;margin:0 auto;padding:0 var(--edge)}
.kick{display:block;font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--ink-75);margin-bottom:16px}
.stone{background:var(--stone)}
h1 em{font-family:var(--script);font-style:italic;font-weight:500;font-size:1.12em;letter-spacing:0}
header.site .in{position:relative;display:flex;align-items:center;justify-content:center;height:var(--bar)}
header.site .mk{position:absolute;left:var(--edge);display:flex;align-items:center}
header.site .mk img{display:block;height:34px;width:auto}
.flow a{position:relative;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--ink);padding:8px 0;transition:color .3s}
.flow a:hover{color:var(--moss)}
.flow a i{position:absolute;left:0;top:100%;white-space:nowrap;font-family:var(--serif);font-style:italic;font-size:14.5px;letter-spacing:0;text-transform:none;font-weight:400;color:var(--ink-75);opacity:0;transform:translateY(-4px);transition:opacity .3s,transform .4s var(--ease);pointer-events:none}
.flow a:hover i{opacity:1;transform:none}
.lines{display:block;width:24px;height:1.5px;background:currentColor;position:relative}
.lines::before,.lines::after{content:"";position:absolute;left:0;width:100%;height:1.5px;background:currentColor;top:-7px}
.lines::after{top:7px}
/* the top */
.top{padding:clamp(44px,7vh,80px) 0 0}
.tophead{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-bottom:clamp(28px,4vh,44px)}
.top h1{font-family:var(--face);font-weight:400;font-size:min(clamp(38px,4.6vw,66px), 28px + (clamp(38px,4.6vw,66px) - 28px) * 0.6);line-height:1;letter-spacing:-.012em;max-width:16ch;text-wrap:balance}
.top .line{margin-top:18px;font-family:var(--serif);font-style:italic;font-size:clamp(17px,1.4vw,20px);line-height:1.5;max-width:58ch;color:var(--ink-75)}
.tabs{display:flex;flex-wrap:wrap;gap:clamp(20px,3vw,44px);padding-bottom:clamp(20px,3vh,30px)}
.tabs button{font-family:var(--face);font-weight:400;font-size:min(clamp(22px,2.2vw,30px), 28px + (clamp(22px,2.2vw,30px) - 28px) * 0.6);line-height:1.1;color:var(--ink-35);padding:4px 0;transition:color .3s}
.tabs button:hover{color:var(--ink-75)}
.tabs button.on{color:var(--ink)}
.band{padding:clamp(48px,7vh,80px) 0 clamp(64px,9vh,110px)}
/* the cards */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(36px,4.5vh,56px) clamp(16px,2vw,28px)}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(36px,4.5vh,56px) clamp(16px,2vw,28px)}
.c{display:block;position:relative;aspect-ratio:var(--tall);overflow:hidden;background:var(--stone-2);color:#fff}
.c.wide{aspect-ratio:var(--wide)}
.c img{width:100%;height:100%;object-fit:cover;transition:transform 1.6s var(--ease)}
.c:hover img,.cover:hover img{transform:scale(1.035)}
.c .sh{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6) 0,rgba(0,0,0,.16) 44%,rgba(0,0,0,0) 64%);pointer-events:none}
.c .t{position:absolute;left:20px;right:20px;bottom:20px}
.c .k{display:block;margin-bottom:10px;font-family:var(--sans);font-size:9.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.88)}
.c h3{font-family:var(--serif);font-weight:400;font-size:22px;line-height:1.14;text-wrap:balance}
/* the collection card: the title bigger, the curated line at the foot */
.c.coll h3{font-family:var(--face);font-size:min(clamp(26px,2.4vw,34px), 28px + (clamp(26px,2.4vw,34px) - 28px) * 0.6);line-height:1.06}
.c.coll .k{margin:12px 0 0}
/* the writers: square faces */
.writers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(28px,4vh,44px) clamp(16px,2vw,28px)}
.writer{display:block}
.writer .ph{display:block;aspect-ratio:1;overflow:hidden;background:var(--stone-2)}
.writer .ph img{width:100%;height:100%;object-fit:cover;filter:saturate(.85);transition:filter .4s,transform 1.4s var(--ease)}
.writer:hover .ph img{filter:none;transform:scale(1.03)}
.writer b{display:block;margin-top:14px;font-family:var(--face);font-weight:400;font-size:clamp(19px,1.7vw,23px);line-height:1.1}
.writer i{display:block;margin-top:4px;font-family:var(--serif);font-style:italic;font-size:15px;color:var(--ink-75)}
/* the library card with Read and Buy */
.cover{display:flex;flex-direction:column}
.cover .c h3{font-family:var(--face);font-size:min(clamp(24px,2.2vw,30px), 28px + (clamp(24px,2.2vw,30px) - 28px) * 0.6);line-height:1.06}
.acts2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:14px}
.acts2 > *{display:inline-flex;align-items:center;justify-content:center;height:44px;font-family:var(--sans);font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;border:1px solid var(--ink);color:var(--ink);transition:background .22s,color .22s,border-color .22s}
.acts2 a:hover{background:var(--forest);border-color:var(--forest);color:var(--paper)}
.acts2 > :only-child{grid-column:1/-1}

/* What _shared.css says and this mock does not, and a sheet cannot unsay a
   property it never set. See docs/decisions.md, 6 September.            */
.top .line{letter-spacing:normal}

/* The filter words. shelves.html writes them as buttons because a mock has no
   server to ask; on the site a narrowed shelf is a page with its own address,
   so they are links and these rules reach both.                          */
.tabs a{font-family:var(--face);font-weight:400;font-size:min(clamp(22px,2.2vw,30px), 28px + (clamp(22px,2.2vw,30px) - 28px) * 0.6);line-height:1.1;color:var(--ink-35);padding:4px 0;transition:color .3s;text-align:center;text-decoration:none}
.tabs a:hover{color:var(--ink-75);text-align:center;text-decoration:none}
.tabs a.on{color:var(--ink);text-align:center;text-decoration:none}

/* The at-rules, in the mock's own order. */
@media(max-width:700px){.flow{display:none}}
@media(max-width:1000px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.writers{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.grid3{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grid,.grid3,.writers{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
