@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1d241d;
  --yellow: #f6d34b;
  --pink: #eda6bc;
  --paper: #f4f1e7;
  --red: #b33929;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px dashed var(--red); outline-offset: 6px; }

header {
  min-height: 88px;
  padding: 16px 4.5%;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}

.brand {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  gap: 13px;
  align-items: center;
}

.brand > span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1px;
  max-width: 105px;
  border-left: 2px solid;
  padding-left: 13px;
}

nav { display: flex; gap: 32px; margin: auto; font-size: 15px; font-weight: 700; }
nav [aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.tag { border: 1px solid; padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.hero {
  background: var(--yellow);
  position: relative;
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  border-bottom: 3px solid;
  min-height: 675px;
  padding-bottom: 40px;
}

.hero-copy { padding: 52px 0 45px 10.5%; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.7px; line-height: 1.5; margin: 0 0 20px; }

h1, h2, h3 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  margin: 0;
  line-height: .93;
  letter-spacing: -1px;
}

h1 { font-size: clamp(68px, 7.7vw, 125px); transform: rotate(-2deg); transform-origin: left; margin: 20px 0 27px; }
h1 span { color: var(--red); }
.lead { font-size: 30px; line-height: 1.08; font-weight: 800; margin: 0 0 19px; }
.intro { font-size: 16px; margin: 0 0 28px; }

.button {
  background: var(--ink);
  color: var(--yellow);
  padding: 14px 20px;
  display: inline-flex;
  gap: 35px;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .15s;
}

.button:hover { transform: translate(2px, 2px); }
.button span { font-size: 23px; line-height: 20px; }

.hero-art { display: flex; align-items: center; position: relative; padding: 40px 5% 45px 0; }
.hero-art img { width: 100%; height: auto; max-height: 560px; object-fit: contain; mix-blend-mode: multiply; transform: rotate(2deg); }

.art-note {
  position: absolute;
  bottom: 50px;
  right: 12%;
  background: var(--paper);
  border: 3px solid;
  padding: 13px 20px;
  transform: rotate(-7deg);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.edition { position: absolute; bottom: 15px; left: 4.5%; font-size: 12px; font-weight: 800; letter-spacing: 2px; }

.ticker {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 19px 4%;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.premise { padding: 90px 8%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10%; }
.premise > .eyebrow { grid-column: 1 / -1; }
.premise h2 { font-size: clamp(48px, 5.5vw, 78px); }
.premise p { margin-top: 0; }
.premise .punchline { font-size: 23px; font-weight: 700; line-height: 1.3; margin-bottom: 0; }

.pictures {
  padding: 70px 8% 82px;
  background: #fff8d2;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.section-top h2 { font-size: 64px; margin: 0 0 38px; }
.pictures .section-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.pictures .section-top h2 { max-width: 660px; }

.picture-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.picture-card {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
}

.picture-card.feature { grid-row: span 3; }
.picture-card img { display: block; width: 100%; height: auto; object-fit: contain; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.picture-card figcaption { padding: 22px 24px 26px; }
.picture-card span { display: block; font-size: 12px; letter-spacing: 1.4px; font-weight: 900; color: var(--red); margin-bottom: 10px; }
.picture-card h3 { font-size: clamp(34px, 3.7vw, 58px); letter-spacing: 0; margin-bottom: 12px; }
.picture-card p { margin: 0; max-width: 620px; }

.cast { background: var(--ink); color: var(--paper); padding: 65px 8% 80px; }
.cast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cast article { padding: 35px; color: var(--ink); border: 2px solid var(--paper); position: relative; }
.polski { background: var(--yellow); transform: rotate(-1deg); }
.brain { background: var(--pink); transform: rotate(1deg); }
.wife { background: #ed784e; transform: rotate(.7deg); }
.dogs { background: #d2df9a; transform: rotate(-.7deg); }
.number { font-size: 12px; letter-spacing: 1.5px; font-weight: 800; }
.cast h3 { font-size: 75px; margin: 22px 0; }
.quote { font-weight: 800; font-size: 26px; line-height: 1.2; }
.cast article > p:not(.quote) { max-width: 420px; }
.trait { border-top: 2px solid; padding-top: 20px; margin-top: 28px; display: flex; flex-direction: column; }
.trait span { font-size: 12px; letter-spacing: 1px; font-weight: 700; }
.trait strong { font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 30px; }

.episode { padding: 80px 8% 45px; background: var(--pink); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.episode-label { font-size: 12px; letter-spacing: 1.5px; font-weight: 800; border: 2px solid; padding: 7px 12px; display: inline-block; margin-bottom: 24px; }
.episode h2 { font-size: 64px; }
.episode-head > p { font-size: 20px; }
.script { background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 30px 35px; }
.script > div { margin-bottom: 22px; }
.script > div:last-child { margin-bottom: 0; }
.script span { font-size: 12px; font-weight: 800; letter-spacing: 1.3px; }
.script p { margin: 4px 0 0; font-size: 18px; line-height: 1.4; }
.script .direction { font-style: italic; border-left: 3px solid var(--pink); padding-left: 15px; }
.script .direction p { font-size: 15px; }
.script .ending p { font-size: 25px; font-weight: 800; }
.credits { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 2px solid; padding-top: 25px; font-size: 14px; }
.credits span { letter-spacing: 2px; font-weight: 800; }

footer { padding: 28px 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
footer a { font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 22px; font-weight: 900; }
footer p { font-size: 13px; max-width: 350px; line-height: 1.4; }
footer > span { font-size: 12px; font-weight: 800; letter-spacing: 1px; }

.comic-reader { max-width: 1440px; margin: auto; padding: 45px 5% 55px; }
.reader-top { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.reader-top h1 { font-size: 84px; margin: 0; transform: rotate(-2deg); }
.reader-top .eyebrow { font-size: 13px; max-width: 400px; }
.episode-select { font-size: 14px; font-weight: 800; display: flex; flex-direction: column; gap: 8px; }
.episode-select select { font: inherit; font-size: 16px; border: 2px solid var(--ink); background: var(--paper); padding: 12px; color: var(--ink); max-width: 100%; border-radius: 0; }
.reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px solid; border-bottom: 2px solid; margin: 32px 0; padding: 14px 0; }
.reader-controls p { margin: 0; font-size: 14px; font-weight: 700; }
.reader-controls button { font: inherit; font-size: 16px; font-weight: 800; color: var(--yellow); background: var(--ink); border: 2px solid var(--ink); padding: 10px 17px; cursor: pointer; }
.reader-controls button:hover { background: var(--red); }
.comic-heading { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.issue-number { font-family: 'Barlow Condensed', Impact, sans-serif; background: var(--yellow); border: 3px solid; padding: 10px 15px; font-size: 48px; font-weight: 900; line-height: 1.1; transform: rotate(-3deg); }
.comic-heading h2 { font-size: 58px; }
.comic-heading p { margin: 8px 0 0; font-size: 17px; }
.comic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comic-panel { margin: 0; border: 3px solid var(--ink); background: #fffdf5; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.panel-art { aspect-ratio: 1; background-image: var(--comic); background-size: 300% 200%; background-position: var(--x) var(--y); position: relative; border-bottom: 3px solid var(--ink); }
.panel-number { position: absolute; top: 9px; left: 9px; background: var(--ink); color: var(--yellow); font-weight: 800; line-height: 1; padding: 7px 9px; font-size: 14px; }
.comic-panel figcaption { padding: 16px; }
.comic-panel figcaption p { margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.comic-panel figcaption p:last-child { margin: 0; }
.comic-panel strong { display: block; font-size: 12px; letter-spacing: .8px; margin-bottom: 4px; color: #853022; }
.end-card { text-align: center; font-size: 14px; font-weight: 800; letter-spacing: 1px; padding-top: 18px; }
.bottom-controls a { font-size: 14px; text-decoration: underline; }
.comic-episode[hidden] { display: none; }

@media (min-width: 1600px) {
  main, header, footer { max-width: 1800px; margin: auto; }
}

@media (max-width: 1000px) {
  .comic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader-top h1 { font-size: 68px; }
  .comic-heading h2 { font-size: 48px; }
}

@media (max-width: 900px) {
  header { flex-wrap: wrap; }
  .tag { display: none; }
  nav { margin-left: auto; margin-right: 0; gap: 18px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 610px; }
  .hero-copy { padding-top: 40px; }
  h1 { font-size: 80px; }
  .hero-art { padding: 20px 0; }
  .hero-art img { width: 120%; max-width: none; margin-left: -15%; }
  .art-note { bottom: 65px; font-size: 19px; }
  .ticker { font-size: 20px; flex-wrap: wrap; }
  .premise { column-gap: 6%; padding: 65px 6%; }
  .pictures, .cast, .episode { padding-left: 6%; padding-right: 6%; }
  .pictures .section-top { display: block; }
  .picture-grid { grid-template-columns: 1fr; }
  .picture-card.feature { grid-row: auto; }
  .cast article { padding: 25px; }
  .cast h3 { font-size: 63px; }
  .quote { font-size: 22px; }
  .episode h2 { font-size: 55px; }
  .script { padding: 25px; }
  footer > span { display: none; }
}

@media (max-width: 600px) {
  header { padding: 14px 6%; gap: 12px; }
  .brand { font-size: 28px; }
  .brand > span { font-size: 10px; max-width: 95px; }
  nav { font-size: 13px; gap: 15px; width: 100%; justify-content: space-between; padding-top: 9px; border-top: 1px solid; }
  .hero { display: flex; flex-direction: column; padding-bottom: 42px; }
  .hero-copy { padding: 32px 6% 0; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(70px, 18vw, 100px); margin: 20px 0; }
  .lead { font-size: 27px; }
  .hero-art { padding: 10px 4% 35px; }
  .hero-art img { width: 100%; margin: 0; }
  .art-note { right: 8%; bottom: 14px; font-size: 20px; }
  .edition { font-size: 10px; left: 6%; bottom: 12px; letter-spacing: 1px; }
  .ticker { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 21px; gap: 10px; padding: 20px 5%; }
  .ticker span:nth-child(even) { display: none; }
  .premise { display: block; padding: 50px 6%; }
  .premise h2 { font-size: 58px; margin-bottom: 30px; }
  .pictures { padding-top: 45px; padding-bottom: 52px; }
  .section-top h2 { font-size: 52px; }
  .picture-grid { gap: 20px; }
  .picture-card { box-shadow: 4px 4px 0 var(--ink); }
  .picture-card figcaption { padding: 19px 20px 22px; }
  .cast { padding-top: 45px; padding-bottom: 50px; }
  .cast-grid { grid-template-columns: 1fr; gap: 28px; }
  .cast article { padding: 28px; }
  .cast h3 { font-size: 70px; }
  .episode { grid-template-columns: 1fr; padding-top: 50px; gap: 22px; }
  .episode h2 { font-size: 58px; }
  .script { padding: 25px; }
  .credits { flex-direction: column; gap: 10px; margin-top: 12px; }
  footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 25px 6%; }
  footer p { margin: 4px 0; }
  .comic-reader { padding: 28px 6%; }
  .reader-top { display: block; }
  .reader-top h1 { font-size: 65px; }
  .episode-select { margin-top: 25px; }
  .reader-controls { margin: 24px 0; }
  .reader-controls button { padding: 10px; font-size: 14px; }
  .comic-grid { grid-template-columns: 1fr; gap: 23px; }
  .comic-heading { gap: 13px; }
  .comic-heading h2 { font-size: 42px; }
  .issue-number { font-size: 35px; padding: 10px; }
  .bottom-controls { flex-wrap: wrap; }
  .bottom-controls a { order: 3; width: 100%; text-align: center; }
  .comic-panel figcaption p { font-size: 18px; }
}

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