/* ============================================================
   Castrix Press — UI kit styles.
   Tokens defined in ./tokens.css. Romance-coded:
   blush paper, hot pink + magenta + oxblood, Plus Jakarta +
   Tenor Sans + Caveat (strict scope discipline).
   ============================================================ */

/* ---------- Header ---------- */
.cp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--oxblood);
}
.cp-header__inner {
  max-width: var(--container-wide);
  width: 100%;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cp-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.cp-header__nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.cp-header__nav a {
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.cp-header__nav a.cp-active {
  border-bottom-color: var(--oxblood);
}
.cp-header__nav a:hover {
  opacity: 0.65;
}
.cp-header__right {
  font-family: var(--font-script);
  display: flex;
  gap: 22px;
  flex-shrink: 0;
  font-size: var(--t-h3);
}
.cp-header__right a {
  font-weight: 700;
  text-decoration: none;
  color: var(--pink);
  white-space: nowrap;
}
.cp-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.cp-header__burger span {
  display: block;
  height: 2px;
  background: var(--oxblood);
  border-radius: 2px;
  transition: opacity var(--dur) var(--ease);
}
.cp-header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 98;
  animation: cp-fade-in 180ms var(--ease) both;
}
.cp-header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-6) var(--s-7);
  gap: var(--s-4);
  background: var(--paper);
  border-left: 2px solid var(--oxblood);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  animation: cp-slide-in 220ms var(--ease) both;
}
.cp-header__drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: var(--s-3);
  line-height: 1;
}
.cp-header__drawer a {
  font-size: var(--t-h3);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.cp-header__drawer a.cp-active {
  color: var(--oxblood);
}
.cp-header__drawer-cta {
  font-family: var(--font-script);
  color: var(--pink) !important;
  margin-top: var(--s-3);
}
@keyframes cp-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cp-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ---------- Footer ---------- */
.cp-footer {
  background: var(--paper-2);
  border-top: 2px solid var(--oxblood);
  margin-top: var(--s-9);
}
.cp-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--s-7) 32px var(--s-6);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-7);
}
.cp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-footer__col--lead p {
  color: var(--ink-2);
  max-width: 38ch;
  font-size: var(--t-small);
}
.cp-footer__wordmark {
  display: block;
  align-self: flex-start;
  margin-bottom: 8px;
}
/* The lockup SVG has a viewBox but no intrinsic width/height, so without a
   cap it renders at the replaced-element default (huge). Pin it to the intended
   lockup size (420:80 ratio). */
.cp-footer__wordmark img {
  display: block;
  width: 220px;
  height: auto;
}
.cp-footer__col a {
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--ink-2);
}
.cp-footer__col a:hover {
  color: var(--ink);
}
.cp-newsletter {
  display: flex;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cp-newsletter input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: var(--t-small);
  background: transparent;
  color: var(--ink);
}
.cp-newsletter input:focus {
  outline: none;
}
.cp-newsletter button {
  background: var(--pink);
  color: var(--on-pink);
  border: 0;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cp-footer__bottom {
  border-top: 1px solid var(--rule-soft);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--t-micro);
  color: var(--ink-3);
}
.cp-footer__bottom a {
  color: var(--ink-3);
  text-decoration: none;
}
/* ©-year + site title, inline. The site-title renders as an <h1>, so reset its
   heading size to sit level with the copyright line. */
.cp-footer__copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cp-footer__copy .wp-block-site-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* ---------- Eyebrow / shared ---------- */
.cp-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.cp-eyebrow.brand {
  color: var(--magenta);
}
.cp-eyebrow.author {
  color: var(--oxblood);
}

/* ---------- Pills ---------- */
.cp-pill {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: var(--t-micro);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin: 0;
}
.cp-pill:hover {
  background: var(--paper-2);
}
.cp-pill--active {
  background: var(--oxblood);
  color: var(--on-oxblood);
  border-color: var(--oxblood);
}
.cp-pill--hot {
  background: var(--pink);
  color: var(--on-pink);
  border-color: var(--pink);
}
.cp-pill--accent {
  border-color: var(--accent);
  color: var(--accent);
}
.cp-pill--disabled,
.cp-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Heat indicator ---------- */
.cp-heat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cp-heat__bars {
  display: inline-flex;
  gap: 4px;
}
.cp-heat__bar {
  width: 16px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
}
.cp-heat__label {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}

