/* The book archive pages are separate from the original Meat Worm home page. */
:root {
  color-scheme: dark;
  --csb-bg: #0b0d0e;
  --csb-paper: #eadfc6;
  --csb-muted: #b7af9e;
  --csb-line: rgba(223, 218, 202, .19);
  --csb-red: #cd7367;
  --csb-ice: #aabac0;
}

.csb-page *, .csb-page *::before, .csb-page *::after { box-sizing: border-box; }
.csb-page {
  margin: 0;
  background: radial-gradient(ellipse at 83% 14%, #1b2528 0, transparent 42rem), var(--csb-bg);
  color: var(--csb-paper);
  font: 1.075rem/1.75 Georgia, "Times New Roman", serif;
  min-width: 280px;
  min-height: 100vh;
}
.csb-page :where(a) { color: inherit; text-underline-offset: .2em; }
.csb-page :where(a:hover) { color: #fff9ea; }
.csb-page :where(a:focus-visible, button:focus-visible) {
  outline: 3px solid #f0c588;
  outline-offset: 5px;
}
.csb-page :where(img) { display: block; max-width: 100%; }
.csb-page :where(p) { margin: 0 0 1.1em; }
.csb-page :where(h1, h2, h3) { line-height: 1.13; margin: 0; }
.csb-page :where(h1) { font-size: clamp(2.8rem, 6.5vw, 5.7rem); letter-spacing: -.055em; font-weight: 500; }
.csb-page :where(h2) { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.035em; font-weight: 500; }
.csb-page :where(h3) { font-size: 1.18rem; font-weight: 600; }
.csb-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.csb-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.csb-skip { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--csb-paper); color: #111 !important; padding: 12px 18px; }
.csb-skip:focus { top: 16px; }
.csb-topbar { border-bottom: 1px solid var(--csb-line); background: rgba(8, 10, 11, .65); }
.csb-topbar-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.csb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 .82rem/1.4 "Courier New", monospace; letter-spacing: .13em; }
.csb-brand-mark { font-size: 1.7rem; font-weight: 400; color: var(--csb-ice); }
.csb-topbar nav { display: flex; gap: 28px; font: .85rem/1.5 Arial, sans-serif; }
.csb-topbar nav a { text-decoration: none; color: var(--csb-muted); }
.csb-topbar nav a:hover { text-decoration: underline; }
.csb-eyebrow { font: 700 .74rem/1.5 "Courier New", monospace; letter-spacing: .15em; text-transform: uppercase; color: var(--csb-ice); }
.csb-page .csb-eyebrow { margin-bottom: 18px; }
.csb-lead { color: #d5cfbf; font-size: clamp(1.13rem, 1.6vw, 1.3rem); line-height: 1.65; }
.csb-file-note { color: var(--csb-muted); font: .78rem/1.65 Arial, sans-serif; max-width: 52em; }
.csb-book-main { padding-bottom: 80px; }
.csb-breadcrumbs { margin: 28px 0 42px; font: .76rem/1.5 Arial, sans-serif; color: var(--csb-muted); }
.csb-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; list-style: none; }
.csb-breadcrumbs li + li::before { content: "/"; display: inline-block; padding: 0 13px; color: #6f797a; }
.csb-breadcrumbs a { text-decoration: none; }
.csb-book-hero { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(36px, 7vw, 88px); padding-bottom: 70px; }
.csb-book-art { position: relative; padding: 0 12px; }
.csb-book-art::before {
  content: ""; position: absolute; inset: 25% -20px 5%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(135, 164, 175, .12), transparent 66%);
}
.csb-cover { position: relative; margin: 0; }
.csb-cover img { width: 100%; height: auto; border: 1px solid rgba(220, 225, 225, .23); box-shadow: 0 24px 55px rgba(0, 0, 0, .5); }
.csb-cover figcaption { margin-top: 15px; text-align: center; color: var(--csb-muted); font: .72rem/1.6 "Courier New", monospace; }
.csb-cover-unavailable { min-height: 280px; border: 1px solid var(--csb-line); display: grid; place-items: center; padding: 24px; color: var(--csb-muted); font: .8rem/1.5 "Courier New", monospace; }
.csb-byline { margin: 22px 0 !important; color: var(--csb-muted); }
.csb-genres { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 26px; padding: 0; gap: 8px; }
.csb-genres li { border: 1px solid var(--csb-line); border-radius: 2px; padding: 5px 9px; color: #c3c1b6; font: .69rem/1.4 Arial, sans-serif; }
.csb-status { display: flex; align-items: center; gap: 9px; color: var(--csb-ice); font: 700 .78rem/1.55 "Courier New", monospace; }
.csb-status-dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--csb-ice); border-radius: 50%; }
.csb-page .csb-status-detail { margin: 8px 0 0; color: var(--csb-muted); font: .83rem/1.65 Arial, sans-serif; }
.csb-release-note { border-left: 2px solid var(--csb-red); padding-left: 16px; color: #e8d7b7; font-style: italic; }
.csb-card-purchase { margin-top: 10px; }
.csb-preview-purchase { margin-top: 26px; }
.csb-preview-purchase p { color: var(--csb-muted); font-size: .95rem; }
.csb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.csb-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; min-height: 46px; border: 1px solid #afbab8; background: #c5c9bf; color: #151919 !important; text-decoration: none; font: 700 .79rem/1.4 Arial, sans-serif; }
.csb-button:hover { background: #e4e4d8; }
.csb-button-quiet { background: transparent; border-color: var(--csb-line); color: var(--csb-paper) !important; }
.csb-button-quiet:hover { background: rgba(225, 225, 210, .08); }
.csb-reading-column { max-width: 750px; margin-inline: auto; }
.csb-section { padding: 45px 0; border-top: 1px solid var(--csb-line); }
.csb-section h2 { margin-bottom: 25px; }
.csb-section > p:not(.csb-eyebrow) { color: #d2cdbd; }
.csb-section > p:last-child { margin-bottom: 0; }
.csb-sample { margin: 24px 0 0; padding: 30px 34px; border-left: 3px solid #767f7d; background: #14191a; color: #e2d9c3; font-size: 1.25rem; }
.csb-sample p { margin-bottom: .8em; }
.csb-sample p:last-child { margin-bottom: 0; }
.csb-sample-title { color: var(--csb-muted); font: .74rem/1.5 "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; }
.csb-connection { padding: 30px 34px; border: 1px solid var(--csb-line); background: linear-gradient(115deg, rgba(64, 76, 79, .23), rgba(42, 40, 36, .15)); margin: 20px 0 45px; }
.csb-connection .csb-eyebrow { color: var(--csb-red); margin-bottom: 15px; }
.csb-connection p:not(.csb-eyebrow) { color: #d5cfbf; }
.csb-related-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.csb-text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--csb-paper); font: 700 .84rem/1.5 Arial, sans-serif; text-decoration: none; border-bottom: 1px solid #6e7979; padding: 6px 0; }
.csb-text-link:hover { border-color: var(--csb-paper); }
.csb-answer { padding: 22px 0; border-top: 1px solid var(--csb-line); }
.csb-answer h3 { margin-bottom: 10px; color: #e6ddc8; line-height: 1.4; }
.csb-answer p { font-size: 1rem; color: #c9c4b8; margin: 0; }
.csb-footer { border-top: 1px solid var(--csb-line); padding: 36px 0 48px; font: .8rem/1.65 "Courier New", monospace; color: var(--csb-muted); }
.csb-footer p { margin-bottom: 15px; }
.csb-footer a { font: .76rem/1.6 Arial, sans-serif; }
.csb-footer .csb-affiliate-note { margin: 18px 0 0; font: .7rem/1.6 Arial, sans-serif; }
.csb-catalog-main { padding: 72px 0 60px; }
.csb-catalog-intro { max-width: 780px; margin-bottom: 54px; }
.csb-catalog-intro h1 { margin-bottom: 22px; }
.csb-motto { color: var(--csb-muted); font-size: 1.3rem; font-style: italic; }
.csb-evidence-line {
  max-width: 44ch;
  padding-left: 17px;
  border-left: 2px solid #a77166;
  color: #e8d7b7;
  font-size: 1.12rem;
  line-height: 1.6;
}
.csb-catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.csb-catalog-card { display: grid; grid-template-columns: minmax(100px, .68fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 27px; border: 1px solid var(--csb-line); background: rgba(26, 31, 32, .55); }
.csb-catalog-card .csb-cover img { box-shadow: 0 14px 25px rgba(0, 0, 0, .33); }
.csb-catalog-card .csb-cover figcaption { font-size: .65rem; }
.csb-catalog-card .csb-eyebrow { margin-bottom: 12px; }
.csb-card-copy h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin-bottom: 14px; }
.csb-card-copy h2 a { text-decoration: none; }
.csb-card-copy h2 a:hover { text-decoration: underline; }
.csb-card-copy > p { font-size: .92rem; line-height: 1.6; color: #c7c4b9; }
.csb-card-copy .csb-card-status { color: var(--csb-ice); font: .7rem/1.5 "Courier New", monospace; }
.csb-card-copy .csb-text-link { font-size: .75rem; }
.csb-catalog-connection { margin-top: 36px; margin-bottom: 0; max-width: 780px; }
.csb-catalog-connection > p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .csb-catalog-grid { grid-template-columns: 1fr; }
  .csb-catalog-card { grid-template-columns: 150px minmax(0, 1fr); }
  .csb-card-copy h2 { font-size: 2rem; }
}
@media (max-width: 720px) {
  .csb-wrap { width: calc(100% - 36px); }
  .csb-topbar-inner { flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; padding: 17px 0; }
  .csb-topbar nav { gap: 22px; font-size: .78rem; }
  .csb-brand { font-size: .76rem; }
  .csb-brand-mark { font-size: 1.4rem; }
  .csb-breadcrumbs { margin: 22px 0 32px; }
  .csb-book-hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .csb-book-art { width: min(260px, 70%); justify-self: center; padding: 0; }
  .csb-book-heading h1 { font-size: clamp(2.8rem, 10vw, 4.2rem); }
  .csb-section { padding: 34px 0; }
  .csb-sample { padding: 24px; font-size: 1.13rem; }
  .csb-connection { padding: 24px; margin: 12px 0 34px; }
  .csb-footer { padding-bottom: 105px; }
  .csb-catalog-main { padding-top: 42px; }
  .csb-catalog-intro { margin-bottom: 34px; }
  .csb-catalog-card { grid-template-columns: 115px minmax(0, 1fr); padding: 20px; gap: 20px; }
  .csb-card-copy h2 { font-size: 1.55rem; }
  .csb-card-copy > p { font-size: .85rem; }
}
@media (max-width: 400px) {
  .csb-catalog-card { grid-template-columns: 1fr; }
  .csb-catalog-card .csb-cover { width: 145px; }
  .csb-page .csb-eyebrow { letter-spacing: .1em; }
  .csb-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .csb-page { scroll-behavior: auto; }
}
@media print {
  .csb-page { background: white; color: black; }
  .csb-topbar, .csb-skip, .csb-actions, .csb-footer, .csb-breadcrumbs { display: none; }
  .csb-page p, .csb-page h1, .csb-page h2, .csb-page h3, .csb-page .csb-eyebrow { color: black; }
  .csb-cover img { box-shadow: none; max-height: 280px; width: auto; }
  .csb-book-hero { gap: 30px; grid-template-columns: 200px 1fr; padding-bottom: 25px; }
  .csb-section, .csb-connection { break-inside: avoid; }
  .csb-sample, .csb-connection { background: #fafafa; }
}
