:root {
  --paper: #f6f1e9;
  --paper-2: #f0e9dc;
  --paper-3: #eae1d1;
  --ink: #16130f;
  --ink-soft: #4c463b;
  --ink-faint: #8c8273;
  --line: rgba(22, 19, 15, 0.14);
  --line-strong: rgba(22, 19, 15, 0.28);
  --teal: #1f6f5c;
  --teal-deep: #14503f;
  --sea: #7ed0b6;
  --sand: #e9bf92;
  --sea-fog: #9eb8b3;
  --charcoal: #161517;
  --serif-display: "Instrument Serif", Georgia, serif;
  --serif-text: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: rgba(126, 208, 182, 0.36);
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
}

.topbar b {
  color: var(--sand);
  font-weight: 500;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sea-fog);
  box-shadow: 0 0 0 5px rgba(158, 184, 179, 0.14);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 233, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--mono);
  font-size: 13px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  transition: border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.mobile-jump-nav {
  display: none;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  box-shadow: 0 10px 22px rgba(22, 19, 15, 0.12);
  transform: translateY(-1px);
}

.button .icon {
  transition: transform 160ms ease;
}

.button-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.button:hover .icon {
  transform: translateX(1px);
}

.button:hover .button-logo {
  transform: translateX(1px);
}

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

.button-dark:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

.button-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.text-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid rgba(31, 111, 92, 0.35);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-badge {
  width: 22px;
  height: 22px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.episode-kicker,
.meta-pill,
.resource-type {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--teal);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: 58px;
  align-items: center;
  padding: 58px 0 52px;
}

.hero h1 {
  max-width: 700px;
  margin: 18px 0 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.98;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.45;
}

.search-panel {
  max-width: 680px;
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  padding: 18px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search-panel label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.search-panel:focus-within {
  border-color: rgba(31, 111, 92, 0.48);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 38px rgba(22, 19, 15, 0.08);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-row input:focus {
  border-color: rgba(31, 111, 92, 0.58);
}

.search-count {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topic-pills button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.topic-pills button:hover {
  background: var(--paper);
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.terminal-panel {
  position: relative;
  isolation: isolate;
  height: clamp(390px, 34vw, 520px);
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 66px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #15120d;
  color: var(--paper);
  box-shadow: 0 34px 78px rgba(22, 19, 15, 0.22);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.terminal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 18%, rgba(126, 208, 182, 0.1) 46%, transparent 64%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 12px);
  mix-blend-mode: screen;
  opacity: 0.45;
  transform: translateX(-125%);
  animation: terminal-sheen 7.5s ease-in-out infinite;
}

.terminal-panel:hover {
  border-color: rgba(31, 111, 92, 0.48);
  box-shadow: 0 42px 90px rgba(22, 19, 15, 0.28);
  transform: translateY(-2px);
}

@keyframes terminal-sheen {
  0%,
  42% {
    transform: translateX(-125%);
  }
  72%,
  100% {
    transform: translateX(125%);
  }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #211b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 22px;
}

.terminal-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
}

.dot-red {
  background: #d85b43;
}

.dot-yellow {
  background: #e0ad52;
}

.dot-green {
  background: #67a889;
}

.terminal-path {
  min-width: 0;
  margin-left: 20px;
  overflow: hidden;
  color: #8b8170;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ascii-wave {
  min-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 26px 14px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #7ed0b6 0%, #47aa8e 36%, #1f6f5c 70%, #0e3a2e 100%);
  background-clip: text;
  color: #5fb89e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.03;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: pre;
  user-select: none;
}

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #746c5f;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0;
  padding: 0 22px;
}

.recording-dot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #7ed0b6;
}

.recording-dot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ed0b6;
  box-shadow: 0 0 0 0 rgba(126, 208, 182, 0.55);
  animation: terminal-pulse 2.4s infinite;
}

@keyframes terminal-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 208, 182, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(126, 208, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 208, 182, 0);
  }
}

