body {
  background: #0b0b0b;
  color: #f2f2f2;
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: #1a1a1a;
  padding: 0.75rem;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header h1 {
  margin: 0;
}

.site-header .home-link {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 600;
}

.site-header .home-link:hover {
  text-decoration: underline; /* subtle hover feedback */
}

.coming-soon-banner {
  background: #dc2626;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book, .grid {
  padding: 1rem;
}

.cover {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 12px;
}

h1 {
  text-align: center;
}

.author {
  text-align: center;
  color: #999;
}

audio {
  width: 100%;
  margin-bottom: 1rem;
}

.btn {
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  background: #7c3aed;
  color: white;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on phones */
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on small tablets */
  }
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on larger screens */
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.card img {
  width: 100%;
  max-width: 160px;    /* caps the cover size */
  height: auto;        /* maintain aspect ratio */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 0.9rem;
  margin: 0;
  color: #f2f2f2;
}

main {
  flex: 1;
}

.site-footer {
  background: #1a1a1a;
  padding: 1rem;
  text-align: center;
  color: #999;
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