/* ---------- CTA font ---------- */
.cta {
  font-family: var(--font-script);
  font-size: var(--t-h3);
}

/* ---------- Buttons ---------- */
.cp-btn {
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.cp-btn--primary {
  background: var(--oxblood);
  color: var(--on-oxblood);
}
.cp-btn--primary:hover {
  background: #4f0613;
}
.cp-btn--pink {
  background: var(--pink);
  color: var(--on-pink);
  box-shadow: var(--shadow-cta-pink);
}
.cp-btn--pink:hover {
  background: #ed1f74;
}
.cp-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.cp-btn:active {
  transform: scale(0.98);
}

/* ---------- Page scaffolding ---------- */
/* Page wrapper is full-width; the head hero spans edge-to-edge and body blocks
   self-constrain (each .cp-* block carries its own max-width). */
.cp-page,
.cp-home {
  padding-bottom: var(--s-6);
}
/* Page-head hero — a full-bleed blush band like the homepage featured hero.
   The band spans the full page width; its inline padding insets the content to
   the container's left edge so the hero lines up with the body below it
   (which is a --container-wide, centred, 32px-padded block). */
.cp-page__head {
  background: var(--paper-2);
  padding-block: var(--s-7);
  padding-inline: max(32px, calc((100% - var(--container)) / 2 + 32px));
}
.cp-page__title,
h1.cp-page__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--t-h1);
  letter-spacing: var(--tracking-h);
  line-height: var(--lh-snug);
  margin: 4px 0 14px;
}
.cp-page__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}

.cp-page__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cp-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) 32px;
}
.cp-page--wide .cp-section {
  max-width: var(--container-wide);
}
.cp-section__head {
  margin-bottom: var(--s-5);
}
.cp-section__head h2 {
  margin-top: 6px;
}
.cp-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.cp-section__more {
  font-weight: 700;
  text-decoration: none;
  color: var(--magenta);
}

.cp-grid {
  display: grid;
  gap: var(--s-6) var(--s-5);
}
.cp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cp-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Home — featured book hero ---------- */
.cp-feature {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.cp-feature__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-8) 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  align-items: center;
}
.cp-feature__script {
  position: absolute;
  top: 36px;
  right: 48px;
  font-family: var(--font-script);
  font-size: var(--t-h3);
  color: var(--magenta);
  transform: rotate(-4deg);
  font-weight: 500;
  line-height: 1.1;
  text-align: right;
  pointer-events: none;
}
.cp-feature__script .star {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}
.cp-feature__cover {
  background: #fff;
}
.cp-feature__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 12px 0 6px;
  max-width: 14ch;
}
.cp-feature__title .accent {
  color: var(--pink);
}
.cp-feature__by {
  font-weight: 700;
  color: var(--oxblood);
  margin-top: 6px;
  font-size: var(--t-small);
}
.cp-feature__by a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.cp-feature__by a:hover {
  border-bottom-color: currentColor;
}
.cp-feature__cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Author spotlight (single-author home section) ---------- */
.cp-author-spotlight {
  border-top: 1px solid var(--rule-soft);
}

.cp-author-spotlight__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) 32px;
}

.cp-author-spotlight__name {
  font-family: var(--font-titles);
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: var(--tracking-h);
  margin: 8px 0 12px;
  color: var(--accent, var(--pink));
}

.cp-author-spotlight__tag {
  font-size: 18px;
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 52ch;
}

.cp-author-spotlight__bio {
  font-size: var(--t-body);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.65;
  margin: 0 0 var(--s-4);
}

/* ---------- Contact page ---------- */
.cp-contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px var(--s-9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.cp-contact__block {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--paper-2);
  border-radius: var(--r-3);
}

.cp-contact__block p {
  color: var(--ink-2);
  font-size: var(--t-small);
  margin: 0;
}

.cp-contact__email {
  font-weight: 700;
  font-size: var(--t-body);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
  padding-top: var(--s-2);
}

.cp-contact__email:hover {
  color: var(--pink);
}

/* ---------- 404 ---------- */
.cp-notfound {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  padding: var(--s-8) 32px;
  max-width: 480px;
}

.cp-notfound__code {
  font-size: 72px;
  line-height: 1;
  color: var(--pink);
}

