:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #ffffff;
  --paper-strong: #f4f4f4;
  --red: #d62f2f;
  --cyan: #008fa3;
  --green: #2f9b50;
  --yellow: #ffd33d;
  --magenta: #cc2f7a;
  --line: #111111;
  --shadow: 4px 4px 0 #111111;
  --radius: 8px;
  --max: 1600px;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--yellow);
  border: 3px solid var(--line);
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 3rem;
}

.brand img {
  width: clamp(74px, 8vw, 112px);
  height: clamp(74px, 8vw, 112px);
  object-fit: contain;
  background: white;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.site-nav a,
.button,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 0.52rem 0.78rem;
  text-decoration: none;
  font-weight: 800;
  background: white;
  box-shadow: 3px 3px 0 var(--line);
}

.site-nav a[aria-current="page"],
.button--primary,
.copy-link {
  background: var(--yellow);
}

.button--secondary {
  background: white;
}

.site-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 4rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) 0 2rem;
}

.home-hero__copy {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.kicker {
  margin: 0;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.25rem;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 1000;
  text-transform: none;
  text-shadow: none;
  overflow-wrap: anywhere;
}

.home-since {
  margin: -0.2rem 0 0.2rem;
  font-size: 2.2rem;
  font-weight: 1000;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 2.8rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.hero__lead {
  width: min(680px, 100%);
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cast {
  margin: 0;
  display: grid;
  place-items: center;
}

.home-cast__image {
  display: block;
  width: min(100%, 860px);
  image-rendering: auto;
}

.subscribe-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  margin: 2.5rem 0 0;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.subscribe-panel__copy {
  display: grid;
  gap: 0.8rem;
}

.subscribe-panel__copy h2,
.subscribe-panel__copy p {
  margin: 0;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.subscribe-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 900;
}

.subscribe-form input,
.subscribe-form textarea {
  min-height: 48px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  background: white;
}

.subscribe-form textarea {
  min-height: 120px;
  resize: vertical;
}

.subscribe-form__feedback {
  grid-column: 1 / -1;
  min-width: 0;
}

.subscribe-form button {
  grid-column: 2;
  grid-row: 1;
  min-width: 170px;
  white-space: nowrap;
}

.subscribe-form__status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-weight: 900;
}

.subscribe-panel__art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.subscribe-panel__art img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.section-heading a {
  font-weight: 900;
}

.subject-grid,
.category-grid,
.comic-grid,
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.comic-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.subject-card,
.category-card,
.cast-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.subject-card {
  padding: 1rem;
}

.subject-card h3 a,
.category-card {
  color: inherit;
  text-decoration: none;
}

.subject-card p {
  margin: 0 0 0.8rem;
}

.toon-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toon-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #d9d9d9;
  padding-top: 0.35rem;
}

.toon-list a {
  font-weight: 900;
}

.toon-list span {
  white-space: nowrap;
  color: #555555;
  font-size: 0.86rem;
}

.category-card {
  display: block;
  min-height: 180px;
  padding: 1rem;
}

.category-card:nth-child(6n + 1),
.subject-card:nth-child(6n + 1) {
  background: #ffffff;
}

.category-card:nth-child(6n + 2),
.subject-card:nth-child(6n + 2) {
  background: #e5fbff;
}

.category-card:nth-child(6n + 3),
.subject-card:nth-child(6n + 3) {
  background: #fff3c4;
}

.category-card:nth-child(6n + 4),
.subject-card:nth-child(6n + 4) {
  background: #ffe5ef;
}

.category-card:nth-child(6n + 5),
.subject-card:nth-child(6n + 5) {
  background: #e9ffd8;
}

.category-card:nth-child(6n + 6),
.subject-card:nth-child(6n + 6) {
  background: #efe8ff;
}

.category-card span,
.comic-card__meta,
.comic-card__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comic-card__date {
  margin-top: -0.45rem;
  color: #555555;
}

.comic-card {
  min-width: 0;
}

.comic-card a {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.comic-card__image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: white;
}

.page-intro {
  padding: 1.5rem 0;
}

.page-intro p:not(.kicker),
.reading-copy {
  max-width: 820px;
  font-size: 1.12rem;
}

.page-intro p:not(.kicker) {
  margin-bottom: 0;
}

.archive-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 3px solid var(--line);
  background: var(--paper-strong);
}

