.book-home-shelf, .book-catalogue, .book-detail, .book-return { box-sizing: border-box; }
/* Align the clickable jackets with the three photographed books on the live stone surface. */
.book-home-shelf {
  position: relative;
  width: 100%;
  aspect-ratio: 1945 / 1145;
  overflow: hidden;
  border-radius: 5px;
  background: #ede7de url('/assets/editorial/pale-stone-reports-nov24.webp') center / 100% 100% no-repeat;
}
.book-home-shelf a {
  position: absolute;
  top: 10.65%;
  width: 26.6%;
  height: 80.6%;
  display: block;
  overflow: hidden;
  background: #d6c4a9;
}
.book-home-shelf a:nth-child(1) { left: 8.10%; }
.book-home-shelf a:nth-child(2) { left: 36.72%; background: #a62915; }
.book-home-shelf a:nth-child(3) { left: 65.14%; background: #17232f; }
.book-home-shelf a .book-jacket {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}
.book-home-shelf a:hover { opacity: 1; }
.book-jacket { display: block; width: 100%; height: auto; aspect-ratio: 500/886; border-radius: 3px 2px 2px 3px; box-shadow: 0 2px 3px #251a132b, 3px 7px 11px -3px #33281852, 10px 17px 23px -10px #392a1d55; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover:hover) { .book-card a:hover .book-jacket { transform: translateY(-3px); box-shadow: 0 3px 4px #251a132b, 4px 11px 17px -4px #33281852, 11px 20px 27px -10px #392a1d55; } }
.book-catalogue { margin: 0 var(--gutter) clamp(64px,8vw,124px); }
.book-shelf-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(20px,3.1vw,54px); }
.book-card { min-width:0; }
.book-card .book-cover-stage { display:block; background:transparent; padding:0; border-radius:0; }
.book-card .book-jacket { box-shadow:1px 2px 4px #211b1521, 4px 8px 14px -7px #211b1538; }
.book-cover-stage { display:flex; justify-content:center; align-items:center; width:100%; background:var(--book-ground,#f2efe9); border-radius:3px; padding:clamp(16px,2.2vw,36px) 17%; box-sizing:border-box; }
.book-land { --book-ground:#efede7; }
.book-wireless { --book-ground:#f2eae5; }
.book-internet { --book-ground:#eaedef; }
.book-card .book-meta,.book-detail .book-meta { margin:23px 0 10px; color:#575a5a; font:500 .81rem/1.5 Inter,Arial,sans-serif; }
.book-card h2 { margin:0; font:400 clamp(29px,2.9vw,43px)/1.08 Newsreader,Georgia,serif; letter-spacing:-.035em; }
.book-card h2 a { text-decoration:none; color:inherit; }
.book-question { margin:10px 0 19px; font:400 clamp(15px,1.2vw,18px)/1.5 Inter,Arial,sans-serif; color:#444747; }
.book-links { display:flex; flex-wrap:wrap; align-items:center; gap:3px 20px; }
.book-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; font:550 14px/1.45 Inter,Arial,sans-serif; color:#161919; text-decoration:underline; text-decoration-color:#909292; text-underline-offset:4px; }
.book-link:hover { text-decoration-color:currentColor; }
.book-detail { margin:36px auto 92px; max-width:1150px; padding:0 var(--gutter,5%); }
.book-back { display:inline-flex; align-items:center; min-height:44px; color:#505352; font:500 14px/1.4 Inter,Arial,sans-serif; text-decoration:none; }
.book-back:hover { text-decoration:underline; text-underline-offset:4px; }
.book-intro { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.3fr); align-items:center; gap:clamp(34px,6.8vw,100px); margin:18px 0 clamp(44px,6vw,76px); }
.book-intro .book-cover-stage { padding:10% 20%; }
.book-intro h1 { font:400 clamp(46px,5.7vw,80px)/.99 Newsreader,Georgia,serif; letter-spacing:-.055em; margin:0; }
.book-subtitle { margin:13px 0; font:400 clamp(22px,2.35vw,32px)/1.16 Newsreader,Georgia,serif; letter-spacing:-.018em; color:#414544; }
.book-intro .book-meta { margin:20px 0; }
.book-blurb { max-width:57ch; margin:0 0 20px; font:400 clamp(15px,1.25vw,18px)/1.62 Inter,Arial,sans-serif; color:#373b3b; }
.book-contents { border-top:1px solid #bcbfbe; scroll-margin-top:95px; }
.book-contents h2 { margin:30px 0 22px; font:400 clamp(34px,3.4vw,48px)/1.08 Newsreader,Georgia,serif; letter-spacing:-.035em; }
.book-contents ol { list-style:none; margin:0; padding:0; }
.chapter-row { display:grid; grid-template-columns:2.25rem minmax(0,1fr) minmax(130px,185px); align-items:start; gap:8px 24px; padding:23px 0; border-top:1px solid #d3d5d3; }
.chapter-index { font:400 28px/1.1 Newsreader,Georgia,serif; color:#747671; }
.chapter-copy h3 { margin:0; font:400 clamp(23px,2.1vw,30px)/1.14 Newsreader,Georgia,serif; letter-spacing:-.025em; }
.chapter-copy h3 a { color:inherit; text-decoration:none; }
.chapter-copy h3 a:hover,.book-card h2 a:hover { text-decoration: underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.chapter-copy p { margin:7px 0 0; color:#444949; font:400 15px/1.55 Inter,Arial,sans-serif; max-width:65ch; }
.chapter-action { justify-self:end; display:flex; flex-direction:column; align-items:flex-end; }
.chapter-action .book-link { min-height:34px; }
.chapter-action small { font:400 12px/1.45 Inter,Arial,sans-serif; color:#575b59; }
.book-return { max-width:1160px; margin:16px auto 0; padding:0 var(--gutter,5%); }
.book-return + .longread { margin-top:8px; }
.book-join { display:flex; gap:18px; flex-wrap:wrap; align-items:center; border-top:1px solid #d3d5d3; padding-top:24px; }
.book-join p { margin:0 auto 0 0; font:400 16px/1.55 Inter,Arial,sans-serif; }
:is(.book-home-shelf,.book-catalogue,.book-detail,.book-return) a:focus-visible { outline:2px solid #365c92; outline-offset:4px; }
@media(max-width:999px) {
 .book-shelf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:40px; }
}
@media(max-width:800px) {
 .book-card h2 { font-size:29px; }
 .book-shelf-grid { gap:20px; }
 .book-cover-stage { padding:20px 12%; }
 .book-intro { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap:26px; }
 .book-intro .book-cover-stage { padding:11% 14%; }
 .book-links { gap:1px 15px; }
 .chapter-row { gap:8px 15px; }
}
@media(max-width:650px) {
 .book-home-shelf { background-image:url('/assets/editorial/pale-stone-reports-nov24-960.webp'); }
 .book-card h2 { font-size:34px; }
 .book-card .book-meta { margin:15px 0 7px; }
 .book-question { margin:8px 0; }
 .book-detail { margin:12px auto 64px; }
 .book-intro { display:flex; flex-direction:column; align-items:stretch; gap:25px; margin-top:10px; }
 .book-intro .book-cover-stage { padding:22px 0; }
 .book-intro .book-jacket { width:37%; max-width:155px; }
 .book-intro h1 { font-size:clamp(43px,11vw,60px); }
 .book-intro .book-meta { margin:14px 0; }
 .book-subtitle { font-size:24px; }
 .chapter-row { grid-template-columns:1.65rem minmax(0,1fr); gap:6px 9px; padding:19px 0; }
 .chapter-action { grid-column:2; justify-self:start; align-items:baseline; flex-direction:row; flex-wrap:wrap; gap:0 12px; }
 .chapter-action .book-link { min-height:44px; }
 .book-join { gap:3px 20px; }
 .book-join p { width:100%; }
}
@media(max-width:599px) {
 .book-shelf-grid { grid-template-columns:minmax(0,1fr); gap:38px; }
 .book-card .book-cover-stage { max-width: min(100%, 300px); }
}
@media(prefers-reduced-motion:reduce) { .book-jacket { transition:none; } a:hover .book-jacket { transform:none; } }

.book-home-shelf:has(a:nth-child(4)) { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:center; gap:2.6%; padding:5% 4%; box-sizing:border-box; aspect-ratio:2.1; background-image:url('/assets/books/bookshelf-stone.webp'); }
.book-home-shelf:has(a:nth-child(4)) a { position:static; width:100%; height:auto; box-shadow:2px 5px 8px #352b2840; }
.book-home-shelf:has(a:nth-child(4)) a img { height:auto; }


/* An illustrated gatefold tucked behind the featured jacket. */
.land-gatefold { position:relative; display:block; width:min(100%, 760px); aspect-ratio:2/1; margin:auto; isolation:isolate; }
.land-gatefold .book-jacket { position:absolute; z-index:2; width:26%; left:2%; top:50%; transform:translateY(-50%) rotate(-3deg); }
.land-gatefold-sheet { position:absolute; inset:7% 2% 7% 25%; padding:1%; background:#f4eddf; box-shadow:1px 5px 12px #352a2133; transform-origin:left center; transform:perspective(900px) rotateY(-8deg) scaleX(.94); }
.land-gatefold-sheet img { display:block; width:100%; height:100%; object-fit:cover; }
.land-gatefold-sheet::after { content:""; position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(90deg,transparent 0%,transparent 27%,#30261526 33%,#fff7 33.4%,transparent 38%,transparent 66.2%,#382b193d 66.6%,#fff7 67%,transparent 73%,transparent 100%); }
@media (prefers-reduced-motion:no-preference) {
  .land-gatefold-sheet { transition:transform .45s ease; }
  .land-gatefold:focus-visible .land-gatefold-sheet { transform:perspective(900px) rotateY(0) scaleX(1); }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .land-gatefold:hover .land-gatefold-sheet { transform:perspective(900px) rotateY(0) scaleX(1); }
}
