/* Graphic-novel pages: chapter cards, follow box, vertical reader and code lettering. */
.latest { padding-block: var(--space-4) 0; }
.latest-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-3); align-items: center; text-decoration: none; color: inherit;
  background: var(--surface-raised); border: 1px solid var(--rule); padding: var(--space-2); }
.latest-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.latest-card h2 { margin-bottom: var(--space-1); }
.latest-card .btn { margin-top: var(--space-3); }
.latest-card:hover { border-color: var(--gold); }
@media (max-width: 760px) { .latest-card { grid-template-columns: 1fr; } }

.follow { background: linear-gradient(180deg, rgba(13,11,9,.6), rgba(13,11,9,.88)), url("/assets/banner-bg.jpg") center / cover no-repeat; border-block: 1px solid var(--rule); }
.follow-inner { padding-block: calc(var(--space-4) * 1.25); text-align: center; }
.follow-inner .lead { margin-inline: auto; color: var(--ink); }
.follow .actions { justify-content: center; }
.support { margin: var(--space-4) auto 0; max-width: 560px; padding: var(--space-3); border: 1px solid var(--gold); background: rgba(13,11,9,.75); }
.support p { margin-top: var(--space-1); color: var(--ink); }

.ch-index { padding-block: var(--space-4); }
.ch-index h1, .ch-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--pale-gold); }
.ch-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.ch-card a { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-3); text-decoration: none; color: inherit; background: var(--surface-raised); border: 1px solid var(--rule); padding: var(--space-2); }
.ch-card a:hover { border-color: var(--gold); }
.ch-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ch-card h3 { font-size: 1.6rem; margin: 4px 0 8px; }
.ch-meta { color: var(--muted); font-size: 1rem; margin-top: var(--space-1); }
.resume { margin-top: var(--space-3); }
@media (max-width: 680px) { .ch-card a { grid-template-columns: 1fr; } }

/* Reader */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 6; }
.progress span { display: block; height: 100%; width: 0; background: var(--ember); }
.ch-head { text-align: center; padding-block: var(--space-4) var(--space-3); }
.ch-head .lead { margin-inline: auto; }
.strip { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.panel { position: relative; margin: 0; container-type: inline-size; background: #000; }
.panel img { width: 100%; }
.ch-end { text-align: center; padding-block: var(--space-4); }
.ch-end .lead { margin-inline: auto; }
.ch-end .actions { justify-content: center; }

/* Lettering: speech, shout, whisper, thought and caption boxes. Font scales with the panel width. */
.spot { position: absolute; display: flex; flex-direction: column; gap: 1.2cqw; max-width: 46%; pointer-events: none; }
.panel-P .spot { max-width: 72%; }
.spot-tl { top: 3cqw; left: 3cqw; align-items: flex-start; }
.spot-tr { top: 3cqw; right: 3cqw; align-items: flex-end; }
.spot-bl { bottom: 3cqw; left: 3cqw; align-items: flex-start; }
.spot-br { bottom: 3cqw; right: 3cqw; align-items: flex-end; }
.spot-top { top: 3cqw; left: 50%; transform: translateX(-50%); align-items: center; width: max-content; }
.spot-bottom { bottom: 3cqw; left: 50%; transform: translateX(-50%); align-items: center; width: max-content; }
.b { margin: 0; font-family: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif; font-size: calc(9px + 1.75cqw); line-height: 1.18;
  color: #15110c; background: #fbf8f1; border: 2px solid #15110c; border-radius: 1.4em; padding: .45em .85em .5em; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.45); max-width: 100%; text-wrap: balance; }
.b .who { display: block; font-family: var(--font-display); font-size: .56em; letter-spacing: .16em; text-transform: uppercase; color: #8e2a17; margin-bottom: .1em; }
.b-shout { font-weight: 700; text-transform: uppercase; border-width: 3px; border-radius: .5em; letter-spacing: .02em; background: #fffdf6; }
.b-whisper { border-style: dashed; font-style: italic; background: rgba(251,248,241,.9); }
.b-think { border-radius: 2em; border-style: dotted; border-width: 3px; font-style: italic; }
.b-cap { font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: calc(10px + 1.8cqw); border-radius: 2px; text-align: left;
  background: #e9dcc0; border: 1px solid #6b5432; color: #241a0e; padding: .35em .7em; }