.note-stack h3,
.topic-card h3,
.resource-card h3,
.host-copy h3 {
  margin: 10px 0 0;
  font-family: var(--serif-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.signal-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.signal-track {
  display: flex;
  width: max-content;
  animation: drift 32s linear infinite;
}

.signal-track span {
  padding: 14px 28px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 86px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-head h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 54px;
  line-height: 1;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  padding: 8px 12px;
  white-space: nowrap;
}

.latest-section {
  background: var(--ink);
  color: var(--paper);
}

.latest-section .section-head h2 {
  color: var(--paper);
}

.latest-section .eyebrow,
.latest-section .episode-kicker {
  color: var(--sea-fog);
}

.latest-section .meta-pill {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(246, 241, 233, 0.56);
}

.latest-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.video-frame {
  display: block;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-frame:hover img {
  transform: scale(1.02);
}

.video-frame:hover {
  border-color: rgba(126, 208, 182, 0.45);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.play-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(246, 241, 233, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.play-disc::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--ink);
}

.video-frame:hover .play-disc {
  background: var(--sea);
  box-shadow: 0 18px 48px rgba(126, 208, 182, 0.26);
  transform: translate(-50%, -50%) scale(1.05);
}

.note-stack h3 {
  font-size: 46px;
}

.note-stack p {
  color: rgba(246, 241, 233, 0.68);
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}

.note-grid span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sea-fog);
}

.note-grid ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(246, 241, 233, 0.68);
}

.episode-list {
  border-top: 1px solid var(--line);
}

.episode-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 118px minmax(0, 1fr) 160px 88px;
  gap: 22px;
  align-items: center;
  min-height: 118px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 160ms ease, padding 160ms ease, transform 160ms ease;
}

.episode-row::after {
  content: "↗";
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 16px;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.episode-row:hover {
  background: var(--paper-2);
  padding-left: 18px;
}

.episode-row:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.episode-num,
.episode-duration,
.episode-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.episode-thumb {
  width: 118px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.episode-row:hover .episode-thumb {
  border-color: rgba(31, 111, 92, 0.34);
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.episode-title {
  font-family: var(--serif-display);
  font-size: 31px;
  line-height: 1;
}

.episode-row:hover .episode-title {
  color: var(--teal);
}

.episode-tag {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal);
}

.episode-duration {
  text-align: right;
}

.topics-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-grid,
.resource-grid,
.listen-grid {
  display: grid;
  gap: 16px;
}

.topic-grid,
.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.listen-grid {
  grid-template-columns: repeat(4, 1fr);
}

.topic-card,
.resource-card,
.listen-card {
  position: relative;
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 241, 233, 0.58);
  padding: 24px;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-card::before,
.resource-card::before,
.listen-card::before,
.guide-card::before,
.resource-note::before,
.related-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sea));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topic-card:hover,
.resource-card:hover,
.listen-card.confirmed:hover {
  border-color: rgba(31, 111, 92, 0.38);
  box-shadow: 0 18px 34px rgba(22, 19, 15, 0.09);
  transform: translateY(-3px);
}

.topic-card:hover::before,
.resource-card:hover::before,
.listen-card:hover::before,
.guide-card:hover::before,
.resource-note:hover::before,
.related-card:hover::before {
  transform: scaleX(1);
}

.topic-card span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}