.cp-notfound__heading {
  font-family: var(--font-titles);
  font-size: var(--t-h1);
  font-weight: 400;
  margin: 0;
  letter-spacing: var(--tracking-h);
}

.cp-notfound__body {
  color: var(--ink-2);
  font-size: var(--t-body);
  margin: 0;
  max-width: 38ch;
}

.cp-notfound__home {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  margin-top: var(--s-1);
}

.cp-notfound__home:hover {
  color: var(--ink);
}

/* ---------- AuthorCard ---------- */
.cp-authorcard {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-3);
  padding: 22px;
  box-shadow: var(--e-1), var(--e-2);
  transition: border-color var(--dur) var(--ease);
}
.cp-authorcard:hover {
  border-color: var(--magenta);
}
.cp-authorcard__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent, var(--oxblood));
  margin: 4px 0 8px;
}
.cp-authorcard__tag {
  font-size: var(--t-small);
  color: var(--ink-2);
  margin: 0 0 14px;
  line-height: 1.5;
}
.cp-authorcard__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cp-authorcard__cta {
  font-weight: 700;
  color: var(--magenta);
}
.cp-authorcard:hover .cp-authorcard__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cp-authorcard--placeholder .cp-authorcard__name {
  color: var(--ink-3);
  font-style: italic;
}

/* ---------- Authors index — alternating rows ---------- */
.cp-authors-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-5) 32px var(--s-7);
}
.cp-author-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule-soft);
  max-width: 56%;
  transition: opacity var(--dur) var(--ease);
}
.cp-author-row:first-child {
  padding-top: 0;
}
.cp-author-row:nth-child(even) {
  margin-left: auto;
  text-align: right;
}
.cp-author-row:hover {
  opacity: 0.72;
}
.cp-author-row__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent, var(--oxblood));
  margin: 6px 0 10px;
}
.cp-author-row__genre {
  margin-bottom: 10px;
}
.cp-author-row__tag {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
}
.cp-author-row:nth-child(even) .cp-author-row__tag {
  margin-left: auto;
}
.cp-author-row__cta {
  text-align: end;
  font-weight: 700;
  color: var(--magenta);
  margin-top: 14px;
  display: block;
}
@media (max-width: 900px) {
  .cp-author-row {
    max-width: 100%;
  }
  .cp-author-row:nth-child(even) {
    margin-left: 0;
    text-align: left;
  }
  .cp-author-row:nth-child(even) .cp-author-row__tag {
    margin-left: 0;
  }
  .cp-author-row__name {
    font-size: 40px;
  }
}

/* ---------- BookCard ---------- */
/* Shared book cover image component */
.cp-cover-img {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--r-2);
  overflow: hidden;
  box-shadow: var(--shadow-cover);
}
.cp-cover-img__frame {
  position: relative;
}
.cp-cover-img__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Shown when a book has no cover image — holds the portrait cover ratio
   (1592×2560) so layout doesn't collapse. */
.cp-cover-img__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1592 / 2560;
  padding: var(--s-5);
  background: var(--paper-3);
  color: var(--ink-2);
}
.cp-cover-img__placeholder-title {
  font-family: var(--font-titles);
  font-size: var(--t-h3);
  line-height: 1.25;
  text-align: center;
}

.cp-cover-img__banner {
  color: #111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 6px var(--s-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-cover-img__banner--pre-order {
  background: var(--pink);
  color: var(--on-pink);
}

.cp-cover-img__banner--coming-soon {
  background: var(--oxblood);
  color: var(--on-oxblood);
}

.cp-cover-img__banner--ku {
  background: #f9a825;
}

.cp-cover-img__banner--kobo-plus {
  background: #bf0000;
  color: var(--on-pink);
}

.cp-cover-img__banner--published {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Catalogue status tag — a ribbon banner sitting between the cover and the
   series eyebrow. Flush-left (square left corners hug the card edge), rounded
   on the trailing end. Not overlaid on the cover, so banner-less cards need no
   spacer to stay aligned. Colours track the banner variants. */
.cp-bookcard__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  color: #111;
}
.cp-bookcard__tag--pre-order {
  background: var(--pink);
  color: var(--on-pink);
}
.cp-bookcard__tag--ku {
  background: #f9a825;
}
/* No status — an invisible ribbon of identical height so banner-less cards keep
   their series/title aligned with cards that do carry a ribbon. */
