/*
  The Bookshelf of Curiosities — Landing Page V4.0
  Full replacement per DESIGN-SYSTEM.md (repo root). The old V3
  dark-cabinet/frame system has been removed entirely, not left dead in
  this file — per that doc's explicit "do not blend the old system with
  this one" instruction. See README.md for rationale and changelog.

  Every rule below is scoped under .bookshelf-landing so nothing here can
  clash with Material's own styles on this page or any other.

  Colour/font values are sourced from stylesheets/bookshelf-tokens.css
  (the Google Fonts @import lives there too, loaded once site-wide) —
  not hardcoded here. Material's own --md-* variables are overridden in
  stylesheets/bookshelf-material.css, not in this file — that override
  used to live here as a partial, primary-color-only patch; see
  README.md's changelog for why it was split out and completed.
*/

.md-main__inner {
  max-width: none;
}

.md-content__inner {
  margin: 0;
}

.md-content__inner::before {
  display: none;
}

/*
  Landing page only: hide the Material header bar. Kept exactly as the
  design doc requires, as defense-in-depth alongside the JS sibling-hiding
  routine in bookshelf-cursor.js (which doesn't depend on knowing
  Material's class names, and is the fix for the bar that this rule alone
  failed to remove across two prior attempts).
*/
body:has(.bookshelf-landing) .md-header,
body.bookshelf-landing-page .md-header {
  display: none !important;
}

/*
  Hiding the header (above) removed the visible nav bar, but left a thin
  residual gap — Material reserves vertical space for its sticky header
  via layout math that reads this custom property, independent of the
  header element's own display value. Zeroing it here, paired with
  bookshelf-cursor.js zeroing literal padding/margin-top on the ancestor
  chain (covers the case where the gap is a literal value, not this
  variable).
*/
body.bookshelf-landing-page {
  --md-header-height: 0px;
}

.bookshelf-landing,
.bookshelf-landing *,
.bookshelf-landing *::before,
.bookshelf-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bookshelf-landing {
  --ink: var(--bookshelf-ink);
  --deep: var(--bookshelf-deep);
  --char: var(--bookshelf-char);
  --brown: var(--bookshelf-brown);
  --sepia: var(--bookshelf-sepia);
  --bronze: var(--bookshelf-bronze);
  --gold: var(--bookshelf-gold);
  --amber: var(--bookshelf-amber);
  --sand: var(--bookshelf-sand);
  --vellum: var(--bookshelf-vellum);
  --paper: var(--bookshelf-paper);
  --ivory: var(--bookshelf-ivory);

  --ff-serif: var(--bookshelf-ff-serif);
  --ff-inst: var(--bookshelf-ff-inst);
  --ff-sans: var(--bookshelf-ff-sans);
  --ff-mono: var(--bookshelf-ff-mono);

  display: block;
  position: relative;
  margin: -1.2rem -0.8rem 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-serif);
  overflow-x: hidden;
}

/* ──────────────────────────────────────────
   Cursor — dot has zero lag (always exactly at
   the pointer for precise targeting), ring eases.
   cursor:none is scoped to body.bookshelf-cur-active, never set
   unconditionally — see bookshelf-cursor.js for the activation guard
   (bails out on touch/coarse pointers and prefers-reduced-motion).
───────────────────────────────────────── */

.bookshelf-landing #bookshelf-cur-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  display: none;
}

.bookshelf-landing #bookshelf-cur-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s, border-color 0.25s;
  opacity: 0.45;
  display: none;
}

body.bookshelf-cur-expand .bookshelf-landing #bookshelf-cur-ring {
  width: 52px;
  height: 52px;
  opacity: 0.75;
  border-color: var(--amber);
}

body.bookshelf-cur-active .bookshelf-landing,
body.bookshelf-cur-active .bookshelf-landing * {
  cursor: none;
}

/* ──────────────────────────────────────────
   p5.js particle field
───────────────────────────────────────── */

.bookshelf-landing #p5wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────
   Layout
───────────────────────────────────────── */

.bookshelf-landing .wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ──────────────────────────────────────────
   Hero
───────────────────────────────────────── */

