:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f4ef;
  color: #181713;
}

body {
  margin: 0;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7a5f2d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

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

.book-card {
  min-height: 132px;
  border: 1px solid rgba(40, 36, 28, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

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

.book-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.book-card p {
  margin: 0;
  color: #5c584f;
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tags span {
  border-radius: 999px;
  background: #ece2ce;
  color: #5f481f;
  padding: 3px 8px;
  font-size: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #171613;
    color: #f4efe6;
  }

  .book-card {
    border-color: rgba(235, 220, 190, 0.18);
    background: rgba(255, 255, 255, 0.06);
  }

  .book-card p {
    color: #c7beb0;
  }

  .tags span {
    background: rgba(205, 169, 92, 0.2);
    color: #e8cc8d;
  }
}