.cp-bookcard__tag--placeholder {
  background: transparent;
  color: transparent;
}

.cp-bookcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease);
}
.cp-bookcard:hover {
  transform: translateY(-2px);
}
.cp-bookcard__cover {
  min-width: 0;
}
.cp-bookcard__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-bookcard__title {
  font-family: var(--font-titles);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.005em;
  font-size: var(--t-h3);
  line-height: 1.1;
  color: var(--accent, var(--oxblood));
  margin-top: 2px;
}
.cp-bookcard__author {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- SeriesCard ---------- */
.cp-seriescard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--e-1), var(--e-2);
  transition: border-color var(--dur) var(--ease);
}
.cp-seriescard:hover {
  border-color: var(--magenta);
}
.cp-seriescard__title {
  font-family: var(--font-titles);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.005em;
  font-size: 28px;
  line-height: 1.15;
  color: var(--accent, var(--oxblood));
}
.cp-seriescard__author {
  font-size: var(--t-small);
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}
.cp-seriescard__covers {
  display: flex;
  gap: 8px;
}
.cp-seriescard__cover {
  flex: 1;
  aspect-ratio: 1592/2560;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-cover);
}
.cp-seriescard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Author detail ---------- */
/* Full-bleed blush hero, matching the homepage featured-book hero: the pink
   band spans edge-to-edge, the inner content is container-constrained. */
.cp-author__hero {
  padding: var(--s-7) 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--ink);
}
.cp-author__hero .cp-author__eyebrow {
  display: block;
  margin-bottom: 6px;
}
.cp-author__bio-text {
  font-size: 17px;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 var(--s-5);
  color: var(--ink-2);
}
.cp-author__hero::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 179, 204, 0.35),
    transparent 65%
  );
  pointer-events: none;
}
.cp-author__hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.cp-author__pull {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--t-h3);
  font-style: italic;
  color: var(--magenta);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 10px;
}
.cp-author__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 6px 0 14px;
  color: var(--ink);
}
.cp-author__tag {
  font-size: 18px;
  line-height: 1.4;
  max-width: 50ch;
  margin: 0 0 var(--s-5);
  color: var(--ink-2);
}
.cp-author__socials {
  font-size: var(--t-small);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-author__social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.cp-author__social-link:hover {
  color: var(--ink);
}
.cp-author__newsletter-cta {
  display: block;
  text-align: end;
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
  margin-top: var(--s-3);
  transition: opacity var(--dur) var(--ease);
}
.cp-author__newsletter-cta:hover {
  opacity: 0.7;
}

.cp-author__bio .lede {
  margin: 0;
}

.cp-series-name {
  font-family: var(--font-titles);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.005em;
  font-size: 36px;
  color: var(--accent, var(--oxblood));
}

/* ---------- Series index — line list ---------- */
.cp-series-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-5) 32px var(--s-7);
  display: flex;
  flex-direction: column;
}
.cp-series-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.cp-series-row__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-5);
  text-decoration: none;
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.cp-series-row__name {
  font-family: var(--font-titles);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--accent, var(--oxblood));
}
.cp-series-row__head:hover .cp-series-row__name {
  color: var(--magenta);
}
.cp-series-row__author {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.cp-series-row__count {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Book carousel (series index) ---------- */
.cp-carousel {
  position: relative;
}
.cp-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.cp-carousel__track::-webkit-scrollbar {
  display: none;
}
.cp-carousel__item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .cp-carousel__item {
    width: 60vw;
    max-width: 240px;
  }
}
.cp-carousel__nav {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--e-1), var(--e-2);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.cp-carousel__nav:hover:not(:disabled) {
  background: var(--paper-3);
  border-color: var(--magenta);
}
.cp-carousel__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.cp-carousel__nav--left {
  left: -20px;
}
.cp-carousel__nav--right {
  right: -20px;
}

/* ---------- Series ---------- */
.cp-reading-order {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.cp-reading-order__item {
  position: relative;
}
.cp-reading-order__card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cp-reading-order__link {
  display: grid;
  grid-template-columns: 80px 140px 1fr;
  gap: var(--s-5);
  color: inherit;
  align-items: start;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
  transition: border-color var(--dur) var(--ease);
}
.cp-reading-order__item:hover .cp-reading-order__link {
  border-bottom-color: var(--magenta);
}
.cp-reading-order__pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cp-reading-order__num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.cp-reading-order__rule {
  width: 24px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--accent, var(--oxblood));
}
.cp-reading-order__num span:last-child {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.cp-reading-order__cover {
  width: 140px;
  min-width: 0;
}
.cp-reading-order__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.cp-reading-order__title {
  font-family: var(--font-titles);
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 1.1;
  color: var(--accent, var(--oxblood));
}
.cp-reading-order__pub {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
}
.cp-reading-order__tagline {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 4px 0;
  max-width: 60ch;
}

/* ---------- Book detail ---------- */
.cp-book__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-8) 32px var(--s-7);
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: var(--s-8);
  row-gap: 0;
  align-items: start;
}

