/* ==========================================================================
   Villy Abraham — Design System CSS
   Tokens → Base → Layout → Components → Utilities
   See /ARCHITECTURE.md for structure notes.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #16202A;
  --charcoal: #2B333B;
  --paper: #FAF7F1;
  --white: #FFFFFF;
  --grey: #6B6560;             /* secondary text — 5.37:1 on paper */
  --hairline: #E3DED3;         /* decorative borders/dividers only */
  --border-strong: #948A73;    /* functional borders: inputs, interactive edges — 3.2:1 */
  --teal: #2C5C54;             /* primary accent, links, CTAs — 7.10:1 on paper */
  --teal-hover: #1F4740;
  --ochre: #B08A45;            /* decorative/non-text accent only — fails AA as text */
  --ochre-text: #7A5A2E;       /* use for any ochre-family TEXT — 5.9:1 */
  --footer-grey: #C9C4B8;      /* text on charcoal — 7.36:1 */

  /* Typography */
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --size-display: 3.75rem;   /* 60px */
  --size-h1: 3rem;           /* 48px */
  --size-h2: 2.25rem;        /* 36px */
  --size-h3: 1.5rem;         /* 24px */
  --size-h4: 1.25rem;        /* 20px */
  --size-h5: 1.0625rem;      /* 17px */
  --size-h6: 0.9375rem;      /* 15px */
  --size-body-lg: 1.125rem;  /* 18px */
  --size-body: 1rem;         /* 16px */
  --size-small: 0.875rem;    /* 14px */
  --size-eyebrow: 0.75rem;   /* 12px */

  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  /* Layout */
  --max-width: 1280px;
  --gutter: 24px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 180ms;

  /* Focus */
  --focus-ring: 2px solid var(--teal);
}

/* -------------------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em 0;
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-tight);
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-family: var(--font-sans); font-size: var(--size-h4); font-weight: 600; }
h5 { font-family: var(--font-sans); font-size: var(--size-h5); font-weight: 600; }
h6 { font-family: var(--font-sans); font-size: var(--size-h6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover { color: var(--teal-hover); text-decoration: underline; }

ul, ol { margin: 0 0 1em 0; padding-left: 1.25em; }

button { font-family: inherit; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  font-size: var(--size-small);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* -------------------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--charcoal);
  color: var(--footer-grey);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ochre-text);
  margin-bottom: 12px;
}

.section--dark .section-eyebrow { color: var(--ochre); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  gap: var(--gutter);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  :root {
    --size-display: 2.5rem;
    --size-h1: 2.25rem;
    --size-h2: 1.75rem;
    --size-h3: 1.25rem;
  }
}

.stack { display: flex; flex-direction: column; gap: var(--gutter); }
.row { display: flex; align-items: center; gap: var(--gutter); }
.row-between { display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 720px) {
  .row { flex-wrap: wrap; }
}

/* -------------------------------------------------------------------------
   4. COMPONENTS
   ------------------------------------------------------------------------- */

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-logo:hover { text-decoration: none; color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: var(--size-small);
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--white); }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--teal); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* No gap between the trigger and the menu — a margin here creates a
     dead zone the cursor has to cross, which drops :hover and closes
     the menu before a click can land on Speaking/Advisory. */
  margin-top: 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 4px 16px rgba(22,32,42,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 16px; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

@media (max-width: 1200px) {
  /* backdrop-filter makes .nav the containing block for position:fixed
     children, which squeezed the slide-out menu into the header bar. */
  .nav { backdrop-filter: none; background: var(--paper); }
  .nav-links { position: fixed; inset: var(--nav-height, 79px) 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 32px var(--gutter); gap: 20px; overflow-y: auto; transform: translateX(100%); transition: transform var(--duration) var(--ease); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-dropdown-menu { display: block; position: static; box-shadow: none; border: none; margin-top: 8px; padding-left: 12px; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
  min-height: 44px;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal); color: var(--white); }

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.section--dark .btn-secondary { border-color: var(--white); color: var(--white); }
.section--dark .btn-secondary:hover { background: var(--white); color: var(--ink); }

.btn-tertiary {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  min-height: auto;
}
.btn-tertiary::after { content: "→"; transition: transform var(--duration) var(--ease); }
.btn-tertiary:hover::after { transform: translateX(4px); }

.btn-sm { padding: 10px 20px; font-size: 0.75rem; }

/* --- Cards --- */
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--duration) var(--ease);
}
.card:hover { border-color: var(--border-strong); }

