/* Agents Deployed.
   The look comes straight from the channel's own artwork: the thumbnail yellow,
   near-black ink, white boxes with heavy outlines, the logo's stamp, and marker
   lettering for the asides. Nothing rounded, nothing soft. */

@font-face { font-family: "Archivo Black"; src: url(fonts/archivo-black-latin.25f33e61cf.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-variable.8f704806db.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url(fonts/permanent-marker-latin.4884fec2c7.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --yellow: #FFD60A;
  --ink: #111111;
  --paper: #ffffff;
  --cream: #FFF7CC;
  --grey: #55534a;
  --stage: #111111;
  --stage-2: #1d1d1b;
  --stage-text: #e9e6da;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stage :focus-visible, .section-ink :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--ink); color: var(--yellow); }
.stage ::selection, .section-ink ::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dim { opacity: .62; font-weight: 400; }
.marker { font-family: var(--marker); font-weight: 400; letter-spacing: .01em; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--yellow); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* timecode: the one piece of UI that is everywhere */
.tc { display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: .875rem; line-height: 1; padding: .3em .45em; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1rem; border: var(--line) solid var(--ink); font-weight: 800; font-size: 1rem; line-height: 1.15; text-decoration: none; background: var(--paper); color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn svg { flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 3px var(--ink); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: currentColor; }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--yellow); }

/* header */
.top { background: var(--yellow); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: block; flex: none; transition: transform .15s ease; }
.brand:hover { transform: rotate(-2deg) scale(1.03); }
.brand img { width: clamp(118px, 16vw, 168px); }
.brand-text { font: 400 1.5rem/1 var(--display); text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.75rem); font-weight: 700; }
.top-nav a:not(.btn) { text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.top-nav a:not(.btn):hover { border-bottom-color: var(--ink); }
.wide { display: none; }
@media (min-width: 620px) { .wide { display: inline; } }
@media (max-width: 479px) { .top-nav a:not(.btn) { display: none; } }

/* hero + search */
.hero { background: var(--yellow); padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.25rem, 5vw, 3.75rem); border-bottom: var(--line) solid var(--ink); }
.hero h1 { font: 400 clamp(2.5rem, 7.4vw, 5.2rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; max-width: 12ch; text-wrap: balance; }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.3; font-weight: 600; max-width: 36ch; margin-top: .9rem; text-wrap: pretty; }
.hero-small h1 { max-width: none; }
.hero-small p { margin-top: 1.5rem; }

.search { margin-top: clamp(1.5rem, 3.2vw, 2.25rem); max-width: 860px; scroll-margin-top: 1rem; }
.search label { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; margin-bottom: .7rem; }
.search label .marker { display: block; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; transform: rotate(-1.2deg); transform-origin: left bottom; margin-bottom: .3rem; }
.search-box { display: flex; align-items: center; gap: .75rem; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: var(--shadow); padding: 0 .5rem 0 1rem; transition: box-shadow .12s ease, transform .12s ease; }
.search-box:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.search-box svg { flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 1.05rem 0; font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-weight: 600; appearance: none; -webkit-appearance: none; }
.search-box input::placeholder { color: #8a8778; font-weight: 500; opacity: 1; }
.search-box input::-webkit-search-cancel-button, .search-box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear { border: 0; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .875rem; padding: .5rem .7rem; }
.search-clear:hover { background: #333; }
.try { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 700; }
.try > span { font-family: var(--marker); font-size: 1.15rem; margin-right: .15rem; }
.chip { border: 2px solid var(--ink); background: transparent; padding: .28rem .7rem; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.chip:hover { background: var(--ink); color: var(--yellow); }

.status { margin-top: 1.5rem; font-weight: 700; max-width: 60ch; }
.status:empty { display: none; }
.status .dim { display: block; font-weight: 500; opacity: .8; }
.results { margin-top: .9rem; display: grid; gap: .7rem; max-width: 980px; }
.results:empty { display: none; }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; align-items: start; background: var(--paper); border: var(--line) solid var(--ink); padding: .85rem 1rem; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.result:hover, .result:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.result .tc { font-size: 1rem; margin-top: .15rem; min-width: 3.4em; text-align: center; }
.r-quote { font-size: 1.125rem; line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.r-quote mark { background: var(--yellow); color: inherit; font-weight: 800; padding: .05em .12em; margin: 0 -.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.r-ep { grid-column: 2; font-size: .9rem; font-weight: 700; color: var(--grey); display: flex; gap: .5rem; align-items: baseline; }
.r-ep b { color: var(--ink); font: 400 .9rem/1 var(--display); }
.r-thumb { display: none; }
@media (min-width: 700px) {
  .result { grid-template-columns: auto minmax(0, 1fr) 128px; }
  .r-thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 128px; height: 72px; object-fit: cover; border: 2px solid var(--ink); align-self: center; }
}
.more-results { justify-self: start; }

/* sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section h2, .block h2 { font: 400 clamp(1.6rem, 3.6vw, 2.5rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.section-head p { color: var(--grey); font-weight: 600; }

/* episode cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: var(--line) solid var(--ink); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover, .card:focus-within { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--yellow); border-bottom: var(--line) solid var(--ink); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-num { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--yellow); font: 400 1.15rem/1 var(--display); padding: .5rem .6rem .45rem; }
.card-dur { position: absolute; right: .5rem; bottom: .5rem; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 700; padding: .2rem .4rem; line-height: 1.1; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-size: 1.3rem; line-height: 1.16; font-weight: 800; letter-spacing: -.005em; text-wrap: balance; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { text-decoration: underline; text-decoration-thickness: 3px; }
.card p { color: #33322d; font-size: .98rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card p a { position: relative; z-index: 1; font-weight: 700; }
.stamp { align-self: flex-start; font: 400 .72rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--yellow); border: 2px solid var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; padding: .3rem .45rem; transform: rotate(-3deg); margin: .1rem 0 .3rem .2rem; }
.stamp-plain { background: var(--paper); }
.card-next { border-style: dashed; background: transparent; }
.card-next:hover { transform: none; box-shadow: none; }
.card-thumb-next { background: repeating-linear-gradient(-45deg, var(--cream) 0 14px, #fff 14px 28px); border-bottom-style: dashed; display: grid; place-items: center; }
.next-q { font: 400 clamp(3rem, 9vw, 5rem)/1 var(--marker); transform: rotate(6deg); }

/* about */
.section-ink { background: var(--ink); color: var(--paper); }
.about { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.section-ink h2 { color: var(--yellow); }
.about-lead { font: 400 clamp(1.5rem, 3.2vw, 2.3rem)/1.18 var(--marker); margin-top: 1.25rem; text-wrap: balance; transform: rotate(-1deg); }
.about-text { display: grid; gap: 1.1rem; font-size: 1.125rem; align-content: start; }
.about-text > p:first-child { font-size: 1.3rem; line-height: 1.4; font-weight: 600; }
.about-list { display: grid; gap: .55rem; }
.about-list li { padding-left: 1.6rem; position: relative; }
.about-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; background: var(--yellow); transform: rotate(-6deg); }
.about-list strong { color: var(--yellow); }
.about-text a:not(.btn) { color: var(--yellow); }
.about-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }

/* footer */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid #3a3a36; padding: 2.25rem 0 2.75rem; font-size: .98rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.foot-brand { display: flex; gap: 1rem; align-items: flex-start; max-width: 34rem; }
.foot-brand img { flex: none; }
.foot-links { display: grid; gap: .45rem; font-weight: 600; }

/* ── episode page ── */
.stage { background: var(--stage); color: var(--stage-text); border-top: var(--line) solid var(--ink); padding: clamp(0rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.stage-in { display: grid; gap: 1.5rem; }
.player-pin { background: var(--stage); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: var(--line) solid var(--yellow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep-head { margin-top: 1.25rem; }
.eyebrow { font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.ep-head h1 { font: 400 clamp(1.7rem, 4.2vw, 2.9rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--paper); margin-top: .55rem; text-wrap: balance; }
.ep-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.ep-actions .btn { font-size: .95rem; padding: .55rem .85rem; }

.transcript { display: flex; flex-direction: column; min-width: 0; background: var(--stage-2); border: 1px solid #3a3a36; }
.t-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .3rem 1rem; padding: .85rem 1rem .75rem; border-bottom: 1px solid #3a3a36; }
.t-hint { grid-column: 1 / -1; grid-row: 2; }
.t-head h2 { font: 400 1.15rem/1 var(--display); text-transform: uppercase; color: var(--yellow); letter-spacing: .02em; }
.t-hint { font-size: .875rem; color: #a9a696; }
.t-follow { font-size: .875rem; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.t-follow input { accent-color: var(--yellow); width: 1rem; height: 1rem; margin: 0; }
.t-scroll { overflow-y: auto; max-height: min(62vh, 520px); padding: .5rem 1rem 1.5rem; scrollbar-color: #5c5a50 transparent; overscroll-behavior: contain; position: relative; }
.t-part + .t-part { border-top: 1px dashed #4a4840; margin-top: 1rem; padding-top: .35rem; }
.t-scroll p { position: relative; padding-left: 3.6rem; margin-top: .85rem; font-size: 1.02rem; line-height: 1.6; }
.t-scroll .tc { position: absolute; left: 0; top: .28rem; font-size: .78rem; background: transparent; color: var(--yellow); padding: .2em 0; }
.t-scroll .tc:hover { text-decoration: underline; }
.cue { text-decoration: none; border-radius: 2px; padding: .08em .1em; margin: 0 -.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .15s ease, color .15s ease; }
.cue:hover { background: #3b3a33; color: #fff; }
.cue.is-now { background: var(--yellow); color: var(--ink); font-weight: 600; }

@media (min-width: 960px) {
  .stage-in { grid-template-columns: minmax(0, 1.72fr) minmax(320px, 1fr); gap: 1.75rem; align-items: stretch; }
  .transcript { position: relative; min-height: 420px; }
  .t-scroll { position: absolute; inset: 4.6rem 0 0 0; max-height: none; }
}
@media (max-width: 959px) {
  .stage { padding-top: 0; }
  .stage-in { padding-inline: 0; gap: 1.25rem; }
  .ep-head, .transcript { margin-inline: clamp(1rem, 4vw, 2.5rem); }
  .player { border-width: 0 0 var(--line) 0; }
}
/* On a phone the video stays in view while you read down the transcript. */
@media (max-width: 959px) and (min-height: 560px) and (orientation: portrait) {
  .player-pin { position: sticky; top: 0; z-index: 20; }
}

.ep-more { display: grid; gap: 0 clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
@media (min-width: 960px) { .ep-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.block { margin-bottom: clamp(2rem, 4vw, 3rem); }
.block h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.block h2 .marker { font-size: 1.05rem; text-transform: none; letter-spacing: 0; transform: rotate(-2deg); background: var(--yellow); padding: .1rem .5rem; }
.summary { font-size: 1.2rem; line-height: 1.5; text-wrap: pretty; }
.block p + p { margin-top: .9rem; }
.credits { color: var(--grey); font-size: .98rem; font-weight: 500; border-top: 2px solid var(--ink); padding-top: .9rem; margin-top: 1.4rem !important; }
.parts { display: grid; border-top: 2px solid var(--ink); }
.parts a { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .9rem; align-items: baseline; padding: .7rem .25rem; border-bottom: 2px solid var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.parts a:hover { background: var(--yellow); }
.parts .tc { text-align: center; }
.sources ol { display: grid; gap: .1rem; counter-reset: src; border-top: 2px solid var(--ink); }
.sources li { counter-increment: src; position: relative; padding: .7rem 0 .7rem 2.4rem; border-bottom: 1px solid #d9d6c8; font-size: .98rem; line-height: 1.45; overflow-wrap: anywhere; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: .72rem; font: 400 .85rem/1.5 var(--display); min-width: 1.7rem; text-align: center; background: var(--ink); color: var(--yellow); }
.sources a { text-decoration-thickness: 1.5px; text-decoration-color: #b9b5a2; }
.sources a:hover { text-decoration-color: var(--ink); background: var(--yellow); }
.sources .dim { white-space: nowrap; font-size: .85rem; }

.pager { display: grid; gap: 1rem; padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } .pager-next { grid-column: 2; } .pager-all { grid-column: 1 / -1; } }
.pager-item { display: grid; gap: .35rem; align-content: start; border: var(--line) solid var(--ink); padding: 1rem 1.1rem 1.15rem; text-decoration: none; background: var(--paper); transition: transform .12s ease, box-shadow .12s ease; }
a.pager-item:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.pager-next { background: var(--yellow); }
.pager-soon { background: transparent; border-style: dashed; }
.pager-label { font: 400 .75rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.pager-title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.pager-num { font-family: var(--display); font-weight: 400; margin-right: .25rem; }
.pager-all { justify-self: start; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 50; background: var(--yellow); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: var(--shadow); padding: .65rem 1rem; font-weight: 700; max-width: calc(100vw - 2rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top-nav, .search, .player-pin, .ep-actions, .pager, .foot-links { display: none !important; }
  .stage, .section-ink, .foot { background: #fff !important; color: #000 !important; }
  .t-scroll { position: static !important; max-height: none !important; overflow: visible !important; }
  .cue, .ep-head h1, .t-head h2, .eyebrow { color: #000 !important; }
}