.archive-tools label {
  display: grid;
  gap: 0.35rem;
  font-weight: 900;
}

.archive-tools select {
  min-height: 46px;
  width: 100%;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0.55rem 0.65rem;
}

.archive-count,
.empty-state {
  font-weight: 900;
}

.reader {
  display: grid;
  gap: 1.2rem;
  max-width: 1560px;
  margin: 0 auto;
}

.reader__header {
  display: grid;
  gap: 0.65rem;
}

.reader__header h1 {
  font-size: 3rem;
  overflow-wrap: anywhere;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badges a,
.badges span {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.reader-nav {
  position: sticky;
  top: 142px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.4rem 0;
  background: rgba(255, 255, 255, 0.96);
}

.reader-nav .button:first-child {
  justify-self: start;
}

.reader-nav .button:last-child {
  justify-self: end;
}

.comic-frame {
  margin: 0;
  padding: 0;
  background: white;
}

.comic-frame__image {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.copy-status {
  font-weight: 900;
}

.cast-card {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: start;
  padding: 1rem;
  text-align: center;
}

.cast-card__image {
  width: 160px;
  max-height: 240px;
  object-fit: contain;
  image-rendering: auto;
}

.cast-card__avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 1000;
  font-size: 2rem;
}

.cast-list {
  display: grid;
  gap: 1.25rem;
}

.cast-profile {
  display: grid;
  grid-template-columns: minmax(180px, 340px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.cast-profile__media {
  margin: 0;
  display: grid;
  place-items: center;
}

.cast-profile__image {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
}

.cast-profile__copy {
  display: grid;
  gap: 0.65rem;
}

.cast-profile__copy h2,
.cast-profile__copy p {
  margin: 0;
}

.cast-profile__summary {
  font-weight: 900;
}

.key-phrase {
  padding: 0.75rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--yellow);
  font-weight: 900;
}

.key-phrase span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.feedback-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  margin-bottom: 1.5rem;
}

.feedback-hero__toon,
.feedback-hero__copy,
.feedback-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.feedback-hero__toon {
  margin: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
}

.feedback-hero__toon img {
  width: min(100%, 460px);
}

.feedback-hero__copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.feedback-hero__copy p {
  margin: 0;
  font-weight: 900;
  font-size: 1.4rem;
}

.feedback-award {
  width: 92px;
  image-rendering: auto;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feedback-card {
  margin: 0;
  padding: 1rem;
}

.feedback-card p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.feedback-card cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 900;
  color: #555555;
}

.feedback-submit__art {
  margin: 0;
  display: grid;
  place-items: center;
}

.feedback-submit__art img {
  width: min(100%, 320px);
}

.site-footer {
  border-top: 3px solid var(--line);
  padding: 1.3rem clamp(1rem, 3vw, 2rem);
  background: var(--ink);
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 2.25rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-hero,
  .archive-tools,
  .subscribe-panel,
  .subscribe-form,
  .cast-profile,
  .feedback-hero,
  .feedback-hero__copy {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .kicker {
    font-size: 1rem;
  }

  .home-since {
    font-size: 1.45rem;
  }

  .hero__lead {
    font-size: 1.3rem;
  }

  .reader__header h1 {
    font-size: 2.4rem;
  }

  .reader-nav {
    top: 230px;
    grid-template-columns: 1fr 1fr;
  }

  .reader-nav .button:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-nav a,
  .button,
  .copy-link {
    min-height: 46px;
  }

  .subscribe-form button,
  .subscribe-form__feedback {
    grid-column: auto;
    grid-row: auto;
  }

  .comic-card__image {
    height: 220px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .button,
  .site-nav a,
  .category-card,
  .subject-card,
  .comic-card img {
    transition: transform 140ms ease, box-shadow 140ms ease;
  }

  .button:hover,
  .site-nav a:hover,
  .category-card:hover,
  .subject-card:hover,
  .comic-card a:hover img {
    transform: translate(-2px, -2px);
  }
}
