/* Rethink your priors. Flat white and cream, black lines, paint.py palette, hand lettering. No gradients, no shadows. */
@font-face { font-family: "Gochi Hand"; src: url("/fonts/gochi-hand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("/fonts/patrick-hand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("/fonts/patrick-hand-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --red: #E8352B; --blue: #2F6FE4; --yellow: #FFD43B; --green: #3DBB55; --orange: #FF8A1F; --purple: #8E4FD6;
  --pink: #FF7FB5; --teal: #1FB8B0; --sky: #BFE3FF; --cream: #FFF1C9; --white: #FFFFFF; --charcoal: #3A3A40;
  --ink: #000000; --muted: #3A3A40;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --clear: "Patrick Hand", "Gochi Hand", "Comic Sans MS", cursive;
  --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--clear); font-size: 21px; line-height: 1.45; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }
span.z { font-family: var(--clear); }
code { font-family: var(--clear); background: var(--cream); padding: 0 .3em; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.1; margin: 0 0 .3em; }
h2 { font-size: clamp(40px, 6vw, 64px); transform: rotate(-1.2deg); transform-origin: left; }
h3 { font-size: 34px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.band { padding: 72px 0; }
.band.cream { background: var(--cream); }
.sub { margin: 0 0 24px; color: var(--muted); }
.fine { font-size: 17px; color: var(--muted); }
.aside { font-family: var(--hand); font-size: 22px; transform: rotate(-1.5deg); color: var(--muted); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px var(--gutter); max-width: 1240px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 26px; text-decoration: none; }
.brand img { border-radius: 50%; border: 2px solid var(--ink); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--hand); font-size: 22px; }
@media (max-width: 520px) { .top nav { gap: 2px 12px; font-size: 19px; } }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--red); }

/* drawn stages */
.stage { position: relative; width: 100%; }
.stage svg { width: 100%; height: auto; }
button.stage { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; }

/* hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.hero-stage { aspect-ratio: 1920 / 800; }
.hero-copy { text-align: center; max-width: 820px; margin: 4px auto 0; }
.dek { font-size: clamp(20px, 2.4vw, 25px); margin: 0 0 6px; }
.byline { font-family: var(--clear); font-size: 26px; margin: 0 0 20px; }
.ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0; }
@media (max-width: 700px) { .hero-stage { aspect-ratio: 1080 / 1130; max-width: 520px; margin: 0 auto; } }

/* wobbly boxes: JS draws an SVG outline into .wob */
[data-wobble] { position: relative; isolation: isolate; }
.wob { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: visible; }
.wob svg { width: 100%; height: 100%; }
.no-js [data-wobble], [data-wobble]:not(.wobbled) { border: 3px solid var(--ink); }
[data-wobble].wobbled { border: 0; }

.btn { display: inline-block; font-family: var(--hand); font-size: 26px; line-height: 1; padding: 14px 24px 16px; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; transition: transform .06s steps(1); }
.btn:hover { transform: rotate(-1.5deg) translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn.small { font-size: 21px; padding: 10px 16px 12px; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* toy */
.toy-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.field { flex: 1 1 320px; display: flex; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--clear); font-size: 26px;
  padding: 12px 18px; color: var(--ink); }
.field input:focus { outline: none; }
.field:focus-within { outline: 3px dashed var(--blue); outline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 16px 0 8px; }
.chips-label { font-family: var(--hand); font-size: 22px; margin-right: 4px; }
.chip { font-family: var(--clear); font-size: 18px; padding: 6px 12px 7px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.chip:hover { transform: rotate(-1deg); }
.toy-stage { margin: 18px auto 0; max-width: 980px; background: var(--white); min-height: 120px; }
.toy-stage:empty { display: none; }
.toy-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 0; }
.toy .fine { text-align: center; margin-top: 18px; }

/* episodes */
.episodes { display: grid; gap: 28px; margin-bottom: 40px; }
.ep { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: start; padding: 24px; }
.ep-video { aspect-ratio: 9 / 16; width: 100%; }
.ep-video iframe { width: 100%; height: 100%; border: 3px solid var(--ink); display: block; background: var(--ink); }
.ep-video .stage { height: 100%; }
.ep-num { font-family: var(--hand); font-size: 24px; color: var(--muted); margin: 0; }
.ep h3 { font-size: clamp(34px, 4.5vw, 48px); }
.ep .hook { font-size: 24px; margin: 0 0 18px; }
.ep .label { font-family: var(--hand); font-size: 22px; margin: 0; }
.prior { display: inline-block; font-size: 22px; padding: 8px 14px; margin: 4px 0 18px; text-decoration: line-through;
  text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.ep-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--hand); font-size: 22px; margin: 0; }