/* Left column */
.cp-book__cover {
  grid-column: 1;
  grid-row: 1 / span 10;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: sticky;
  top: 96px;
}

/* Right column */
.cp-book__title-block,
.cp-book__metarow,
.cp-book__blurb,
.cp-book__warnings,
.cp-book__tropes,
.cp-book__series-nav {
  grid-column: 2;
}
.cp-book__bonus-link,
.cp-book__newsletter-cta {
  text-align: end;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
  font-size: 26px;
}
.cp-book__bonus-link:hover,
.cp-book__newsletter-cta:hover {
  opacity: 0.7;
}

.cp-book__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--t-display-sm);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 8px 0 14px;
  color: var(--accent, var(--ink));
}
.cp-book__byline {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.cp-book__byline a {
  font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
}
.cp-book__metarow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: var(--s-5);
}
.cp-book__metarow a {
  color: var(--magenta);
  font-weight: 700;
  text-decoration: none;
}
.cp-book__blurb {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 58ch;
  margin: 0 0 var(--s-6);
}
.cp-book__tropes {
  margin-bottom: var(--s-6);
}
.cp-book__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cp-book__warnings {
  margin-top: var(--s-4);
}

.cp-book__series-nav {
  margin-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--s-4);
}

.cp-book__series-nav-prev,
.cp-book__series-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}

.cp-book__series-nav-next {
  align-items: flex-end;
  text-align: right;
}

.cp-book__series-nav-prev span,
.cp-book__series-nav-next span {
  font-family: var(--font-titles);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.cp-book__series-nav-prev:hover,
.cp-book__series-nav-next:hover {
  color: var(--pink);
}

.cp-book__series-nav-prev:hover span,
.cp-book__series-nav-next:hover span {
  color: var(--pink);
}

/* .cp-book__bonus-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.cp-book__bonus-link:hover {
  opacity: 0.85;
} */

.cp-collapse__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-3);
  padding: 14px 18px;
  cursor: pointer;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.cp-collapse__toggle:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}
.cp-collapse__chev {
  font-size: 18px;
  line-height: 1;
}
.cp-collapse__body {
  padding: var(--s-4) var(--s-5) 0;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.cp-collapse__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-collapse__body li::before {
  content: "—  ";
  color: var(--ink-4);
}

.cp-book__warnings-note {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  margin: 0;
}

/* ---------- Catalogue ---------- */
.cp-filters {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.cp-filters__row {
  display: flex;
  gap: var(--s-4);
}
.cp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cp-field span {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.cp-field select {
  appearance: none;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%231F0B12' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: 12px 36px 12px 14px;
  font: inherit;
  font-size: var(--t-small);
  color: var(--ink);
}
.cp-filters__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cp-heat-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  min-width: 160px;
}
.cp-heat-slider__track {
  position: relative;
  height: 6px;
  background: var(--paper-3);
  border-radius: var(--r-pill);
  margin: 10px 0;
}
.cp-heat-slider__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--accent, var(--oxblood));
  border-radius: var(--r-pill);
}
.cp-heat-slider__input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.cp-heat-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  margin-top: -7px;
}
.cp-heat-slider__input::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.cp-heat-slider__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.cp-heat-slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Mobile filter trigger — hidden on desktop */
.cp-filters-bar {
  display: none;
}
/* Mobile-only elements inside the panel */
.cp-filters__mobile-head,
.cp-filters__mobile-footer {
  display: none;
}
/* Backdrop */
.cp-filters-backdrop {
  display: none;
}

