.nba-books {
  --paper: #f5f0e8;
  --muted: #b8b5b4;
  --ember: #ff906c;
  --rule: #343339;
  --display: 'Bebas Neue', Impact, sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px) clamp(18px, 4.5vw, 72px) 5rem;
  color: var(--paper);
}
.nba-books [hidden] { display: none !important; }
.nba-books :is(a,button):focus-visible { outline: 3px solid #7adde2; outline-offset: 4px; }
.nba-books :is(.book-entry,.book-shelf) { scroll-margin-top: 84px; }
.books-hero { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 4%; padding-bottom: clamp(32px,5vw,72px); }
.books-kicker,.essay-meta,.book-chart figcaption>span,.shelf-controls>span,.book-sources div>span { font-size: .73rem; text-transform: uppercase; font-weight: 700; letter-spacing: .13em; }
.books-kicker { color: var(--ember); display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.books-kicker::before { content: ''; width: 2rem; height: 2px; background: var(--ember); }
.books-opening h1 { font: 400 clamp(4.8rem,7.4vw,7.35rem)/.86 var(--display); letter-spacing: -.016em; }
.books-opening h1 span { display: block; color: var(--ember); }
.books-deck { max-width: 43ch; margin: 1.35rem 0; color: #dbd5ce; font: 1.13rem/1.54 Georgia, serif; }
.books-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; font-size: .88rem; font-weight: 700; }
.books-actions a:last-child,.book-sources a,.essay-jacket>a,.book-chart p a { text-decoration: underline; text-underline-offset: .23em; text-decoration-color: #717078; }
.read-first { display: inline-flex; padding: .73rem 1rem; align-items: center; gap: 1rem; background: var(--paper); color: #171419; border-radius: 3px; }
.books-actions a:hover,.book-sources a:hover,.book-chart a:hover,.essay-jacket>a:hover { color: var(--ember); }
.read-first:hover { background: #ffe7d1; color: #161316 !important; }
.hero-tableau { align-self: center; margin: 0; min-width: 0; }
.hero-display {
  isolation: isolate; position: relative; aspect-ratio: 1.38;
  background: radial-gradient(ellipse at 45% 60%, #583621 0%, #292021 46%, #17161b 83%);
  border: 1px solid #383036; overflow: hidden;
}
.hero-display::before { content: ''; position: absolute; inset: auto 0 0; height: 12%; background: linear-gradient(#b98963 0%,#825a42 4%,#382926 13%,#211c1e 22%, #151418 100%); }
.display-jacket { position: absolute; bottom: 13%; width: 31%; transform-origin: center bottom; box-shadow: 5px 12px 17px #080606aa; background: #281f1e; }
.display-jacket img { display: block; width: 100%; }
.display-jacket::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(90deg,#0006,transparent 2%,#fff2 3%,transparent 6%); }
.jacket-1 { left: 9%; transform: rotate(-9deg); }
.jacket-2 { right: 8%; transform: rotate(8deg); }
.jacket-3 { left: 33%; width: 35.5%; bottom: 11%; transform: rotate(-1.5deg); }
.hero-tableau figcaption { padding: .76rem 0; display: flex; gap: .55rem; align-items: baseline; flex-wrap: wrap; font-size: .8rem; }
.hero-tableau figcaption span { color: var(--ember); font-weight: 700; }
.hero-tableau figcaption i { margin-left: auto; color: var(--muted); font-style: normal; }
.book-shelf { border-block: 1px solid var(--rule); padding: 1.6rem 0 2rem; }
.shelf-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.shelf-heading h2 { font: 400 2.6rem/1 var(--display); }
.shelf-heading p { color: var(--muted); font-size: .9rem; }
.shelf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: .9rem; }
.shelf-controls>span { color: var(--muted); letter-spacing: .08em; }
.shelf-filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.shelf-filters button { background: #18181e; color: #dfdada; padding: .3rem .5rem; border: 1px solid #39383e; border-radius: 3px; font-size: .76rem; }
.shelf-filters b { margin-left: .15rem; color: #a9a5a7; font-weight: normal; }
.shelf-filters button[aria-pressed=true] { color: var(--paper); border-color: var(--ember); background: #35251f; }
.shelf-filters button[aria-pressed=true] b { color: var(--ember); }
.jacket-grid { list-style: none; display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 1.45rem clamp(9px,1.25vw,20px); margin: 1.6rem 0 0; padding: 0; }
.jacket-slot { height: auto; aspect-ratio: 0.69; display: flex; align-items: flex-end; }
.jacket-slot img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 2px 4px 10px #0006; transition: transform .18s ease-out; }
.jacket-grid a:hover img { transform: translateY(-4px); }
.shelf-label { display: block; font-size: .73rem; line-height: 1.3; margin-top: .6rem; }
.shelf-label b { font-variant-numeric: tabular-nums; color: var(--ember); padding-right: .15rem; }
.book-ranking { list-style: none; padding: 0; margin: 0; }
.book-entry { display: grid; grid-template-columns: minmax(150px, .47fr) minmax(0,1fr); gap: clamp(25px,6vw,90px); padding: clamp(38px,5vw,76px) 0; max-width: 1020px; margin: auto; }
.book-entry + .book-entry { border-top: 1px solid var(--rule); }
.essay-jacket { min-width: 0; }
.essay-jacket>div { padding: 12% 15%; background: radial-gradient(at 40% 60%,#342a26,#1b1a20 80%); }
.essay-jacket img { width: auto; max-height: 340px; max-width: 100%; margin: auto; box-shadow: 4px 8px 19px #0009; }
.essay-jacket>a { display: inline-block; font-size: .69rem; color: var(--muted); margin-top: .5rem; }
.essay-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); letter-spacing: .07em; }
.essay-meta strong { color: var(--ember); }
.book-essay h2 { font: 400 clamp(2.7rem,4.1vw,4.8rem)/.98 var(--display); margin: .6rem 0 .35rem; }
.book-byline { font-size: .95rem; color: #d9c0ac; margin-bottom: 1.35rem; }
.book-byline span { padding: 0 .35rem; }
.book-description { font: 1.13rem/1.73 Georgia, serif; color: #e7e2dc; margin: .9rem 0; }
.book-sources { border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: 1rem; font-size: .8rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--muted); }
.book-sources div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .8rem; }
.book-sources div>span { flex-basis: 100%; font-size: .62rem; }
.book-sources>a { white-space: nowrap; }
.book-chart { background: #18181e; border: 1px solid var(--rule); margin-top: 1.7rem; padding: clamp(15px,3vw,30px); }
.book-chart figcaption>span { color: #7ed1d9; }
.book-chart h3 { font: 400 clamp(1.6rem,3vw,2.35rem)/1.1 var(--display); margin: .25rem 0 1rem; }
.book-chart p { color: var(--muted); font: .75rem/1.5 'DM Sans',sans-serif; margin: 1rem 0 0; }
.wins-chart { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); text-align: center; }
.wins-track { height: 105px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #67636b; }
.wins-track i { background: #88a5ab; width: 55%; height: calc(var(--wins)*1.2px); position: relative; }
.wins-track b { position: absolute; left: 0; width: 100%; bottom: 100%; font: 600 .9rem 'DM Sans',sans-serif; }
.wins-chart>div:last-child i { background: var(--ember); }
.wins-chart strong,.wins-chart small { display: block; font-size: .75rem; padding: .25rem .1rem 0; }
.wins-chart small { color: var(--muted); font-size: .68rem; line-height: 1.2; }
.margin-chart>div { display: grid; grid-template-columns: 6rem 1fr 2.2rem 3.5rem; gap: .4rem; align-items: center; margin-top: .44rem; font-size: .8rem; }
.margin-chart i { display: block; height: .48rem; background: #72b9c2; }
.margin-chart>div:last-child i { background: var(--ember); }
.margin-chart small,.margin-chart b { text-align: right; font-variant-numeric: tabular-nums; }
.margin-chart small { color: var(--muted); }
@media(max-width: 900px) { .jacket-grid { grid-template-columns: repeat(7,minmax(0,1fr)); } }
@media(max-width: 700px) {
  .books-hero { grid-template-columns: 1fr; gap: 1.7rem; }
  .books-opening h1 { font-size: clamp(4.2rem,14vw,6rem); }
  .hero-display { aspect-ratio: 1.8; }
  .display-jacket { width: 23%; }
  .jacket-1 { left: 19%; } .jacket-2 { right: 17%; } .jacket-3 { width: 28%; left: 36%; }
  .jacket-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .book-entry { display: block; }
  .essay-jacket { float: right; width: clamp(78px,22%,125px); margin: 0 0 .7rem .8rem; }
  .essay-jacket>div { padding: 6px; }
  .essay-jacket>a { font-size: .63rem; }
  .book-description:first-of-type,.book-byline + .book-description { clear: both; }
}
@media(max-width: 430px) {
  .jacket-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .books-hero { gap: 1.3rem; }
  .hero-tableau figcaption { font-size: .7rem; }
  .hero-tableau figcaption i { margin-left: 0; }
  .margin-chart>div { grid-template-columns: 5.2rem 1fr 1.8rem 2.9rem; font-size: .72rem; gap: .23rem; }
  .book-sources { flex-direction: column; }
}
@media(prefers-reduced-motion: reduce) { .jacket-slot img { transition: none; } }
