:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-strong: #fffdf8;
  --ink: #171a18;
  --muted: #626960;
  --line: #d9d2c2;
  --line-soft: rgba(46, 51, 46, 0.13);
  --pine: #1f5b4f;
  --teal: #287c72;
  --coral: #c95f43;
  --amber: #b98322;
  --leaf: #779a59;
  --shadow: 0 18px 45px rgba(31, 38, 34, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.94), rgba(255, 253, 248, 0.98) 42%, #f4f6f0),
    var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand-block,
.site-actions,
.control-row,
.results-head,
.modal-links {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fffdf8;
  text-decoration: none;
  background: conic-gradient(from 210deg, var(--pine), var(--coral), var(--amber), var(--pine));
  border: 1px solid rgba(23, 26, 24, 0.08);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(31, 91, 79, 0.2);
}

.brand-mark span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.site-actions {
  gap: 8px;
}

.icon-link {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: #fff;
  border-color: rgba(31, 91, 79, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.icon-link::after {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 160px;
  padding: 6px 8px;
  color: #fffdf8;
  font-size: 0.72rem;
  line-height: 1.2;
  pointer-events: none;
  content: attr(data-tooltip);
  background: rgba(23, 26, 24, 0.92);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.icon-link:hover::after,
.icon-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.intro-band,
.toolbar-band,
.results-band,
.notes-band,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  padding: 44px 0 22px;
}

.intro-copy h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.7rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.index-stats {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.index-stats div {
  padding: 16px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.index-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.index-stats dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.toolbar-band {
  position: sticky;
  top: 73px;
  z-index: 15;
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(245, 241, 232, 0.97), rgba(245, 241, 232, 0.78));
  backdrop-filter: blur(16px);
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transform: translateY(-50%);
}

#search {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 48px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(31, 38, 34, 0.06);
}

#search:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(40, 124, 114, 0.16);
}

.control-row {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-button,
.text-button {
  min-height: 34px;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-button {
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  border-color: rgba(31, 91, 79, 0.45);
  outline: none;
}

.filter-button[aria-pressed="true"] {
  color: #fffdf8;
  background: var(--pine);
  border-color: var(--pine);
}

.results-band {
  padding: 16px 0 44px;
}

.results-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-button {
  padding: 0 13px;
  color: var(--pine);
}

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

.podcast-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(31, 38, 34, 0.06);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e0d2;
}

.card-detail-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  display: block;
  filter: saturate(0.92);
}

.card-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(23, 26, 24, 0.02) 48%, rgba(23, 26, 24, 0.42));
}

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 5px 8px;
  color: #fffdf8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(23, 26, 24, 0.78);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
}

.badge.featured {
  background: rgba(201, 95, 67, 0.92);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus-visible {
  color: var(--pine);
  outline: none;
}

.card-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.card-summary,
.card-why {
  margin: 0;
  color: #3f463f;
  font-size: 0.94rem;
  line-height: 1.6;
}

.card-why {
  padding-left: 11px;
  border-left: 3px solid rgba(119, 154, 89, 0.48);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 8px;
  color: #4e584d;
  font-size: 0.76rem;
  background: rgba(119, 154, 89, 0.12);
  border-radius: 999px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
  border-radius: 999px;
}

.primary-action {
  color: #fffdf8;
  background: var(--coral);
}

.secondary-action {
  color: var(--pine);
  background: rgba(31, 91, 79, 0.08);
  border: 1px solid rgba(31, 91, 79, 0.18);
}

.empty-state {
  padding: 36px;
  text-align: center;
  background: rgba(255, 253, 248, 0.76);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
}

.notes-band {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0 54px;
  border-top: 1px solid var(--line-soft);
}

.notes-band h2 {
  margin: 0;
  font-size: 2rem;
}

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

.notes-grid article {
  padding: 18px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.notes-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.notes-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

code {
  padding: 2px 5px;
  background: rgba(31, 91, 79, 0.08);
  border-radius: 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--pine);
  font-weight: 800;
}

.detail-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--pine);
  font-weight: 800;
  text-decoration: none;
}

.podcast-detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.podcast-detail-hero > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 14px;
  background: #e7e0d2;
  border-radius: var(--radius);
}

