/* Paul Cox Illustration — V1 homepage prototype */

:root {
  --yellow: #ffd729;
  --purple: #4b3ed9;
  --black: #111111;
  --white: #ffffff;
  --gray: #f3f3f3;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --ink-soft: #2a2a2a;

  --font-display: "Work Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-comic: "Mouse Memoirs", "Comic Sans MS", cursive;

  --page: 76rem;
  --gutter: clamp(1.15rem, 4vw, 2.6rem);
  --section: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 4.35rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked,
body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--purple);
}

a:hover {
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.55rem 0.85rem;
  background: var(--yellow);
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Type */

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: inherit;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.series-name {
  font-family: var(--font-comic);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.lede,
.section__intro {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.meta-line,
time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ink-scribble {
  display: block;
  width: 4.6rem;
  height: 10px;
  margin: 0.55rem 0 1.4rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--page), 100%);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0.45rem var(--gutter);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  color: var(--black);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__tag {
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--black);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--black);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.4rem var(--gutter) 1.2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-nav.is-open .site-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--purple);
}

.site-nav__cta {
  padding: 0.55rem 0.9rem;
  background: var(--yellow);
  color: var(--black) !important;
}

.site-nav__panelplan {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: calc(0.55rem - 1.5px) 0.9rem;
  background: #4b3ed9;
  color: #ffffff !important;
}

.site-nav__pp-mark {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.site-nav__panelplan:hover {
  background: var(--black);
  color: #ffffff !important;
}

.site-nav__cta:hover {
  background: var(--black);
  color: var(--yellow) !important;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--black);
  color: var(--yellow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--black);
}

.btn--ghost-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn--purple {
  background: var(--purple);
  color: var(--white);
}

.btn--purple:hover {
  background: var(--black);
  color: var(--yellow);
}

.btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.text-link,
button.text-link {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.text-link:hover,
button.text-link:hover {
  color: var(--black);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 700px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero__art {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, #2a2a2a 0 18%, transparent 19%),
    linear-gradient(90deg, #0a0a0a 0 34%, #161616 100%);
}

.hero__placeholder::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(46vw, 28rem);
  height: min(58%, 24rem);
  background:
    linear-gradient(135deg, transparent 46%, var(--yellow) 46% 54%, transparent 54%),
    radial-gradient(circle at 70% 60%, var(--purple) 0 14%, transparent 15%),
    repeating-linear-gradient(-18deg, transparent, transparent 10px, #222 10px, #222 11px);
  border: 3px solid #f3f3f3;
  transform: rotate(4deg);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 5.5rem var(--gutter) 4.2rem;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 11ch;
  font-size: clamp(3.5rem, 9vw, 7.4rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hero__title em {
  display: block;
  color: var(--yellow);
  font-style: normal;
}

.hero__line {
  margin: 0 0 1.7rem;
  max-width: 22rem;
  color: #d8d8d8;
  font-size: 1.08rem;
}

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



/* Sections */

.section {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.section--gray {
  width: 100%;
  background: var(--gray);
  padding: var(--section) 0;
}

.section--gray .section__header,
.section--gray .shop-grid,
.section--gray .shop-cta {
  width: min(var(--page), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section__header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  max-width: 14ch;
}

.section-rule {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--white);
}

.section-rule img {
  width: min(42rem, 100%);
  height: 0.8rem;
  object-fit: fill;
}

/* Artwork slots + designed placeholders */

.art-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ececec;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 1rem;
  overflow: hidden;
  background: #1b1b1b;
  color: var(--white);
}

.placeholder__grid {
  position: absolute;
  inset: 12% 10%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
}

.placeholder__shape {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: 12%;
  top: 18%;
  background: var(--yellow);
  clip-path: polygon(18% 8%, 92% 0, 100% 78%, 8% 100%);
}

.placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.placeholder__label:empty {
  display: none;
}

.placeholder--reftoons {
  background: #16140a;
}

.placeholder--reftoons .placeholder__shape {
  background: var(--yellow);
  border-radius: 50%;
  clip-path: none;
  right: 16%;
  top: 22%;
  width: 38%;
}

.placeholder--nature {
  background: #141414;
}

.placeholder--nature .placeholder__shape {
  background: #2f2f2f;
  clip-path: polygon(50% 8%, 78% 48%, 100% 100%, 0 100%, 22% 48%);
  width: 70%;
  right: 8%;
  top: auto;
  bottom: 0;
}

.placeholder--nature .placeholder__grid {
  border-color: rgba(255, 215, 41, 0.35);
}

.placeholder--sasquatch {
  background: #0f0e18;
}

.placeholder--sasquatch .placeholder__shape {
  background: #2a246e;
  clip-path: polygon(30% 8%, 70% 8%, 86% 38%, 72% 100%, 28% 100%, 14% 38%);
  width: 46%;
  right: 18%;
  top: 14%;
}

.placeholder--planet {
  background: #0c0c10;
}

.placeholder--planet .placeholder__shape {
  background: var(--purple);
  border-radius: 50%;
  clip-path: none;
  width: 54%;
  right: 8%;
  top: 16%;
  box-shadow: inset -18px -10px 0 #211a6e;
}

.placeholder--newt {
  background: #17150c;
}

.placeholder--newt .placeholder__shape {
  background: var(--yellow);
  width: 62%;
  height: 28%;
  aspect-ratio: auto;
  right: 10%;
  top: 46%;
  border-radius: 999px 999px 40px 40px;
  clip-path: none;
}

.placeholder--illustration {
  background: #f3f3f3;
  color: var(--black);
}

.placeholder--illustration .placeholder__shape {
  background: var(--yellow);
}

.placeholder--illustration .placeholder__grid {
  border-color: #111;
}

.placeholder--characters {
  background: var(--black);
}

.placeholder--characters .placeholder__shape {
  background: var(--white);
  border-radius: 50% 50% 42% 42%;
  clip-path: none;
  width: 34%;
  top: 20%;
  right: 18%;
}

.placeholder--editorial {
  background: #efefef;
  color: var(--black);
}

.placeholder--editorial .placeholder__shape {
  background: var(--purple);
  clip-path: none;
  width: 70%;
  height: 18%;
  aspect-ratio: auto;
  top: 28%;
  right: 10%;
}

.placeholder--comics {
  background: #111;
}

.placeholder--comics .placeholder__grid {
  background:
    linear-gradient(#fff 0 0) 0 0 / 48% 46% no-repeat,
    linear-gradient(#fff 0 0) 100% 0 / 48% 46% no-repeat,
    linear-gradient(#fff 0 0) 0 100% / 100% 46% no-repeat;
  border: 0;
  opacity: 0.92;
}

.placeholder--comics .placeholder__shape {
  display: none;
}

.placeholder--shop {
  background: #fff;
  color: var(--black);
}

.placeholder--shop .placeholder__shape {
  background: var(--yellow);
  width: 36%;
  right: 14%;
  top: 22%;
}

.shop-card:nth-child(2) .placeholder__shape {
  background: var(--purple);
  clip-path: none;
  border-radius: 50%;
}

.shop-card:nth-child(3) .placeholder__shape {
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.shop-card:nth-child(4) .placeholder__shape {
  width: 70%;
  height: 18%;
  aspect-ratio: auto;
  top: 38%;
}

.shop-card:nth-child(5) .placeholder__shape {
  border-radius: 50%;
  clip-path: none;
  width: 28%;
  box-shadow: 2.2rem 0 0 var(--purple);
}

.shop-card:nth-child(6) .placeholder__shape {
  background: var(--black);
}

.placeholder--ink {
  background: #1a1a1a;
}

.placeholder--about {
  background: #1a1a1a;
}

.placeholder--about .placeholder__shape {
  background: var(--yellow);
  border-radius: 46% 54% 48% 52%;
  clip-path: none;
  width: 48%;
  left: 26%;
  right: auto;
  top: 16%;
}

/* Ink frames — used sparingly */

.ink-frame {
  position: relative;
  width: 100%;
}

.ink-frame--wide {
  aspect-ratio: 1454 / 931;
}

.ink-frame--portrait {
  aspect-ratio: 852 / 916;
}

.series-feature__art {
  display: block;
  overflow: hidden;
}

.ink-frame__stroke {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.ink-frame__well {
  position: absolute;
  inset: 5.6% 6.2%;
  overflow: hidden;
  background: #ececec;
}

.ink-frame__well .world__art,
.ink-frame__well .image-slot {
  height: 100%;
}

/* Latest comics */

.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.1rem 1.35rem;
}

.comic-card__art {
  display: block;
  aspect-ratio: 1 / 1;
  color: inherit;
  text-decoration: none;
}

.comic-card__art .image-slot {
  height: 100%;
  background: #f6f6f6;
}

.comic-card__art .image-slot img {
  object-fit: contain;
}

.image-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ececec;
}

.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot img.is-missing {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-slot.is-empty {
  background:
    linear-gradient(#e8e8e8, #e8e8e8) center / 1px 28% no-repeat,
    linear-gradient(#e8e8e8, #e8e8e8) center / 28% 1px no-repeat,
    #f3f3f3;
}

.image-slot.is-empty::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid #dcdcdc;
  pointer-events: none;
}

.image-slot.is-empty::after {
  content: attr(data-file);
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #8a8a8a;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-align: left;
  word-break: break-all;
}

.comic-card__meta {
  padding: 0.9rem 0.1rem 0;
}

.comic-card__series {
  margin: 0 0 0.15rem;
  font-family: var(--font-comic);
  font-size: 1.35rem;
  line-height: 1;
}

.comic-card__blurb {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.comic-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comic-card__art:hover .image-slot,
.world__art:hover .image-slot,
.folio-card__btn:hover .art-slot,
.shop-card:hover .art-slot {
  transform: translateY(-2px);
}

.art-slot,
.image-slot {
  transition: transform 0.2s ease;
}

/* Random comic */

.random {
  background: var(--yellow);
  color: var(--black);
}

.random__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.75rem;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 3.4rem var(--gutter);
}

.random h2 {
  margin-bottom: 0.4rem;
}

.random p:last-child {
  margin: 0;
  max-width: 28rem;
}

.dice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 9.5rem;
  padding: 1.1rem 1.2rem 0.9rem;
  border: 0;
  background: var(--black);
  color: var(--yellow);
  cursor: pointer;
}

.dice-btn svg {
  width: 4.4rem;
  height: 4.4rem;
}

.dice-btn span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dice-btn:hover svg {
  transform: rotate(-12deg);
}

.dice-btn svg {
  transition: transform 0.2s ease;
}

/* Series worlds — each series is its own layout */

.series-band {
  background: var(--gray);
  padding: var(--section) 0 var(--section);
}

.series-band > .section__header,
.series-band .series-grid,
.worlds-page {
  width: min(var(--page), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Comic worlds — uniform grid */

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.series-card {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease;
}

.series-card:hover,
.series-card:focus-visible {
  transform: rotate(var(--tilt, 0deg)) scale(1.015);
}

.series-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.series-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Banners carry a baked-in solid panel on the left ~54%;
     the art is the right 640x400 (16:10), so anchor right to fill the tile with art. */
  object-position: 100% 50%;
}

.series-card--newt .series-card__bg img {
  object-position: 50% 35%;
}

.series-card__fade {
  position: absolute;
  inset: 0;
  /* Soft left/bottom tone overlay behind the text only */
  background:
    linear-gradient(
      90deg,
      rgba(var(--tone-rgb), 0.82) 0%,
      rgba(var(--tone-rgb), 0.55) 32%,
      rgba(var(--tone-rgb), 0) 62%
    ),
    linear-gradient(
      0deg,
      rgba(var(--tone-rgb), 0.7) 0%,
      rgba(var(--tone-rgb), 0) 55%
    );
  pointer-events: none;
}

.series-card__name,
.series-card__tag,
.series-card__count {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.series-card--reftoons .series-card__body > span {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

/* "Newest" ribbon — cartoon corner sash with folded ends */
.series-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 6.5rem;
  height: 6.5rem;
  pointer-events: none;
  /* chunky hard offset shadow (no blur), in screen space */
  filter: drop-shadow(-4px 4px 0 #111) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  animation: ribbon-glow 2.8s ease-in-out infinite;
}

.series-card__badge {
  position: absolute;
  top: 1.75rem;
  right: -2.9rem;
  box-sizing: border-box;
  width: 11rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd729;
  color: #111;
  border: 3px solid #111;
  font-family: var(--font-comic);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(45deg) skewX(-3deg);
}

.series-card__ribbon .series-card__badge {
  text-shadow: none;
}

@keyframes ribbon-glow {
  0%, 100% {
    filter: drop-shadow(-4px 4px 0 #111) drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
  }
  50% {
    filter: drop-shadow(-4px 4px 0 #111) drop-shadow(0 0 12px rgba(255, 255, 255, 1));
  }
}

/* Dr. Sasquatch: smaller ribbon, clear of the speech bubble */
.series-card--sasquatch .series-card__ribbon {
  width: 5rem;
  height: 5rem;
}

.series-card--sasquatch .series-card__badge {
  top: 1.25rem;
  right: -2.6rem;
  width: 9rem;
  height: 1.5rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .series-card__ribbon {
    animation: none;
  }
}


.series-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1rem 1.1rem;
  color: var(--tone-text, #fff);
}

.series-card__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.series-card__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
}

.series-card__count {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.series-card--reftoons {
  --tone-rgb: 255, 215, 41;
  --tone-text: #171717;
  --tilt: -0.4deg;
}

.series-card--reftoons .series-card__name {
  font-size: 1.35rem;
}

.series-card--nature {
  --tone-rgb: 27, 128, 116;
  --tone-text: #fff;
  --tilt: 0.6deg;
}

.series-card--sasquatch {
  --tone-rgb: 75, 62, 217;
  --tone-text: #fff;
  --tilt: -0.7deg;
}

.series-card--planet {
  --tone-rgb: 194, 74, 34;
  --tone-text: #fff;
  --tilt: 0.5deg;
}

.series-card--ptl {
  --tone-rgb: 24, 24, 24;
  --tone-text: #fff;
  --tilt: 0.4deg;
}

/* Cover page (portrait) in the 16:10 tile: show the art below the title */
.series-card--ptl .series-card__bg img {
  object-position: 50% 92%;
}

.series-card--newt {
  --tone-rgb: 168, 55, 122;
  --tone-text: #fff;
  --tilt: -0.3deg;
}

.series-card--nature .series-card__name,
.series-card--sasquatch .series-card__name,
.series-card--planet .series-card__name,
.series-card--ptl .series-card__name,
.series-card--newt .series-card__name {
  font-size: 1.35rem;
}

.world {
  margin: 0;
}

.world__copy p {
  margin: 0 0 1rem;
  max-width: 32rem;
}

.world__copy .series-name {
  margin: 0.1rem 0 0.7rem;
}

.world__copy .btn {
  margin-top: 0.25rem;
}

.world__logo {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0.15rem 0 0.7rem;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.world__art {
  display: block;
  color: inherit;
  text-decoration: none;
}

.world__art .image-slot img {
  object-position: right center;
}

.world--reftoons {
  background: var(--black);
  color: #fff;
  padding: 3.2rem 0;
}

.world--reftoons .world__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.6rem;
  align-items: center;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.world--reftoons .eyebrow {
  color: var(--yellow);
}

.world--reftoons .series-name {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.world--reftoons .world__copy p {
  color: #cfcfcf;
}

.world--reftoons .meta-line {
  color: #9a9a9a;
}

.world--nature {
  padding: 3.4rem 0 4.2rem;
}

.world--nature .world__inner--split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: end;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.world--nature .world__art {
  aspect-ratio: 5 / 4;
}

.world--nature .series-name {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.world--sasquatch {
  background: #16141f;
  color: #fff;
  padding: 2.6rem 0;
}

.world--sasquatch .world__inner--portrait {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 3rem;
  align-items: center;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.world--sasquatch .world__art {
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.world--sasquatch .eyebrow {
  color: #b8b3e8;
}

.world--sasquatch .series-name {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.world--sasquatch .world__copy p {
  color: #d4d2e0;
}

.world--sasquatch .meta-line {
  color: #9b98b0;
}

.world--sasquatch .btn {
  background: var(--purple);
  color: #fff;
}

.world--sasquatch .btn:hover {
  background: var(--yellow);
  color: var(--black);
}

.world--planet {
  position: relative;
  background: #0c0c10;
  color: #fff;
  margin-top: 2.2rem;
}

.world--planet .world__art {
  display: block;
  min-height: 22rem;
  aspect-ratio: 21 / 9;
}

.world--planet .world__art .image-slot {
  min-height: 22rem;
}

.world--planet .world__inner--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem var(--gutter) 2.4rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78) 55%);
}

.world--planet .world__copy {
  width: min(var(--page), 100%);
  margin: 0 auto;
}

.world--planet .eyebrow {
  color: var(--yellow);
}

.world--planet .series-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.world--planet .world__copy p {
  color: #d8d8d8;
}

.world--planet .meta-line {
  color: #9a9a9a;
}

.world--newt {
  padding: 3.6rem 0 4.2rem;
}

.world--newt .world__inner--character {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  gap: 2.2rem;
  align-items: center;
  width: min(40rem, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.world--newt .world__art {
  aspect-ratio: 1;
}

.world--newt .series-name {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.world--default .world__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 2.4rem var(--gutter);
}

.worlds-page .world {
  margin: 2rem 0;
}

/* Portfolio */

.folio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -1rem 0 1.8rem;
}

.chip {
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  background: var(--yellow);
}

.folio-grid {
  column-count: 3;
  column-gap: 1rem;
}

.folio-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.folio-card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.folio-card__image {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  transition: transform 0.2s ease;
}

.folio-card__btn:hover .folio-card__image {
  transform: translateY(-2px);
}

.folio-card__caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.1rem 0.2rem;
}

.folio-card__caption strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

/* About */

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.2rem;
  align-items: center;
}

.about__plate {
  margin: 0;
}

.ink-frame__well--photo {
  inset: 1.4% 1.8%;
  background: #d8d8d8;
}

.about__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.about__copy .series-name {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.about__copy p {
  max-width: 36rem;
}

.about__copy p + p {
  margin-top: 0.9rem;
}

/* Shop */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-bottom: 0.4rem;
}

.shop-card {
  color: inherit;
  text-decoration: none;
}

.shop-card .art-slot {
  aspect-ratio: 5 / 3;
  height: auto;
  background: #fff;
}

.shop-card span {
  display: block;
  padding: 0.7rem 0.1rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-cta {
  margin-top: 2rem;
}

/* Small Paul — recurring character, not a logo.
   Keep original colors and the transparent PNG. */

.small-paul {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  background: transparent;
  border: 0;
  filter: none;
  mix-blend-mode: normal;
  image-rendering: auto;
}

.small-paul--footer {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  bottom: calc(100% - 1.15rem);
  z-index: 3;
  width: 5.6rem;
  height: auto;
  pointer-events: none;
}

.random__lede {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.small-paul--random {
  width: 8.8rem;
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
}

.small-paul--contact,
.small-paul--aside {
  width: 7.5rem;
  height: auto;
}

.small-paul--nudge {
  width: 4.75rem;
  height: auto;
}

/* Footer clearance: keep content clear of the footer Small Paul */

body > main {
  padding-bottom: 8rem;
}

body > main.page-shell {
  padding-bottom: 9rem;
}

/* Footer */

.site-footer {
  position: relative;
  overflow: visible;
  color: #cfcfcf;
  background: var(--black);
}

.site-footer a {
  color: #f3f3f3;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 3.4rem var(--gutter) 2.3rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.site-footer .brand__tag {
  color: #9a9a9a;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav ul,
.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li,
.social-list li + li {
  margin-top: 0.4rem;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid #2a2a2a;
  color: #8a8a8a;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-footer__base p {
  margin: 0;
}

/* Inner pages */

.page-shell {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 3.2rem var(--gutter) 5rem;
}

.page-head {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.page-head h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.page-head .series-name {
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.empty-note {
  color: var(--muted);
}

.reader-head {
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.reader-head h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.reader-head__blurb {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.reader-art {
  margin: 0 auto 1.6rem;
  max-width: 52rem;
  min-height: 28rem;
}

.reader-art .image-slot {
  min-height: 24rem;
  aspect-ratio: auto;
  background: #f6f6f6;
}

.reader-art .image-slot img {
  object-fit: contain;
  height: auto;
  max-height: 85vh;
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto 1rem;
}

.reader-nav__group {
  display: flex;
  gap: 0.6rem;
}

.reader-tools .btn {
  cursor: pointer;
}

.reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.share-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.88);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(64rem, 100%);
  color: var(--white);
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, calc(100vh - 8.5rem));
  object-fit: contain;
  background: transparent;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.1rem 0;
}

.lightbox__close,
.lightbox__dir {
  border: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 2.4rem;
  padding: 0 0.8rem;
  cursor: pointer;
}

.lightbox__meta {
  color: #bdbdbd;
}

/* Responsive */

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav.is-open .site-nav__list,
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.55rem;
  }
}

@media (max-width: 1080px) {
  .folio-grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 580px;
  }

  .hero__image {
    width: 100%;
    height: 100%;
    object-position: 78% 40%;
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.15) 38%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .about__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

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

  .comic-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 560px;
    align-items: flex-end;
  }

  .hero__copy {
    padding: 4.5rem var(--gutter) 2.4rem;
  }

  .random__inner,
  .reader-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .dice-btn {
    width: 100%;
  }

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

  .reader-nav__group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .comic-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .folio-grid {
    column-count: 1;
  }

  .comic-card__art {
    aspect-ratio: 1 / 1;
  }

  .world--newt .world__inner--character {
    width: calc(100% - 2 * var(--gutter));
  }

  .small-paul--footer {
    width: 4.4rem;
    left: var(--gutter);
  }

  .world--planet .world__inner--overlay {
    position: static;
    background: #0c0c10;
    padding-top: 1.4rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .art-slot,
  .dice-btn svg {
    transition: none;
  }
}

/* Series card one-line description */
.series-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 22rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Hero artwork caption */
.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 0.8rem;
  z-index: 2;
  max-width: 26rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.folio-feature__note,
.hire__contact {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Hire me */
.hire__list {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hire__contact {
  margin: 0;
}

@media (max-width: 700px) {
  .hero__caption {
    left: var(--gutter);
    text-align: left;
    bottom: 0.4rem;
  }
}

/* Comics: featured RefToons + "More comics" */
.series-feature,
.series-more__title {
  width: min(var(--page), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.series-feature .series-card {
  aspect-ratio: 21 / 8;
}

.series-feature .series-card__name {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.series-feature .series-card__desc {
  font-size: 1rem;
  max-width: 30rem;
}

.series-more__title {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.series-grid--more {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .series-grid--more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .series-feature .series-card {
    aspect-ratio: 16 / 10;
  }
  .series-grid--more {
    grid-template-columns: 1fr;
  }
}


/* Published books — justified rows; each cover at its natural ratio */
.books {
  --book-h: 13rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 1rem;
}

.books--featured {
  --book-h: 22rem;
  margin-bottom: 2.2rem;
}

.books--featured {
  max-width: 36rem;
}

.books--featured::after {
  content: none;
}

.book {
  flex-grow: var(--ar);
  flex-basis: calc(var(--ar) * var(--book-h));
  min-width: 0;
  margin: 0;
}

.book__link {
  display: block;
}

.book__cover {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .books {
    --book-h: 8rem;
    gap: 1.2rem 0.75rem;
  }
  .books--featured {
    --book-h: 10rem;
  }
  .books:not(.books--featured)::after {
    /* phones: keeps a lone last cover from stretching full width */
    content: "";
    flex: 1.3 1 0;
  }
  .books--featured {
    max-width: none;
  }
}

/* Hire me — contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__field > span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form__field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid #ffd729;
  outline-offset: 1px;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.contact-form .btn {
  border: 2px solid #111;
  background: #ffd729;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form__status {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form__status.is-error {
  color: #b3261e;
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 700px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* Newsletter: Substack embed */
.newsletter__signup {
  max-width: 480px;
}
.newsletter__embed {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 320px;
  background: #fff;
  border: 2px solid var(--ink, #111);
  border-radius: 8px;
}
.newsletter__link {
  margin-top: 0.75rem;
}
