
/* ─────────────────────────────────────────────────────────────
   THE DECLASSIFIED COLLECTION — storefront mockup
   Palette and typefaces taken from 02_system/design/tokens.py,
   so the site and the printed book are one design system.
   The page is organised around three claims: readable, ownable,
   beautiful. Trust material supports them; it does not lead.
   ───────────────────────────────────────────────────────────── */

:root{
  --ink:#14161A; --paper:#FFFFFF; --shell:#EFECE5; --black:#0D0E10;
  --red:#B4472F; --rule-raw:#9A968E; --mute-raw:#6E6A63;

  --ground:var(--paper);
  --band:var(--shell);
  --text:var(--ink);
  --dim:var(--mute-raw);
  --line:rgba(154,150,142,.42);
  --line-firm:rgba(20,22,26,.22);
  --accent:var(--red);
  --plate-edge:rgba(20,22,26,.14);
  --plate-bg:#FFFFFF;

  --measure:63ch;
  --pad:clamp(1.25rem,5vw,4.5rem);
  --gap:clamp(2.4rem,5vw,4.25rem);

  --f-display:"Archivo Narrow","Arial Narrow",Helvetica,sans-serif;
  --f-body:"Source Serif 4",Cambria,Georgia,serif;
  --f-mono:"IBM Plex Mono","Consolas",ui-monospace,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ground:var(--black); --band:#16181C; --text:var(--shell); --dim:#8C877E;
    --line:rgba(239,236,229,.16); --line-firm:rgba(239,236,229,.28);
    --accent:#D9694E; --plate-edge:rgba(239,236,229,.16); --plate-bg:#F7F5F0;
  }
}
:root[data-theme="dark"]{
  --ground:var(--black); --band:#16181C; --text:var(--shell); --dim:#8C877E;
  --line:rgba(239,236,229,.16); --line-firm:rgba(239,236,229,.28);
  --accent:#D9694E; --plate-edge:rgba(239,236,229,.16); --plate-bg:#F7F5F0;
}

/* Dark in BOTH themes — the covers' own world. Re-tokens the surface so
   every component inside keeps working without special-casing. */
.inverted{
  border-top:1px solid rgba(239,236,229,.14);
  --ground:var(--black); --band:#16181C; --text:var(--shell);
  --dim:#8C877E; --line:rgba(239,236,229,.16); --line-firm:rgba(239,236,229,.30);
  --accent:#D9694E; --plate-edge:rgba(239,236,229,.18); --plate-bg:#F7F5F0;
  background:var(--ground); color:var(--text);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--text);
  font-family:var(--f-body); font-size:clamp(1rem,.97rem + .18vw,1.075rem);
  line-height:1.62; font-synthesis-weight:none;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ── type roles ─────────────────────────────────────────────── */
