

.shelf-intro {
  color: var(--body);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.shelf-section {
  margin-bottom: 2.5rem;
}

.shelf-section h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}


.shelf {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.book {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.85rem 1rem;
  padding: 0.85rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.book:hover {
  border-color: #333;
  background: #151515;
  text-decoration: none;
}

a.book {
  color: inherit;
  text-decoration: none;
}

a.book:hover .book-title {
  color: var(--accent);
  text-decoration: none;
}

.book-spine {
  width: 2.1rem;
  height: 2.75rem;
  border-radius: 2px;
  background: linear-gradient(160deg, #2a3a2a 0%, #1a221a 55%, #0e120e 100%);
  border: 1px solid #333;
  box-shadow: inset 2px 0 0 rgba(143, 188, 143, 0.35);
  flex-shrink: 0;
}


.book:nth-child(3n) .book-spine {
  background: linear-gradient(160deg, #2a2a3a 0%, #1a1a22 55%, #0e0e12 100%);
  box-shadow: inset 2px 0 0 rgba(140, 160, 200, 0.35);
}

.book:nth-child(3n + 2) .book-spine {
  background: linear-gradient(160deg, #3a2a2a 0%, #221a1a 55%, #120e0e 100%);
  box-shadow: inset 2px 0 0 rgba(200, 150, 130, 0.3);
}

.book-body {
  min-width: 0;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
}

.book-meta {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.book-tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  align-self: center;
}

.shelf-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

@media (max-width: 480px) {
  .book {
    grid-template-columns: auto 1fr;
  }

  .book-tag {
    grid-column: 2;
    justify-self: start;
  }
}
