/* ==========================================================================
   MUSE BOOKS — Bookshelf Landing Page (Anti-LLM-Slop Editorial Shelf)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

.shelf-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.shelf-masthead {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 20px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.shelf-masthead h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.shelf-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.shelf-intro {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 38px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.book-object {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  group: true;
}

.book-cover-3d {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px 10px 10px 3px;
  padding: 26px 24px 22px 30px;
  color: #f4f0e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 18px 34px rgba(24, 20, 14, 0.22),
    4px 0 0 -1px #ebe4d7,
    6px 0 0 -2px #cfc6b5,
    inset 12px 0 18px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.book-object:hover .book-cover-3d {
  transform: translateY(-6px) rotateY(-4deg);
  box-shadow:
    0 26px 46px rgba(24, 20, 14, 0.28),
    5px 0 0 -1px #ebe4d7,
    8px 0 0 -2px #cfc6b5,
    inset 12px 0 18px -10px rgba(0, 0, 0, 0.45);
}

.cover-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  margin: 12px 0 10px;
}

.cover-sub {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.78);
}

.cover-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 240, 232, 0.72);
}

.book-caption {
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}
