/* ==========================================================================
   Books Trib — design system
   ========================================================================== */

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --paper: #f4efe6;
  --paper-2: #efe8db;
  --ink: #1d1f22;
  --ink-2: #3d4248;
  --muted: #6b7178;
  --line: #e6dfd2;
  --line-strong: #d6cdbc;

  --teal: #0f5c63;
  --teal-700: #0b464c;
  --teal-50: #e7f0ef;
  --sage: #4f7457;
  --sage-50: #ebf1e9;
  --violet: #5b4a87;
  --violet-50: #eeebf5;
  --amber: #b9772f;
  --amber-50: #f8eedf;
  --danger: #a33a2c;
  --success: #2f6b45;

  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(29, 31, 34, .06);
  --shadow: 0 6px 24px -10px rgba(29, 31, 34, .22);
  --shadow-book: 0 1px 1px rgba(0,0,0,.08), 0 10px 22px -10px rgba(20, 24, 28, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1240px;
  --gutter: 20px;
  --section-gap: clamp(56px, 7vw, 96px);
}

*, *::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 { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 1000px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--plain::before { display: none; }
.accent-sage { --accent: var(--sage); --accent-50: var(--sage-50); }
.accent-violet { --accent: var(--violet); --accent-50: var(--violet-50); }
.accent-amber { --accent: var(--amber); --accent-50: var(--amber-50); }
.accent-teal { --accent: var(--teal); --accent-50: var(--teal-50); }
[class*="accent-"] .eyebrow { color: var(--accent); }

.tag {
  display: inline-block; font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--teal)); background: var(--accent-50, var(--teal-50));
  padding: 6px 8px; border-radius: 4px;
}
.tag--demo { color: #7a5a1c; background: #fbf0d6; }
.meta { color: var(--muted); font-size: 13.5px; }
.meta a { color: var(--ink-2); font-weight: 500; }
.meta-sep::before { content: "·"; margin: 0 6px; color: var(--line-strong); }
.byline { font-size: 14px; color: var(--ink-2); }
.byline strong { font-weight: 600; color: var(--ink); }
.lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--muted); }
.title-link:hover { color: var(--teal); }
.title-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease), color .2s; }
.title-link:hover { background-size: 100% 1px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rating-stars { --pct: 0%; position: relative; display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--line-strong); }
.rating-stars::before { content: "★★★★★"; }
.rating-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 14.5px/1 var(--font-sans); letter-spacing: .01em;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--teal); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Announcement + header ---------- */
.announcement { background: var(--ink); color: #ecebe7; font-size: 13px; }
.announcement .container { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 38px; text-align: center; }
.announcement a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.announcement a:hover { color: #fff; text-decoration-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 249, 245, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.header-inner > a:first-child { display: inline-flex; min-height: 70px; align-items: center; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo-word { font: 500 31px/1 var(--font-serif); color: var(--ink); letter-spacing: -.01em; }
.logo--inverse .logo-word { color: #fff; }
.logo-img { height: 40px; width: auto; }

@media (min-width: 1081px) {
  .main-nav { order: 3; flex: 0 0 100%; border-top: 1px solid var(--line); }
  .nav-list { justify-content: center; gap: 6px; }
  .nav-link { padding: 12px 12px; white-space: nowrap; }
  .nav-item > .dropdown { top: calc(100% - 2px); }
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: none; border: 0;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--ink); background: var(--paper); }
.nav-link[aria-current="page"] { color: var(--teal); }
.nav-caret { width: 10px; height: 10px; opacity: .6; transition: transform .2s; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) { .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; } }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
.dropdown a:hover { background: var(--paper); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink); }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 10px; padding: 16px 0; }
.search-form .input { flex: 1; }

@media (max-width: 1180px) and (min-width: 1081px) { .nav-link { padding: 12px 8px; font-size: 14px; } }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--surface); z-index: 60;
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 76px 20px 32px;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; }
  .nav-item.is-open > .dropdown { display: block; }
  .nav-close { position: absolute; top: 16px; right: 16px; }
  .nav-mobile-cta { display: grid !important; gap: 10px; margin-top: 24px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(20,22,25,.45); z-index: 55; }
  .nav-backdrop[hidden] { display: none; }
}
.nav-close, .nav-mobile-cta { display: none; }
@media (max-width: 1080px) { .nav-close { display: inline-grid; } }
body.nav-open { overflow: hidden; }

/* ---------- Breadcrumbs / page header ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

.page-header { padding: 36px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.page-header h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 14px 0 12px; }
.page-header p { max-width: 680px; color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.page-header--paper { background: var(--paper); border-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section-gap) 0 0; }
.section--tinted { background: var(--paper); padding: var(--section-gap) 0; margin-top: var(--section-gap); }
.section--tinted + .section { padding-top: var(--section-gap); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.section-head__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Book cover ---------- */
.cover {
  position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 3px 5px 5px 3px; overflow: hidden;
  box-shadow: var(--shadow-book); background: var(--paper-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cover::after { /* spine highlight */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(255,255,255,.12) 45%, rgba(0,0,0,0));
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
a:hover > .cover, .cover-link:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 18px 30px -12px rgba(20,24,28,.5); }


/* ---------- Book card ---------- */
.book-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.book-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.book-card__title { font: 600 1.02rem/1.3 var(--font-serif); }
.book-card__author { font-size: 13.5px; color: var(--muted); }
.book-card__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.book-card .label { font-size: 11.5px; font-weight: 600; color: var(--sage); letter-spacing: .02em; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 28px; }
.book-grid--lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 640px) { .book-grid, .book-grid--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; } }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 28px) / 6); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 6px 2px 18px; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.carousel-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color .2s, opacity .2s; }
.carousel-btn:hover { border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn svg { width: 16px; height: 16px; }
.rank { font: 600 13px/1 var(--font-serif); font-style: italic; color: var(--amber); }
@media (max-width: 1080px) { .carousel__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; } }
@media (max-width: 760px) { .carousel__track { grid-auto-columns: 42%; gap: 18px; } .carousel-btn { display: none; } }