.topic-card .icon-badge,
.resource-card .icon-badge {
  color: var(--ink-faint);
  opacity: 0.72;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.topic-card:hover .icon-badge,
.resource-card:hover .icon-badge {
  color: var(--teal);
  opacity: 1;
  transform: translateY(-2px) rotate(-4deg);
}

.resource-card[data-logo] .icon-badge {
  display: none;
}

.resource-card[data-logo] .card-top::after,
.resource-note[data-logo]::after {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.34);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  opacity: 0.86;
  transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.resource-note[data-logo]::after {
  position: absolute;
  top: 20px;
  right: 20px;
}

.resource-card[data-logo]:hover .card-top::after,
.resource-note[data-logo]:hover::after {
  border-color: rgba(31, 111, 92, 0.36);
  background-color: rgba(126, 208, 182, 0.12);
  opacity: 1;
  transform: translateY(-2px);
}

.resource-card[data-logo="openai"] .card-top::after,
.resource-note[data-logo="openai"]::after {
  background-image: url("logos/openai-light.svg");
}

.resource-card[data-logo="claude"] .card-top::after,
.resource-note[data-logo="claude"]::after {
  background-image: url("logos/claude-ai.svg");
}

.resource-card[data-logo="cursor"] .card-top::after,
.resource-note[data-logo="cursor"]::after {
  background-image: url("logos/cursor-light.svg");
}

.resource-card[data-logo="notion"] .card-top::after,
.resource-note[data-logo="notion"]::after {
  background-image: url("logos/notion.svg");
}

.resource-card[data-logo="openrouter"] .card-top::after,
.resource-note[data-logo="openrouter"]::after {
  background-image: url("logos/openrouter-light.svg");
}

.resource-card[data-logo="mcp"] .card-top::after,
.resource-note[data-logo="mcp"]::after {
  background-image: url("logos/model-context-protocol-light.svg");
}

.resource-card[data-logo="ollama"] .card-top::after,
.resource-note[data-logo="ollama"]::after {
  background-image: url("logos/ollama-light.svg");
}

.resource-card[data-logo="obsidian"] .card-top::after,
.resource-note[data-logo="obsidian"]::after {
  background-image: url("logos/obsidian.svg");
}

.resource-card[data-logo="telegram"] .card-top::after,
.resource-note[data-logo="telegram"]::after {
  background-image: url("logos/telegram.svg");
}

.resource-card[data-logo="vercel"] .card-top::after,
.resource-note[data-logo="vercel"]::after {
  background-image: url("logos/vercel-light.svg");
}

.resource-card[data-logo="github"] .card-top::after,
.resource-note[data-logo="github"]::after {
  background-image: url("logos/github-light.svg");
}

.resource-card[data-logo="sentry"] .card-top::after,
.resource-note[data-logo="sentry"]::after {
  background-image: url("logos/sentry.svg");
}

.resource-card[data-logo="google-analytics"] .card-top::after,
.resource-note[data-logo="google-analytics"]::after {
  background-image: url("logos/google-analytics.svg");
}

.resource-card[data-logo="salesforce"] .card-top::after,
.resource-note[data-logo="salesforce"]::after {
  background-image: url("logos/salesforce.svg");
}

.resource-card[data-logo="replit"] .card-top::after,
.resource-note[data-logo="replit"]::after {
  background-image: url("logos/replit.svg");
}

.resource-card[data-logo="stripe"] .card-top::after,
.resource-note[data-logo="stripe"]::after {
  background-image: url("logos/stripe.svg");
}

.resource-card[data-logo="youtube"] .card-top::after,
.resource-note[data-logo="youtube"]::after {
  background-image: url("logos/youtube.svg");
}

.topic-card p,
.resource-card p {
  color: var(--ink-soft);
}

.resource-card {
  background: var(--paper);
}

.resource-type {
  color: var(--ink-faint);
}

.about-section {
  background: var(--charcoal);
  color: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: 54px;
  align-items: center;
}

.about-grid h2 {
  margin: 14px 0 20px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 1;
}

.about-grid p {
  color: rgba(246, 241, 233, 0.68);
}

.origin-note {
  max-width: 520px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 233, 0.16);
}

.origin-note span {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-note p {
  margin: 8px 0 0;
}

.host-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.host-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.host-copy {
  padding: 24px;
}

.host-copy p {
  margin-bottom: 0;
}

.listen-section {
  border-bottom: 1px solid var(--line);
}

.listen-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listen-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.listen-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.listen-icon.brand-logo-icon {
  background: rgba(255, 255, 255, 0.34);
}

.listen-card.confirmed:hover .listen-icon {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}

.listen-card.confirmed:hover .listen-icon.brand-logo-icon {
  border-color: rgba(31, 111, 92, 0.36);
  background: rgba(255, 255, 255, 0.5);
}

.listen-card .listen-label {
  font-family: var(--serif-display);
  font-size: 32px;
}

.listen-card b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

.listen-card.confirmed:hover {
  border-color: var(--teal);
  background: var(--paper-2);
}

.listen-card.pending {
  color: var(--ink-faint);
  background: rgba(240, 233, 220, 0.42);
}

.site-footer {
  padding: 54px 0;
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  color: var(--ink-soft);
  max-width: 300px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.footer-grid a:hover {
  color: var(--teal);
}

.is-hidden {
  display: none !important;
}

.searchable,
#latest,
#episodes,
#topics,
#resources,
#about,
#listen {
  scroll-margin-top: 128px;
}

.empty-state {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 13px;
}

.episode-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.episode-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 58px 0;
}

.episode-hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  font-family: var(--serif-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 0.98;
}

.episode-summary {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.45;
}

.episode-meta-line,
.episode-actions,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-meta-line {
  margin-top: 24px;
}

.episode-actions {
  margin-top: 28px;
}

.episode-player-panel {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 34px 78px rgba(22, 19, 15, 0.2);
}