.cp-catalogue-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.cp-catalogue-meta--desktop {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.cp-catalogue-meta__clear {
  font-size: var(--t-micro);
  padding: 3px 10px;
}
.cp-empty {
  padding: var(--s-7);
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--rule-soft);
  border-radius: var(--r-3);
}

/* ---------- Mobile filters ---------- */
@media (max-width: 700px) {
  /* Hide inline filter panel, show mobile trigger */
  .cp-filters {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 32px rgba(31, 11, 18, 0.18);
    padding: 0 20px 20px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .cp-filters--open {
    transform: translateY(0);
  }
  .cp-filters__row {
    flex-direction: column;
  }
  .cp-filters__mobile-head {
    display: flex;
    align-items: center;
    padding: 12px 0 16px;
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 1;
  }
  .cp-filters__handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--rule-soft);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  .cp-filters__mobile-title {
    flex: 1;
    font-size: var(--t-body);
    font-weight: 700;
  }
  .cp-filters__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--ink-3);
    padding: 4px;
  }
  .cp-filters__mobile-footer {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding-top: var(--s-5);
  }
  .cp-filters__mobile-footer .cp-btn {
    width: 100%;
    justify-content: center;
  }
  .cp-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(31, 11, 18, 0.4);
  }
  .cp-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px var(--s-4);
  }
  .cp-filters-bar__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--oxblood);
    color: var(--on-oxblood);
    border: none;
    border-radius: var(--r-pill);
    padding: 10px 20px;
    font-size: var(--t-small);
    font-weight: 700;
    cursor: pointer;
  }
  .cp-filters-bar__badge {
    background: var(--pink);
    color: var(--on-pink);
    border-radius: 999px;
    font-size: var(--t-eyebrow);
    font-weight: 800;
    padding: 2px 7px;
  }
  .cp-filters-bar__count {
    font-size: 13px;
    color: var(--ink-3);
  }
  .cp-catalogue-meta--desktop {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cp-grid--3,
  .cp-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-feature__inner {
    grid-template-columns: 1fr;
  }
  .cp-feature__cover {
    max-width: 240px;
  }
  .cp-book__inner {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: var(--s-6) 20px var(--s-7);
  }
  .cp-book__cover {
    order: 1;
    align-content: center;
    position: static;
    width: 100%;
  }
  .cp-book__title-block {
    order: 2;
  }
  .cp-book__metarow {
    order: 3;
    width: 100%;
  }
  .cp-book__blurb {
    order: 4;
  }
  .cp-book__buy {
    /* max-width: 320px; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .rb-section {
    align-items: center;
  }

  .cp-book__warnings {
    order: 6;
  }
  .cp-book__tropes {
    order: 7;
  }
  .cp-book__series-nav {
    order: 8;
    width: 100%;
  }
  .cp-cover-img {
    /* max-width: 280px; */
    margin: 0 auto;
  }
  .cp-author__name {
    font-size: var(--t-h1);
  }
  .cp-feature__title {
    font-size: var(--t-h1);
  }
  .cp-book__title {
    font-size: 40px;
  }
  .cp-page__head,
  .cp-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Reading order: collapse to 2-col (cover | num+meta), drop number column */
  .cp-reading-order__link {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--s-4);
  }
  .cp-reading-order__num {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
  }
  .cp-reading-order__cover {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 110px;
  }
  .cp-reading-order__cover .cp-cover-img {
    max-width: none;
    margin: 0;
  }
  .cp-reading-order__meta {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }
  .cp-reading-order__title {
    font-size: 20px;
  }
  .cp-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cp-footer__inner {
    grid-template-columns: 1fr;
  }
  .cp-footer__bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cp-header__nav,
  .cp-header__right {
    display: none;
  }
  .cp-header__burger {
    display: flex;
  }
}

/* ===========================================================
   Bonus chapter reader — token overrides for this site
   =========================================================== */

.bc {
  --bc-accent: var(--ink);
  --bc-fg: var(--ink);
  --bc-fg-muted: var(--ink-2);
  --bc-font-body: var(--font-sans);
  --bc-font-heading: var(--font-titles);
  --bc-content-width: var(--container);
  --bc-gutter: var(--gutter);
}
.bc__body blockquote {
  border-left-width: 2px;
}

/* ===========================================================
   Bonus — gated access page (/authors/[slug]/bonus)
   =========================================================== */