/* ---------- Review cards ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.review-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .3s var(--ease); }
.review-card:hover { box-shadow: var(--shadow); }
.review-card h3 { font-size: 1.15rem; line-height: 1.28; margin: 10px 0 8px; }
.review-card__book { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.review-card__book em { font-style: italic; font-family: var(--font-serif); font-size: 14.5px; }
.review-card .meta { margin-top: 10px; }
@media (max-width: 1080px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .review-grid { grid-template-columns: 1fr; } .review-card { grid-template-columns: 88px minmax(0, 1fr); padding: 20px; gap: 18px; } }

/* ---------- Editorial grid ---------- */
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
.story-lead { display: flex; flex-direction: column; gap: 16px; }
.story-lead h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
.story-lead p { color: var(--ink-2); margin: 0; }
.story-media { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--accent-50, var(--teal-50)); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-media:hover img { transform: scale(1.03); }
.story-media--book { display: grid; place-items: center; }
.story-media--book .cover { width: 30%; min-width: 110px; }
.story-media__play { position: absolute; inset: auto auto 16px 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: rgba(20,22,25,.82); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; }
.story-media__play svg { width: 18px; height: 18px; }
.story-list { display: flex; flex-direction: column; }
.story-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.story-item:first-child { border-top: 0; padding-top: 0; }
.story-item h3 { font-size: 1.08rem; line-height: 1.3; margin: 8px 0 6px; }
.story-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--accent-50, var(--paper)); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb--book { display: grid; place-items: center; padding: 10px 22px; }
.story-thumb--book .cover { width: 100%; box-shadow: 0 6px 12px -6px rgba(0,0,0,.4); }
.editorial-band { border-top: 3px solid var(--accent, var(--teal)); padding-top: 26px; }
@media (max-width: 900px) { .editorial-grid { grid-template-columns: 1fr; gap: 28px; } }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.story-card { display: flex; flex-direction: column; gap: 14px; }
.story-card h3 { font-size: 1.2rem; line-height: 1.28; }
.story-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Authors ---------- */
.author-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .3s var(--ease); }
.author-card:hover { box-shadow: var(--shadow); }
.author-card h3 { font-size: 1.2rem; margin-top: 8px; }
.author-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.author-card__book { font-size: 13px; color: var(--muted); margin-top: 4px; }
.author-card__book em { font-family: var(--font-serif); color: var(--ink-2); }
.author-card .link-arrow { margin-top: auto; padding-top: 8px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font: 600 2rem/1 var(--font-serif); box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 56px; height: 56px; font-size: 1.1rem; box-shadow: none; }
.avatar--lg { width: 168px; height: 168px; font-size: 3rem; }
.author-grid > :nth-child(3n+2) .avatar:not(:has(img)) { background: var(--violet-50); color: var(--violet); }
.author-grid > :nth-child(3n+3) .avatar:not(:has(img)) { background: var(--amber-50); color: var(--amber); }
@media (max-width: 1080px) { .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .author-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews by genre ---------- */
.genre-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 34px 32px; }
.genre-col h3 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.genre-col h3 a.link-arrow { font: 600 12.5px/1 var(--font-sans); }
.mini-review { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.mini-review:last-child { border-bottom: 0; }
.mini-review h4 { font: 600 .98rem/1.3 var(--font-serif); margin-bottom: 3px; }

/* ---------- Newsletter ---------- */
.newsletter-band { position: relative; overflow: hidden; background: var(--teal); color: #e6f1ef; border-radius: 20px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.newsletter-band::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025); }
.newsletter-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 12px; }
.newsletter-band .eyebrow { color: #f1cf98; }
.newsletter-band p { margin: 0; color: #cfe3e0; }
.newsletter-form { position: relative; display: grid; gap: 12px; }
.newsletter-form__row { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 999px; }
.newsletter-form__row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; color: var(--ink); outline: none; }
.newsletter-form__row:focus-within { box-shadow: 0 0 0 3px rgba(241, 207, 152, .7); }
.newsletter-form .consent { font-size: 12.5px; color: #cfe3e0; display: flex; gap: 10px; align-items: flex-start; }
.newsletter-form .consent a { color: #fff; text-decoration: underline; }
.newsletter-form .consent input { margin-top: 3px; accent-color: #f1cf98; }
.newsletter-msg { font-size: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; }
.newsletter-msg--error { background: #fff1ee; color: var(--danger); }
@media (max-width: 860px) { .newsletter-band { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter-form__row { flex-direction: column; border-radius: 16px; } .newsletter-form__row input { padding: 12px 12px; } }

/* ---------- Footer ---------- */
.site-footer { background: #17191c; color: #b9bcc0; margin-top: var(--section-gap); padding: 72px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin: 18px 0 22px; max-width: 340px; line-height: 1.7; }
.footer-col h2 { font: 600 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #34383d; color: #d6d8db; }
.socials a:hover { border-color: #fff; color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-newsletter { display: grid; gap: 10px; margin-top: 8px; max-width: 400px; }
.footer-newsletter__row { display: flex; gap: 8px; }
.footer-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #8d9196; }
.footer-consent input { margin-top: 3px; accent-color: #9fd1cc; }
.footer-consent a { text-decoration: underline; }
.footer-newsletter input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 1px solid #34383d; background: #1f2226; color: #fff; padding: 0 16px; font: inherit; font-size: 14px; }
.footer-newsletter input:focus { outline: none; border-color: #9fd1cc; }
.footer-disclosure { margin-top: 48px; padding: 18px 0; border-top: 1px solid #2a2d31; font-size: 13px; color: #8d9196; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid #2a2d31; font-size: 13px; color: #8d9196; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; padding: 36px 0 0; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 22px; }
.detail-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; margin: 14px 0 8px; }
.detail-subtitle { font: italic 400 1.25rem/1.4 var(--font-serif); color: var(--ink-2); margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 30px 0; overflow: hidden; }
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px -1px 0 0; }
.facts dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; font-size: 14.5px; }
/* Book page */
.bk-hero { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 72px; align-items: center; padding: 24px 0 64px; }
.bk-show { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; box-shadow: 0 26px 46px -32px rgba(20, 20, 16, .8); }
.bk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bk-genre { font: 600 12px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bk-genre:hover { color: var(--ink); }
.bk-title { margin: 16px 0 10px; font: 500 clamp(2.4rem, 4.4vw, 4rem)/1.04 var(--font-serif); letter-spacing: -.02em; }
.bk-subtitle { margin: 0 0 12px; font: italic 400 1.3rem/1.35 var(--font-serif); color: var(--ink-2); }
.bk-by { margin: 0; font-size: 1.08rem; color: var(--muted); }
.bk-by a { color: var(--ink); font-weight: 600; }
.bk-by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-lead { margin: 26px 0 0; max-width: 620px; font: 400 1.32rem/1.5 var(--font-serif); color: var(--ink); }
.bk-info .retail-box { margin-top: 28px; padding: 16px 0; background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.bk-info .retail-mention { margin: 0; font: 400 1.08rem/1.4 var(--font-serif); color: var(--ink); }
.bk-facts { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 24px 0 0; }
.bk-facts dt { margin-bottom: 5px; font: 600 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bk-facts dd { margin: 0; font: 500 1.02rem/1.3 var(--font-serif); color: var(--ink); }
.bk-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; padding-top: 48px; border-top: 1px solid var(--line); }
.bk-body--solo { grid-template-columns: minmax(0, 1fr); }
.bk-main { display: grid; gap: 44px; max-width: 760px; }
.bk-main h2, .bk-similar h2 { margin: 0 0 18px; font: 500 clamp(1.6rem, 2.3vw, 2.05rem)/1.15 var(--font-serif); letter-spacing: -.01em; }
.bk-main .prose { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.bk-main .prose > * + * { margin-top: .55em; }
.bk-author { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; }
.bk-author__label { font: 600 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bk-author__who { display: flex; align-items: center; gap: 14px; }
.bk-author__who strong { font: 500 1.35rem/1.2 var(--font-serif); }
.bk-author p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bk-author__link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bk-author__link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.bk-author__link:hover svg { transform: translateX(4px); }
.bk-similar { margin-top: 24px; }
.bk-similar h2 { margin-bottom: 26px; }
@media (max-width: 1000px) { .bk-hero { gap: 44px; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } .bk-body { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) { .bk-hero { grid-template-columns: 1fr; padding-bottom: 44px; } .bk-show { width: 100%; max-width: 420px; margin: 0 auto; } }
/* Book page: the plain cover, and one full row of six related books (always whole rows). */
.bk-hero--plain { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; align-items: start; padding: 16px 0 56px; }
.bk-cover .cover { display: block; width: 100%; }
.bk-hero--plain .bk-title { margin-top: 14px; }
.book-grid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bk-hero--plain { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 40px; } .book-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bk-hero--plain { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; } .bk-cover { width: 100%; max-width: 240px; margin: 0 auto; } }
@media (max-width: 640px) { .book-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.retail-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; }
.retail-box h2 { font: 600 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.retail-box .btn { justify-content: space-between; width: 100%; }
.retail-mention { margin: 0; font: 500 1.02rem/1.45 var(--font-serif); color: var(--ink); }
.retail-mention em { font-style: italic; }
.disclosure { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 4px 0 0; }
.disclosure a { text-decoration: underline; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.author-strip { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; background: var(--paper); border-radius: 14px; margin: 36px 0; }
.author-strip p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .author-strip { grid-template-columns: 56px minmax(0, 1fr); } .author-strip .btn { grid-column: 1 / -1; } }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.share a, .share button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-aside { position: static; grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
}
@media (max-width: 560px) { .detail-aside { grid-template-columns: 1fr; } .detail-aside > .cover { width: 62%; margin: 0 auto; } }

/* ---------- Article / review reading ---------- */
.article-head { padding: 36px 0 32px; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; margin: 16px auto 16px; max-width: 900px; }
.article-head .lead { max-width: 680px; margin: 0 auto 20px; }
.article-head .meta { display: flex; justify-content: center; flex-wrap: wrap; }
.article-hero { border-radius: 16px; overflow: hidden; margin-bottom: 44px; aspect-ratio: 16 / 8; background: var(--paper); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 40px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review-book { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--paper); border-radius: 16px; padding: 26px; margin: 0 0 40px; }
.review-book h2 { font-size: 1.45rem; margin: 6px 0 6px; }
@media (max-width: 560px) { .review-book { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 18px; } }

.prose { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.78; color: #26292d; font-variation-settings: "opsz" 14; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.65rem; margin-top: 1.9em; font-variation-settings: "opsz" 72; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--amber); font-style: italic; font-size: 1.28rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::after { content: "❧"; color: var(--amber); font-size: 1.3rem; }
.prose > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .86; padding: 6px 10px 0 0; font-weight: 600; color: var(--teal); }
.prose--plain > p:first-of-type::first-letter { all: unset; }
.prose img { border-radius: 10px; }
.prose code { font-size: .85em; background: var(--paper); padding: 2px 6px; border-radius: 4px; }

/* ---------- Lists / misc ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.empty-state { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.side-card h2 { font-size: 1.2rem; margin-bottom: 12px; }
.side-card + .side-card { margin-top: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.notice { padding: 14px 18px; border-radius: 10px; font-size: 14px; background: var(--amber-50); color: #6d4a17; border: 1px solid #efd9b6; }
/* Genres page */
.gx-head { padding: 34px 0 48px; text-align: center; }
.gx-head__eyebrow { font: 600 12px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gx-head h1 { margin: 16px 0 16px; font: 500 clamp(2.6rem, 5.4vw, 4.8rem)/1.02 var(--font-serif); letter-spacing: -.02em; }
.gx-head p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; color: var(--ink-2); }
.gx-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 30px auto 0; }
.gx-index a { padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s; }
.gx-index a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 52px 28px; }
.gx-tile { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 120px; }
.gx-tile--lead { grid-column: span 3; }
.gx-tile__art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; box-shadow: 0 18px 34px -24px rgba(20, 20, 16, .75); }
.gx-tile:hover .scene__bg { transform: scale(1.05); }
.gx-fan { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.gx-fan .cover { position: relative; flex: none; width: 25%; margin: 0 -3.5%; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 26px -10px rgba(0, 0, 0, .7); transition: transform .45s var(--ease); }
.gx-fan .cover:nth-child(1) { transform: translateY(6%) rotate(-9deg); }
.gx-fan .cover:nth-child(2) { z-index: 2; transform: scale(1.2); }
.gx-fan .cover:nth-child(3) { transform: translateY(6%) rotate(9deg); }
.gx-tile:hover .gx-fan .cover:nth-child(1) { transform: translate(-12%, 6%) rotate(-12deg); }
.gx-tile:hover .gx-fan .cover:nth-child(2) { transform: scale(1.25) translateY(-3%); }
.gx-tile:hover .gx-fan .cover:nth-child(3) { transform: translate(12%, 6%) rotate(12deg); }
.gx-tile--lead .gx-fan .cover { width: 18%; margin: 0 -2.2%; }
.gx-tile--lead .gx-fan .cover:nth-child(1), .gx-tile--lead:hover .gx-fan .cover:nth-child(1) { transform: translateY(14%) rotate(-16deg); }
.gx-tile--lead .gx-fan .cover:nth-child(2), .gx-tile--lead:hover .gx-fan .cover:nth-child(2) { z-index: 1; transform: translateY(4%) rotate(-8deg); }
.gx-tile--lead .gx-fan .cover:nth-child(3) { z-index: 2; transform: scale(1.22); }
.gx-tile--lead:hover .gx-fan .cover:nth-child(3) { z-index: 2; transform: scale(1.27) translateY(-3%); }
.gx-tile--lead .gx-fan .cover:nth-child(4), .gx-tile--lead:hover .gx-fan .cover:nth-child(4) { z-index: 1; transform: translateY(4%) rotate(8deg); }
.gx-tile--lead .gx-fan .cover:nth-child(5), .gx-tile--lead:hover .gx-fan .cover:nth-child(5) { transform: translateY(14%) rotate(16deg); }
.gx-tile__body h2 { margin: 0 0 8px; font: 500 1.6rem/1.15 var(--font-serif); letter-spacing: -.01em; }
.gx-tile--lead .gx-tile__body h2 { font-size: 2.1rem; }
.gx-tile__body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gx-tile__go { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gx-tile__go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.gx-tile:hover .gx-tile__go svg { transform: translateX(4px); }
.gx-index a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Magazine and review pages */
.mg-grid { gap: 52px 28px; margin-bottom: 8px; }
.mg-grid .gx-tile, .review-grid .gx-tile, .card-grid .gx-tile { grid-column: auto; }
.gx-tile__body h3 { margin: 0 0 8px; font: 500 1.42rem/1.2 var(--font-serif); letter-spacing: -.01em; color: var(--ink); }
.mg-kicker { display: inline-block; margin-bottom: 10px; font: 600 11.5px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
a.mg-kicker:hover { color: var(--ink); }
.mg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13.5px; color: var(--muted); }
.mg-meta strong { color: var(--ink); font-weight: 600; }
.mg-meta--spaced { margin-top: 18px; }
.mg-book { margin: -2px 0 10px; font: 400 1rem/1.35 var(--font-serif); color: var(--ink-2); }
.mg-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.mg-lead .gx-tile__body h2 { margin: 0 0 16px; font: 500 clamp(2rem, 3.4vw, 3.1rem)/1.08 var(--font-serif); letter-spacing: -.015em; color: var(--ink); }
.mg-lead .gx-tile__body p { display: block; font-size: 1.08rem; margin-bottom: 18px; }
.mg-lead .gx-tile__go { margin-top: 18px; font-size: 14.5px; }
.mg-head { padding: 32px 0 40px; text-align: center; }
.mg-head h1 { margin: 6px 0 16px; font: 500 clamp(2.3rem, 4.8vw, 3.9rem)/1.06 var(--font-serif); letter-spacing: -.02em; }
.mg-head p { margin: 0 auto 20px; max-width: 640px; font: 400 1.25rem/1.5 var(--font-serif); color: var(--ink-2); }
.mg-head .mg-meta { justify-content: center; }
.mg-hero .gx-tile__art { aspect-ratio: 21 / 9; }
.mg-hero:hover .gx-fan .cover { transform: none; }
.mg-prose { margin-top: 48px; }
.mg-prose h2 { font-size: 1.75rem; font-weight: 500; }
.mg-feature { padding-top: 0; }
.mg-cta { margin-top: 26px; }
.mg-note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mg-aside-title { font: 500 1.4rem/1.2 var(--font-serif); }
@media (max-width: 1000px) { .mg-lead { grid-template-columns: 1fr; gap: 24px; margin-bottom: 52px; } .mg-hero .gx-tile__art { aspect-ratio: 16 / 9; } }
@media (max-width: 1000px) { .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gx-tile, .gx-tile--lead { grid-column: span 1; } .gx-tile--lead .gx-tile__body h2 { font-size: 1.6rem; } }
@media (max-width: 620px) { .gx-grid { grid-template-columns: 1fr; gap: 40px; } .gx-head { padding-bottom: 36px; } }
.search-group + .search-group { margin-top: 56px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; background: var(--surface); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; font: 600 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7178' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 92, 99, .16); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[type="file"] { padding: 9px; min-height: 0; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.checkbox a { color: var(--teal); text-decoration: underline; }
.form-error { color: var(--danger); font-size: 13px; font-weight: 500; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 24px; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: #eaf4ed; color: var(--success); border: 1px solid #cfe5d6; }
.alert--error { background: #fbeeec; color: var(--danger); border: 1px solid #f1d2cd; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.stack { display: grid; gap: 12px; }
[x-cloak], [hidden] { display: none !important; }


/* ==========================================================================
   Books Trib — editorial bookstore system (homepage, header, footer, cards)
   One accent (deep teal), warm neutrals, Playfair Display + DM Sans.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --container: 1400px;
  --teal-50: #ffffff;
  --sage-50: #ffffff;
  --violet-50: #ffffff;
  --amber-50: #ffffff;
  --ink: #1c1b19;
  --ink-2: #45413b;
  --muted: #75706a;
  --line: #e8e8e8;
  --line-strong: #d4d4d4;
  --teal: #0f5c63;
  --teal-700: #0a4449;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-book: 0 1px 1px rgba(28,27,25,.1), 0 10px 22px -12px rgba(28,27,25,.55);
  --gutter: clamp(18px, 3vw, 32px);
}
/* One accent across the site. */
.accent-sage, .accent-violet, .accent-amber, .accent-teal { --accent: var(--teal); --accent-50: var(--teal-50); }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.005em; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { gap: 0 28px; }
.header-inner > a:first-child { min-height: 76px; }
.header-search { display: none; }
@media (min-width: 1081px) {
  .header-search { display: flex; align-items: center; flex: 1 1 auto; max-width: 480px; margin: 0 auto; position: relative; }
  .header-search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 14.5px; color: var(--ink); }
  .header-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 92, 99, .12); }
  .header-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
  .header-actions [data-search-toggle] { display: none; }
  .header-actions { margin-left: 0; }
  .main-nav { border-top: 1px solid var(--line); }
  .nav-list { gap: 4px; }
  .nav-link { padding: 13px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
  .nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }
}
.header-actions .btn { border-radius: var(--radius); }
.header-actions .btn--primary { background: var(--ink); }
.header-actions .btn--primary:hover { background: #000; }
.dropdown { border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius); font-weight: 600; }
.btn--primary { background: var(--teal); }
.btn--primary:hover { background: var(--teal-700); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }

/* ---------- Covers ---------- */
.cover { border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); background: var(--paper-2); }
.cover img { object-fit: cover; }
.cover::after { width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.1) 50%, rgba(0,0,0,0)); }
a:hover > .cover, .cover-link:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 2px rgba(28,27,25,.1), 0 18px 30px -14px rgba(28,27,25,.6); }
/* Plain title card while a real cover is not yet available. */
.cover-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10%; padding: 14% 12%; text-align: center;
  background: #e8e1d4; color: var(--ink); container-type: inline-size; box-shadow: inset 0 0 0 5px #e8e1d4, inset 0 0 0 6px rgba(28,27,25,.18); }
.cover-card__title { font: 600 clamp(9px, 12cqi, 26px)/1.15 var(--font-serif); overflow-wrap: break-word; }
.cover-card__rule { align-self: center; width: 22%; height: 1px; background: rgba(28,27,25,.4); }
.cover-card__author { font: 600 clamp(6px, 6cqi, 12px)/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@container (max-width: 70px) { .cover-card__author, .cover-card__rule { display: none; } }

/* ---------- Book card ---------- */
.book-card { gap: 14px; }
.book-card__body { gap: 3px; }
.book-card__genre { font: 600 10.5px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.book-card__title { font: 600 1rem/1.3 var(--font-serif); }
.book-card__author { font-size: 13.5px; color: var(--muted); }
.book-card__foot { margin-top: 4px; }
.title-link:hover { color: var(--teal); }

/* ---------- Homepage shared ---------- */
.hp-section { padding-top: clamp(56px, 7vw, 96px); }
.hp-eyebrow { margin: 0 0 10px; font: 600 11.5px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.hp-head__title { font: 500 clamp(1.75rem, 2.7vw, 2.35rem)/1.12 var(--font-serif); margin: 0; }
.hp-head__sub { margin: 10px 0 0; max-width: 620px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.hp-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.hp-link::after { content: "→"; transition: transform .2s var(--ease); }
.hp-link:hover { color: var(--teal); text-decoration-color: currentColor; }
.hp-link:hover::after { transform: translateX(3px); }
.hp-arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.hp-arrow:hover { border-color: var(--ink); }
.hp-arrow:disabled { opacity: .35; cursor: default; }
.hp-arrow svg { width: 16px; height: 16px; }
.hp-byline { margin: 0; font-size: 14px; color: var(--muted); }
.hp-byline a { color: var(--ink-2); font-weight: 600; }
.hp-byline a:hover { color: var(--teal); }
.hp-byline--lg { font-size: 16px; }
.hp-panel { background: var(--paper); padding: clamp(24px, 4vw, 52px); border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hp-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hp-hero__title { font: 500 clamp(2.3rem, 4.4vw, 3.75rem)/1.08 var(--font-serif); letter-spacing: -.02em; margin: 0 0 20px; max-width: 14ch; }
.hp-hero__lead { font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.hp-search { position: relative; display: flex; gap: 8px; max-width: 540px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.hp-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 92, 99, .12); }
.hp-search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.hp-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px 0 42px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.hp-search .btn { min-height: 46px; padding: 0 22px; }
.hp-hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hp-hero__links a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.hp-hero__links a:hover { color: var(--teal); text-decoration-color: currentColor; }
.hp-hero__shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; max-width: 560px; justify-self: end; width: 100%; }
.hp-hero__book:nth-child(3n+2) { transform: translateY(clamp(18px, 3vw, 40px)); }
.hp-hero__book { display: block; }

/* ---------- Grids and shelves ---------- */
.hp-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 28px); }
.hp-grid--rows { --cols: 4; gap: 28px; }
.hp-grid--rows .book-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.hp-grid--rows .book-card__excerpt { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-shelf { grid-auto-columns: calc((100% - 5 * 26px) / 6); gap: 26px; padding: 4px 2px 12px; scrollbar-width: none; }
.hp-shelf::-webkit-scrollbar { display: none; }

/* ---------- Hidden gems ---------- */
.hp-panel .hp-head { border-bottom-color: var(--line-strong); }
.hp-gems { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.hp-gems__lead { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.hp-gems__title { font: 500 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--font-serif); margin: 0 0 8px; }
.hp-gems__excerpt { margin: 16px 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.hp-gems__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.hp-gems__list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.hp-gems__list li:first-child { border-top: 0; padding-top: 0; }
.hp-gems__list h3 { font: 600 1.05rem/1.3 var(--font-serif); margin: 0 0 4px; }
.hp-gems__blurb { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Editor's pick ---------- */
.hp-pick { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hp-pick__title { font: 500 clamp(2rem, 3.6vw, 3rem)/1.08 var(--font-serif); letter-spacing: -.015em; margin: 0 0 10px; }
.hp-pick__intro { font: italic 400 1.2rem/1.55 var(--font-serif); color: var(--ink); margin: 22px 0 0; max-width: 640px; }
.hp-pick__label { font: 600 11.5px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.hp-pick__why { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 640px; }
.hp-pick__why p { margin: 0 0 .8em; }
.hp-pick__author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 640px; }
.hp-pick__author p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.hp-pick__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Authors ---------- */
.hp-authors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.hp-author { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 2px solid var(--ink); }
.hp-author__top { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.hp-author h3 { font: 600 1.15rem/1.25 var(--font-serif); margin: 0 0 2px; }
.hp-author .avatar { background: var(--teal-50); color: var(--teal); }
.hp-author__bio { flex: 1; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.hp-author__books { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.hp-author__books li { width: 64px; }
.hp-author .hp-link { margin-top: auto; }

/* ---------- Genres ---------- */
.hp-genres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hp-genre { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.hp-genre:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 10px 24px -18px rgba(28,27,25,.5); }
.hp-genre__covers { display: flex; align-items: flex-end; height: 96px; margin-bottom: 16px; }
.hp-genre__covers .cover { width: 58px; flex: none; margin-right: -16px; }
.hp-genre__covers .cover:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.hp-genre:hover .hp-genre__covers .cover { transform: none; }
.hp-genre__name { font: 600 1.08rem/1.25 var(--font-serif); }

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--ink); color: #d8d3ca; border-radius: var(--radius); }
.newsletter-band::before { display: none; }
.newsletter-band .eyebrow { color: #cfe0dd; }
.newsletter-band .eyebrow::before { background: #cfe0dd; }
.newsletter-band h2 { font-weight: 500; }
.newsletter-band p { color: #c4beb4; }
.newsletter-form__row { border-radius: var(--radius); }
.newsletter-form .consent { color: #b5afa5; }
.newsletter-form .consent input { accent-color: var(--teal); }
.newsletter-form__row:focus-within { box-shadow: 0 0 0 3px rgba(207, 224, 221, .5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 36px 28px; }
.site-footer .logo--inverse .logo-word { color: var(--ink); }
.footer-brand p { color: var(--ink-2); }
.footer-col h2 { color: var(--ink); font: 600 13px/1.3 var(--font-sans); letter-spacing: .1em; }
.footer-col ul { gap: 9px; font-size: 14px; }
.footer-col a, .footer-bottom a { color: var(--ink-2); }
.footer-col a:hover, .footer-bottom a:hover { color: var(--teal); }
.footer-newsletter input { background: var(--surface); border-color: var(--line-strong); color: var(--ink); border-radius: var(--radius); }
.footer-newsletter input:focus { border-color: var(--ink); }
.footer-newsletter .btn--light { background: var(--ink); color: #fff; }
.footer-newsletter .btn--light:hover { background: #000; color: #fff; }
.footer-consent { color: var(--muted); }
.socials a { border-color: var(--line-strong); color: var(--ink-2); border-radius: var(--radius); }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-disclosure, .footer-bottom { border-top-color: var(--line-strong); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hp-grid { --cols: 4 !important; }
  .hp-grid--rows { --cols: 2 !important; }
  .hp-shelf { grid-auto-columns: calc((100% - 4 * 22px) / 5); gap: 22px; }
  .hp-genres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hp-hero__shelf { justify-self: start; max-width: 520px; }
  .hp-hero__book:nth-child(n+4) { display: none; }
  .hp-hero__title { max-width: 18ch; }
  .hp-gems { grid-template-columns: minmax(0, 1fr); }
  .hp-pick { grid-template-columns: minmax(0, 1fr); }
  .hp-pick__cover { width: min(60%, 280px); justify-self: center; }
  .hp-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hp-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .hp-head__actions .hp-arrow { display: none; }
  .hp-hero__shelf { gap: 12px; }
  .hp-hero__book:nth-child(n+4) { display: none; }
  .hp-search .btn { padding: 0 16px; }
  .hp-search input { font-size: 15px; }
  .hp-grid { --cols: 2 !important; gap: 30px 16px; }
  .hp-grid--rows { --cols: 1 !important; gap: 0; }
  .hp-grid--rows .book-card { grid-template-columns: 88px minmax(0, 1fr); padding: 18px 0; }
  .hp-shelf { grid-auto-columns: 40%; gap: 16px; }
  .hp-gems__lead { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
  .hp-gems__excerpt { font-size: 14.5px; }
  .hp-authors { grid-template-columns: minmax(0, 1fr); }
  .hp-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hp-genre { padding: 18px 16px; }
  .hp-genre__covers { height: 82px; }
  .hp-genre__covers .cover { width: 50px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) { .main-nav:not(.is-open) { box-shadow: none; } }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.load-more__btn { min-width: 220px; min-height: 48px; }
.load-more__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Books page: sidebar filters + card grid ---------- */
.shop { padding-top: 18px; }
.shop-head { margin-bottom: 26px; }
.shop-head h1 { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--font-serif); margin: 0; }
.shop-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-filters { border-right: 1px solid var(--line); padding-right: 22px; }
.shop-filters__toggle { display: none; }
.shop-filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.shop-filters__head h2 { font: 600 1.3rem/1.2 var(--font-serif); margin: 0; }
.shop-filters__head a { font-size: 13px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.filter-group { padding-bottom: 18px; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.filter-group[open] summary svg { transform: rotate(-90deg); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list label { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 32px; padding: 3px 0; font-size: 14px; line-height: 1.3; color: var(--ink-2); cursor: pointer; }
.filter-list label:hover span { color: var(--ink); }
.filter-list input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.filter-list input:checked ~ span { font-weight: 600; color: var(--ink); }
.shop-bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 4px 16px 12px; }
.shop-bar p { margin: 0; font-size: 14px; color: var(--ink-2); }
.shop-bar__sort { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.shop-sort { border: 0; background: transparent; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--teal); cursor: pointer; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1400px) { .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shop-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s var(--ease), border-color .25s; }
.shop-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px -18px rgba(28,27,25,.55); }
.shop-card__cover { display: block; margin-bottom: 12px; }
.shop-card__title { font: 600 .98rem/1.3 var(--font-serif); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card__author { font-size: 13.5px; line-height: 1.35; color: var(--teal); }
a.shop-card__author:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-card__genre { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.shop-card .tag--demo { align-self: flex-start; margin-top: 6px; }
.shop-panel .load-more { margin-top: 16px; }
.shop-panel .load-more__btn { min-width: 0; min-height: 40px; padding: 0 22px; font-size: 14px; }
@media (max-width: 1180px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shop-filters { border-right: 0; padding-right: 0; }
  .shop-filters__toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
  .shop-filters__toggle::-webkit-details-marker { display: none; }
  .shop-filters[open] form { padding: 8px 2px 4px; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .shop-card { padding: 12px 12px 14px; }
  .shop-bar { padding: 4px 4px 10px; }
}

/* Books page: the filters stay in view while the books scroll, below the sticky site header. */
@media (min-width: 901px) {
  .shop-layout > aside { position: sticky; top: var(--shop-sticky-top); max-height: calc(100vh - var(--shop-sticky-top) - 16px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; margin-left: -4px; padding-left: 4px; --shop-sticky-top: 92px; }
  .shop-layout > aside::-webkit-scrollbar { width: 6px; }
  .shop-layout > aside::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
}
@media (min-width: 1081px) { .shop-layout > aside { --shop-sticky-top: 142px; } }

/* Books page banner */
.promo-strip { background: #fff; color: var(--muted); text-align: center; font-size: 14px; font-weight: 400; letter-spacing: .015em; line-height: 1.4; padding: 12px 0; }
.promo-banner { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(circle, rgba(244, 217, 150, .55) 1px, transparent 1.6px) 0 0 / 46px 38px,
  radial-gradient(circle, rgba(255, 255, 255, .28) .8px, transparent 1.4px) 21px 17px / 71px 53px,
  linear-gradient(100deg, #0a4449 0%, #0f5c63 50%, #0a4449 100%); }
.promo-banner__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); min-height: 124px; max-width: 1040px; margin: 0 auto; padding: 16px 20px; }
.promo-banner__brand { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.promo-banner__title { font: 500 clamp(2rem, 3.4vw, 3rem)/1.05 var(--font-serif); color: #f4d996; letter-spacing: -.005em; white-space: nowrap; }
.promo-banner__line { font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: .04em; white-space: nowrap; }
.promo-banner__cta { padding: 9px 16px; background: #14282c; color: #f4d996; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s; }
.promo-banner__cta:hover { background: #f4d996; color: #14282c; }
.promo-banner__art { position: absolute; top: 12px; z-index: 1; display: flex; }
.promo-banner__art .cover { flex: none; width: 92px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .65); }
.promo-banner__art--left { left: -26px; }
.promo-banner__art--right { right: -26px; }
.promo-banner__art .cover + .cover { margin-left: -22px; }
.promo-banner__art--left .cover:nth-child(1) { transform: rotate(-9deg); }
.promo-banner__art--left .cover:nth-child(2) { transform: rotate(-3deg) translateY(10px); z-index: 1; }
.promo-banner__art--left .cover:nth-child(3) { transform: rotate(5deg) translateY(4px); }
.promo-banner__art--right .cover:nth-child(1) { transform: rotate(-5deg) translateY(4px); }
.promo-banner__art--right .cover:nth-child(2) { transform: rotate(3deg) translateY(10px); z-index: 1; }
.promo-banner__art--right .cover:nth-child(3) { transform: rotate(9deg); }
@media (max-width: 1240px) { .promo-banner__art { display: none; } }
@media (max-width: 760px) {
  .promo-banner__inner { flex-direction: column; gap: 6px; min-height: 0; padding: 20px 16px 22px; text-align: center; }
  .promo-banner__brand { font-size: 11.5px; }
  .promo-banner__cta { margin-top: 8px; }
}

/* All-white pages: where background colour used to separate things, a thin border does. */
.announcement { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.announcement a, .announcement a:hover { color: var(--ink); text-decoration-color: var(--line-strong); }
.hp-panel, .author-strip, .review-book { border: 1px solid var(--line); }
.avatar--sm, .hp-author .avatar { box-shadow: 0 0 0 1px var(--line-strong); }
.newsletter-band { background: #fff; color: var(--ink-2); border: 1px solid var(--line-strong); }
.newsletter-band h2 { color: var(--ink); }
.newsletter-band p { color: var(--ink-2); }
.newsletter-band .eyebrow { color: var(--teal); }
.newsletter-band .eyebrow::before { background: var(--teal); }
.newsletter-form__row { border: 1px solid var(--line-strong); }
.newsletter-form__row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 92, 99, .12); }
.newsletter-form .consent { color: var(--muted); }
.newsletter-form .consent a { color: var(--ink); }
.newsletter-msg { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.newsletter-msg--error { color: var(--danger); }
/* Long-form text keeps a readable line length on the wider layout. */
.detail-grid > :last-child { max-width: 920px; }
.hp-hero__shelf { max-width: 620px; }

/* ==========================================================================
   Homepage: magazine sections
   ========================================================================== */
.hp-section { padding-top: clamp(30px, 3.2vw, 46px); }
.hp-section--feature { padding-top: clamp(38px, 4.2vw, 60px); }
.hp > :last-child { padding-bottom: clamp(30px, 3.2vw, 46px); }
.kicker { font: 600 10.5px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

.mag-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mag-head h2 { margin: 0; font: 500 clamp(1.45rem, 1.9vw, 1.85rem)/1.15 var(--font-serif); letter-spacing: -.005em; }
.mag-head--display { margin-bottom: 20px; align-items: flex-end; }
.mag-head--display h2 { font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.02em; color: var(--teal); }
.mag-head--center { justify-content: center; position: relative; }
.mag-head--center .mag-head__actions { position: absolute; right: 0; }
.mag-head__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mag-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.mag-all svg { width: 11px; height: 11px; padding: 3px; box-sizing: content-box; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .2s var(--ease); }
.mag-all:hover { color: var(--teal); }
.mag-all:hover svg { transform: translateX(2px); border-color: var(--teal); }
.mag-head .hp-arrow { width: 32px; height: 32px; }

.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile__title { margin: 0; font: 500 1.08rem/1.28 var(--font-serif); color: var(--ink); }
.tile--sm .tile__title { font-size: .95rem; }
.tile--lg .tile__title { font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.2; }
.tile--xl .tile__title { font-size: clamp(1.4rem, 2vw, 1.95rem); line-height: 1.16; }
.tile__by { font-size: 13px; color: var(--muted); }
.tile__by em { font-family: var(--font-serif); }
.tile__excerpt { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tile .tag--demo { align-self: flex-start; }
.tile-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #1a1a1a; isolation: isolate; }
.tile-media--photo { aspect-ratio: 4 / 3; }
.tile-media--square { aspect-ratio: 1; }
.tile-media--portrait { aspect-ratio: 4 / 5; }
.tile-media--banner { aspect-ratio: 16 / 7.2; }
.tile-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-media:hover > img { transform: scale(1.04); }
.tile-media__play { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; background: rgba(10,10,10,.82); color: #fff; font-size: 12px; font-weight: 600; }
.tile-media__play svg { width: 16px; height: 16px; }


.front { padding-top: clamp(14px, 1.6vw, 24px); }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 2.6vw, 40px); align-items: start; }
.front-word { margin: 0 0 clamp(12px, 1.3vw, 18px); font: 700 clamp(3.2rem, 7.4vw, 7rem)/.92 var(--font-serif); letter-spacing: -.035em; color: var(--ink); }
.front-word span { color: var(--teal); }
.front-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.front-main__wide { grid-column: 1 / -1; }
.front-list { list-style: none; margin: 0; padding: 0; }
.front-list li { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.front-list li:first-child { padding-top: 0; }
.front-list li:last-child { border-bottom: 0; }
.front-list a { font: 500 .96rem/1.3 var(--font-serif); }
.front-list span { font-size: 12.5px; color: var(--muted); }
.front-side { display: grid; gap: 18px; padding-top: clamp(4px, 1vw, 16px); }
.front-side__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }

.vibe-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; max-width: 960px; margin: 0 auto; padding: clamp(20px, 2.3vw, 30px) 24px; text-align: center; color: #fff; background: linear-gradient(100deg, #0a4449, #0f5c63 50%, #0a4449); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.vibe-strip:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(10, 68, 73, .9); }
.vibe-strip span { font: italic 400 clamp(1.15rem, 1.9vw, 1.55rem)/1.2 var(--font-serif); }
.vibe-strip strong { font: 600 clamp(1.15rem, 1.9vw, 1.55rem)/1.2 var(--font-serif); color: #f4d996; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.mag-shelf { list-style: none; margin: 0; padding: 4px 2px 12px; grid-auto-columns: calc((100% - 9 * 16px) / 10); gap: 16px; scrollbar-width: none; }
.mag-shelf::-webkit-scrollbar { display: none; }
.mag-shelf__link { display: block; }
.mag-shelf__link .cover { box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 10px 18px -9px rgba(0,0,0,.55); }
.mag-shelf__caption { display: block; margin-top: 8px; font: 500 12.5px/1.3 var(--font-serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mag-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.mag-stack { display: grid; gap: 18px; align-content: start; }
.mag-pulse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.mag-latest { border: 1px solid var(--line); }
.mag-latest__social { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 10px; }
.mag-latest__social a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--teal); }
.mag-latest__social svg { width: 16px; height: 16px; }
.mag-latest h3 { margin: 0; padding: 10px; background: var(--teal); color: #fff; text-align: center; font: 500 1.02rem/1.1 var(--font-serif); }
.mag-latest ul { list-style: none; margin: 0; padding: 2px 16px 6px; }
.mag-latest li { display: flex; flex-direction: column; gap: 1px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mag-latest li:last-child { border-bottom: 0; }
.mag-latest a { font: 500 .93rem/1.3 var(--font-serif); }
.mag-latest span { font-size: 12px; color: var(--muted); }
.mag-authors { list-style: none; margin: 0; padding: 2px; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; scrollbar-width: none; }
.mag-authors::-webkit-scrollbar { display: none; }
.mag-buzz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.mag-news { display: grid; gap: 9px; padding: 18px 16px; text-align: center; border: 1px solid var(--line-strong); }
.mag-news h3 { margin: 0; font: 500 1.1rem/1.2 var(--font-serif); }
.mag-news p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.mag-news .input { min-height: 40px; border-radius: var(--radius-sm); font-size: 14px; }
.mag-news__consent { display: flex; gap: 7px; align-items: flex-start; text-align: left; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.mag-news__consent input { margin-top: 1px; accent-color: var(--teal); }
.mag-news__consent a { text-decoration: underline; }
.mag-news .btn { min-height: 40px; }
.mag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.slider { min-width: 0; }
.slider__head { margin: 0 0 12px; font: 500 1.2rem/1.2 var(--font-serif); }
.slider__viewport { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; min-width: 0; }
.slider__btn { position: absolute; top: 0; margin-top: calc((100% * 7.2 / 16) / 2 - 18px); z-index: 4; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: opacity .2s; }
.slider__btn:disabled { opacity: 0; pointer-events: none; }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.slider__btn svg { width: 15px; height: 15px; }
.mag-spot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.mag-spot > :first-child .tile-media { aspect-ratio: 16 / 9.15; }
.mag-genres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px clamp(16px, 2vw, 28px); }
.mag-genres h3 { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); font: 500 1.08rem/1.2 var(--font-serif); }
.mag-genres h3 a { display: inline-flex; align-items: center; gap: 8px; }
.mag-genres h3 svg { width: 11px; height: 11px; padding: 3px; box-sizing: content-box; border: 1px solid var(--line-strong); border-radius: 50%; }
.mag-genres ul { list-style: none; margin: 0; padding: 0; }
.mag-genres li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 11px; padding: 9px 0; align-items: start; }
.mag-genres li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mag-genres li .title-link { font: 500 .88rem/1.28 var(--font-serif); }
.mag-genres li span:not(.cover):not(.cover *) { font-size: 12px; color: var(--muted); }
.review-grid { gap: clamp(14px, 1.8vw, 26px); }

@media (max-width: 1180px) {
  .mag-shelf { grid-auto-columns: calc((100% - 7 * 14px) / 8); gap: 14px; }
  .mag-genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .front-grid { grid-template-columns: minmax(0, 1fr); }
  .front-side { padding-top: 0; }
  .mag-pulse, .mag-buzz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mag-pulse > .tile, .mag-buzz > :nth-child(2) { grid-column: 1 / -1; order: -1; }
  .mag-spot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-spot > :first-child { grid-column: 1 / -1; }
  .mag-authors { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
}
@media (max-width: 760px) {
  .mag-shelf { grid-auto-columns: 27%; gap: 12px; }
  .mag-row, .mag-two { grid-template-columns: minmax(0, 1fr); }
  .mag-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-authors { grid-auto-columns: 62%; }
}
@media (max-width: 560px) {
  .front-main { grid-template-columns: minmax(0, 1fr); }
  .front-list { padding-top: 12px; border-top: 2px solid var(--ink); }
  .mag-pulse, .mag-buzz { grid-template-columns: minmax(0, 1fr); }
  .mag-genres { grid-template-columns: minmax(0, 1fr); }
  .mag-head--center { justify-content: space-between; }
  .mag-head--center .mag-head__actions { position: static; }
}

/* ==========================================================================
   Homepage: premium finish — white sections, artwork behind the covers
   ========================================================================== */
.front { padding-top: clamp(18px, 2vw, 30px); }
.front-side { padding-top: 0; }

/* Headings */
.mag-head { margin-bottom: 18px; }
.mag-head__line { flex: 1; align-self: center; height: 1px; min-width: 24px; background: var(--line-strong); }
.mag-head--center .mag-head__line { display: none; }
.mag-head--display { margin-bottom: 24px; }
.mag-head--display .mag-head__line { align-self: flex-end; margin-bottom: 14px; }

/* Tiles */
.tile { gap: 12px; }
.tile__body { gap: 4px; }
.kicker { font-size: 10.5px; }
.tile-media { border-radius: 6px; box-shadow: 0 16px 30px -24px rgba(12, 22, 24, .75); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover .tile-media { transform: translateY(-3px); box-shadow: 0 22px 36px -22px rgba(12, 22, 24, .85); }
.tile__title a { transition: color .2s; }
.front-list { padding: 2px 0 0; border-top: 2px solid var(--ink); }
.front-list li:first-child { padding-top: 11px; }

/* Cover row */
.mag-shelf__link .cover { box-shadow: 0 2px 3px rgba(20, 20, 16, .16), 0 16px 22px -14px rgba(20, 20, 16, .7); }
.mag-shelf__caption { color: var(--ink); }

/* Banner strip */
.vibe-strip { border-radius: 6px; box-shadow: 0 18px 34px -26px rgba(8, 52, 57, .95); }


@media (max-width: 560px) { .front-list { padding-top: 0; } }

/* Artwork behind the covers (public/assets/img/scenes). Page and section backgrounds stay white. */
main:has(> .hp) + .site-footer { margin-top: 0; }
.scene { position: absolute; inset: 0; overflow: hidden; background: #1a1a1a; container-type: inline-size; }
.scene__bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform .7s var(--ease); }
.tile-media:hover .scene__bg { transform: scale(1.04); }
.scene--frame .scene__bg { background-image: url("../img/scenes/frame.svg"); }
.scene--moors .scene__bg { background-image: url("../img/scenes/moors.svg"); }
.scene--sunset .scene__bg { background-image: url("../img/scenes/sunset.svg"); }
.scene--noir .scene__bg { background-image: url("../img/scenes/noir.svg"); }
.scene--cosmos .scene__bg { background-image: url("../img/scenes/cosmos.svg"); }
.scene--ledger .scene__bg { background-image: url("../img/scenes/ledger.svg"); }
.scene--sunburst .scene__bg { background-image: url("../img/scenes/sunburst.svg"); }
.scene--archive .scene__bg { background-image: url("../img/scenes/archive.svg"); }
.scene--neon .scene__bg { background-image: url("../img/scenes/neon.svg"); }
.scene--meadow .scene__bg { background-image: url("../img/scenes/meadow.svg"); }
.scene--botanic .scene__bg { background-image: url("../img/scenes/botanic.svg"); }
.scene--curtain .scene__bg { background-image: url("../img/scenes/curtain.svg"); }
/* A second colourway so neighbouring tiles in one genre differ. */
.scene--alt.scene--cosmos .scene__bg { filter: hue-rotate(60deg); }
.scene--alt.scene--sunset .scene__bg { filter: hue-rotate(-32deg); }
.scene--alt.scene--ledger .scene__bg { filter: hue-rotate(130deg); }
.scene--alt.scene--sunburst .scene__bg { filter: hue-rotate(-28deg) saturate(.9); }
.scene--alt.scene--neon .scene__bg { filter: hue-rotate(95deg); }
.scene--alt.scene--botanic .scene__bg { filter: hue-rotate(150deg) saturate(.8); }
.scene__books { position: absolute; inset: 8% 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.scene__cover { flex: none; height: 100%; width: auto; aspect-ratio: 2 / 3; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 18px 32px -10px rgba(0,0,0,.72); transition: transform .4s var(--ease); }
.scene__cover img { position: absolute; inset: 0; }
.tile-media:hover .scene__cover { transform: translateY(-5px); }
.scene--poster::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 26%, rgba(8, 10, 14, .62) 62%); }
.scene--poster .scene__books { justify-content: flex-start; padding-left: 7%; }
.scene__caption { position: absolute; z-index: 3; top: 50%; left: 46%; right: 5%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1.4cqi; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.scene__caption strong { font: 500 clamp(14px, 5.4cqi, 44px)/1.1 var(--font-serif); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scene__caption em { font: italic 400 clamp(10px, 2.6cqi, 19px)/1.25 var(--font-serif); color: #f6e4b8; }

/* "Now Showing" board */
.marquee { aspect-ratio: 16 / 9.15; container-type: inline-size; background:
  radial-gradient(circle, #fff3c4 0 28%, #f7bd4b 34%, #a85a12 60%, transparent 64%) 0 0 / 2.7cqi 3.2cqi repeat-x,
  radial-gradient(circle, #fff3c4 0 28%, #f7bd4b 34%, #a85a12 60%, transparent 64%) 0 100% / 2.7cqi 3.2cqi repeat-x,
  linear-gradient(#7d1420 0 3.2cqi, #0c0c0d 3.2cqi calc(100% - 3.2cqi), #7d1420 calc(100% - 3.2cqi)); }
.mag-spot > :first-child .marquee { aspect-ratio: 16 / 9.15; }
.marquee__boards { position: absolute; inset: 3.2cqi 3cqi; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; align-items: center; }
.marquee__board { display: flex; flex-direction: column; gap: .7cqi; padding: .8cqi; background: #16161a; border-radius: .7cqi; box-shadow: 0 0 0 .25cqi #f7f4ea, 0 0 1.8cqi rgba(255, 240, 200, .5); }
.marquee__sign { display: block; padding: .5cqi 0; background: #fbf8ee; color: #111; font: 700 2.2cqi/1 var(--font-sans); letter-spacing: -.01em; text-align: center; text-transform: uppercase; }
.marquee__covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marquee__covers .cover { border-radius: 0; box-shadow: none; }
.marquee__covers .cover::after { display: none; }
.tile:hover .marquee { transform: translateY(-3px); }

/* The strip and "The Latest" header follow the all-white sections. */
.vibe-strip, .vibe-strip:hover { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.vibe-strip:hover { border-color: var(--teal); }
.vibe-strip strong { color: var(--teal); }
.mag-latest { border-radius: 6px; overflow: hidden; }
.mag-latest h3 { background: #fff; color: var(--teal); border-bottom: 2px solid var(--teal); }
.mag-news { border-radius: 6px; }
.front-list { border-top-color: var(--teal); }

/* Section standfirst and foot-of-page copy */
.mag-head:has(+ .mag-sub) { margin-bottom: 4px; }
.mag-sub { margin: 0 0 18px; max-width: 820px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mag-sub--center { margin-left: auto; margin-right: auto; text-align: center; }
.seo-copy { margin-top: clamp(40px, 5vw, 64px); padding: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--line); }
.seo-copy__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 4vw, 56px); }
.seo-copy h2 { margin: 0; font: 500 clamp(1.45rem, 2vw, 1.85rem)/1.2 var(--font-serif); }
.seo-copy__body { max-width: 840px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.seo-copy__body p { margin: 0 0 1em; }
.seo-copy__body p:last-child { margin-bottom: 0; }
.seo-copy__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .seo-copy__inner { grid-template-columns: minmax(0, 1fr); } }

/* Homepage covers finished as physical books: page edges, spine and a soft sheen. Nothing distorts the cover art. */
.scene__books { inset: 9% 0; }
.scene__cover, .mag-shelf__link .cover { border-radius: 2px 3px 3px 2px; }
.scene__cover { box-shadow: 1px 1px 0 #d8d2c5, 2px 1px 0 #f8f4ec, 3px 2px 0 #cdc6b7, 4px 2px 0 #f6f1e7, 5px 3px 0 #bbb4a4, 0 3px 6px rgba(0,0,0,.28), 6px 22px 34px -10px rgba(0,0,0,.72); }
.mag-shelf__link .cover { box-shadow: 1px 1px 0 #d8d2c5, 2px 1px 0 #f8f4ec, 3px 2px 0 #c6bfaf, 0 2px 4px rgba(0,0,0,.2), 4px 16px 22px -12px rgba(0,0,0,.62); }
.scene__cover::after, .mag-shelf__link .cover::after { z-index: 2; width: 6%; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.2) 42%, rgba(0,0,0,.16) 72%, transparent); }
.scene__cover::before, .mag-shelf__link .cover::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.05) 26%, transparent 44%); }
.mag-shelf__link:hover .cover { box-shadow: 1px 1px 0 #d8d2c5, 2px 1px 0 #f8f4ec, 3px 2px 0 #c6bfaf, 0 2px 4px rgba(0,0,0,.2), 4px 22px 28px -12px rgba(0,0,0,.68); }
.scene__cover img, .mag-shelf__link .cover img { object-fit: cover; }

/* Homepage tiles show each cover at its true shape, never trimmed. */
.scene__cover:has(img) { aspect-ratio: auto; width: auto; }
.scene__cover img { position: static; display: block; width: auto; height: 100%; max-width: none; object-fit: contain; }
