/* Heavyweight Press
   Type: Barlow Condensed (headings, controls) + Source Serif 4 (reading text).
   Colour: deep launch-hall navy, cool paper, one signal orange used only for actions. */

:root {
  --ink: #0e1c2b;
  --ink-2: #182c41;
  --paper: #f2f5f7;
  --white: #ffffff;
  --text: #16202b;
  --muted: #53647a;
  --rule: #d2dae2;
  --rule-dark: #2c4560;
  --signal: #d6460f;
  --signal-hover: #b73a0a;
  --link: #0b5c80;
  --link-dark: #8fd5f2;
  --star: #f2a900;
  --star-off: #c4cdd6;

  /* Semantic tokens. Themes override these; the defaults reproduce the Classic look exactly. */
  --heading: var(--ink);          /* headings, strong lines and strong text on light surfaces */
  --on-heading: #fff;             /* text on a --heading coloured fill (button hover) */
  --on-ink: #fff;                 /* text on dark surfaces (hero, footer, page heads) */
  --on-ink-hi: #e4ecf4;
  --on-ink-soft: #c3d1e0;
  --on-ink-dim: #9db0c4;
  --on-ink-faint: #8fa6bd;
  --on-signal: #fff;              /* text on a --signal button */
  --surface: var(--white);        /* header, alternating bands, cards */
  --field-bg: #fff;               /* form fields */
  --field-text: var(--text);
  --field-border: #fff;
  --logo-filter: none;            /* the logo is dark artwork on a pale background */
  --logo-blend: normal;

  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.7 var(--serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, video { max-width: 100%; display: block; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; color: var(--heading); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.wrap.narrow { width: min(100% - 48px, 780px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 16px; z-index: 200; font-family: var(--display); font-size: 1.1rem; }
.skip:focus { left: 8px; }

.loading, .empty { color: var(--muted); padding: 64px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 700 1.3rem/1 var(--display); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-small { min-height: 42px; padding: 0 18px; font-size: 1.15rem; }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-hover); text-decoration: none; }
.btn-ghost { border-color: currentColor; background: transparent; color: var(--on-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.btn-quiet { border-color: var(--heading); background: transparent; color: var(--heading); }
.btn-quiet:hover { background: var(--heading); color: var(--on-heading); text-decoration: none; }

/* ---------- Header ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; color: var(--heading); text-decoration: none; font: 800 1.7rem/1 var(--display); }
.brand img { height: 46px; width: auto; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font: 600 1.2rem/1 var(--display); letter-spacing: .02em;
  color: var(--text); text-decoration: none;
  padding: 12px 14px; border-bottom: 3px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--rule); }
.nav a[aria-current='page'] { border-bottom-color: var(--signal); }
.nav .btn { margin-left: 12px; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--rule); background: var(--surface); border-radius: 2px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--heading); content: '';
}
.nav-toggle .bars { top: 22px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.35rem; }
  .nav .btn { margin: 16px 0 0; }
}

/* ---------- Hero / rotating display ---------- */

.hero { background: var(--ink); color: var(--on-ink); padding: 56px 0 28px; }
.hero a { color: inherit; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 64px; align-items: center; padding: 8px 0 44px;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

.badge {
  display: inline-block; margin: 0 0 18px; padding: 5px 14px;
  font: 600 1.05rem/1.2 var(--display); letter-spacing: .03em;
  border: 1.5px solid currentColor; border-radius: 40px; color: var(--link-dark);
}
.book-main .badge { color: var(--link); }

.slide-title {
  font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: .92;
  letter-spacing: -.01em; margin: 0 0 .3em; color: var(--on-ink);
}
.slide-title a { text-decoration: none; }
.byline { font-size: 1.25rem; margin: 0 0 20px; color: var(--on-ink-soft); }
.byline a { color: var(--on-ink); }
.slide-tagline { font-size: 1.3rem; line-height: 1.6; max-width: 36rem; color: var(--on-ink-hi); }
.hero .rating-line { color: var(--on-ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.slide-cover img {
  width: min(100%, 390px); margin-inline: auto;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1);
}

.carousel-controls {
  display: flex; align-items: flex-start; gap: 18px;
  padding-top: 20px; border-top: 1px solid var(--rule-dark);
}
.ticks { display: flex; gap: 14px; flex: 1; min-width: 0; }
.tick {
  flex: 1; min-width: 0; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--on-ink-faint); text-align: left; font: 600 1.1rem/1.3 var(--display);
}
.tick:hover { color: var(--on-ink); }
.tick.is-active { color: var(--on-ink); }
.tick .bar { display: block; height: 4px; background: var(--rule-dark); overflow: hidden; margin-bottom: 10px; }
.tick .fill { display: block; height: 100%; width: 0; background: var(--signal); }
.tick.is-active .fill { width: 100%; }
.carousel.is-playing .tick.is-active .fill { width: 0; animation: tick-fill var(--dur, 9s) linear forwards; }
.carousel.is-playing.is-held .tick.is-active .fill { animation-play-state: paused; }
.tick .label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tick-fill { to { width: 100%; } }

.ctrl {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; color: var(--on-ink); border: 1.5px solid var(--rule-dark); border-radius: 50%; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.ctrl:hover { background: var(--ink-2); border-color: var(--on-ink-faint); }
.ctrl svg { width: 20px; height: 20px; }
.ctrl-toggle::before { content: ''; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ctrl-toggle.is-paused::before { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .slide { grid-template-columns: 1fr; gap: 28px; }
  .slide-cover { order: -1; }
  .slide-cover img { width: min(70%, 260px); }
  .tick .label { display: none; }
  .tick .bar { margin-bottom: 0; }
  .ctrl { width: 42px; height: 42px; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.band { background: var(--surface); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-bottom: 2px solid var(--heading); padding-bottom: 10px; margin-bottom: 34px;
}
.section-head h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); margin: 0; }
.section-head a { font: 600 1.2rem/1 var(--display); letter-spacing: .02em; padding-bottom: 6px; white-space: nowrap; }
.display-head { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .6em; }

.page-head { background: var(--ink); color: var(--on-ink); padding: 56px 0 44px; }
.page-head h1 { color: var(--on-ink); font-weight: 800; font-size: clamp(3rem, 7vw, 5.2rem); margin: 0 0 .2em; }
.page-head p { color: var(--on-ink-soft); font-size: 1.25rem; margin: 0; }

/* ---------- Book cards ---------- */

.book-group + .book-group { margin-top: 56px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 44px 32px; }
.book-card .cover-link img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 18px 32px -18px rgba(14, 28, 43, .55);
  transition: transform .2s ease;
}
.book-card .cover-link:hover img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .book-card .cover-link:hover img { transform: none; } }
.book-card h3 { font-weight: 800; font-size: 1.75rem; margin: 20px 0 4px; }
.book-card h3 a { color: var(--heading); text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.book-card .by { margin: 0 0 8px; color: var(--muted); font-size: 1rem; }
.book-card .status { font: 700 1.05rem/1 var(--display); color: var(--signal-hover); margin: 0 0 8px; }
.book-card .blurb { font-size: 1rem; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ---------- Author cards ---------- */

.author-list { display: grid; gap: 48px; }
.author-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.author-card img { width: 220px; aspect-ratio: 1; object-fit: cover; }
.author-card h3 { font-weight: 800; font-size: 2.2rem; margin-bottom: 2px; }
.author-card h3 a { color: var(--heading); text-decoration: none; }
.author-card h3 a:hover { text-decoration: underline; }
.headline { font: 600 1.35rem/1.2 var(--display); color: var(--muted); margin: 0 0 14px; letter-spacing: .01em; }
.traits { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.traits li { font: 600 1.05rem/1 var(--display); padding: 7px 14px; border: 1.5px solid var(--rule); border-radius: 40px; color: var(--heading); background: var(--paper); }
.card-links { margin: 0; font: 600 1.2rem/1 var(--display); }
.card-links .count { color: var(--muted); margin-left: 14px; font-weight: 500; }
@media (max-width: 640px) {
  .author-card { grid-template-columns: 1fr; gap: 20px; }
  .author-card img { width: 160px; }
}

/* ---------- Pull review ---------- */

.pull-review { margin: 0; text-align: center; }
.pull-review blockquote { margin: 18px 0 20px; }
.pull-review blockquote p { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; font-style: italic; margin: 0; }
.pull-review figcaption { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--muted); }

/* ---------- Stars ---------- */

.stars { display: inline-block; font-size: 1.3rem; letter-spacing: 3px; line-height: 1; vertical-align: -2px; }
.stars > span {
  display: inline-block;
  background: linear-gradient(90deg, var(--star) var(--pct, 100%), var(--star-off) var(--pct, 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; font: 600 1.15rem/1 var(--display); }

/* ---------- Book page ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0 0; font: 600 1.05rem/1.2 var(--display); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--heading); }

.book-top { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; padding: 36px 0 72px; align-items: start; }
.book-cover { position: sticky; top: 108px; }
.book-cover img { width: 100%; box-shadow: 0 28px 48px -22px rgba(14, 28, 43, .6); }
.book-main h1 { font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .95; margin-bottom: .2em; }
.book-main .byline { color: var(--muted); }
.book-main .byline a { color: var(--link); }

.facts { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts li { padding: 14px 28px 12px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.facts li:last-child { border-right: 0; margin-right: 0; }
.facts strong { display: block; font: 800 1.9rem/1 var(--display); color: var(--heading); }
.facts span { font: 500 1rem/1.4 var(--display); color: var(--muted); letter-spacing: .02em; }

.prose p { max-width: 38rem; }
.narrow .prose p, .prose.wide p { max-width: none; }
.small-head { font-weight: 700; font-size: 1.5rem; margin: 36px 0 8px; }
.format-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 600 1.3rem/1.4 var(--display); }

@media (max-width: 900px) {
  .book-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 48px; }
  .book-cover { position: static; }
  .book-cover img { width: min(70%, 300px); margin-inline: auto; }
}

.excerpt { margin: 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--signal); }
.excerpt p { font-size: 1.15rem; }

.details-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.details { margin: 0; border-top: 2px solid var(--heading); }
.details div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.details dt { font: 600 1.15rem/1.6 var(--display); color: var(--muted); }
.details dd { margin: 0; }
.author-aside img { width: 160px; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; }
.author-aside h3 { font-weight: 800; font-size: 1.9rem; margin-bottom: 8px; }
.author-aside p { font-size: 1rem; }
@media (max-width: 900px) {
  .details-grid { grid-template-columns: 1fr; gap: 48px; }
  .details div { grid-template-columns: 130px 1fr; }
}

/* ---------- Reviews ---------- */

.rating-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 32px; }
.rating-big { display: grid; gap: 8px; justify-items: start; }
.rating-big strong { font: 800 4.5rem/1 var(--display); color: var(--heading); }
.rating-big span:last-child { font: 500 1.05rem/1.3 var(--display); color: var(--muted); }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 56px 1fr 44px; gap: 12px; align-items: center; font: 500 1rem/1 var(--display); color: var(--muted); }
.bars .track { display: block; height: 10px; background: var(--rule); }
.bars .track span { display: block; height: 100%; background: var(--star); }
.source-note { margin: -8px 0 28px; font: 600 1.15rem/1.3 var(--display); }
.source-note span { color: var(--muted); font-weight: 500; margin-left: 14px; }
.sort { display: block; margin: 0 0 20px; font: 600 1.1rem/1 var(--display); }
.sort select { margin-left: 8px; font: inherit; padding: 8px 10px; border: 1.5px solid var(--heading); background: var(--field-bg); color: var(--field-text); }
.review { border-top: 2px solid var(--heading); padding: 24px 0 8px; }
.review header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.review h4 { font-weight: 800; font-size: 1.6rem; margin: 0; }
.review time { color: var(--muted); font: 500 1.05rem/1 var(--display); }
.review h5 { font-weight: 700; font-size: 1.5rem; margin: 14px 0 10px; }
.disclosure { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 14px; }
@media (max-width: 640px) { .rating-summary { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Author page ---------- */

.author-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 36px 0 64px; }
.author-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.author-top h1 { font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); margin-bottom: .1em; }
.link-list { list-style: none; padding: 0; display: flex; gap: 12px 28px; flex-wrap: wrap; font: 600 1.25rem/1.2 var(--display); }
@media (max-width: 820px) { .author-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Media ---------- */

.media-group + .media-group { margin-top: 56px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 28px; }
.media-item { margin: 0; }
.media-item figcaption h3 { font-weight: 800; font-size: 1.45rem; margin: 14px 0 4px; }
.media-item figcaption p { font-size: 1rem; line-height: 1.55; margin: 0 0 6px; }
.media-item .meta { color: var(--muted); font: 500 1rem/1.4 var(--display); }
.media-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--rule); cursor: zoom-in; }
.media-zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-video video, .embed { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.media-audio audio { width: 100%; }
.file-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: var(--paper); border: 1.5px solid var(--heading);
  color: var(--heading); text-decoration: none; transition: background-color .15s, color .15s;
}
.band .file-link { background: var(--paper); }
.file-link:hover { background: var(--heading); color: var(--on-heading); }
.file-icon { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem/1 var(--display); }
.file-icon svg { width: 34px; height: 34px; }
.file-action { font: 700 1.3rem/1 var(--display); }

dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(8, 16, 26, .88); }
dialog#lightbox img { max-width: 94vw; max-height: 82vh; margin: 0 auto; background: #fff; }
.lightbox-caption { color: #fff; text-align: center; font: 500 1.15rem/1.4 var(--display); margin: 12px 0 0; }
.lightbox-close { position: absolute; right: 0; top: -52px; background: #fff; border: 0; padding: 10px 18px; font: 700 1.15rem/1 var(--display); cursor: pointer; }

/* ---------- Filters ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { font: 600 1.15rem/1 var(--display); padding: 10px 18px; border: 1.5px solid var(--rule-dark); border-radius: 40px; background: transparent; color: var(--on-ink); cursor: pointer; }
.chip:hover { border-color: var(--on-ink-faint); }
.chip.is-on { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* ---------- Not found / errors ---------- */

.notfound { padding-top: 96px; padding-bottom: 96px; }
.notfound h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.notfound code { background: var(--surface); padding: 2px 6px; border: 1px solid var(--rule); font-size: .95em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: 56px 0 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 32rem; font-size: 1rem; }
.footer-name { font: 800 2rem/1 var(--display); color: var(--on-ink); margin-bottom: 12px; }
.site-footer a { color: var(--on-ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font: 600 1.25rem/1.2 var(--display); }
.footer-legal { border-top: 1px solid var(--rule-dark); padding: 20px 0 28px; font-size: .95rem; }
.footer-legal p { margin: 0; }

/* ---------- Email signup ---------- */

.section.signup { background: var(--ink); color: var(--on-ink); padding: 64px 0; }
.signup-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.signup h2 { color: var(--on-ink); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .3em; }
.signup-inner p { color: var(--on-ink-soft); margin: 0; }
.signup-form { display: grid; gap: 14px; }
.signup-form .row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-form input[type='email'] {
  flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 16px;
  font: 400 1.1rem var(--serif); color: var(--field-text); background: var(--field-bg);
  border: 2px solid var(--field-border); border-radius: 2px;
}
.signup-form .fine { font-size: .9rem; line-height: 1.5; color: var(--on-ink-dim); margin: 0; }
.form-light .signup-form input[type='email'] { border-color: var(--heading); }
.form-light .signup-form .fine { color: var(--muted); }
@media (max-width: 820px) { .signup-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Buy buttons ---------- */

.slide-more { margin: 18px 0 0; font: 600 1.2rem/1 var(--display); letter-spacing: .02em; }
.slide .actions { margin-top: 24px; }

.buy-panel { margin: 30px 0 0; padding-top: 6px; scroll-margin-top: 100px; }
.buy-panel .small-head { margin: 0 0 12px; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 38rem; }
.format-card {
  display: grid; align-content: start; gap: 2px; padding: 16px 18px 14px;
  border: 2px solid var(--heading); border-radius: 2px; background: var(--surface);
  color: var(--heading); text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.format-card:hover { background: var(--heading); color: var(--on-heading); }
.format-card.is-primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.format-card.is-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.f-label { font: 800 1.7rem/1.1 var(--display); }
.f-price { font: 700 1.25rem/1.2 var(--display); }
.f-where { font: 500 1.05rem/1.3 var(--display); opacity: .85; }

.buy-extras { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.buy-extras p { margin: 0; font-size: 1rem; max-width: 30rem; }
.isbn-copy { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px dotted var(--link); color: var(--link); cursor: pointer; padding: 0; }
.isbn-copy:hover { color: var(--heading); border-bottom-color: var(--heading); }

.buybar { display: none; }
@media (max-width: 820px) {
  .buybar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 2px solid var(--heading);
    transform: translateY(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .buybar.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
  .buybar-title { display: none; }
  .buybar .btn { flex: 1; min-width: 0; padding: 0 12px; }
  body.has-buybar { padding-bottom: 76px; }
}
@media (max-width: 820px) and (min-width: 560px) {
  .buybar-title { display: block; flex: 2; margin: 0; font: 800 1.3rem/1.1 var(--display); color: var(--heading); }
}
@media (prefers-reduced-motion: reduce) { .buybar, .buybar.is-visible { transition: none; } }

.book-top > *, .details-grid > *, .author-top > * { min-width: 0; }
.format-grid { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }

/* ---------- Hook line, praise ---------- */

.hook { margin: 0 0 22px; font: 600 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--display); letter-spacing: .01em; max-width: 34rem; }
.hook span { display: block; }
.hero .hook span:first-child { color: var(--on-ink-dim); }
.hero .hook span:last-child { color: var(--on-ink); }
.book-main .hook span:first-child { color: var(--muted); }
.book-main .hook span:last-child { color: var(--heading); }

.praise { margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--signal); max-width: 34rem; }
.praise blockquote { margin: 0; }
.praise blockquote p { margin: 0 0 6px; font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.praise figcaption { font: 600 1.1rem/1.3 var(--display); letter-spacing: .01em; }
.hero .praise figcaption { color: var(--on-ink-soft); }
.book-main .praise figcaption { color: var(--muted); }

/* ---------- Cast and campus ---------- */

.cast-group + .cast-group { margin-top: 72px; }
.group-intro { max-width: 40rem; margin-bottom: 28px; }
.sub-head { font-weight: 800; font-size: 2rem; margin: 40px 0 20px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; }
.cast-photo, .place-photo, .map-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--rule); cursor: zoom-in; }
.cast-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.cast-card h4 { font-weight: 800; font-size: 2rem; margin: 14px 0 0; }
.cast-name { margin: 2px 0 0; font: 600 1.2rem/1.3 var(--display); color: var(--muted); }
.cast-role { margin: 4px 0 0; font: 500 1.1rem/1.35 var(--display); color: var(--link); }
.cast-bio { margin-top: 10px; font-size: 1rem; line-height: 1.6; }
.cast-bio p { margin: 0 0 .6em; }

.map-zoom { margin-bottom: 36px; background: var(--surface); border: 1px solid var(--rule); }
.map-zoom img { width: 100%; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; }
.place-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place-card h4 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.8rem; margin: 14px 0 6px; }
.place-n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 700 1.2rem/1 var(--display); }
.place-card p { font-size: 1rem; line-height: 1.6; margin: 0; }

.cast-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.cast-strip a { display: block; text-decoration: none; color: var(--heading); }
.cast-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; background: var(--rule); }
.cast-strip span { display: block; margin-top: 8px; font: 700 1.3rem/1.1 var(--display); }
.cast-strip a:hover span { text-decoration: underline; }

/* Finished cast cards (1080 x 1350) are shown whole. */
.cast-grid.is-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.is-card .cast-photo { background: var(--ink); transition: transform .2s ease; }
.is-card .cast-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.is-card .cast-photo:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .is-card .cast-photo:hover { transform: none; } }

/* Finished campus cards (1080 x 1350), shown whole with the map number on top. */
.place-grid.is-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.place-card.is-card .place-photo { position: relative; background: var(--ink); }
.place-card.is-card .place-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.place-card.is-card .place-n { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; font-size: 1.4rem; background: var(--ink); border: 2px solid var(--on-ink); }
.place-sub { margin: 0 0 6px; font: 600 1.1rem/1.3 var(--display); color: var(--link); }

/* ---------- About, series ---------- */

.about-body .prose p { max-width: none; font-size: 1.5rem; line-height: 1.55; }
.about-contact { font: 600 1.3rem/1.2 var(--display); }

.series-links { margin: 18px 0 0; font: 600 1.2rem/1.3 var(--display); }
.series-links a { color: var(--on-ink); }
.series-line { margin: -6px 0 18px; font: 600 1.2rem/1.3 var(--display); }
.series-head .byline { margin-top: 14px; }
.series-head .byline a { color: var(--on-ink); }
.narrow-text { max-width: 44rem; margin-bottom: 48px; }
.narrow-text p { max-width: none; font-size: 1.2rem; }

.series-list { display: grid; gap: 44px; }
.series-entry { display: grid; grid-template-columns: 64px 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.series-n { margin: 0; font: 800 4.2rem/.9 var(--display); color: var(--heading); }
.series-entry .cover-link img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 18px 32px -18px rgba(14, 28, 43, .55); }
.series-entry h3 { font-weight: 800; font-size: 2.2rem; margin: 0 0 6px; }
.series-entry h3 a { color: var(--heading); text-decoration: none; }
.series-entry h3 a:hover { text-decoration: underline; }
.series-entry .status { font: 700 1.1rem/1 var(--display); color: var(--signal-hover); margin: 0 0 10px; }
.series-entry .actions { margin-top: 18px; }
.cover-placeholder { aspect-ratio: 2 / 3; display: grid; place-items: center; text-align: center; padding: 14px; border: 2px dashed var(--muted); color: var(--muted); font: 700 1.3rem/1.2 var(--display); }
.series-more { margin-top: 48px; font: 600 1.3rem/1.2 var(--display); }
@media (max-width: 700px) {
  .series-entry { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
  .series-n { font-size: 3rem; }
  .series-entry > div:last-child { grid-column: 1 / -1; }
  .series-entry .cover-link, .cover-placeholder { max-width: 160px; }
}
.series-head { margin-top: 16px; }

/* ---------- theme preview bar and /themes/ gallery (same in every theme) ---------- */
.theme-bar { position: fixed; z-index: 90; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: calc(100vw - 16px); padding: 6px; background: #111; color: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.45); font: 600 13px/1 system-ui, sans-serif; }
.theme-bar-label { padding: 8px 8px; color: #aaa; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.theme-bar a { color: #fff; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.theme-bar a:hover { background: #333; }
.theme-bar a[aria-current] { background: #fff; color: #111; }
.theme-bar .theme-bar-exit { color: #ffb38a; }
.theme-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.theme-card { background: var(--surface); border: 1px solid var(--rule); padding: 22px; }
.theme-card h2 { margin: 14px 0 6px; }
.theme-chips { display: flex; height: 44px; border: 1px solid var(--rule); }
.theme-chips span { flex: 1; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-code, .theme-note { color: var(--muted); font-size: .9rem; }
.theme-card code, .theme-note code { background: rgba(127,127,127,.15); padding: 1px 5px; }
