:root {
  --ink: #18130d;
  --ink-soft: #2b2118;
  --paper: #efe4ca;
  --paper-light: #fff9eb;
  --yellow: #e7b93f;
  --yellow-light: #f4d470;
  --rust: #9d3d24;
  --blue: #253c49;
  --muted: #6e6253;
  --rule: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  content: "";
  opacity: 0.13;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(24 19 13 / 0.27) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 75% 60%, rgb(255 255 255 / 0.8) 0 0.7px, transparent 0.9px);
  background-size: 6px 6px, 9px 9px;
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -6rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.reader-header {
  width: 100%;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.2rem, 4vw, 4.5rem);
  color: var(--paper-light);
  background: var(--ink);
  border-bottom: 1px solid rgb(255 249 235 / 0.2);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, rgb(16 12 8 / 0.92), transparent);
  border-bottom: 0;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.wordmark span {
  margin-left: 0.2rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.wordmark strong {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
}

.site-nav,
.reader-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}

.site-nav a,
.reader-header nav a {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.reader-header nav a:hover {
  color: var(--yellow-light);
}

.site-nav .nav-read {
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--paper-light);
  transform: rotate(0.7deg);
}

.site-nav .nav-read:hover {
  color: var(--ink);
  background: var(--paper-light);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  isolation: isolate;
  overflow: hidden;
  color: var(--paper-light);
  background: #130f0a;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(8 6 4 / 0.96) 0%, rgb(8 6 4 / 0.82) 35%, rgb(8 6 4 / 0.2) 61%, transparent 78%),
    linear-gradient(0deg, rgb(8 6 4 / 0.42) 0%, transparent 40%);
}

.hero-noise {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background: repeating-linear-gradient(105deg, transparent 0 6px, rgb(255 255 255 / 0.22) 7px, transparent 8px 13px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(760px, 100%);
  padding: clamp(9rem, 17vh, 12rem) 2rem clamp(4.5rem, 9vh, 7rem) clamp(1.25rem, 5vw, 5.5rem);
}

.eyebrow,
.kicker,
.episode-count {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero-label {
  width: fit-content;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.85rem 0.45rem;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--paper-light);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8.2vw, 8rem);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  transform: skew(-2deg);
}

.hero h1 span {
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--rust);
}

.hero-tagline {
  width: fit-content;
  margin: 1.25rem 0 0;
  padding: 0.45rem 0.7rem 0.35rem;
  color: var(--ink);
  background: var(--paper-light);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 41rem;
  margin: 1.5rem 0 0;
  color: #e3d9c5;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 1.8rem 0 0;
  padding: 0;
  color: #d9cfbd;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.hero-facts li::before {
  margin-right: 0.6rem;
  color: var(--yellow);
  content: "◆";
  font-size: 0.65rem;
}

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border: 3px solid currentColor;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--paper-light);
}

.button-primary:hover {
  box-shadow: 8px 8px 0 var(--paper-light);
}

.button-ghost {
  color: var(--paper-light);
  background: rgb(24 19 13 / 0.46);
}

.button-dark {
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--rust);
}

.resume-link {
  margin: 1.35rem 0 0;
  color: #cfc4b0;
  font-size: 0.77rem;
}