.card-tag {
  font-size: var(--size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.card h3 { margin-bottom: 4px; }
.card-excerpt { color: var(--grey); font-size: var(--size-small); }
.card-meta { font-size: var(--size-small); color: var(--grey); margin-top: auto; }

/* --- Hero --- */
.hero {
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: var(--size-body-lg);
  color: var(--grey);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, var(--charcoal), var(--charcoal) 10px, var(--ink) 10px, var(--ink) 20px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* --- Placeholder image blocks --- */
.img-placeholder {
  background: repeating-linear-gradient(135deg, #DAD4C6, #DAD4C6 10px, #CFC8B7 10px, #CFC8B7 20px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  color: var(--grey);
  font-size: var(--size-small);
  padding: 12px;
  min-height: 220px;
}

/* --- Real diagram blocks (flat, on-brand SVG content) --- */
.diagram-box {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
}
.diagram-box svg { width: 100%; height: 100%; display: block; }
.hero-visual.hero-visual--diagram {
  background: var(--paper);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.hero-visual--diagram svg { width: 100%; height: 100%; display: block; }

.hero-visual.hero-visual--photo {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- Real book cover images --- */
.book-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  border: 1px solid var(--hairline);
}
.book-cover--sm { min-height: 180px; }

/* --- Stats / pull quote --- */
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.section--dark .stat-number { color: var(--ochre); }

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.4;
  max-width: 800px;
  border-left: 3px solid var(--teal);
  padding-left: 28px;
}

/* --- Forms --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field label {
  font-size: var(--size-small);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: var(--size-body);
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: var(--focus-ring);
  outline-offset: 1px;
}
.field-hint { font-size: var(--size-small); color: var(--grey); }

.newsletter-block {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 40px;
  background: var(--white);
}
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.newsletter-form input { flex: 1; }
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
}

.form-status {
  font-size: var(--size-small);
  margin-top: 12px;
}
.form-status[data-state="success"] { color: var(--teal); }
.form-status[data-state="error"] { color: #8A3B2E; }

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--footer-grey);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer h6 { color: var(--white); margin-bottom: 16px; }
.footer a { color: var(--footer-grey); font-size: var(--size-small); }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: var(--size-small);
  color: var(--grey);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Assessment UI --- */
.assessment-progress {
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.assessment-progress-fill {
  height: 100%;
  background: var(--teal);
  transition: width var(--duration) var(--ease);
}
.assessment-step-label {
  font-size: var(--size-small);
  color: var(--grey);
  margin-bottom: 32px;
}
.assessment-question h2 { margin-bottom: 28px; }
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assessment-option {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  background: var(--white);
  font-size: var(--size-body);
  text-align: left;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.assessment-option:hover { border-color: var(--border-strong); }
.assessment-option.is-selected { border-color: var(--teal); background: #F1F5F3; }
.assessment-nav { display: flex; justify-content: space-between; margin-top: 40px; }
.assessment-results-profile {
  font-family: var(--font-serif);
  font-size: var(--size-h2);
  margin-bottom: 16px;
}

/* --- Utilities --- */
.text-grey { color: var(--grey); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Scroll reveal (progressive enhancement) ---
   Content is visible by default so it never depends on JS to appear
   (matches the "fully readable with JS disabled" design goal). main.js
   adds a "js" class to <html> synchronously, and only THEN do unrevealed
   sections hide themselves pending the IntersectionObserver trigger. If
   JS never runs, .js is never added and .reveal stays fully visible. */
.reveal {
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* --- Book series volume list (books.html) --- */
.series-list { list-style: none; padding: 0; margin: 16px 0 20px; border-top: 1px solid var(--hairline); }
.series-list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); display: flex; gap: 16px; align-items: baseline; }
.series-num { flex: 0 0 88px; font-size: var(--size-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ochre-text); }

/* --- Media page headshot --- */
.media-headshot { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); background: var(--ink); }

/* --- Testimonials page --- */
/* A section stays hidden until it holds at least one testimonial. */
.t-section:not(:has(.t-item)) { display: none; }
.t-item { margin: 0; }
.t-video video,
.t-embed { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--ink); display: block; }
.t-embed { position: relative; overflow: hidden; }
.t-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-video figcaption,
.t-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: var(--size-small); }
.t-video figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
.t-item figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.t-item figcaption span span,
.t-video figcaption span { color: var(--grey); }
.t-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.t-quote figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); }
.t-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.t-image a { display: block; }
.t-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--hairline); }
.t-image figcaption { margin-top: 10px; font-size: var(--size-small); color: var(--grey); }
/* A single video gets the full width instead of half a row. */
.t-grid:has(> .t-video:only-child) { grid-template-columns: 1fr; max-width: 880px; }
.t-video .t-watch { margin-top: 8px; font-size: var(--size-small); }
.t-video--link figcaption { margin-top: 0; }

