/* Meet Me Gently — shared styles for the /books/ pages (the reading list behind
   the deck). Reuses assets/site.css tokens (--panel, --line, --ink, --r, --serif,
   --sans, --maxw, path colors, --spicy* tokens) rather than redefining them. */

/* ---- breadcrumb ---- */
.book-crumb { max-width: var(--maxw); margin: 0 auto; padding: 1.1rem clamp(1.1rem, 4vw, 2.4rem) 0; }
.book-crumb a { text-decoration: none; font: 600 .82rem/1 var(--sans); color: var(--ink-soft); }
.book-crumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---- adults-only flag (mirrors the tone of paths/after-dark.html's .p-18) ---- */
.adult-flag { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem;
  font: 700 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--spicy-ink); border: 1px solid var(--repair); border-radius: 999px;
  padding: .45rem .8rem; background: var(--spicy-tint); }

/* ---- hero: cover + copy ---- */
.book-hero { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.4rem) clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: center; }
.book-hero h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); letter-spacing: -.01em; margin: .3rem 0 .3rem; }
.book-hero .by { display: block; font: 600 .78rem/1.5 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.book-hero .lead { max-width: 54ch; }

.cover-stage { display: grid; justify-items: center; }
.bookcover-lg { --bk: var(--steady); position: relative; width: min(220px, 60vw);
  aspect-ratio: 5 / 7.6; border-radius: 5px 12px 12px 5px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--bk) 90%, #fff) 0%, var(--bk) 45%,
              color-mix(in srgb, var(--bk) 78%, #000) 100%);
  box-shadow: inset 5px 0 8px rgba(0,0,0,.3), inset -2px 0 4px rgba(255,255,255,.2),
              0 30px 56px -24px rgba(20,16,10,.6);
  display: grid; align-content: center; justify-items: center; gap: .7rem;
  padding: 1.5rem 1.3rem; text-align: center; color: #FBF7EF; rotate: -1.6deg;
  transition: transform .2s ease; }
.bookcover-lg:hover { transform: rotate(0deg) translateY(-4px); }
.bookcover-lg::after { content: ""; position: absolute; top: 3%; right: -7px; bottom: 3%; width: 8px;
  background: repeating-linear-gradient(180deg, #F4ECD9 0 2px, #E6DBC0 2px 4px);
  border-radius: 0 3px 3px 0; box-shadow: 2px 0 5px rgba(0,0,0,.22); }
.bookcover-lg b { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.28; }
.bookcover-lg span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .88; }
.bookcover-lg i { font-style: normal; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(251,247,239,.5); border-radius: 999px; padding: .32rem .65rem; opacity: .85; }

/* ---- feeds badges (which paths this book informs) + bookshop outbound CTA ---- */
.book-feeds { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.book-feeds .lbl { font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-right: .2rem; }
.book-feeds a.tag { text-decoration: none; font: 700 .66rem/1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--fd, var(--steady-ink));
  border: 1px solid currentColor; border-radius: 999px; padding: .4rem .75rem;
  transition: transform .15s ease; }
.book-feeds a.tag:hover { transform: translateY(-2px); }

.bookshop-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem;
  text-decoration: none; font: 600 .92rem/1 var(--sans); color: var(--ink);
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent);
  padding-bottom: .2rem; transition: border-color .2s ease, color .2s ease; }
.bookshop-cta:hover, .bookshop-cta:focus-visible { border-bottom-color: currentColor; color: var(--steady-ink); }
.bookshop-cta .ext { font-size: .8em; }

/* ---- body: about / core ideas / why / how, in the site's editorial rhythm ---- */
.book-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); }
.book-columns p { margin: 0 0 1rem; color: var(--ink-soft); }
.book-columns p:last-child { margin-bottom: 0; }
.book-columns .lede { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5; color: var(--ink); }

.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.idea-list li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.idea-list li::before { content: "◆"; position: absolute; left: 0; top: .28rem;
  color: var(--book-accent, var(--steady)); font-size: .7rem; }

.book-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.5rem; }
.book-panel h2, .book-panel h3 { margin-bottom: .8rem; }

/* ---- "why we chose it" / "how we used it" callouts ---- */
.why-used { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.why-used article { border-left: 4px solid var(--book-accent, var(--steady));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; }
.why-used h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.why-used p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.why-used p + p { margin-top: .7rem; }

/* ---- not-affiliated note (page-local twin of inspiration.html's .honest) ---- */
.book-honest { max-width: 760px; margin: 0 auto; border: 1px solid var(--line);
  border-left: 4px solid var(--book-accent, var(--steady)); border-radius: var(--r);
  background: var(--panel); padding: 1.5rem 1.5rem; }
.book-honest p { color: var(--ink-soft); margin: 0 0 .8rem; }
.book-honest p:last-child { margin-bottom: 0; }

/* ---- "more from the shelf" cross-link rail (built by books.js) ---- */
.shelf-rail { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.mini-spine { display: block; text-decoration: none; color: #FBF7EF;
  --sp: var(--steady); border-radius: 6px 10px 10px 6px; padding: 1rem .9rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--sp) 88%, #fff) 0%, var(--sp) 45%,
              color-mix(in srgb, var(--sp) 80%, #000) 100%);
  box-shadow: inset 3px 0 5px rgba(0,0,0,.28), 0 10px 22px -12px rgba(20,16,10,.55);
  transition: transform .18s ease, box-shadow .18s ease; }
.mini-spine:hover, .mini-spine:focus-visible { transform: translateY(-4px);
  box-shadow: inset 3px 0 5px rgba(0,0,0,.28), 0 16px 30px -14px rgba(20,16,10,.6); }
.mini-spine b { display: block; font-family: var(--serif); font-weight: 600; font-size: .92rem;
  line-height: 1.3; margin-bottom: .3rem; }
.mini-spine span { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* ---- closing funnel band (mirrors inspiration.html's CTA section) ---- */
.book-cta { text-align: center; }
.book-cta .actions { justify-content: center; }

@media (max-width: 860px) {
  .book-hero { grid-template-columns: 1fr; }
  .cover-stage { order: -1; }
  .book-columns { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .book-hero .lead { max-width: none; }
  .shelf-rail { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bookcover-lg, .mini-spine { transition: none; }
}
