:root {
  --felt: #16523a;
  --felt-deep: #0c2f22;
  --felt-light: #1d6a4b;
  --paper: #f6edd8;
  --paper-2: #efe3c6;
  --ink: #14110d;
  --ink-soft: #2a241c;
  --gold: #e8bc2a;
  --gold-deep: #b8860b;
  --green: #22e56f;
  --green-deep: #0d9a46;
  --caption: #ffe14d;
  --bubble: #fffdf7;
  --ginger: #d56b2c;
  --print-c: #33c4ff;
  --print-m: #ff3b6b;
  --gutter: 18px;
  --frame: 5px;
  --shadow: 10px 10px 0 #0a0a0a;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Comic Neue", "Trebuchet MS", "Comic Sans MS", sans-serif;
  background-color: var(--felt-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 40%, rgba(232, 188, 42, 0.06) 0 1px, transparent 2px),
    radial-gradient(ellipse at top, var(--felt) 0%, var(--felt-deep) 58%);
  background-size: 14px 14px, 22px 22px, auto;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  color: inherit;
}

button,
.copy-ca,
.ink-btn {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 80;
  background: var(--caption);
  padding: 8px 12px;
  border: 3px solid var(--ink);
}

.desk {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border: var(--frame) solid var(--ink);
  box-shadow: 0 8px 0 #0a0a0a;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  background: #4a90d9;
  padding: 2px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.brand-type strong {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.brand-type span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.folio-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.folio-links a {
  text-decoration: none;
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
  padding: 6px 12px;
  border: 3px solid var(--ink);
  background: var(--caption);
  box-shadow: 3px 3px 0 var(--ink);
}

.folio-links a:hover {
  background: #fff;
}

.mast-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 8px 12px;
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 0.8px;
  font-size: 1rem;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  line-height: 1;
}

.ink-btn i {
  font-size: 1.05rem;
}

.ink-btn.gold {
  background: var(--gold);
}

.ink-btn.green {
  background: var(--green);
}

.ink-btn.dark {
  background: var(--ink);
  color: var(--paper);
}

.ink-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-toggle {
  display: none;
  background: var(--caption);
}

.drawer {
  display: none;
}

/* ---------- comic boards on the felt ---------- */
.board {
  background: var(--paper);
  border: var(--frame) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 34px;
  position: relative;
}

.board::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(20, 17, 13, 0.18);
  pointer-events: none;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 4px solid var(--ink);
  padding: 4px 6px 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.issue {
  font-family: "Permanent Marker", cursive;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-head h2 {
  margin: 0;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 1.5px;
  font-weight: 400;
  line-height: 0.9;
  text-shadow:
    2px 0 0 rgba(51, 196, 255, 0.35),
    -2px 0 0 rgba(255, 59, 107, 0.28);
}

.page-no {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.2rem;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
}

.caption {
  display: inline-block;
  background: var(--caption);
  border: 3px solid var(--ink);
  padding: 6px 12px;
  font-family: "Permanent Marker", cursive;
  font-size: 0.95rem;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.panel {
  background: #0b0b0b;
  border: var(--frame) solid var(--ink);
  padding: 8px;
  position: relative;
  z-index: 1;
}

.panel-art {
  background:
    repeating-linear-gradient(45deg, #111 0 2px, #d9c9a3 2px 5px);
  padding: 7px;
}

.panel-art .panel {
  margin: 0;
  background: #111;
}

.panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #111;
}

.speech {
  background: var(--bubble);
  border: 4px solid var(--ink);
  border-radius: 28px 28px 28px 8px;
  padding: 18px 20px 16px;
  position: relative;
  z-index: 1;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  background: var(--bubble);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(32deg);
}

.speech p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--gold);
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 1px;
  padding: 6px 12px;
  font-size: 1.35rem;
}

/* ---------- hero : splash page, not a typical split-hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: var(--gutter);
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wordmark {
  margin: 0;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.82;
  letter-spacing: 2px;
  font-weight: 400;
  text-shadow:
    3px 0 0 rgba(51, 196, 255, 0.4),
    -3px 0 0 rgba(255, 59, 107, 0.32),
    4px 4px 0 #000;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.ca-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  padding: 8px 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.ca-chip small {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-chip code {
  font-family: "Comic Neue", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.stamp {
  align-self: flex-start;
  border: 4px solid var(--ginger);
  color: var(--ginger);
  font-family: "Permanent Marker", cursive;
  padding: 6px 10px;
  transform: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- about : establishing strip then recap ---------- */
.banner-strip .panel {
  background: #050505;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--gutter);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.recap {
  background: var(--paper-2);
  border: 4px solid var(--ink);
  padding: 18px 18px 8px;
  position: relative;
  z-index: 1;
}

.recap h3 {
  margin: 0 0 10px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.recap p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.trait-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 6px;
}

.trait {
  border: 3px solid var(--ink);
  background: #fff;
  padding: 10px 8px;
  text-align: center;
}

.trait strong {
  display: block;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.trait span {
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- how to buy : sunday strip ---------- */
.strip-title {
  font-family: Bangers, Impact, sans-serif;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 8px;
  letter-spacing: 1.5px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.sunday {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cell {
  background: #fff;
  border: 4px solid var(--ink);
  min-height: 220px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cell-no {
  font-family: Bangers, Impact, sans-serif;
  background: var(--caption);
  border: 3px solid var(--ink);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.cell h3 {
  margin: 0;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.6px;
  font-weight: 400;
  line-height: 1;
}

.cell p {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.cell .ink-btn {
  margin-top: auto;
  justify-content: center;
}

/* ---------- community : fan-club splash ---------- */
.club {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: var(--gutter);
  position: relative;
  z-index: 1;
}

.club-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.club-copy p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.sfx {
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.85;
  letter-spacing: 1px;
  color: var(--ink);
  text-shadow:
    3px 3px 0 var(--gold),
    6px 6px 0 #000;
}

/* ---------- footer ---------- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border: var(--frame) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  position: relative;
}

.colo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.colo-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #4a90d9;
  border: 2px solid var(--paper);
}

.colo-brand strong {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.colo-brand span {
  display: block;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--caption);
  border: 4px solid var(--ink);
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 1px;
  font-size: 1.4rem;
  padding: 10px 16px;
  box-shadow: 6px 6px 0 #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 60;
}

body.ca-copied .toast {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .club {
    grid-template-columns: 1fr;
  }

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

  .masthead {
    grid-template-columns: auto 1fr auto;
  }

  .folio-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .drawer {
    display: none;
    grid-column: 1 / -1;
    gap: 8px;
  }

  .drawer.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .drawer a {
    text-decoration: none;
    font-family: Bangers, Impact, sans-serif;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 3px solid var(--ink);
    background: var(--caption);
  }
}

@media (max-width: 640px) {
  .desk {
    width: min(100% - 16px, 1240px);
  }

  .sunday,
  .trait-row {
    grid-template-columns: 1fr;
  }

  .mast-actions .ink-btn.dark,
  .mast-actions .ink-btn.gold {
    display: none;
  }

  .wordmark {
    font-size: 3.1rem;
  }

  .board {
    padding: 12px;
  }
}

@media (min-width: 961px) {
  .drawer {
    display: none !important;
  }
}