.episode-player-panel .video-frame {
  border: 0;
  border-radius: 0;
}

.episode-player-copy {
  padding: 22px;
}

.episode-player-copy h2 {
  margin: 8px 0 10px;
  font-family: var(--serif-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.episode-player-copy p {
  margin: 0;
  color: rgba(246, 241, 233, 0.68);
}

.notes-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.notes-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.notes-nav-inner a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.notes-nav-inner a:hover {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.notes-section {
  padding: 78px 0;
  scroll-margin-top: 230px;
}

.notes-section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.notes-section.dark {
  background: var(--charcoal);
  color: var(--paper);
}

.notes-section.dark .section-head h2,
.notes-section.dark h3 {
  color: var(--paper);
}

.notes-section.dark p,
.notes-section.dark li {
  color: rgba(246, 241, 233, 0.72);
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.notes-main {
  min-width: 0;
}

.notes-aside {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 241, 233, 0.7);
  padding: 22px;
}

.notes-aside h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notes-aside a {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.notes-aside a:hover {
  color: var(--teal);
}

.takeaway-grid,
.guide-grid,
.resource-list,
.related-grid {
  display: grid;
  gap: 16px;
}

.takeaway-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.resource-list {
  grid-template-columns: repeat(3, 1fr);
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

.takeaway-card,
.guide-card,
.resource-note,
.related-card,
.quote-panel,
.starter-note {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 241, 233, 0.62);
  padding: 24px;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.notes-section.alt .takeaway-card,
.notes-section.alt .guide-card,
.notes-section.alt .resource-note,
.notes-section.alt .related-card,
.notes-section.alt .starter-note {
  background: var(--paper);
}

.notes-section.dark .quote-panel,
.notes-section.dark .guide-card {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.guide-card:hover,
.resource-note:hover,
.starter-note:hover {
  border-color: rgba(31, 111, 92, 0.32);
  box-shadow: 0 18px 34px rgba(22, 19, 15, 0.08);
  transform: translateY(-2px);
}

.notes-section.dark .guide-card:hover {
  border-color: rgba(126, 208, 182, 0.42);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
}

.takeaway-card span,
.guide-card span,
.resource-note span,
.related-card span,
.starter-note span,
.chapter-time {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--teal);
}

.notes-section.dark .takeaway-card span,
.notes-section.dark .guide-card span,
.notes-section.dark .resource-note span,
.notes-section.dark .related-card span,
.notes-section.dark .chapter-time {
  color: var(--sea-fog);
}

.takeaway-card h3,
.guide-card h3,
.resource-note h3,
.related-card h3,
.starter-note h3 {
  margin: 10px 0 8px;
  font-family: var(--serif-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.guide-card p,
.takeaway-card p,
.resource-note p,
.related-card p,
.starter-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.steps-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  margin-top: 12px;
  padding-left: 34px;
  color: var(--ink-soft);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.guide-card:hover .steps-list li::before,
.starter-note:hover .steps-list li::before {
  border-color: rgba(31, 111, 92, 0.42);
  background: rgba(126, 208, 182, 0.14);
}

.chapter-list {
  border-top: 1px solid var(--line);
}

.chapter-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.chapter-row h3 {
  margin: 0 0 6px;
  font-family: var(--serif-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.chapter-row p {
  margin: 0;
  color: var(--ink-soft);
}

.quote-panel {
  margin: 28px 0;
  background: var(--ink);
  color: var(--paper);
}

.quote-panel p {
  margin: 0;
  color: rgba(246, 241, 233, 0.72);
  font-size: 24px;
  line-height: 1.35;
}

.resource-note {
  display: flex;
  flex-direction: column;
  min-height: 238px;
}

.resource-note[data-logo] {
  padding-right: 68px;
}

.resource-note .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
}

.starter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: start;
}

.starter-note {
  min-height: 100%;
}

.episode-notes {
  overflow-x: hidden;
}

.episode-notes .topbar-inner {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-symbol {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}

.episode-notes .brand span:last-child,
.episode-notes .footer-brand {
  letter-spacing: 0.28em;
}

.episode-notes .episode-hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.episode-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 42px;
  color: rgba(246, 241, 233, 0.42);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.episode-crumb a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--sea);
}

.episode-crumb a:hover {
  color: var(--paper);
}

.episode-notes .episode-hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  align-items: center;
  padding: 38px 0 82px;
}

.episode-head .episode-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--sea);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.episode-key .key-pill {
  border: 1px solid rgba(126, 208, 182, 0.42);
  border-radius: 3px;
  padding: 5px 9px;
}

.episode-notes .episode-hero h1 {
  color: var(--paper);
  font-size: clamp(46px, 6vw, 86px);
  letter-spacing: 0;
  max-width: 840px;
  padding-bottom: 0.04em;
}

.episode-notes .episode-hero h1 em {
  color: var(--sea);
  font-style: italic;
}

.episode-notes .episode-summary {
  color: rgba(246, 241, 233, 0.72);
  max-width: 680px;
}

.episode-notes .episode-meta-line {
  align-items: center;
  color: rgba(246, 241, 233, 0.48);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.episode-notes .episode-meta-line .meta-pill {
  border-color: rgba(246, 241, 233, 0.18);
  border-radius: 3px;
  color: rgba(246, 241, 233, 0.62);
}

.episode-media-panel {
  display: grid;
  gap: 16px;
}

.episode-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 233, 0.14);
  border-radius: 6px;
  background: #0f0c09;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.24);
  aspect-ratio: 16 / 9;
}

.episode-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(126, 208, 182, 0.12);
  pointer-events: none;
}

.episode-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.episode-platform-link {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  border: 1px solid rgba(246, 241, 233, 0.14);
  border-radius: 4px;
  background: rgba(246, 241, 233, 0.035);
  color: var(--paper);
  padding: 14px 16px;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.episode-platform-link:hover {
  border-color: rgba(126, 208, 182, 0.62);
  background: rgba(126, 208, 182, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.episode-platform-link .platform-icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--sea);
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 160ms ease, transform 160ms ease;
}

.episode-platform-link:hover .platform-icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
}

.episode-platform-link span,
.episode-platform-link strong {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-platform-link span {
  color: rgba(246, 241, 233, 0.76);
  font-size: 12px;
}

.episode-platform-link strong {
  color: var(--sea);
  font-size: 10px;
  font-weight: 500;
}

.notes-nav {
  position: sticky;
  top: 75px;
  z-index: 10;
}

.episode-notes .notes-nav-inner {
  gap: 24px;
  overflow-x: auto;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.label-row .rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.episode-gist {
  border-bottom: 1px solid var(--line);
}

.gist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.gist-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.62;
  text-wrap: pretty;
}

.gist-body p + p {
  margin-top: 22px;
}

.gist-body .drop::first-letter {
  float: left;
  padding: 8px 14px 0 0;
  color: var(--teal);
  font-family: var(--serif-display);
  font-size: 76px;
  line-height: 0.7;
}

.fact-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: 0 18px 34px rgba(22, 19, 15, 0.06);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-key,
.fact-value,
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-key {
  color: var(--ink-faint);
}

.fact-value {
  color: var(--ink);
  text-align: right;
}

.fact-value.teal {
  color: var(--teal);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  padding: 5px 9px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chip:hover {
  border-color: rgba(31, 111, 92, 0.42);
  background: rgba(126, 208, 182, 0.12);
  color: var(--teal);
}

.episode-notes .section-head h2 em,
.episode-notes .section-title em {
  color: var(--teal);
  font-style: italic;
}

.episode-notes .takeaway-grid {
  gap: 44px 58px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.episode-notes .takeaway-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.episode-notes .takeaway-card span {
  color: var(--teal);
  font-family: var(--serif-display);
  font-size: 60px;
  font-style: italic;
  line-height: 0.82;
}

.episode-notes .takeaway-card h3 {
  margin-top: 0;
  font-size: 29px;
}

.episode-notes .guide-grid {
  gap: 18px;
}

.episode-notes .guide-card,
.episode-notes .starter-note {
  border-radius: 6px;
  background: rgba(246, 241, 233, 0.66);
}

.episode-notes .notes-section.alt .guide-card,
.episode-notes .notes-section.alt .starter-note {
  background: var(--paper);
}

.episode-notes .chapter-list {
  border-top: 1px solid var(--line);
}

.episode-notes .chapter-row {
  grid-template-columns: 96px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  padding: 18px 14px;
  transition: background 160ms ease, padding 160ms ease;
}

.episode-notes .chapter-row:hover {
  background: var(--paper-2);
  padding-left: 24px;
}

.chapter-arrow {
  color: var(--ink-faint);
  font-family: var(--mono);
  opacity: 0;
  text-align: right;
  transition: opacity 160ms ease, color 160ms ease;
}

.episode-notes .chapter-row:hover .chapter-arrow {
  color: var(--teal);
  opacity: 1;
}

.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 24px;
}

.resource-feature-body {
  padding: 42px 44px;
}

.resource-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.resource-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sea);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.resource-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.resource-icon.logo-icon {
  background: var(--paper);
  color: var(--ink);
}

.resource-feature h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.resource-cat {
  margin-top: 6px;
  color: var(--sea);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-feature p {
  color: rgba(246, 241, 233, 0.72);
  font-size: 17px;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.resource-link {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 14px;
  text-transform: uppercase;
}

.resource-link:hover,
.resource-link.solid {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--ink);
}

.resource-visual {
  min-height: 360px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(126, 208, 182, 0.12), rgba(31, 111, 92, 0.02)),
    #0f0c09;
  padding: 22px;
}

.resource-terminal {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: #15120d;
}

.resource-terminal pre {
  min-height: 230px;
  margin: 0;
  padding: 20px;
  color: var(--sea);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.episode-notes .resource-list {
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.episode-notes .resource-note {
  min-height: 240px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  transition: background 160ms ease;
}

.episode-notes .resource-note:nth-child(2n) {
  border-right: 0;
}

.episode-notes .resource-note:hover {
  background: var(--paper-2);
}

.reference-list {
  border-top: 1px solid var(--line);
}

.reference-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 28px;
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 18px 14px;
  transition: background 160ms ease, padding 160ms ease;
}

.reference-row:hover {
  background: var(--paper);
  padding-left: 22px;
}

.reference-type {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-title {
  color: var(--ink);
  font-size: 19px;
}

.reference-title span {
  color: var(--ink-faint);
  font-size: 15px;
}

.reference-row .chapter-arrow {
  opacity: 0;
}

.reference-row:hover .chapter-arrow {
  color: var(--teal);
  opacity: 1;
}

.episode-notes .quote-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  margin: 0;
  padding: 0;
}

.episode-notes .quote-panel .qmark {
  color: var(--teal);
  display: block;
  font-family: var(--serif-display);
  font-size: 86px;
  line-height: 0.45;
  margin-bottom: 14px;
}

.episode-notes .quote-panel p {
  color: var(--ink);
  font-family: var(--serif-display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.episode-notes .quote-panel cite {
  display: block;
  margin-top: 26px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.episode-notes .related-card {
  border-radius: 6px;
  transition: background 160ms ease, transform 160ms ease;
}

.episode-notes .related-card:hover {
  background: var(--paper-2);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .signal-track,
  .terminal-panel::after,
  .recording-dot i {
    animation: none !important;
  }

  .terminal-panel::after {
    opacity: 0.18;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .latest-feature,
  .about-grid,
  .episode-hero-grid,
  .notes-layout,
  .starter-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid,
  .resource-grid,
  .takeaway-grid,
  .resource-list,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero h1 {
    font-size: 58px;
  }

  .ascii-wave {
    font-size: 8px;
  }

  .section-head h2,
  .about-grid h2,
  .episode-hero h1 {
    font-size: 44px;
  }

  .notes-aside {
    position: static;
  }

  .episode-notes .episode-hero-grid,
  .gist-grid,
  .resource-feature {
    grid-template-columns: 1fr;
  }

  .resource-visual {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, var(--max-width));
  }

  .topbar-inner {
    min-height: 34px;
    font-size: 11px;
  }

  .topbar-inner {
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }

  .nav-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    display: inline;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .mobile-jump-nav {
    position: sticky;
    top: 64px;
    z-index: 19;
    display: block;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 241, 233, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-jump-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-jump-inner::-webkit-scrollbar {
    display: none;
  }

  .mobile-jump-inner a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
    padding: 0 13px;
  }

  .mobile-jump-inner a:active,
  .mobile-jump-inner a:hover {
    border-color: var(--teal);
    color: var(--teal);
  }

  .hero-grid {
    gap: 30px;
    padding: 32px 0 36px;
  }

  .terminal-panel {
    height: 260px;
    grid-template-rows: 48px minmax(0, 1fr) 48px;
  }

  .terminal-bar {
    gap: 8px;
    padding: 0 16px;
  }

  .terminal-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .terminal-path {
    margin-left: 10px;
    font-size: 13px;
  }

  .ascii-wave {
    padding: 18px 10px 12px;
  }

  .terminal-foot {
    gap: 10px;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
    margin-top: 16px;
  }

  .search-panel {
    margin-top: 24px;
    padding: 16px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-row .button {
    width: auto;
    min-width: 74px;
    padding-inline: 12px;
  }

  .topic-pills {
    gap: 8px;
    margin-top: 14px;
  }

  .topic-pills button {
    min-height: 42px;
    padding-inline: 13px;
  }

  .searchable,
  #latest,
  #episodes,
  #topics,
  #resources,
  #about,
  #listen {
    scroll-margin-top: 150px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2,
  .about-grid h2,
  .note-stack h3 {
    font-size: 38px;
  }

  .latest-feature {
    gap: 24px;
  }

  .latest-section .note-grid {
    display: none;
  }

  .note-grid,
  .topic-grid,
  .resource-grid,
  .listen-grid,
  .footer-grid,
  .takeaway-grid,
  .guide-grid,
  .resource-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .notes-section {
    padding: 52px 0;
    scroll-margin-top: 128px;
  }

  .episode-notes .notes-nav {
    display: none;
  }

  .episode-hero-grid {
    gap: 28px;
    padding: 32px 0 40px;
  }

  .episode-crumb {
    align-items: center;
    padding-top: 24px;
    row-gap: 0;
  }

  .episode-notes .episode-hero-grid {
    padding-bottom: 42px;
  }

  .episode-notes .episode-media-panel {
    order: -1;
  }

  .episode-hero h1 {
    font-size: 42px;
  }

  .episode-summary {
    font-size: 18px;
    margin-top: 18px;
  }

  .episode-meta-line {
    margin-top: 18px;
  }

  .episode-player-copy h2 {
    font-size: 32px;
  }

  .episode-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .episode-platform-link {
    min-height: 58px;
    padding: 12px;
  }

  .episode-platform-link span {
    font-size: 10px;
  }

  .chapter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .episode-notes .chapter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .episode-notes .takeaway-grid,
  .episode-notes .resource-list,
  .reference-row {
    grid-template-columns: 1fr;
  }

  .episode-notes .takeaway-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .episode-notes .resource-note {
    border-right: 0;
    min-height: auto;
  }

  .chapter-arrow,
  .reference-row .chapter-arrow {
    display: none;
  }

  .episode-row {
    grid-template-columns: 48px 78px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 16px 0;
  }

  .episode-row::after {
    display: none;
  }

  .episode-thumb {
    width: 78px;
  }

  .episode-title {
    font-size: 23px;
  }

  .episode-tag,
  .episode-duration {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 44px;
  }

  .nav-inner .button {
    width: auto;
  }

  .topic-card,
  .resource-card,
  .listen-card {
    min-height: auto;
    padding: 20px;
  }

  .listen-card {
    min-height: 108px;
  }

  .gist-grid {
    gap: 28px;
  }

  .gist-body p {
    font-size: 18px;
    line-height: 1.5;
  }

  .gist-body .drop::first-letter {
    font-size: 58px;
  }

  .fact-row {
    padding: 13px 16px;
  }

}

@media (max-width: 420px) {
  .nav-inner .button {
    padding-inline: 14px;
  }

  .brand span,
  .episode-notes .brand span:last-child {
    display: inline;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    font-size: 38px;
  }

  .episode-hero h1 {
    font-size: 36px;
  }

  .takeaway-card,
  .guide-card,
  .resource-note,
  .related-card,
  .quote-panel,
  .starter-note {
    padding: 20px;
  }

  .ascii-wave {
    font-size: 7px;
  }

  .terminal-panel {
    height: 230px;
  }

  .section-head h2,
  .about-grid h2,
  .note-stack h3 {
    font-size: 33px;
  }
}

@media (max-width: 350px) {
  .episode-platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero-grid,
  .episode-notes .episode-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: center;
    padding: 30px 0 36px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .lead {
    margin-top: 14px;
  }

  .search-panel {
    margin-top: 20px;
  }

  .terminal-panel {
    height: 260px;
  }

  .episode-notes .episode-media-panel {
    order: 0;
  }

  .episode-notes .episode-hero h1 {
    font-size: 42px;
  }

  .episode-notes .episode-summary {
    font-size: 17px;
  }
}