.resume-link a {
  color: var(--yellow-light);
  font-weight: 900;
  text-underline-offset: 0.25rem;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.ticker {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 0.75rem 0 0.65rem;
  color: var(--paper-light);
  background: var(--rust);
  border-block: var(--rule);
  transform: rotate(-0.3deg) scale(1.01);
}

.ticker div {
  width: max-content;
  display: flex;
  animation: ticker 34s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding-right: 1.2rem;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker span::after {
  color: var(--yellow);
  content: "✦";
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.story,
.archive {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading h2 {
  max-width: 17ch;
}

.section-heading h2,
.recognition h2,
.latest h2,
.archive-teaser h2,
.archive h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.story-intro {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(2.5rem, 5vw, 4.5rem) auto;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}

.story-intro p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.65;
}

.character-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.3rem, 3vw, 2.5rem);
  margin: 0 auto;
}

.character-card {
  position: relative;
  min-height: 31rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: var(--rule);
  box-shadow: var(--shadow);
}

.skid-card {
  background: var(--yellow);
  transform: rotate(-0.6deg);
}

.stan-card {
  color: var(--paper-light);
  background: var(--blue);
  transform: rotate(0.5deg);
}

.stan-card .kicker,
.stan-card p {
  color: #ded5c3;
}

.character-card h3 {
  max-width: 8ch;
  margin: 0.5rem 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.character-card > p:not(.kicker) {
  max-width: 36rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.07rem;
  line-height: 1.65;
}

.card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.18;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.trait-list li {
  padding: 0.52rem 0.68rem;
  border: 2px solid currentColor;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-quote {
  width: min(960px, 93%);
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--paper-light);
  border: var(--rule);
  box-shadow: 12px 12px 0 var(--rust);
  text-align: center;
  transform: rotate(-0.5deg);
}

.story-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.story-quote cite {
  display: block;
  margin-top: 1.4rem;
  color: var(--rust);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.recognition {
  color: var(--paper-light);
  background:
    linear-gradient(90deg, rgb(24 19 13 / 0.97), rgb(24 19 13 / 0.82)),
    url("../../comics/episode-30.jpeg") center / cover;
  border-block: var(--rule);
}

.recognition-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.recognition .kicker {
  color: var(--yellow);
}

.recognition h2 {
  max-width: 13ch;
}

.recognition p:not(.kicker) {
  max-width: 49rem;
  margin: 1.7rem 0;
  color: #ddd3c0;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.32rem;
  text-transform: uppercase;
}

.latest {
  width: min(1300px, 100%);
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin: 0 auto;
}

.latest-copy > p:not(.kicker) {
  max-width: 30rem;
  margin: 1.4rem 0 2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.14rem;
}

.latest-image {
  position: relative;
  display: block;
  padding: 0.75rem;
  background: var(--ink);
  box-shadow: 11px 11px 0 var(--rust);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.latest-image:hover {
  transform: translate(-3px, -3px) rotate(0.3deg);
  box-shadow: 15px 15px 0 var(--rust);
}

.latest-image img {
  width: 100%;
  height: auto;
}

.latest-image span {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-teaser {
  width: min(1300px, calc(100% - 2.5rem));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  background: var(--paper-light);
  border: var(--rule);
  box-shadow: 11px 11px 0 var(--rust);
}

.archive-teaser h2 {
  max-width: 11ch;
}

.archive-teaser-copy > p:not(.kicker) {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
}

.archive-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.text-link-dark {
  color: var(--rust);
}

.archive-stack {
  position: relative;
  min-height: 29rem;
  display: block;
  text-decoration: none;
}

.archive-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82%, 34rem);
  height: auto;
  background: var(--ink);
  border: 7px solid var(--ink);
  box-shadow: 7px 7px 0 rgb(24 19 13 / 0.36);
  transition: transform 180ms ease;
}

.archive-stack .stack-one {
  transform: translate(-58%, -57%) rotate(-7deg);
}

.archive-stack .stack-two {
  transform: translate(-43%, -47%) rotate(7deg);
}

.archive-stack .stack-three {
  transform: translate(-50%, -50%) rotate(-1deg);
}

.archive-stack:hover .stack-one {
  transform: translate(-63%, -59%) rotate(-9deg);
}

.archive-stack:hover .stack-two {
  transform: translate(-38%, -45%) rotate(9deg);
}

.archive-stack:hover .stack-three {
  transform: translate(-50%, -52%) rotate(0deg);
}

.archive-stack span {
  position: absolute;
  z-index: 3;
  right: 0.5rem;
  bottom: 3rem;
  padding: 0.62rem 0.75rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.archive-page .site-header {
  position: relative;
  background: var(--ink);
}

.archive-hero {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem);
  color: var(--paper-light);
  background:
    linear-gradient(90deg, rgb(24 19 13 / 0.98), rgb(24 19 13 / 0.76)),
    url("../../comics/episode-16.jpeg") center / cover;
  border-bottom: var(--rule);
}

.archive-hero .kicker {
  color: var(--yellow);
}

.archive-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.archive-hero > p:not(.kicker) {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: #ddd3c0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.archive-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.archive-page .archive {
  border-top: 0;
}

.archive {
  border-top: 2px solid var(--ink);
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-heading > p {
  max-width: 23rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.episode-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--paper-light);
  background: var(--ink);
  border: 3px solid var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.episode-card:hover {
  z-index: 2;
  transform: translate(-3px, -3px) rotate(-0.4deg);
  box-shadow: 7px 7px 0 var(--rust);
}

.episode-card:nth-child(3n + 2):hover {
  transform: translate(-3px, -3px) rotate(0.4deg);
}

.episode-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-soft);
}

.episode-card-body {
  flex: 1;
  padding: 1.15rem;
}

.episode-card small {
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.episode-card h3 {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.episode-card p {
  margin: 0;
  color: #cfc5b3;
  font-family: var(--serif);
  font-size: 0.89rem;
  line-height: 1.5;
}

.loading-message,
.archive-error,
.noscript-message {
  grid-column: 1 / -1;
  padding: 1rem;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  font-weight: 800;
}

.site-footer {
  min-height: 20rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem) 2rem;
  color: var(--paper-light);
  background: var(--ink);
}

.footer-title {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.footer-title span {
  color: var(--yellow);
}

.site-footer div > p:last-child,
.site-footer > a {
  margin: 0;
  color: #a99f8e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer > a {
  color: var(--paper-light);
  text-underline-offset: 0.28rem;
}

/* Comic reader */

.reader-page {
  min-height: 100vh;
  color: var(--paper-light);
  background: #110e0a;
}

.reader-header {
  position: relative;
  z-index: 5;
  min-height: 5.3rem;
}

.wordmark-small strong {
  font-size: 1.72rem;
}

.comic-reader {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) clamp(0.8rem, 3vw, 3rem) 4rem;
}

.reader-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.reader-titlebar > div:first-child {
  min-width: 0;
}

.reader-titlebar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.episode-count {
  color: var(--yellow);
}

.episode-summary {
  max-width: 48rem;
  margin: 0.8rem 0 0;
  color: #bfb4a2;
  font-family: var(--serif);
  font-size: 1rem;
}

.reader-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-toggle {
  display: inline-flex;
  padding: 3px;
  background: #282017;
  border: 2px solid #675c4d;
}

.view-toggle button {
  min-height: 2.75rem;
  padding: 0.62rem 0.8rem;
  color: #d8cebd;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.view-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--yellow);
}

.reader-status {
  min-height: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--yellow-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.comic-stage {
  margin: 0;
  touch-action: pan-y pinch-zoom;
}

.page-view,
.panel-view {
  padding: clamp(0.35rem, 0.9vw, 0.75rem);
  background: #050403;
  border: 2px solid #615545;
  box-shadow: 11px 11px 0 var(--rust);
}

.page-view img {
  width: 100%;
  height: auto;
  background: var(--paper);
}

.page-view,
.panel-view {
  -webkit-touch-callout: none;
  user-select: none;
}

.page-view img,
.panel-view img {
  pointer-events: none;
}

.panel-view {
  display: grid;
  gap: 0.75rem;
  padding: 0.65rem;
}

.panel-view[hidden],
.page-view[hidden] {
  display: none;
}

/* Panel view crops.
   Each .crop is a window onto a full copy of the page image, which is scaled up
   and shifted so one region lands in view. The artwork is never cut up.
   The per-episode offsets live in the generated assets/css/panels.css, because
   page geometry drifts between renders and no single offset suits all thirty. */
.crop {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  /* aspect-ratio must size the same box the image offsets resolve against.
     Under the global border-box, aspect-ratio sizes the border box while a
     percentage top/left resolves against the padding box, so every border pixel
     is multiplied by the offset. At the footer's -3293% that turned a 1px border
     into a 66px error and framed the pub table instead of the caption.
     Keep this content-box, and never give .crop padding. */
  box-sizing: content-box;
  padding: 0;
}

.crop-panel1,
.crop-panel2,
.crop-panel3,
.crop-panel4 {
  border: 2px solid var(--paper-light);
}

/* The wordmark and footer are lettering rather than artwork, so they sit flush
   on the paper and read as captions between the panels. */
.crop-wordmark,
.crop-plaque,
.crop-footer {
  border: 1px solid #cdbfa6;
}

.crop img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: auto;
}

.comic-stage figcaption {
  margin-top: 1rem;
  color: #8f8575;
  font-size: 0.71rem;
  text-align: center;
}

.swipe-hint {
  display: none;
}

.episode-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  border-block: 1px solid #40372c;
}

.episode-share-label {
  margin-right: 0.3rem;
  color: #a89d8c;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.share-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
}

.share-option {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--paper-light);
  background: transparent;
  border: 1px solid #6a5e4e;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.share-option:hover,
.share-option:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.share-option span {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.share-option[hidden] {
  display: none;
}

.share-feedback {
  min-height: 1rem;
  flex-basis: 100%;
  margin: 0;
  color: var(--yellow-light);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.episode-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.3rem;
}

.episode-button {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: var(--paper-light);
  background: #282017;
  border: 2px solid #615545;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.episode-button.next {
  justify-content: flex-end;
  text-align: right;
}

.episode-button > span[aria-hidden="true"] {
  color: var(--yellow);
  font-size: 1.8rem;
}

.episode-button small,
.episode-button strong {
  display: block;
}

.episode-button small {
  color: #928777;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.episode-button strong {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.episode-button:hover:not([aria-disabled="true"]) {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.episode-button:hover:not([aria-disabled="true"]) small,
.episode-button:hover:not([aria-disabled="true"]) > span[aria-hidden="true"] {
  color: var(--ink);
}

[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}

.episode-picker {
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.65rem;
  background: #1b1610;
  border: 2px solid #615545;
}

.episode-picker span {
  color: #928777;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.episode-picker select {
  width: 100%;
  color: var(--paper-light);
  background: #282017;
  border: 1px solid #756958;
  border-radius: 0;
  padding: 0.45rem;
  font-size: 0.78rem;
}

.keyboard-hint {
  margin: 1.5rem 0 0;
  color: #776d60;
  font-size: 0.66rem;
  text-align: center;
}

kbd {
  padding: 0.1rem 0.3rem;
  color: #bfb4a2;
  background: #282017;
  border: 1px solid #615545;
  font-family: inherit;
}

.reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem clamp(1.2rem, 4vw, 4.5rem);
  color: #8f8575;
  background: #080604;
  border-top: 1px solid #40372c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-footer a {
  color: var(--yellow);
  text-underline-offset: 0.25rem;
}

.mobile-reader-nav {
  display: none;
}

@media (max-width: 1050px) {
  .hero-copy {
    max-width: 42rem;
  }

  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  body::before {
    position: absolute;
  }

  .site-header,
  .reader-header {
    min-height: 4.8rem;
    gap: 1rem;
    padding-inline: 1rem;
  }

  .site-nav,
  .reader-header nav {
    gap: 0.85rem;
  }

  .site-nav a,
  .reader-header nav a {
    font-size: 0.6rem;
  }

  .site-nav a:first-child,
  .reader-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 820px;
    display: block;
  }

  .hero-copy {
    position: relative;
    z-index: 5;
    padding: 22.5rem 1.15rem 4rem;
    background:
      linear-gradient(to top, #17110b 0%, rgb(23 17 11 / 0.98) 48%, transparent 68%);
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.6rem, 16vw, 5.7rem);
  }

  .hero-art {
    top: 4.8rem;
    height: 26rem;
  }

  .hero-art img {
    /* The narrow source is already framed on Skid, so it needs no horizontal
       bias. The vertical bias keeps his hair in shot when the band is short. */
    object-position: 50% 16%;
    filter: brightness(1.08) contrast(1.02);
  }

  .hero::after {
    background:
      linear-gradient(to top, #17110b 0%, rgb(23 17 11 / 0.52) 18%, transparent 48%),
      linear-gradient(to right, rgb(8 6 4 / 0.32) 0%, transparent 65%);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-heading,
  .story-intro,
  .character-grid,
  .latest {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .story-intro {
    gap: 1.5rem;
  }

  .character-card {
    min-height: auto;
  }

  .skid-card,
  .stan-card {
    transform: none;
  }

  .story-quote {
    width: 96%;
    box-shadow: 7px 7px 0 var(--rust);
  }

  .latest-copy {
    order: 2;
  }

  .latest-image {
    order: 1;
    box-shadow: 7px 7px 0 var(--rust);
  }

  .archive-teaser {
    width: calc(100% - 1.5rem);
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 1.5rem;
    box-shadow: 7px 7px 0 var(--rust);
  }

  .archive-teaser-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-teaser-actions .button,
  .archive-teaser-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .archive-stack {
    min-height: 19rem;
  }

  .archive-stack span {
    right: 0;
    bottom: 1.5rem;
  }

  .archive-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-hero-actions .button {
    width: 100%;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .episode-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .episode-card img {
    height: auto;
    align-self: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-tools {
    width: 100%;
    align-items: stretch;
  }

  .view-toggle {
    flex: 1;
  }

  .view-toggle button {
    flex: 1;
  }

  .comic-reader {
    padding-inline: 0.55rem;
    padding-bottom: 7rem;
  }

  .panel-view {
    gap: 0.5rem;
    padding: 0.35rem;
    box-shadow: 5px 5px 0 var(--rust);
  }

  .page-view {
    box-shadow: 5px 5px 0 var(--rust);
  }

  .episode-navigation {
    grid-template-columns: 1fr;
  }

  .episode-share {
    margin-inline: 0.35rem;
  }

  .swipe-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--yellow-light);
    font-weight: 850;
  }

  .episode-button {
    display: none;
  }

  .episode-picker {
    min-height: 4.5rem;
  }

  .keyboard-hint {
    display: none;
  }

  .reader-footer {
    display: none;
  }

  .mobile-reader-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(4rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 4.3rem 1fr 4.3rem;
    padding-bottom: env(safe-area-inset-bottom);
    color: var(--paper-light);
    background: rgb(17 14 10 / 0.97);
    border-top: 2px solid #615545;
    backdrop-filter: blur(12px);
  }

  .mobile-reader-nav a {
    display: grid;
    place-items: center;
    border-inline: 1px solid #40372c;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-reader-nav a:first-child,
  .mobile-reader-nav a:last-child {
    color: var(--yellow);
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .wordmark span {
    display: none;
  }

  .wordmark strong {
    font-size: 1.35rem;
  }

  .site-nav .nav-read {
    padding: 0.48rem 0.55rem;
  }

  .hero {
    min-height: 780px;
  }

  .hero-copy {
    padding-top: 20.5rem;
  }

  .hero-art {
    height: 23rem;
  }

  .hero-facts {
    gap: 0.55rem 1rem;
  }

  .episode-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .episode-card-body {
    padding: 0.85rem;
  }

  .episode-card h3 {
    font-size: 1.45rem;
  }

  .episode-card p {
    display: none;
  }

  .reader-header nav a:last-child {
    display: none;
  }

  .reader-titlebar h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Copyright and terms page. Plain prose, no artwork, so it stays readable and
   is cheap to keep accurate. */
.prose-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.15rem 4rem;
}

.prose-page h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.05;
}

.prose-page h2 {
  margin-top: 2.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prose-page p {
  margin-top: 0.9rem;
  color: var(--paper-light);
  line-height: 1.65;
}

.prose-lead {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgb(255 255 255 / 0.03);
  font-weight: 700;
}

.prose-note {
  margin-top: 2.6rem;
  color: #8f8575;
  font-size: 0.82rem;
}

.nowrap {
  white-space: nowrap;
}

.footer-legal {
  margin-top: 0.6rem;
  color: #8f8575;
  font-size: 0.74rem;
}

.footer-legal a {
  color: var(--gold);
}

.reader-footer .footer-legal {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

/* Standalone episode pages. These are the canonical, indexable URLs: the reader
   is one URL for thirty episodes, so it cannot be indexed per episode. */
.episode-page,
.prose-page-body {
  min-height: 100vh;
  color: var(--paper-light);
  background: #110e0a;
}

.episode-page .site-header,
.prose-page-body .site-header {
  position: relative;
  background: var(--ink);
}

.episode-main {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) 1.15rem 3rem;
}

.episode-main h1 {
  margin-top: 0.3rem;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
}

.episode-summary {
  margin-top: 0.8rem;
  max-width: 44rem;
  color: var(--paper-light);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
}

.episode-figure {
  margin: 1.8rem 0 0;
  padding: clamp(0.35rem, 0.9vw, 0.75rem);
  background: #050403;
  border: 2px solid #615545;
  box-shadow: 11px 11px 0 var(--rust);
}

.episode-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.episode-figure figcaption {
  padding: 0.75rem 0.35rem 0.15rem;
  color: #8f8575;
  font-size: 0.78rem;
  text-align: center;
}

.episode-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #40372c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-nav a {
  color: var(--gold);
}

.episode-nav-end {
  color: #6d6455;
}

/* The original prompt, quoted verbatim on the about page. Set apart from the
   prose so it reads as a reproduced artefact rather than as authored copy,
   including its typo, which is the point of quoting it exactly. */
.prose-quote {
  margin: 1.4rem 0 0;
  padding: 1.05rem 1.2rem;
  color: var(--paper);
  background: rgb(0 0 0 / 0.28);
  border: 1px solid #4a4032;
  border-left: 3px solid var(--gold);
  font-family: var(--body);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}