/* LEVERS has a square cover: show all of it inside the 2:3 frame on a
   black background that matches the cover art, instead of cropping it. */
.book-cover--square { object-fit: contain; background: #000; }

/* =========================================================================
   Responsive refinements — phones and tablets (added 2026-10-21)
   ========================================================================= */

/* Links at the bottom of a card line up along the card's bottom edge. */
.card > .btn-tertiary:last-child { margin-top: auto; }

/* Books page: keep covers book-sized instead of filling the column. */
.grid-2 > img.book-cover { max-width: 420px; justify-self: center; }

@media (max-width: 960px) {
  /* Books page: every cover sits ABOVE its own description (the desktop
     layout alternates sides, which mismatched covers and text when stacked). */
  .grid-2 > img.book-cover { order: -1 !important; max-width: 300px; }
  .grid-2 > img.book-cover + div,
  .grid-2 > div:has(+ img.book-cover) { order: 0 !important; }

  /* Home page book covers: two per row instead of one giant cover per screen. */
  .grid-4:has(.book-cover) { grid-template-columns: repeat(2, 1fr); }

  /* Hero portrait: a square photo instead of a thin strip with black bars. */
  .hero-visual.hero-visual--photo { aspect-ratio: 1 / 1; width: 100%; max-width: 340px; justify-self: center; background: transparent; }

  /* Less empty space under page intros. */
  .hero { padding-top: 40px; padding-bottom: 32px; }
  .hero-grid { gap: 32px; }
}

/* Tablets: use the extra width instead of a stretched phone layout. */
@media (min-width: 640px) and (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, 1fr); }
  .grid-2:not(:has(> img.book-cover)) { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .grid-4:has(.book-cover) { gap: 14px; }
  .grid-4:has(.book-cover) .card { padding: 14px; gap: 8px; }
  .grid-4:has(.book-cover) .card h3 { font-size: 1rem; }
}

/* Touch screens: give small arrow links a full-size tap area (44px)
   without changing how they look or shifting the layout. */
@media (pointer: coarse) {
  .btn-tertiary,
  .series-list a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; margin-bottom: -10px; }
  .card > .btn-tertiary:last-child { margin-top: auto; }
}
@media (min-width: 640px) and (max-width: 759px) {
  .grid-3:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Side-by-side text + button rows stack on phones. */
  .row-between { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Newsletter email box: full-size, easy to tap (it had browser-default styling). */
.newsletter-form input[type="email"] {
  font-family: var(--font-sans); font-size: var(--size-body);
  padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}

/* Home page books: five covers in one row on desktop, three per row on tablets. */
@media (min-width: 961px) { .grid-4:has(.book-cover) { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) and (max-width: 960px) { .grid-4:has(.book-cover) { grid-template-columns: repeat(3, 1fr); } }
