:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #c05621;
  --accent-soft: #fdf0e7;
  --border: #e5e2dd;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #201f26;
    --text: #ececf0;
    --text-muted: #a3a1ab;
    --accent: #f2925c;
    --accent-soft: #2c2118;
    --border: #34323c;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
}
.brand-cover { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.feed-link {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin: 2.5rem 0 1.5rem;
}
.hero-cover {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.hero h1 { margin: 0 0 0.25rem; font-size: 1.9rem; line-height: 1.2; }
.subtitle { margin: 0 0 0.5rem; color: var(--text-muted); font-weight: 500; }
.description { margin: 0.25rem 0; }
.byline { color: var(--text-muted); font-size: 0.9rem; }

.listen-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.listen-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.listen-btn:hover { border-color: var(--text-muted); }

.episodes h2 { margin: 2rem 0 1rem; font-size: 1.2rem; }
.empty { color: var(--text-muted); }
.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.episode-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.episode-number {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}
.episode-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.15rem; }
.episode-card h3 a { color: var(--text); }
.episode-card p { margin: 0.35rem 0; }
audio { width: 100%; margin-top: 0.6rem; }
.episode-links { font-size: 0.85rem; color: var(--text-muted); }

.episode-page { margin: 2rem 0; }
.breadcrumb { font-size: 0.9rem; }
.episode-page h1 { margin: 0.4rem 0 0.8rem; font-size: 1.7rem; line-height: 1.25; }
.notes, .transcript { margin-top: 2rem; }
.notes h2, .transcript h2 { font-size: 1.15rem; }
.transcript-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  max-height: 480px;
  overflow-y: auto;
  font-size: 0.95rem;
}
.transcript-body p { margin: 0.4rem 0; }
details summary { cursor: pointer; color: var(--text-muted); margin-bottom: 0.5rem; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.25rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.25rem 0; }

@media (max-width: 560px) {
  .hero { flex-direction: column; }
  .hero-cover { width: 140px; height: 140px; }
}