.podcast-detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.detail-hosts {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-actions,
.episode-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions {
  margin-top: 16px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  border-radius: 999px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 34px;
}

.detail-stats div {
  padding: 16px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.detail-stats span {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
}

.detail-stats small {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.episode-list {
  display: grid;
  gap: 14px;
}

.episode-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.episode-date {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
}

.episode-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.episode-card p {
  margin: 10px 0 0;
  color: #414940;
  line-height: 1.65;
}

.episode-player {
  align-self: center;
}

.episode-player audio {
  width: 100%;
}

.episode-resources {
  margin-top: 14px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--pine);
  text-decoration: none;
  background: rgba(31, 91, 79, 0.08);
  border: 1px solid rgba(31, 91, 79, 0.16);
  border-radius: 999px;
}

.resource-link.ready {
  color: #fffdf8;
  background: var(--pine);
  border-color: var(--pine);
}

.resource-link.pending {
  color: var(--muted);
  background: rgba(98, 105, 96, 0.08);
  border-color: rgba(98, 105, 96, 0.16);
}

.resource-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.podcast-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.podcast-link-list a {
  padding: 14px;
  color: var(--pine);
  text-decoration: none;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.reading-main {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.reading-article {
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(31, 38, 34, 0.08);
}

.reading-article h1 {
  margin: 0 0 24px;
  font-size: clamp(1.62rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.reading-article h2 {
  margin: 42px 0 16px;
  padding-top: 8px;
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  line-height: 1.3;
}

.reading-article h3 {
  margin: 30px 0 12px;
  font-size: 1.18rem;
  line-height: 1.38;
}

.reading-article h4,
.reading-article h5,
.reading-article h6 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
}

.reading-article p,
.reading-article li {
  color: #30372f;
  font-size: 1rem;
  line-height: 1.78;
}

.reading-article p {
  margin: 12px 0;
}

.reading-article ul,
.reading-article ol {
  margin: 12px 0 18px;
  padding-left: 1.35rem;
}

.reading-article li {
  margin: 6px 0;
}

.reading-article strong {
  color: var(--ink);
  font-weight: 850;
}

.reading-article hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.reading-article blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  background: rgba(31, 91, 79, 0.08);
  border-left: 4px solid var(--pine);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.reading-article blockquote p {
  margin: 0;
}

.reading-article a {
  color: var(--pine);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 26, 24, 0.48);
  backdrop-filter: blur(8px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 41;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  text-align: center;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal h2 {
  margin: 0;
  font-size: 1.45rem;
}

.modal p {
  margin: 8px auto 18px;
  color: var(--muted);
  line-height: 1.6;
}

.modal img {
  width: min(320px, 100%);
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(31, 91, 79, 0.08);
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
}

.modal-close:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(40, 124, 114, 0.16);
}

.modal-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.modal-links a {
  padding: 8px 10px;
  color: var(--pine);
  text-decoration: none;
  background: rgba(31, 91, 79, 0.08);
  border-radius: 999px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .intro-band,
  .notes-band {
    grid-template-columns: 1fr;
  }

  .index-stats,
  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .toolbar-band {
    position: static;
  }

  .intro-band {
    padding-top: 30px;
  }

  .intro-copy h2 {
    font-size: 2.4rem;
  }

  .index-stats,
  .notes-grid,
  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .results-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-note {
    max-width: 100%;
  }

  .podcast-detail-hero,
  .episode-card {
    grid-template-columns: 1fr;
  }

  .podcast-detail-hero {
    padding: 16px;
  }

  .podcast-detail-hero > img {
    max-width: 260px;
  }

  .detail-stats,
  .podcast-link-list {
    grid-template-columns: 1fr;
  }
}

/* Notion-inspired redesign pass: warm paper, whisper borders, dense reading. */
:root {
  --paper: #f6f5f4;
  --paper-strong: #ffffff;
  --paper-soft: #fbfaf8;
  --ink: rgba(0, 0, 0, 0.92);
  --muted: #615d59;
  --muted-light: #8c8781;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.075);
  --pine: #0075de;
  --teal: #097fe8;
  --coral: #dd5b00;
  --amber: #8f6a1e;
  --leaf: #2a9d99;
  --radius: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-card:
    rgba(0, 0, 0, 0.04) 0 4px 18px,
    rgba(0, 0, 0, 0.027) 0 2px 8px,
    rgba(0, 0, 0, 0.02) 0 1px 3px;
  --shadow-deep:
    rgba(0, 0, 0, 0.02) 0 8px 20px,
    rgba(0, 0, 0, 0.04) 0 18px 42px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
  background: var(--paper);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 117, 222, 0.07), transparent 30rem),
    linear-gradient(180deg, #fff 0, var(--paper-soft) 31rem, var(--paper) 100%);
}

:focus-visible {
  outline: 3px solid rgba(9, 127, 232, 0.24);
  outline-offset: 3px;
}

.site-header {
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.brand-mark span {
  font-weight: 700;
}

.eyebrow {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  font-size: 1.18rem;
  font-weight: 700;
}

.icon-link {
  width: 36px;
  height: 36px;
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .icon-link:hover,
  .filter-button:hover,
  .text-button:hover,
  .primary-action:hover,
  .secondary-action:hover,
  .resource-link.ready:hover,
  .podcast-link-list a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
  }

  .podcast-card:hover,
  .episode-card:hover,
  .notes-grid article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}

.icon-link:active,
.filter-button:active,
.text-button:active,
.primary-action:active,
.secondary-action:active,
.resource-link.ready:active,
.podcast-link-list a:active {
  transform: scale(0.97);
}

.intro-band {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 58px 0 24px;
}

.intro-copy h2 {
  max-width: 820px;
  font-size: 4.45rem;
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.index-stats div,
.notes-grid article,
.podcast-card,
.episode-card,
.detail-stats div,
.podcast-detail-hero,
.reading-article,
.podcast-link-list a {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.index-stats div {
  padding: 18px;
}

.index-stats dd,
.detail-stats span {
  font-variant-numeric: tabular-nums;
}

.toolbar-band {
  top: 65px;
  width: min(1180px, calc(100% - 36px));
  padding: 14px;
  background: rgba(246, 245, 244, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

#search {
  min-height: 48px;
  background: #fff;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}

#search:focus {
  border-color: var(--pine);
  outline: 3px solid rgba(0, 117, 222, 0.14);
}

.filter-button,
.text-button,
.card-actions a,
.detail-actions a,
.resource-link,
.modal-links a {
  border-radius: 6px;
  transition:
    transform 160ms var(--ease-out),
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.filter-button {
  min-height: 32px;
  background: #fff;
  border-color: var(--line);
}

.filter-button[aria-pressed="true"],
.primary-action,
.resource-link.ready {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.text-button,
.secondary-action,
.resource-link {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.results-band {
  padding-top: 22px;
}

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

.podcast-card {
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-height: 236px;
  animation: card-enter 260ms var(--ease-out) both;
  animation-delay: var(--stagger, 0ms);
}

.card-media {
  aspect-ratio: auto;
  min-height: 100%;
  background: var(--paper);
  border-right: 1px solid var(--line-soft);
}

.card-media::after {
  display: none;
}

.card-media img {
  padding: 18px;
  filter: none;
}

.badge-row {
  top: 10px;
  right: auto;
  bottom: auto;
  left: 10px;
}

.badge {
  color: var(--pine);
  font-weight: 700;
  background: #f2f9ff;
  border-color: rgba(0, 117, 222, 0.14);
}

.badge.featured {
  color: #7a3200;
  background: rgba(221, 91, 0, 0.1);
  border-color: rgba(221, 91, 0, 0.18);
}

.card-body {
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.card-title {
  font-size: 1.18rem;
}

.card-summary,
.card-why,
.episode-card p {
  color: var(--muted);
}

.card-why {
  padding-left: 0;
  border-left: 0;
}

.tag-list li {
  color: #5b5853;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.notes-band {
  border-top-color: var(--line);
}

.detail-main {
  width: min(1120px, calc(100% - 36px));
}

.podcast-detail-hero {
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 22px;
}

.podcast-detail-hero > img {
  background: var(--paper);
  border: 1px solid var(--line-soft);
}

.podcast-detail-hero h1 {
  font-size: 3.25rem;
  line-height: 1;
}

.detail-stats div {
  background: #fff;
}

.episode-list {
  gap: 12px;
}

.episode-card {
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 18px;
}

.episode-title-zh {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.episode-title-original {
  margin: 6px 0 0;
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.45;
}

.episode-description-zh {
  color: var(--muted);
}

.original-description {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 0.9rem;
}

.original-description summary {
  width: fit-content;
  cursor: pointer;
}

.episode-player audio {
  border-radius: 999px;
}

.reading-main {
  width: min(900px, calc(100% - 36px));
}

.reading-article {
  padding: 46px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.reading-article h1 {
  font-size: 2.18rem;
}

.reading-article h2 {
  margin-top: 44px;
  font-size: 1.62rem;
  border-top: 1px solid var(--line-soft);
}

.reading-article h3 {
  font-size: 1.22rem;
}

.reading-article h4,
.reading-article h5,
.reading-article h6 {
  color: #31302e;
  font-size: 1.04rem;
  font-weight: 700;
}

.reading-article p,
.reading-article li,
.reading-article td,
.reading-article th {
  color: #31302e;
  font-size: 1rem;
  line-height: 1.78;
}

.reading-article table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reading-article thead {
  background: var(--paper);
}

.reading-article th,
.reading-article td {
  min-width: 150px;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.reading-article th {
  color: var(--ink);
  font-weight: 700;
}

.reading-article tr:last-child td {
  border-bottom: 0;
}

.reading-article pre {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  color: #f7f5ef;
  background: #31302e;
  border-radius: 8px;
}

.reading-article pre code {
  display: block;
  padding: 16px;
  color: inherit;
  background: transparent;
}

.reading-article code {
  color: #31302e;
  background: rgba(0, 117, 222, 0.08);
}

.reading-article img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reading-article .contains-task-list {
  padding-left: 0;
  list-style: none;
}

.reading-article .task-list-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.reading-article .task-list-item input {
  margin-top: 0.48em;
}

.reading-article .footnotes {
  margin-top: 42px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal {
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 960px) {
  .intro-band,
  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy h2 {
    font-size: 3.05rem;
  }

  .podcast-detail-hero {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .episode-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
  }

  .site-actions {
    width: auto;
  }

  .intro-copy h2 {
    font-size: 2.35rem;
  }

  .toolbar-band {
    width: min(100% - 24px, 1180px);
  }

  .podcast-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 218px;
  }

  .card-media img {
    padding: 12px;
  }

  .card-actions a {
    min-height: 34px;
  }

  .podcast-detail-hero {
    grid-template-columns: 1fr;
  }

  .podcast-detail-hero h1 {
    font-size: 2.25rem;
  }

  .reading-article {
    padding: 24px 18px;
  }

  .reading-article h1 {
    font-size: 1.72rem;
  }
}
