:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #151419;
  background: #f4f1ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f1ec; }
a { color: inherit; }
button { font: inherit; }
.serial-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.serial-header { position: relative; z-index: 20; border-bottom: 3px solid #111; background: #fff; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.serial-brand img { display: block; width: auto; height: 40px; }
.serial-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 900; }
.serial-header nav a { text-decoration: none; }
.serial-header nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.serial-header .header-cta { padding: 10px 15px; border: 2px solid #111; background: #ffd43b; box-shadow: 3px 3px 0 #111; }
.serial-header .header-cta:hover { text-decoration: none; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }

.series-hero { position: relative; min-height: min(720px, 76svh); overflow: hidden; border-bottom: 4px solid #111; color: #fff; }
.series-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.series-hero-shade { position: absolute; inset: 0; background: rgba(8, 7, 10, 0.62); }
.series-hero-content { position: relative; z-index: 1; min-height: min(720px, 76svh); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 72px; padding-bottom: 64px; }
.serial-kicker { margin: 0 0 14px; color: #ffd43b; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.serial-kicker.dark { color: #a70f32; }
.series-hero h1 { max-width: 850px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px, 10vw, 116px); line-height: 0.92; font-weight: 700; }
.series-hero-content > p:not(.serial-kicker) { max-width: 720px; margin: 24px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.7; }
.serial-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.serial-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 3px solid #111; background: #fff; color: #111; font-weight: 900; text-decoration: none; cursor: pointer; }
.serial-button:hover { transform: translateY(-2px); }
.serial-button.primary { background: #ef285e; color: #fff; box-shadow: 5px 5px 0 #111; }
.serial-button.light { border-color: #fff; background: #fff; }
.serial-button.dark { background: #111; color: #fff; }
.serial-button.outline-light { border-color: #fff; background: transparent; color: #fff; }
.share-button { background: #65c9c2; }

.series-intro { padding: 64px 0; border-bottom: 2px solid #111; background: #dff4f1; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: end; }
.intro-grid h2, .chapter-list h2, .adaptation-band h2, .chapter-end h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; }
.intro-grid > p { margin: 0; color: #3e4750; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.8; }
.chapter-list { padding: 68px 0 76px; background: #fff; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-title-row > span { padding: 9px 12px; border: 2px solid #111; background: #ffd43b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chapter-card { min-height: 270px; display: flex; flex-direction: column; padding: 26px; border: 3px solid #111; border-radius: 6px; background: #f9f7f2; }
.chapter-card:nth-child(2n) { background: #f8dce5; }
.chapter-number { margin: 0 0 16px; color: #a70f32; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.chapter-card h2 { margin: 0; font-size: 31px; }
.chapter-card > p:not(.chapter-number) { margin: 14px 0 22px; color: #50525a; font-family: Georgia, 'Times New Roman', serif; line-height: 1.7; }
.chapter-card a { margin-top: auto; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.adaptation-band { padding: 72px 0; border-top: 4px solid #111; background: #1a1620; color: #fff; }
.adaptation-grid, .chapter-end-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.adaptation-grid p:not(.serial-kicker), .chapter-end p:not(.serial-kicker) { max-width: 620px; color: #d6d0dc; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.7; }

.chapter-hero { padding: 64px 0 54px; border-bottom: 4px solid #111; background: #dff4f1; }
.chapter-hero-inner { max-width: 860px; }
.back-link { display: inline-block; margin-bottom: 46px; font-size: 13px; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.chapter-hero h1 { max-width: 900px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 7vw, 78px); line-height: 1; }
.chapter-deck { max-width: 720px; margin: 22px 0 0; color: #3f474e; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.7; }
.prose { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 64px; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.9; }
.prose p { margin: 0 0 1.45em; }
.prose em { color: #3f3541; }
.prose .scene-heading { margin: 3.2em 0 1.4em; padding-top: 1.4em; border-top: 2px solid #111; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4; text-transform: uppercase; }
.prose .scene-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.scene-break { width: 72px; margin: 3.5em auto; border: 0; border-top: 4px solid #a70f32; }
.section-marker { width: fit-content; margin: 3em auto 1.8em; padding: 6px 12px; border: 2px solid #111; background: #ffd43b; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 900; }
.prose blockquote { margin: 2em 0; padding: 8px 0 8px 24px; border-left: 5px solid #a70f32; color: #403943; font-style: italic; }
.chapter-pagination { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 30px 0 70px; border-top: 2px solid #111; }
.chapter-pagination a { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 2px solid #111; background: #fff; text-decoration: none; }
.chapter-pagination a:hover { background: #ffd43b; }
.chapter-pagination .next { text-align: right; }
.chapter-pagination .episode-index { text-align: center; background: #f8dce5; }
.chapter-pagination span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.chapter-pagination strong { margin-top: 5px; font-family: Georgia, 'Times New Roman', serif; }
.chapter-end { padding: 64px 0; border-top: 4px solid #111; background: #f8dce5; }
.chapter-end p:not(.serial-kicker) { color: #504852; }

.serial-footer { padding: 36px 0; background: #0c0b0f; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.serial-footer img { display: block; width: auto; height: 38px; }
.serial-footer p { margin: 0; color: #c9c5cd; font-size: 13px; }

@media (max-width: 760px) {
  .serial-wrap { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 66px; }
  .serial-brand img { height: 34px; }
  .serial-header nav { gap: 12px; font-size: 12px; }
  .serial-header nav a:nth-child(2) { display: none; }
  .serial-header .header-cta { padding: 8px 11px; }
  .series-hero, .series-hero-content { min-height: 72svh; }
  .series-hero-image { object-position: 57% top; }
  .series-hero-image { transform: scale(1.1); transform-origin: center top; }
  .series-hero-shade { background: rgba(8, 7, 10, 0.67); }
  .series-hero-content { padding-top: 48px; padding-bottom: 42px; }
  .series-hero h1 { font-size: 58px; }
  .series-hero-content > p:not(.serial-kicker) { font-size: 17px; line-height: 1.6; }
  .intro-grid, .adaptation-grid, .chapter-end-inner { grid-template-columns: 1fr; gap: 26px; }
  .series-intro, .chapter-list, .adaptation-band, .chapter-end { padding: 48px 0; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: 240px; padding: 22px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .stacked-mobile { width: 100%; display: grid; grid-template-columns: 1fr; }
  .stacked-mobile .serial-button { width: 100%; }
  .chapter-hero { padding: 42px 0 38px; }
  .back-link { margin-bottom: 34px; }
  .chapter-hero h1 { font-size: 44px; }
  .chapter-deck { font-size: 17px; }
  .prose { width: min(100% - 34px, 720px); padding: 50px 0 44px; font-size: 18px; line-height: 1.85; }
  .prose .scene-heading { font-size: 14px; }
  .chapter-pagination { grid-template-columns: 1fr 1fr; }
  .chapter-pagination .episode-index { grid-column: 1 / -1; grid-row: 2; }
  .pagination-spacer { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