.bookshelf-landing .hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.bookshelf-landing .hero-ghost {
  position: absolute;
  font-family: var(--ff-serif);
  font-size: clamp(280px, 38vw, 520px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--char);
  top: -4%;
  right: -6%;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
  animation: bookshelfGhostDrift 18s ease-in-out infinite alternate;
}

@keyframes bookshelfGhostDrift {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(20px) rotate(0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bookshelf-landing .hero-ghost {
    animation: none;
  }
}

.bookshelf-landing .hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 1rem;
}

.bookshelf-landing .hero-kicker {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 2rem;
  opacity: 0;
  animation: bookshelfRiseIn 0.7s 0.2s forwards;
}

.bookshelf-landing .hero-title {
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.bookshelf-landing .ht-the {
  display: block;
  font-family: var(--ff-inst);
  font-size: clamp(18px, 3vw, 34px);
  font-style: italic;
  color: var(--bronze);
  letter-spacing: 0.18em;
  font-weight: 400;
  opacity: 0;
  animation: bookshelfRiseIn 0.7s 0.35s forwards;
}

.bookshelf-landing .ht-bookshelf {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(68px, 11vw, 148px);
  font-weight: 700;
  font-style: italic;
  color: var(--ivory);
  opacity: 0;
  animation: bookshelfRiseIn 0.9s 0.5s forwards;
}

.bookshelf-landing .bht-line2 {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.bookshelf-landing .ht-of {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: clamp(11px, 1.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
  padding: 0 0.6em;
  opacity: 0;
  animation: bookshelfRiseIn 0.6s 0.7s forwards;
}

.bookshelf-landing .ht-curiosities {
  display: block;
  font-family: var(--ff-inst);
  font-size: clamp(46px, 7.5vw, 102px);
  font-style: italic;
  font-weight: 400;
  color: var(--sand);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: bookshelfRiseIn 0.9s 0.75s forwards;
}

.bookshelf-landing .hero-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: bookshelfRiseIn 0.6s 1s forwards;
}

.bookshelf-landing .hero-divider-line {
  flex: 1;
  height: 0.5px;
  background: var(--sepia);
}

.bookshelf-landing .hero-divider-orn {
  font-family: var(--ff-serif);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.bookshelf-landing .hero-desc {
  font-family: var(--ff-inst);
  font-size: clamp(15px, 1.8vw, 20px);
  font-style: italic;
  color: var(--bronze);
  max-width: 560px;
  line-height: 1.55;
  opacity: 0;
  animation: bookshelfRiseIn 0.7s 1.1s forwards;
}

.bookshelf-landing .hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 2.5rem;
  opacity: 0;
  animation: bookshelfRiseIn 0.6s 1.5s forwards;
}

.bookshelf-landing .hero-index {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--sepia);
  text-transform: uppercase;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.bookshelf-landing .hero-scroll-hint {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--sepia);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bookshelf-landing .hero-scroll-hint::before {
  content: "";
  width: 0.5px;
  height: 36px;
  background: var(--sepia);
}

@keyframes bookshelfRiseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bookshelf-landing .hero-kicker,
  .bookshelf-landing .ht-the,
  .bookshelf-landing .ht-bookshelf,
  .bookshelf-landing .ht-of,
  .bookshelf-landing .ht-curiosities,
  .bookshelf-landing .hero-divider,
  .bookshelf-landing .hero-desc,
  .bookshelf-landing .hero-bottom {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ──────────────────────────────────────────
   Ticker
───────────────────────────────────────── */

.bookshelf-landing .ticker-outer {
  border-top: 0.5px solid var(--char);
  border-bottom: 0.5px solid var(--char);
  background: var(--deep);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  margin: 0 -2.5rem;
}

.bookshelf-landing .ticker-track {
  display: inline-block;
  animation: bookshelfTicker 50s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bookshelf-landing .ticker-track {
    animation: none;
  }
}

.bookshelf-landing .ticker-item {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  padding: 0 2.2rem;
}

.bookshelf-landing .ticker-item b {
  color: var(--gold);
  font-weight: 400;
  margin-right: 1.6rem;
}

@keyframes bookshelfTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ──────────────────────────────────────────
   Section headers
───────────────────────────────────────── */

.bookshelf-landing .sec-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-top: 5.5rem;
  margin-bottom: 2rem;
}

.bookshelf-landing .sec-num {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-style: italic;
  color: var(--sepia);
  min-width: 1.5rem;
}

.bookshelf-landing .sec-name {
  font-family: var(--ff-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.bookshelf-landing .sec-rule {
  flex: 1;
  height: 0.5px;
  background: var(--char);
}

/* ──────────────────────────────────────────
   Card grid
───────────────────────────────────────── */

.bookshelf-landing .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 9px;
}

.bookshelf-landing .c4 {
  grid-column: span 4;
}
.bookshelf-landing .c5 {
  grid-column: span 5;
}
.bookshelf-landing .c6 {
  grid-column: span 6;
}
.bookshelf-landing .c7 {
  grid-column: span 7;
}
.bookshelf-landing .c8 {
  grid-column: span 8;
}
.bookshelf-landing .c12 {
  grid-column: span 12;
}

.bookshelf-landing .card {
  background: var(--deep);
  border: 0.5px solid var(--char);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookshelf-landing .card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  z-index: 5;
}

.bookshelf-landing .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookshelf-landing .card:hover::after {
  transform: scaleX(1);
}

.bookshelf-landing .card-ghost {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--brown);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.35s, transform 0.4s;
}

.bookshelf-landing .card:hover .card-ghost {
  -webkit-text-stroke-color: var(--char);
  transform: translate(-4px, -4px) scale(1.04);
}

.bookshelf-landing .card-inner {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  z-index: 1;
}

.bookshelf-landing .card-cat {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.bookshelf-landing .card:hover .card-cat {
  color: var(--bronze);
}

.bookshelf-landing .card-title {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.bookshelf-landing .card-title-inst {
  font-family: var(--ff-inst);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
}

.bookshelf-landing .card-body-text {
  font-family: var(--ff-inst);
  font-size: 13px;
  font-style: italic;
  color: var(--bronze);
  line-height: 1.65;
  flex: 1;
}

.bookshelf-landing .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 0.5px solid var(--char);
}

.bookshelf-landing .card-tag {
  font-family: var(--ff-mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: var(--brown);
  text-transform: uppercase;
  transition: color 0.3s;
}

.bookshelf-landing .card:hover .card-tag {
  color: var(--sepia);
}

.bookshelf-landing .card-arrow {
  font-size: 15px;
  color: var(--sepia);
  transition: transform 0.3s, color 0.3s;
  font-family: var(--ff-serif);
}

.bookshelf-landing .card:hover .card-arrow {
  transform: translate(3px, -3px);
  color: var(--amber);
}

.bookshelf-landing .badge-live {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 0.5px solid var(--bronze);
  padding: 2px 7px;
  margin-bottom: 0.6rem;
}

.bookshelf-landing .card-dormant {
  pointer-events: none;
  cursor: default;
}

.bookshelf-landing .card-dormant::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 18px,
    rgba(30, 20, 10, 0.25) 18px,
    rgba(30, 20, 10, 0.25) 19px
  );
  z-index: 2;
  pointer-events: none;
}

.bookshelf-landing .card-dormant .card-cat {
  color: var(--brown);
}

.bookshelf-landing .card-dormant .card-title {
  color: var(--sepia);
}

.bookshelf-landing .card-dormant .card-body-text {
  color: var(--brown);
}

.bookshelf-landing .soon-chip {
  font-family: var(--ff-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  border: 0.5px solid var(--char);
  padding: 2px 7px;
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* ──────────────────────────────────────────
   Text band / quote break / dataviz block
───────────────────────────────────────── */

.bookshelf-landing .type-break {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.bookshelf-landing .type-break-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.bookshelf-landing .type-break-bg span {
  font-family: var(--ff-serif);
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 700;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--char);
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.bookshelf-landing .type-break-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bookshelf-landing .type-break-q {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 4vw, 48px);
  font-style: italic;
  color: var(--vellum);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 0.5rem;
}

.bookshelf-landing .type-break-q em {
  color: var(--amber);
  font-style: normal;
}

.bookshelf-landing .type-break-attr {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--sepia);
  text-transform: uppercase;
  margin-top: 1.5rem;
  display: block;
}

.bookshelf-landing .text-band {
  border-top: 0.5px solid var(--char);
  border-bottom: 0.5px solid var(--char);
  padding: 1.4rem 0;
  margin: 3.5rem -2.5rem;
  display: flex;
  align-items: baseline;
  gap: 3rem;
  overflow: hidden;
}

.bookshelf-landing .text-band-big {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 2.5rem;
  -webkit-text-stroke: 0.5px var(--brown);
  color: transparent;
}

.bookshelf-landing .text-band-items {
  display: flex;
  gap: 2.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.bookshelf-landing .text-band-item {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bookshelf-landing .text-band-item::before {
  content: "—";
  color: var(--brown);
}

.bookshelf-landing .dv-block {
  background: var(--deep);
  border: 0.5px solid var(--char);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 9px;
}

.bookshelf-landing .dv-block::before {
  content: "DATA";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--ff-serif);
  font-size: 80px;
  font-weight: 700;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--char);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.bookshelf-landing .dv-kicker {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.bookshelf-landing .dv-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 700;
  font-style: italic;
  color: var(--ivory);
  line-height: 0.92;
  max-width: 65%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bookshelf-landing .dv-desc {
  font-family: var(--ff-inst);
  font-size: 14px;
  font-style: italic;
  color: var(--bronze);
  max-width: 55%;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.bookshelf-landing .dv-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.bookshelf-landing .chip {
  font-family: var(--ff-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--sepia);
  border: 0.5px solid var(--brown);
  padding: 3px 10px;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────
   Writings band
───────────────────────────────────────── */

.bookshelf-landing .writings-card {
  border: 0.5px solid var(--char);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  background: var(--deep);
  margin-bottom: 3rem;
}

.bookshelf-landing .writings-big {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 3.5vw, 42px);
  font-style: italic;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
}

.bookshelf-landing .writings-sub {
  font-family: var(--ff-inst);
  font-size: 13px;
  font-style: italic;
  color: var(--bronze);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ──────────────────────────────────────────
   Footer
───────────────────────────────────────── */

.bookshelf-landing .foot {
  border-top: 0.5px solid var(--char);
  padding: 3.5rem 0 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.bookshelf-landing .foot-sig {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 700;
  color: var(--sand);
  line-height: 1.1;
}

.bookshelf-landing .foot-parent {
  font-family: var(--ff-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--sepia);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.bookshelf-landing .foot-right {
  text-align: right;
}

.bookshelf-landing .foot-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.bookshelf-landing .foot-links a {
  font-family: var(--ff-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  text-decoration: none;
  transition: color 0.2s;
}

.bookshelf-landing .foot-links a:hover {
  color: var(--amber);
}

.bookshelf-landing .foot-set {
  font-family: var(--ff-inst);
  font-size: 11.5px;
  font-style: italic;
  color: var(--brown);
  line-height: 1.5;
}

/* ──────────────────────────────────────────
   Scroll reveal — see bookshelf-reveal.js
───────────────────────────────────────── */

.bookshelf-landing .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookshelf-landing .reveal.vis {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .bookshelf-landing .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ──────────────────────────────────────────
   Responsive
───────────────────────────────────────── */

@media (max-width: 720px) {
  .bookshelf-landing .wrap {
    padding: 0 1.25rem;
  }
  .bookshelf-landing .c4,
  .bookshelf-landing .c5,
  .bookshelf-landing .c6,
  .bookshelf-landing .c7,
  .bookshelf-landing .c8 {
    grid-column: span 12;
  }
  .bookshelf-landing .dv-title,
  .bookshelf-landing .dv-desc {
    max-width: 100%;
  }
  .bookshelf-landing .dv-block::before {
    display: none;
  }
  .bookshelf-landing .hero-ghost {
    display: none;
  }
  .bookshelf-landing .text-band {
    flex-direction: column;
    gap: 1rem;
  }
  .bookshelf-landing .text-band-big {
    padding-left: 1.25rem;
    font-size: 38px;
  }
}
