/* Workbook pages (resources/*-workbook.html), on top of styles.css. */

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 36px -20px rgba(20, 43, 40, 0.6);
}

.book-subtitle {
  font-weight: 700;
}

.book-hero .hero-links {
  justify-content: flex-start;
}

.book-facts {
  color: var(--text-subtle);
  font-size: 0.875rem;
}

main.page .book-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.book-pages li {
  margin: 0;
}

.book-pages img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

  .book-cover {
    width: min(100%, 260px);
    margin: 0 auto;
  }
}

main.page .article p.affiliate-note {
  color: var(--text-subtle);
  font-size: 0.875rem;
}