.mono{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;font-weight:500}
.eyebrow{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.17em;text-transform:uppercase;color:var(--dim);font-weight:500}
.eyebrow .n{color:var(--accent)}
h1,h2,h3{font-family:var(--f-display);font-weight:700;line-height:1.08;margin:0;text-wrap:balance;letter-spacing:0}
h1{font-size:clamp(2.1rem,1.15rem + 3.6vw,3.5rem)}
h2{font-size:clamp(1.6rem,1.05rem + 2.5vw,2.6rem)}
h3{font-size:1.02rem;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
p{margin:0}
.lede{font-size:clamp(1.1rem,1.02rem + .5vw,1.35rem);line-height:1.5}
.dim{color:var(--dim)}
.flow{display:flex;flex-direction:column;gap:1.05em;max-width:var(--measure)}
.wrap{padding-inline:var(--pad);max-width:1240px;margin-inline:auto}

/* ── shell ──────────────────────────────────────────────────── */
.masthead{
  border-bottom:1px solid var(--line);
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  padding-block:1.1rem;
}
.masthead a{text-decoration:none}
.imprint{font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.24em;font-size:.78rem}
.masthead nav{display:flex;gap:1.4rem;align-items:baseline}
.cartbtn{background:none;border:0;cursor:pointer;color:var(--dim);
  font-family:var(--f-mono);font-size:.68rem;letter-spacing:.13em;text-transform:uppercase}
.cartbtn:hover{color:var(--accent)}
.cartbtn b{color:var(--accent);font-weight:500}

section{padding-block:var(--gap)}
.rule-top{border-top:1px solid var(--line)}
.band{background:var(--band)}
.shead{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.8rem}

/* ── plate: a facsimile image carrying the book's own note band ── */
.plate{margin:0;display:flex;flex-direction:column;gap:0}
.plate img{background:var(--plate-bg);border:1px solid var(--plate-edge);width:100%}
.plate .notes{
  display:grid;gap:1.1rem 2rem;grid-template-columns:1fr;
  border-top:1px solid var(--line-firm);margin-top:.85rem;padding-top:.85rem;
}
@media (min-width:640px){.plate .notes{grid-template-columns:repeat(3,1fr)}}
.note{display:grid;grid-template-columns:1.4rem 1fr;gap:0 .5rem;align-items:baseline}
.note .n{font-family:var(--f-mono);font-size:.7rem;color:var(--accent);font-weight:500}
.note b{font-family:var(--f-display);text-transform:uppercase;letter-spacing:.09em;font-size:.74rem;font-weight:600}
.note p{grid-column:2;font-size:.82rem;line-height:1.45;color:var(--dim);margin-top:.2rem}

/* ── buttons ────────────────────────────────────────────────── */
.btn{
  font-family:var(--f-display);text-transform:uppercase;letter-spacing:.14em;
  font-weight:600;font-size:.82rem;
  background:var(--accent);color:#fff;border:1px solid var(--accent);
  padding:.95rem 1.6rem;cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  transition:background .16s ease,color .16s ease;
}
.btn:hover{background:transparent;color:var(--accent)}
.btn.ghost{background:transparent;color:var(--text);border-color:var(--line-firm)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn.wide{width:100%}
.btn.small{padding:.55rem .95rem;font-size:.7rem;letter-spacing:.1em}

/* ── hero ───────────────────────────────────────────────────── */
.hero{padding-block:clamp(2.5rem,6vw,5rem)}
.home-hero{display:grid;gap:clamp(1.6rem,4vw,2.5rem);align-items:start}
.home-hero h1{max-width:16ch;margin-top:1.1rem}
@media (min-width:900px){
  .home-hero{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:clamp(2.5rem,5vw,4.5rem)}
}
.hero-grid{display:grid;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (min-width:900px){.hero-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}}
.cover-shot{display:flex;flex-direction:column;gap:.7rem}
.cover-shot img{border:1px solid var(--plate-edge);box-shadow:0 24px 60px rgba(0,0,0,.45)}
.buybox{display:flex;flex-direction:column;gap:1.5rem}
.pricerow{display:flex;align-items:baseline;gap:.85rem;flex-wrap:wrap}
.price{font-family:var(--f-mono);font-size:1.75rem;font-weight:500;font-variant-numeric:tabular-nums}
.freetag{color:var(--accent);font-weight:600}
.was{font-family:var(--f-mono);font-size:.86rem;color:var(--dim);text-decoration:line-through;
  font-variant-numeric:tabular-nums;text-decoration-thickness:1px}
.speclist{display:flex;flex-wrap:wrap;gap:.35rem .9rem}
.speclist span{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.speclist span+span::before{content:"·";margin-right:.9rem;color:var(--line-firm)}
.included{border-left:2px solid var(--accent);padding-left:.9rem;font-size:.88rem;line-height:1.5;color:var(--dim)}
.included b{color:var(--text);font-weight:600}

blockquote{margin:0;padding-left:1.15rem;border-left:1px solid var(--accent);
  font-style:italic;color:var(--text);max-width:var(--measure)}
.hammer{font-family:var(--f-display);font-weight:700;
  font-size:clamp(1.35rem,1rem + 1.7vw,2.1rem);line-height:1.1;max-width:24ch;text-wrap:balance}
.hammer em{color:var(--accent);font-style:normal}

/* ── the set ────────────────────────────────────────────────── */
.setshot{border:1px solid var(--plate-edge);width:100%}

/* The shelf. Built from the individual cover files rather than one baked
   image, so every volume is its own link and can be tilted. */
.shelf{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(.7rem,2vw,1.3rem);perspective:1400px}
@media (min-width:560px){.shelf{grid-template-columns:repeat(4,1fr)}}
@media (min-width:900px){.shelf{grid-template-columns:repeat(7,1fr)}}
.spine{display:block;text-decoration:none;transform-style:preserve-3d;will-change:transform;
  transition:transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease}
.spine img{width:100%;border:1px solid var(--plate-edge);background:var(--black);
  box-shadow:0 10px 26px rgba(0,0,0,.45)}
.spine:hover img,.spine:focus-visible img{box-shadow:0 26px 60px rgba(0,0,0,.6)}
.spine .cap{display:block;margin-top:.5rem;font-family:var(--f-mono);font-size:.6rem;
  letter-spacing:.11em;text-transform:uppercase;color:var(--dim)}
.spine .cap b{color:var(--accent);font-weight:500}
.spine[data-soon] img{opacity:.72}
.spine:hover .cap,.spine:focus-visible .cap{color:var(--text)}
@media (prefers-reduced-motion:reduce){.spine{transition:none}}
.setgrid{display:grid;gap:clamp(1.1rem,3vw,2.5rem);align-items:end}
@media (min-width:860px){.setgrid{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}}

/* ── tables ─────────────────────────────────────────────────── */
.tablewrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:.88rem}
th,td{text-align:left;padding:.82rem .9rem .82rem 0;border-bottom:1px solid var(--line);vertical-align:top}
th{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);font-weight:500;white-space:nowrap}
.spec th{width:10.5rem}
.spec td code{font-family:var(--f-mono);font-size:.79rem;word-break:break-all}
.check td:first-child{width:52%}
.check td:last-child{font-family:var(--f-mono);font-size:.79rem;line-height:1.5}
.yes{color:var(--accent);font-weight:600}

/* ── the index ──────────────────────────────────────────────── */
.index{display:flex;flex-direction:column;border-top:1px solid var(--line-firm)}
.vol{display:grid;gap:.2rem 1.2rem;grid-template-columns:5.4rem 3rem 1fr auto;
  padding-block:1.15rem;border-bottom:1px solid var(--line);align-items:center}
.vol .num{font-family:var(--f-mono);font-size:.9rem;color:var(--accent);font-weight:500;align-self:start;padding-top:.2rem}
.vol .thumb{grid-row:1/3;display:block;align-self:start}
.vol .thumb img{display:block;width:100%;height:auto;border:1px solid var(--plate-edge);background:var(--black);box-shadow:0 1px 2px rgba(0,0,0,.35),0 10px 20px -12px rgba(0,0,0,.6)}
.vol .who{display:flex;flex-direction:column;gap:.22rem;min-width:0}
.vol .ttl{font-family:var(--f-display);font-weight:600;
  font-size:clamp(1rem,.94rem + .4vw,1.2rem);line-height:1.15;text-align:left;
  background:none;border:0;padding:0;cursor:pointer;color:inherit}
.vol .ttl:hover{color:var(--accent)}
.vol .meta{font-family:var(--f-mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}
.vol .meta .hook{color:var(--accent)}
.vol .act{display:flex;gap:.5rem;align-items:center;grid-column:4;grid-row:1/3}
@media (max-width:620px){
  .vol{grid-template-columns:4rem 2.2rem 1fr}
  .vol .act{grid-column:2/4;grid-row:auto;margin-top:.5rem}
}
@media (max-width:480px){
  .masthead{gap:.75rem}
  .imprint{letter-spacing:.14em;font-size:.72rem;white-space:nowrap}
  .masthead nav a{white-space:nowrap}
}
.soon{color:var(--accent)}
.notify{display:flex;flex-direction:column;gap:.5rem}
.notify div{display:flex;gap:.5rem;flex-wrap:wrap}
.notify input{font-family:var(--f-body);font-size:1rem;padding:.6rem .8rem;
  border:1px solid var(--line-firm);background:transparent;color:var(--text);min-width:15rem}
.inbasket{font-family:var(--f-mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}

/* ── digital pack ───────────────────────────────────────────── */
.packbox{border:1px solid var(--line-firm);border-left:2px solid var(--accent);
  padding:1.3rem 1.4rem;display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;justify-content:space-between;max-width:44rem}
.packbox .pb-t{font-family:var(--f-display);text-transform:uppercase;font-weight:600;letter-spacing:.04em;font-size:1rem}
.packbox .pb-s{font-size:.88rem;color:var(--dim);line-height:1.5;margin-top:.35rem;max-width:40ch}

/* ── FAQ ────────────────────────────────────────────────────── */
details{border-bottom:1px solid var(--line);padding-block:1.05rem}
summary{cursor:pointer;list-style:none;font-family:var(--f-display);
  text-transform:uppercase;letter-spacing:.05em;font-weight:600;font-size:.94rem;
  display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-family:var(--f-mono);color:var(--accent);font-size:1rem}
details[open] summary::after{content:"–"}
details .body{max-width:var(--measure);margin-top:.8rem;font-size:.94rem;color:var(--dim)}

/* ── sticky bar ─────────────────────────────────────────────── */
.stickybar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:var(--black);color:var(--shell);border-top:1px solid rgba(239,236,229,.18);
  display:flex;align-items:center;gap:1rem;padding:.7rem var(--pad);
  transform:translateY(110%);transition:transform .28s ease;
}
.stickybar.on{transform:none}
.stickybar .sb-t{font-family:var(--f-display);text-transform:uppercase;font-weight:600;font-size:.78rem;letter-spacing:.07em;line-height:1.2}
.stickybar .sb-p{font-family:var(--f-mono);font-size:.82rem;color:#8C877E;margin-left:auto;white-space:nowrap}
.stickybar .btn{padding:.7rem 1.15rem;font-size:.74rem;background:#D9694E;border-color:#D9694E}
.stickybar .btn:hover{background:transparent;color:#D9694E}
.order{margin-top:1.1rem;border-top:1px solid var(--line);padding-top:1rem}
.order iframe{width:100%;border:0;min-height:640px;margin-top:.8rem}
.btn[disabled]{opacity:.55;cursor:default}
/* purchase module (above the fold on a 375px phone) */
.purchase{padding-block:clamp(1.1rem,3vw,2rem)}
.pm{display:grid;grid-template-columns:5.6rem minmax(0,1fr);gap:1rem 1.1rem;align-items:start}
@media (min-width:640px){.pm{grid-template-columns:9.5rem minmax(0,1fr);gap:1.4rem 2rem}}
.pm-thumb img{display:block;width:100%;height:auto;border:1px solid var(--plate-edge);box-shadow:0 12px 26px -12px rgba(0,0,0,.7)}
.pm-body{display:flex;flex-direction:column;gap:.7rem;min-width:0}
.pm-title{font-size:clamp(1.55rem,1rem + 2.8vw,2.5rem);line-height:1.05;margin:0}
.pm-actions{display:flex;gap:.7rem;align-items:stretch}
.pm-actions .btn{flex:1;min-width:0}
.qty{display:flex;flex-direction:column;gap:.25rem;font-size:.6rem}
.qty select{font-family:var(--f-mono);font-size:1rem;padding:.55rem .45rem;background:transparent;color:var(--text);border:1px solid var(--line-firm);border-radius:0;min-width:3.4rem}
.trust{font-size:.62rem;letter-spacing:.08em}
/* global nav */
.topnav a{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:var(--dim);text-decoration:none;white-space:nowrap}
.topnav a:hover{color:var(--accent)}
.buypill{border:1px solid var(--accent);color:var(--accent)!important;padding:.35rem .6rem}
.buypill .sm{display:none}
.crumbs{font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;padding:.55rem 0 0;display:flex;gap:.45rem;flex-wrap:wrap;align-items:baseline}
.crumbs a{color:var(--dim);text-decoration:none}.crumbs a:hover{color:var(--accent)}.crumbs .sep{opacity:.6}
@media (max-width:480px){
  .masthead{flex-wrap:wrap;gap:.45rem .8rem}
  .masthead nav.topnav{flex:1 0 100%;justify-content:space-between;gap:.6rem}
  .topnav a{font-size:.62rem;letter-spacing:.09em}
  .buypill .lg{display:none}.buypill .sm{display:inline}
}
body{padding-bottom:0}
@media (max-width:560px){.stickybar .sb-p{display:none}}

/* ── cart drawer ────────────────────────────────────────────── */
.scrim{position:fixed;inset:0;background:rgba(13,14,16,.55);opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:50}
.scrim.on{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(27rem,100%);z-index:60;
  background:var(--ground);color:var(--text);border-left:1px solid var(--line-firm);
  transform:translateX(100%);transition:transform .28s ease;
  display:flex;flex-direction:column;
}
.drawer.on{transform:none}
.drawer header{display:flex;justify-content:space-between;align-items:center;padding:1.15rem 1.35rem;border-bottom:1px solid var(--line)}
.drawer .inner{padding:1.35rem;overflow-y:auto;display:flex;flex-direction:column;gap:1.15rem;flex:1}
.drawer footer{padding:1.35rem;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:.9rem}
.x{background:none;border:0;color:var(--dim);font-family:var(--f-mono);font-size:1rem;cursor:pointer;padding:.25rem}
.lineitem{display:grid;grid-template-columns:3.2rem 1fr;gap:.9rem}
.lineitem img{border:1px solid var(--plate-edge)}
.lineitem .li-t{font-family:var(--f-display);text-transform:uppercase;font-weight:600;font-size:.8rem;line-height:1.2}
.lineitem .li-s{font-family:var(--f-mono);font-size:.63rem;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);margin-top:.28rem}
.lineitem .li-p{margin-top:.45rem;font-family:var(--f-mono);font-size:.82rem;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:.85rem}
.remove{background:none;border:0;padding:0;cursor:pointer;color:var(--dim);
  font-family:var(--f-mono);font-size:.6rem;letter-spacing:.09em;text-transform:uppercase;text-decoration:underline}
.remove:hover{color:var(--accent)}
.emptycart{color:var(--dim);font-size:.9rem;line-height:1.5}

/* the one cross-sell surface: a strip of the volumes not yet in the order */
.addstrip{border-top:1px solid var(--line);padding-top:1rem;display:flex;flex-direction:column;gap:.7rem}
.addstrip .as-t{font-family:var(--f-display);text-transform:uppercase;font-weight:600;font-size:.76rem;letter-spacing:.04em}
.addstrip .as-s{font-size:.8rem;color:var(--dim);line-height:1.45}
.strip{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.3rem}
.strip button{flex:0 0 auto;background:none;border:1px solid var(--line-firm);padding:0;cursor:pointer;
  width:3.1rem;transition:border-color .16s ease}
.strip button:hover{border-color:var(--accent)}
.strip img{width:100%}

.addline{border:1px solid var(--line-firm);border-left:2px solid var(--accent);
  padding:.85rem .95rem;display:flex;gap:.9rem;align-items:center;justify-content:space-between}
.addline .al-t{font-family:var(--f-display);text-transform:uppercase;font-weight:600;font-size:.78rem;letter-spacing:.04em}
.addline .al-s{font-size:.78rem;color:var(--dim);line-height:1.4;margin-top:.25rem}
.addline button{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  background:none;border:1px solid var(--accent);color:var(--accent);padding:.45rem .7rem;cursor:pointer;white-space:nowrap}
.addline button:hover{background:var(--accent);color:#fff}

.totals{display:flex;flex-direction:column;gap:.4rem;font-family:var(--f-mono);font-size:.8rem}
.totals div{display:flex;justify-content:space-between;font-variant-numeric:tabular-nums}
.totals .disc{color:var(--accent)}
.totals .grand{border-top:1px solid var(--line);padding-top:.5rem;margin-top:.2rem;font-size:.95rem;color:var(--text)}
.trustline{font-family:var(--f-mono);font-size:.62rem;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);text-align:center;line-height:1.7}

/* ── footer ─────────────────────────────────────────────────── */
.sitefoot{border-top:1px solid var(--line-firm);padding-block:2.5rem 3.5rem;margin-top:var(--gap)}
.footgrid{display:flex;flex-wrap:wrap;gap:1.5rem 2.5rem;justify-content:space-between;align-items:start}
.footnav{display:flex;flex-wrap:wrap;gap:1.1rem}
.footnav a{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);text-decoration:none}
.footnav a:hover{color:var(--accent)}
.rights{font-size:.76rem;line-height:1.55;color:var(--dim);max-width:56ch;margin-top:1.6rem}

/* Content still to be written for volumes whose editions are in production.
   Marked loudly so no placeholder can be mistaken for finished copy. */
.tk{border:1px dashed var(--accent);padding:1.1rem 1.2rem;max-width:44rem;
  font-family:var(--f-mono);font-size:.74rem;line-height:1.7;letter-spacing:.05em;
  text-transform:uppercase;color:var(--accent)}

@media (prefers-reduced-motion:reduce){
  .stickybar,.drawer,.scrim,.btn{transition:none}
}
[hidden]{display:none !important}

/* ── the shelf, as physical books ──────────────────────────────────────
   Each cover is the front face of a box; the spine is a second face folded
   back along the left edge at the real 0.5in : 8.5in ratio. The books sit at
   a slight resting angle so the spine is always a little visible — that is
   what stops them reading as flat cards — and the tilt deepens on hover.  */
.steps{list-style:none;margin:2rem 0 0;padding:0;display:flex;flex-direction:column;
  gap:.55rem;max-width:46ch;counter-reset:none}
.steps li{display:grid;grid-template-columns:2.2rem 1fr;gap:.9rem;align-items:baseline;
  padding-bottom:.55rem;border-bottom:1px solid var(--line);font-size:1.02rem}
.steps li span{font-family:var(--f-mono);font-size:.82rem;color:var(--dim);letter-spacing:.1em}
.steps li.key{font-family:var(--f-display);font-weight:700;
  font-size:1.12rem;letter-spacing:.01em;line-height:1.25;padding-top:.4rem}
.steps li.key span{color:var(--accent);font-size:.95rem}
.acc{color:var(--accent);font-style:normal}
.steps{max-width:58ch}
.doctitle{font-family:var(--f-body);font-style:italic;font-size:1.05rem;color:var(--dim);margin:.1rem 0 0}
.shelf{perspective:1500px;margin-top:clamp(1.6rem,3.5vw,2.6rem)}
.rights-panel{border:1px solid var(--line-firm);border-left:2px solid var(--accent);
  padding:1.1rem 1.3rem;max-width:64ch;display:flex;flex-direction:column;gap:.5rem}
.rights-panel p:last-child{font-size:.92rem;line-height:1.55;color:var(--dim);margin:0}
.vol .blurb{display:block;font-size:.92rem;line-height:1.45;color:var(--text);
  max-width:62ch;margin:.2rem 0 .1rem}
.book3d{position:relative;display:block;transform-style:preserve-3d;
  transform:rotateY(16deg);
  transition:transform .55s cubic-bezier(.2,.7,.3,1);will-change:transform}
.spine:hover .book3d,.spine:focus-visible .book3d{transform:rotateY(34deg)}
.face{display:block;backface-visibility:hidden}
.face.front{position:relative;width:100%;z-index:2;
  border:1px solid var(--plate-edge);box-shadow:0 12px 30px rgba(0,0,0,.5)}
.face.side{position:absolute;top:0;left:0;height:100%;width:10.00%;
  transform-origin:left center;transform:rotateY(-90deg);
  border:1px solid var(--plate-edge);border-right:0}
.spine:hover .face.front,.spine:focus-visible .face.front{box-shadow:0 26px 60px rgba(0,0,0,.62)}

/* The hero cover is large enough for the true 0.5in : 8.5in spine to read, so
   it uses the honest ratio and sits open a little further by default. */
.hero-book{display:block;perspective:1800px}
.hero-book .book3d{transform:rotateY(22deg)}
.hero-book:hover .book3d{transform:rotateY(40deg)}
.hero-book .face.side{width:5.88%}
@media (prefers-reduced-motion:reduce){
  .book3d{transform:none;transition:none}
  .spine:hover .book3d,.spine:focus-visible .book3d{transform:none}
  .face.side{display:none}
}