@media (max-width: 700px) { .ep { grid-template-columns: 1fr; padding: 18px; } .ep-video { max-width: 300px; margin: 0 auto; } }

.upcoming { padding: 26px 28px; }
.upcoming-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.upcoming-list li { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; font-size: 22px; align-items: baseline; }
.upcoming-list .when { font-family: var(--hand); color: var(--muted); }
.upcoming-list .num { font-family: var(--hand); }
.upcoming-list li.past { display: none; }
@media (max-width: 560px) { .upcoming-list li { grid-template-columns: 3em 1fr; } }

/* cast */
.cast { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.cast figure { margin: 0; padding: 18px; }
.cast-side { display: grid; gap: 24px; }
.cast-side figure { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
#cast-eduardo { max-width: 380px; margin: 0 auto; }
figcaption { font-size: 20px; }
figcaption strong { font-family: var(--hand); font-weight: 400; font-size: 26px; }
.knobs { display: grid; gap: 10px; margin-top: 14px; }
.knob { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.knob-name { font-family: var(--hand); font-size: 22px; width: 4.2em; }
.knob button { font-family: var(--clear); font-size: 17px; padding: 3px 9px 4px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--white); cursor: pointer; color: var(--ink); }
.knob button[aria-pressed="true"] { background: var(--yellow); }
.knob .swatch { width: 30px; height: 30px; padding: 0; }
.knob button.again { background: var(--sky); }
@media (max-width: 820px) { .cast { grid-template-columns: 1fr; } }

/* follow */
.follow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.link-card { display: grid; gap: 4px; padding: 22px 22px 24px; text-decoration: none; }
.link-card strong { font-family: var(--hand); font-weight: 400; font-size: 32px; }
.link-card:hover { transform: rotate(-1deg); }
@media (max-width: 820px) { .follow { grid-template-columns: 1fr; } }
.closer-stage { max-width: 640px; margin: 36px auto 0; }
.signoff { text-align: center; font-family: var(--hand); font-size: clamp(22px, 3vw, 30px); margin: 8px auto 0; max-width: 760px; }

.foot { text-align: center; padding: 36px var(--gutter) 48px; font-size: 19px; }
.foot p { margin: 4px 0; }
.foot .name { font-family: var(--clear); }

/* 404 */
.lost { text-align: center; padding: 40px var(--gutter) 80px; }
.lost .stage { max-width: 560px; margin: 0 auto; }

/* ---------- inner pages ---------- */
.page { padding-top: 24px; padding-bottom: 64px; }
.page h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(42px, 6.5vw, 72px); line-height: 1.05; margin: 8px 0 18px; transform: rotate(-1deg); transform-origin: left; }
.page h2 { font-size: clamp(32px, 4.5vw, 44px); margin-top: 40px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 18px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.answer { font-size: 23px; line-height: 1.55; max-width: 44em; }
.byline-small { color: var(--muted); font-size: 19px; }
.prior-page .prior { font-size: 26px; }
.prior-stage { max-width: 900px; margin: 10px 0 0; background: var(--white); aspect-ratio: 1600 / 900; }
.prior-stage svg { height: 100%; }
@media (max-width: 700px) { .prior-stage { aspect-ratio: 1000 / 1450; } }
.ep-page { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 32px; align-items: start; }
.ep-page h2 { margin-top: 18px; }
@media (max-width: 700px) { .ep-page { grid-template-columns: 1fr; } .ep-page .ep-video { max-width: 300px; margin: 0 auto; } }
.transcript { max-width: 44em; }
.transcript p { margin: 0 0 10px; font-size: 22px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0; font-family: var(--hand); font-size: 22px; }
.cta-band { margin-top: 48px; padding: 28px; background: var(--cream); text-align: center; }
.cta-band p { margin: 0 0 14px; }
.cta-band .ctas { justify-content: center; }
.ep-more { margin: 10px 0 0; font-size: 19px; }
.ep h3 a { text-decoration: none; }
.ep h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.about .name { font-family: var(--clear); }

/* prior links */
.prior-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.prior-link { display: grid; gap: 8px; padding: 18px 20px 20px; height: 100%; text-decoration: none; }
.prior-link:hover { transform: rotate(-1deg); }
.prior-link .struck { font-size: 19px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.prior-link .q { font-family: var(--hand); font-size: 26px; line-height: 1.15; }
@media (prefers-reduced-motion: reduce) { .prior-link:hover, .link-card:hover { transform: none; } }

.key-points { font-family: var(--hand); font-size: 26px; padding-left: 1.1em; margin: 0 0 12px; }
.work-cta { padding: 18px 22px; margin: 24px 0 0; font-size: 21px; max-width: 44em; }