.cp-bonus__intro {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cp-backlink {
  display: inline-block;
  margin-bottom: var(--s-4);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.cp-backlink:hover {
  color: var(--accent, var(--oxblood));
}
.cp-bonus__title {
  font-family: var(--font-titles);
  font-size: var(--t-h1);
  margin: var(--s-3) 0 var(--s-4);
}
.cp-bonus__chapter {
  border-top: 1px solid var(--paper-3);
}

.cp-bonus-gate {
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: var(--paper-2);
  border-radius: var(--r-3);
  text-align: left;
}
.cp-bonus-gate__heading {
  font-family: var(--font-titles);
  font-size: var(--t-h3);
  margin: 0 0 var(--s-2);
}
.cp-bonus-gate__body {
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}
.cp-bonus-gate__row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.cp-bonus-gate__input {
  flex: 1 1 220px;
  padding: 13px 16px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-pill);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.cp-bonus-gate__input:focus-visible {
  outline: 2px solid var(--accent, var(--oxblood));
  outline-offset: 1px;
}
.cp-bonus-gate__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.cp-bonus-gate__error {
  color: var(--oxblood);
  margin: var(--s-3) 0 0;
  font-size: var(--t-small);
}
.cp-bonus-gate--join .cp-kit-signup {
  margin: var(--s-4) 0;
}
.cp-bonus__intro .cp-kit-signup {
  margin-top: var(--s-6);
  text-align: left;
}

/* Kit sign-up form — our own JSX form, styled with design-system tokens. */
.cp-kit-signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.cp-kit-signup__input {
  flex: 1 1 220px;
  padding: 13px 16px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-pill);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.cp-kit-signup__input:focus-visible {
  outline: 2px solid var(--accent, var(--pink));
  outline-offset: 1px;
}
.cp-kit-signup__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.cp-kit-signup__error {
  margin: var(--s-3) 0 0;
  font-size: var(--t-small);
  color: var(--oxblood);
}
.cp-kit-signup__done {
  margin: 0;
  color: var(--ink-2);
}
.cp-bonus-gate__retry {
  margin-top: var(--s-2);
}

/* ---------- Author subscribe page ---------- */
.cp-subscribe {
  max-width: 640px;
  margin: var(--s-7) auto;
  padding: 0 32px;
  text-align: center;
}
.cp-subscribe__eyebrow {
  display: block;
  margin-bottom: var(--s-2);
}
.cp-subscribe__title {
  font-family: var(--font-titles);
  font-size: var(--t-h1);
  margin: var(--s-2) 0 var(--s-4);
}
.cp-subscribe__lede {
  color: var(--ink-2);
  margin: 0 auto var(--s-6);
}
.cp-subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}
.cp-subscribe__input {
  flex: 1 1 260px;
  padding: 13px 16px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-pill);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.cp-subscribe__input:focus-visible {
  outline: 2px solid var(--accent, var(--pink));
  outline-offset: 1px;
}
.cp-subscribe__msg {
  flex-basis: 100%;
  margin: var(--s-2) 0 0;
  font-size: var(--t-small);
  color: var(--ink-2);
  min-height: 1.4em;
}

/* Bonus index — a book and its list of bonus-chapter links. */
.cp-bonus-book {
  margin-top: var(--s-5);
}
.cp-bonus-book__title {
  font-family: var(--font-titles);
  font-size: var(--t-h3);
  margin: 0 0 var(--s-2);
}
.cp-bonus-book__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.cp-bonus-book__link {
  color: var(--accent, var(--oxblood));
  text-decoration: none;
}
.cp-bonus-book__link:hover {
  text-decoration: underline;
}

/* ===========================================================
   Bonus — public catalogue (/bonus)
   =========================================================== */

.cp-bonus-index__intro {
  max-width: 640px;
}
.cp-bonus-index__title {
  font-family: var(--font-titles);
  font-size: var(--t-h1);
  margin: var(--s-3) 0 var(--s-4);
}
.cp-bonus-card {
  display: flex;
  flex-direction: column;
}
.cp-bonus-card__cover {
  display: block;
}
.cp-bonus-card__body {
  margin-top: var(--s-3);
}
.cp-bonus-card__kicker {
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, var(--oxblood));
  margin: 0 0 var(--s-1);
}
.cp-bonus-card__title {
  font-family: var(--font-titles);
  font-size: var(--t-h3);
  margin: 0 0 var(--s-3);
}
