/* ==========================================================================
   Samia Books — shelf and covers. Loaded after samia.css on the Books site only.
   ========================================================================== */

/* The shelf: a row of sample covers with their notes underneath */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); align-items: start; }
.book { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.book-cover { aspect-ratio: 2 / 3; width: 100%; max-width: 320px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden; transform-origin: 50% 92%; transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.book-cover svg { width: 100%; height: 100%; display: block; }
.book:hover .book-cover, .book:focus-within .book-cover { transform: rotate(-2.5deg) translate(-4px, -6px); box-shadow: var(--shadow-lg); }
.book:nth-child(even):hover .book-cover, .book:nth-child(even):focus-within .book-cover { transform: rotate(2.5deg) translate(-4px, -6px); }
.book-meta { display: grid; gap: 6px; justify-items: start; }
.book-meta h3 { margin: 4px 0 0; }
.book-meta p { margin: 0; font-size: var(--fs-small); }
.book-meta .year { font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
  .shelf { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .book-cover { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .book-cover { transition: none; } }

/* A centred sign-up form inside a .center block */
.center .inline-form { margin-inline: auto; }

/* Plain-English terms: a two-column definition list that stacks on phones */
.terms { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; margin: 0; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.terms dt, .terms dd { margin: 0; padding: 16px 20px; border-bottom: 1.5px solid var(--line); }
.terms dt { font-weight: 700; color: var(--ink); background: var(--lemon); border-right: 1.5px solid var(--line); }
.terms dt:nth-last-of-type(1), .terms dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) {
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms dt { border-right: 0; padding-bottom: 6px; }
  .terms dt:nth-last-of-type(1) { border-bottom: 1.5px solid var(--line); }
}
