/* Library grid — shares tokens with styles.css. */

.library-main { padding: 3rem 0 5rem; }

.library-title { margin: 0.3rem 0 0.5rem; }

.library-sub { color: var(--ink-soft); margin: 0 0 2.4rem; max-width: 46ch; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
}

.library-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffdf7;
  border-radius: var(--radius);
  box-shadow: var(--shadow-page);
  padding: 1.1rem 1.1rem 1.3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.library-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(38, 35, 69, 0.1), 0 20px 40px rgba(38, 35, 69, 0.18);
}

.library-cover {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-shade);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-cover img { width: 100%; height: 100%; object-fit: cover; }

.library-cover-placeholder { font-size: 2.4rem; opacity: 0.5; }

.library-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.library-tagline {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.3;
}

.library-tagline .name { color: var(--amber-deep); font-weight: 600; }

.library-empty { color: var(--ink-soft); font-style: italic; }
