/* Book pages — loaded only under /books/, on top of styles.css */

.bhead {
  background: var(--ink);
  color: var(--on-ink);
  padding: 40px 0 56px;
}

.bp-crumb {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  margin: 0 0 34px;
}
.bp-crumb a { color: var(--flame-lift); text-decoration: none; }
.bp-crumb a:hover { text-decoration: underline; }
.bp-crumb span { margin: 0 8px; color: rgba(154, 163, 182, 0.5); }

.bp-grid { align-items: end; row-gap: 30px; }

.bp-cov { grid-column: span 3; }
.bp-cov img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 18px 34px -18px rgba(0, 0, 0, 0.8);
}

.bp-id { grid-column: 5 / -1; }

.bp-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--on-ink);
  margin: 0;
}

.bp-sub-tr {
  font-family: var(--text);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  line-height: 1.3;
  color: #c9cfda;
  margin: 14px 0 0;
}

.bp-sub-en {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--flame-lift);
  margin: 16px 0 0;
}

.bp-facts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(154, 163, 182, 0.28);
}
.bp-facts dt { color: var(--on-ink-mute); }
.bp-facts dd { color: var(--on-ink); }

/* Body */

.bp-lede p {
  grid-column: 4 / span 8;
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.42;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.bp-lede { grid-column: span 12; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); }

.bp-row { padding: 30px 0; border-top: 1px solid var(--line); }
.bp-row-open { border-top: 0; padding-top: 0; }

.bp-prose p {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 1.1em;
  max-width: 66ch;
  text-wrap: pretty;
}
.bp-prose p:last-child { margin-bottom: 0; }
.bp-prose em { color: var(--ink); font-style: italic; }

/* Structure */

.struct-note {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 26px;
}

.struct {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4px var(--gap);
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.struct-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.struct-b {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.struct-b em { font-style: italic; color: var(--ink-mute); }

.bp-note {
  grid-column: 4 / span 8;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Sibling navigation */

.sibs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 var(--gap);
}

.sib {
  display: block;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  text-decoration: none;
  border-bottom: 0;
}

.sib-l {
  display: block;
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 8px;
}

.sib-t {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sib:hover .sib-t { color: var(--flame); }
.sib.next { text-align: right; }

.bp-all {
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bp-all a { color: var(--flame); text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 1000px) {
  .bp-cov { grid-column: span 4; }
  .bp-id { grid-column: span 12; }
  .bp-lede p { grid-column: span 12; }
  .bp-note { grid-column: span 12; }
  .struct { grid-template-columns: 1fr; gap: 6px; }
  .sib.next { text-align: left; }
}

@media (max-width: 640px) {
  .bhead { padding: 30px 0 40px; }
  .bp-cov { grid-column: span 7; }
  .bp-crumb { margin-bottom: 24px; }
  .bp-row { padding: 22px 0; }
}

@media print {
  .bhead { background: #fff !important; color: #111 !important; padding: 0 0 18pt; }
  .bp-title, .bp-facts dd { color: #111 !important; }
  .bp-sub-tr, .bp-sub-en, .bp-crumb, .bp-facts dt { color: #444 !important; }
  .sibs, .bp-all { display: none; }
}
