:root {
  --soc-paper: #ece9e4;
  --soc-ink: #0b0b0b;
  --soc-magenta: #d44b8f;
  --soc-cyan: #74b7df;
  --soc-yellow: #e8db67;
  --soc-max: 1180px;
  --soc-radius: 28px;
}

@font-face {
  font-family: 'CC Wild Words';
  src: url('./fonts/CCWildWords-Roman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CC Wild Words';
  src: url('./fonts/CCWildWords-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--soc-ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.soc-comic { font-family: 'CC Wild Words', 'Comic Sans MS', cursive; }
.container { width: min(calc(100% - 32px), var(--soc-max)); margin: 0 auto; }
.site-header {
  border-bottom: 4px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.site-header .inner {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
}
.logo { width: clamp(280px, 40vw, 560px); }
.nav { display: flex; gap: 28px; color: white; font-size: 1.25rem; }
.nav a.active, .nav a:hover { opacity: .8; }
.nav a.active { position: relative; }
.nav a.active::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 4px; border-radius: 999px; background: var(--soc-magenta); }

main { padding: 30px 0 40px; }
.grid-home { display: grid; gap: 28px; }
.panel {
  background: var(--soc-paper);
  border: 4px solid var(--soc-ink);
  border-radius: var(--soc-radius);
  padding: 20px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.04);
}
.panel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; }
.panel-grid.reverse { grid-template-columns: 1fr 1fr; }
.panel-media-wrap {
  border: 4px solid black; border-radius: 24px; background: var(--soc-paper); padding: 14px;
}
.panel-media-wrap.cyan { background: var(--soc-cyan); }
.panel-media { border: 4px solid black; border-radius: 18px; overflow: hidden; }
.overline, h1, h2, h3, .button, .meta, .card-title, .empty-note, .reader-topbar, .archive-count { font-family: 'CC Wild Words', 'Comic Sans MS', cursive; }
.overline { font-size: 1.35rem; margin-bottom: 8px; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.02; margin: 0 0 14px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; margin: 0 0 14px; }
p.lead { font-size: clamp(1.15rem, 2.1vw, 1.65rem); line-height: 1.35; margin: 0 0 22px; max-width: 34rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 4px solid black;
  box-shadow: 0 5px 0 black; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 black; }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 black; }
