:root {
  color-scheme: light;
  --night: #101111;
  --bg: #efede6;
  --surface: #faf9f5;
  --raised: #ffffff;
  --line: #d6d3c8;
  --ink: #1b1d1c;
  --muted: #494f4c;
  --quiet: #596059;
  --accent: #5b3fc4;
  --accent-ink: #ffffff;
  --accent-hover: #4a31ad;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --measure: 68ch;
}
.site-header,
.hero,
.page-heading,
.site-footer,
.subscribe-banner,
.search-dialog,
.share-dialog {
  color-scheme: dark;
  --bg: #101111;
  --surface: #171919;
  --raised: #1d2020;
  --line: #2c3030;
  --ink: #f3f4ee;
  --muted: #b4bbb8;
  --quiet: #98a19d;
  --accent: #baa6f6;
  --accent-ink: #211a37;
  --accent-hover: #ccb9ff;
  color: var(--ink);
}
html {
  scroll-padding-top: 96px;
  scrollbar-gutter: auto;
}
body {
  overflow-x: clip;
  background: var(--bg);
}
:focus-visible {
  outline-offset: 3px;
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-secondary {
  background: var(--raised);
  border-color: var(--line);
}
.button-secondary:hover {
  background: var(--surface);
  border-color: var(--quiet);
}
.icon-button:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.icon-button[aria-pressed=true] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.icon-button[aria-pressed=true] .icon {
  fill: color-mix(in srgb, var(--accent) 24%, transparent);
}
.text-link:hover {
  color: var(--accent);
}
.eyebrow {
  font: 600 13px/1.5 var(--sans);
  letter-spacing: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 12px;
  background: none;
  border: 0;
  backdrop-filter: none;
}
.header-inner {
  min-height: 60px;
  gap: 24px;
  padding: 0 10px 0 18px;
  background: #101111d9;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand img {
  width: 132px;
  height: 38px;
}
.desktop-nav {
  gap: 4px;
  margin-left: 12px;
  padding: 4px;
  background: #ffffff10;
  border-radius: 999px;
}
.desktop-nav>a {
  padding: 8px 16px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.desktop-nav>a:hover {
  color: var(--ink);
}
.desktop-nav>a[aria-current] {
  background: #ffffff1f;
  color: var(--ink);
}
.desktop-nav>a[aria-current]::after {
  display: none;
}
.search-trigger {
  border-color: #ffffff2e;
  border-radius: 10px;
  min-height: 44px;
}
.search-trigger:hover {
  border-color: #ffffff66;
}
.search-trigger kbd {
  color: var(--muted);
}
.channel-button {
  background: #f3f4ee;
  color: #171a18;
  border-radius: 10px;
}
.channel-button:hover {
  background: #ffffff;
}
.icon-button:hover {
  background: #ffffff14;
}
.site-header .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.mobile-navigation nav {
  top: 76px;
  right: 0;
  border-radius: 16px;
  background: #151717;
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(14px);
}
.mobile-navigation nav>a {
  min-height: 48px;
}
.mobile-navigation nav>a:hover,
.mobile-navigation nav>a[aria-current] {
  background: #ffffff12;
}

.hero,
.page-heading {
  position: relative;
  isolation: isolate;
  border: 0;
}
.hero::before,
.page-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--night);
  border-radius: 0 0 32px 32px;
}
.hero {
  padding-top: 72px;
  padding-bottom: 80px;
  margin-bottom: 40px;
}
.page-heading {
  padding-top: 64px;
  padding-bottom: 64px;
  margin-bottom: 40px;
}
.page-heading>div {
  position: relative;
}
.page-heading+.catalog-section,
.page-heading+.about-layout,
.page-heading+.how-section {
  margin-top: 0;
}
.hero h1,
.page-heading h1 {
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}
.hero h1 {
  font-size: clamp(3.2rem, 6.2vw, 6rem);
}
.page-heading h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
}
.hero-description,
.page-heading p {
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions .button-primary {
  border-radius: 12px;
}
.hero-feature {
  border-radius: 24px;
}
.feature-label>span,
.feature-repos>span {
  font-family: var(--sans);
  letter-spacing: 0;
}
.trust-strip {
  border-color: var(--line);
}
.trust-strip>p .icon {
  color: var(--quiet);
}

.catalog-section {
  padding-top: 24px;
}
.section-heading h2,
.topics-section h2 {
  font-weight: 600;
  letter-spacing: -.045em;
}
.filter-tab {
  border-color: var(--line);
  background: var(--raised);
  color: var(--ink);
}
.filter-tab:hover {
  background: var(--surface);
}
.filter-tab[aria-pressed=true] {
  background: #1b1d1c;
  border-color: #1b1d1c;
  color: #f3f4ee;
}
.filter-tab[aria-pressed=true]>span {
  color: #d3d8d4;
}
.inline-search {
  background: var(--raised);
  border-color: var(--line);
}
.inline-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sort-control option {
  background: var(--raised);
  color: var(--ink);
}
.view-toggle .icon-button[aria-pressed=true] {
  background: #1b1d1c;
  color: #f3f4ee;
}
.episode-card,
.repository-card {
  background: var(--raised);
  border-color: var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.episode-card:hover,
.repository-card:hover,
.repository-card:target {
  border-color: var(--quiet);
}
.repository-card:target {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.card-meta {
  border-top-color: var(--line);
}
.episode-grid[data-layout=list] .cover-link {
  background: var(--surface);
}
.topic {
  color: var(--accent);
  font-weight: 600;
}
.topic-mcp {
  color: #1c6b4f;
}
.topic-agents {
  color: #274f94;
}
.topic-security {
  color: #8a4b12;
}
.hero .topic-mcp {
  color: #accfbb;
}
.hero .topic-agents {
  color: #b1c9e9;
}
.hero .topic-security {
  color: #d8bd99;
}
.empty-state {
  background: var(--raised);
  border-color: var(--line);
  border-radius: 22px;
}
.empty-icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.topic-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--raised);
}
.topic-card:hover {
  background: var(--surface);
}
.topic-card-icon {
  border-color: var(--line);
}
.theme-agents.topic-card {
  background: #dbe5f3;
}
.theme-mcp.topic-card {
  background: #dfe8cf;
}
.theme-devtools.topic-card {
  background: #f1ddd0;
}
.topic-card:hover {
  border-color: var(--quiet);
}
.topic-card-icon {
  background: #ffffff99;
}
.topic-card p,
.topic-card-count {
  color: var(--muted);
}
.repo-avatar {
  border-color: var(--line);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.repo-meta {
  color: var(--muted);
}
.repo-meta .icon {
  color: #8a6a14;
}
.repo-details summary {
  color: var(--ink);
}
.repo-details dt:last-of-type {
  color: #8a4b12;
}
.language-python { color: #3f6b22; }
.language-typescript { color: #245a99; }
.language-rust { color: #9a4a26; }
.language-javascript { color: #7d6600; }
.language-go { color: #1c6b78; }
.language-java { color: #9a5a24; }
.language-dot.language-python { background: #5c8f3a; }
.language-dot.language-typescript { background: #3b7bc4; }
.language-dot.language-rust { background: #c0643b; }
.language-dot.language-javascript { background: #b89a00; }
.language-dot.language-go { background: #2a93a5; }
.language-dot.language-java { background: #c07a3b; }
.breadcrumbs>span {
  color: var(--quiet);
}

.subscribe-banner {
  background: #17201b;
  border-color: #ffffff1f;
  border-radius: 28px;
}
.subscribe-banner h2 {
  font-weight: 600;
  letter-spacing: -.05em;
}
.subscribe-banner p,
.subscribe-actions .text-link {
  font-size: 14px;
  color: #cfd8cf;
}
.subscribe-banner .eyebrow {
  color: #cfd8cf;
}
.site-footer {
  margin: 46px 12px 12px;
  padding: 56px 0 0;
  background: var(--night);
  border: 0;
  border-radius: 28px;
}

.post-page {
  max-width: 1280px;
}
.post-heading h1 {
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.05;
  max-width: 24ch;
}
.post-heading>p {
  font-size: 18px;
  line-height: 1.65;
  max-width: var(--measure);
  color: var(--muted);
}
.post-meta {
  font-size: 14px;
}
.video-player {
  border-color: var(--line);
  border-radius: 24px;
  background: #101111;
}
.episode-aside {
  background: var(--raised);
  border-color: var(--line);
  border-radius: 24px;
}
.save-full[aria-pressed=true] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.save-full[aria-pressed=true] .icon {
  fill: color-mix(in srgb, var(--accent) 30%, transparent);
}
.principle-copy,
.about-intro p,
.how-grid p,
.privacy-grid p {
  max-width: var(--measure);
}
.about-art {
  border-radius: 24px;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 8px;
  }
  .header-inner {
    min-height: 56px;
    gap: 10px;
    padding: 0 8px 0 14px;
  }
  .brand img {
    width: 120px;
    height: 35px;
  }
  .mobile-navigation nav {
    top: 68px;
  }
  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
    letter-spacing: -.055em;
  }
  .page-heading {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero::before,
  .page-heading::before {
    border-radius: 0 0 24px 24px;
  }
  .site-footer {
    margin: 32px 8px 8px;
    border-radius: 22px;
  }
  .subscribe-banner {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .hero-copy>*,
  .page-heading>div>*,
  .page-heading>.page-stat {
    animation: rise .9s var(--ease-out) both;
  }
  .hero-copy>:nth-child(2),
  .page-heading>div>:nth-child(2) { animation-delay: .06s; }
  .hero-copy>:nth-child(3),
  .page-heading>div>:nth-child(3) { animation-delay: .12s; }
  .hero-copy>:nth-child(n+4) { animation-delay: .18s; }
  .hero-feature {
    animation: rise 1s var(--ease-out) .1s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy>*,
  .page-heading>div>*,
  .hero-feature {
    animation: none;
  }
}
.topic-card .text-link,
.topic-card-icon,
.topic-card h3 {
  color: var(--ink);
}
.topic-card .text-link:hover {
  color: var(--accent);
}
@keyframes wbwBlurUp {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.wbw-word {
  display: inline-block;
  opacity: 0;
  animation: wbwBlurUp .72s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-copy>h1,
.page-heading h1 {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .wbw-word {
    opacity: 1;
    animation: none;
  }
}

.episode-card {
  padding: 12px;
  border-radius: 28px;
  transition: background-color .25s var(--ease-out), border-color .25s;
}
.episode-card:hover {
  transform: none;
  background: #e8e1fa;
  border-color: #cfc3f0;
}
.episode-card .cover-link {
  border-radius: 18px;
  overflow: hidden;
}
.episode-card .cover {
  border-radius: 18px;
  transition: transform .7s var(--ease-out);
}
.episode-card:hover .cover {
  transform: scale(1.03);
}
.episode-card-body {
  padding: 16px 8px 8px;
}
.card-eyebrow {
  order: 1;
}
.episode-card .card-meta {
  order: 2;
  border-top: 0;
  padding-top: 0;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.episode-card h3 {
  order: 3;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  order: 4;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.episode-card .card-arrow {
  margin-left: auto;
}
.episode-grid[data-layout=list] .episode-card {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 8px;
}
.episode-grid[data-layout=list] .cover-link {
  background: none;
}
.episode-grid[data-layout=list] .episode-card-body {
  padding: 8px 16px;
}
.episode-grid[data-layout=list] .episode-card h3 {
  font-size: 24px;
}
@media (max-width: 700px) {
  .episode-grid[data-layout=list] .episode-card {
    grid-template-columns: 1fr;
  }
}
.hero h1 .wbw-word,
.page-heading h1 .wbw-word {
  color: inherit;
}