.button.magenta { background: var(--soc-magenta); color: white; }
.button.cyan { background: var(--soc-cyan); color: white; }
.button.yellow { background: var(--soc-yellow); color: black; }
.button.ghost { background: white; color: black; }
.button.disabled, .button[disabled] { opacity: .45; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.dots span { width: 12px; height: 12px; border-radius: 999px; border: 3px solid black; background: black; }
.dots span.active { background: var(--soc-magenta); }

.site-footer { padding: 8px 0 32px; color: white; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.shape-markers { display: flex; gap: 10px; align-items: center; }
.shape-marker { width: 18px; height: 18px; border: 2px solid black; }
.shape-marker.circle { border-radius: 999px; background: var(--soc-magenta); }
.shape-marker.cyan { border-radius: 999px; background: var(--soc-cyan); }
.shape-marker.square { background: var(--soc-yellow); }
.socials { display: flex; gap: 18px; font-family: 'CC Wild Words', 'Comic Sans MS', cursive; font-size: 1.3rem; }

.archive-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.chapter-card {
  background: var(--soc-paper); border: 4px solid black; border-radius: 24px; overflow: hidden;
}
.chapter-card .content { padding: 16px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 14px; font-size: 1rem; }
.status-pill { display: inline-flex; align-items: center; padding: 6px 12px; border: 3px solid black; border-radius: 999px; font-family: 'CC Wild Words', 'Comic Sans MS', cursive; background: white; }
.status-pill.coming { background: var(--soc-yellow); }

.reader-shell { width: min(calc(100% - 16px), 1400px); margin: 0 auto; }
.reader-topbar {
  position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  color: white; border-bottom: 4px solid rgba(255,255,255,.08); padding: 12px 0;
}
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reader-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.reader-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 3px solid white; border-radius: 999px; }
.reader-main { padding: 20px 0 36px; }
.reader-stack { display: grid; gap: 18px; }
.reader-loading {
  width: min(100%, 980px);
  margin: 0 auto 18px;
}
.comic-page { margin: 0 auto; width: min(100%, 980px); }
.comic-page img { width: 100%; height: auto; border-radius: 16px; border: 3px solid black; box-shadow: 0 0 0 2px rgba(255,255,255,.04); background: rgba(255,255,255,.04); }
.empty-note { color: white; background: rgba(255,255,255,.08); border: 3px solid rgba(255,255,255,.2); border-radius: 18px; padding: 18px; }
.message-panel {
  margin-top: 18px; background: var(--soc-paper); border: 4px solid black; border-radius: 22px; padding: 18px;
}
.swiper {
  width: min(100%, 980px); margin: 0 auto; border-radius: 18px; overflow: hidden;
}
.swiper-slide { display: flex; justify-content: center; background: transparent; }
.swiper-slide img { width: 100%; height: auto; border: 3px solid black; border-radius: 16px; }
.swiper-button-next, .swiper-button-prev { color: white !important; }
.swiper-pagination-bullet-active { background: white !important; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: var(--soc-paper); border: 4px solid black; border-radius: 24px; overflow: hidden; }
.video-card .content { padding: 16px; }
.video-embed { aspect-ratio: 9 / 16; width: 100%; border: 0; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--soc-paper); border: 4px solid black; border-radius: 20px; padding: 16px; }
.faq-q { font-family: 'CC Wild Words', 'Comic Sans MS', cursive; font-size: 1.5rem; margin-bottom: 8px; }

@media (max-width: 860px) {
  .site-header .inner, .panel-grid, .panel-grid.reverse, .archive-head { grid-template-columns: 1fr; display: grid; align-items: start; }
  .nav { display: none; }
  .site-footer .inner { flex-direction: column; align-items: start; }
  .reader-topbar {
    position: static;
    padding: 8px 0;
    backdrop-filter: none;
    background: rgba(0,0,0,.96);
  }
  .reader-bar {
    gap: 10px;
  }
  .reader-controls {
    gap: 8px;
  }
  .reader-topbar [data-reader-title] {
    font-size: 1.45rem !important;
    line-height: 1.05;
  }
  .reader-topbar [data-reader-pages],
  .reader-topbar .overline {
    font-size: .95rem;
  }
  .reader-topbar .button {
    min-height: 40px;
    padding: 8px 14px;
    border-width: 3px;
    box-shadow: 0 4px 0 black;
    font-size: .98rem;
  }
  .reader-toggle {
    padding: 6px 8px;
    gap: 6px;
    border-width: 2px;
  }
  .reader-main {
    padding-top: 12px;
  }
}


.faq-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch;
}
.faq-hero-note {
  border: 4px solid black;
  border-radius: 24px;
  padding: 20px;
  background: var(--soc-cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.note-kicker {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.faq-hero-note p {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  line-height: 1.08;
}
.faq-trivia-stack {
  display: grid;
  gap: 18px;
}
.faq-trivia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.faq-card, .trivia-card {
  background: var(--soc-paper);
  border: 4px solid black;
  border-radius: 22px;
  padding: 18px;
}
.trivia-card {
  background: var(--soc-cyan);
}
.faq-kicker {
  font-family: 'CC Wild Words', 'Comic Sans MS', cursive;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.faq-answer, .trivia-text {
  font-size: 1.05rem;
  line-height: 1.5;
}
.trivia-text {
  font-size: 1.1rem;
}
@media (max-width: 860px) {
  .faq-hero, .faq-trivia-row {
    grid-template-columns: 1fr;
  }
}
