:root {
  --ink: #1c1a17;
  --paper: #faf7f2;
  --paper-alt: #f1ece3;
  --accent: #7a2e2e;
  --accent-ink: #ffffff;
  --muted: #6b6459;
  --border: #e3dcd0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.15;
}

a { color: inherit; }

p, .section-sub, .hero-sub, .show-notes p, h1, h2, h3 {
  text-wrap: pretty;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

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

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 620px;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--paper-alt); }

/* Sections */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--paper-alt); }

.section h2 {
  font-size: 30px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.section-sub-wide {
  max-width: none;
  white-space: nowrap;
}

.section-sub-lg {
  max-width: 700px;
}

@media (max-width: 720px) {
  .section-sub-wide {
    max-width: 560px;
    white-space: normal;
  }
}

/* Episodes */
.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.text-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--accent);
}

/* Topics */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.topic-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(28, 26, 23, 0.08);
}

.topic-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--paper-alt);
}

.topic-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 14px 16px 0;
}

.topic-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 0;
  padding: 0 16px 18px;
  line-height: 1.35;
}

/* Listen */
.listen-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-btn {
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.platform-btn:hover { background: var(--ink); color: var(--paper); }

/* About */
.about-inner {
  max-width: 680px;
  text-align: center;
}

.about-inner p {
  color: var(--muted);
  font-size: 16px;
}

/* Newsletter */
.newsletter-inner { text-align: center; }

.substack-embed {
  display: flex;
  justify-content: center;
}

.substack-embed iframe {
  max-width: 100%;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a { text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
  .nav { display: none; }
  .section { padding: 48px 0; }
}

/* Episode article pages */
.wrap-narrow {
  max-width: 720px;
}

.episode-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: left;
}

.episode-article .eyebrow {
  margin-bottom: 12px;
}

.episode-article .podcast-embed {
  margin: 24px 0 32px;
}

.podcast-embed-compact iframe {
  border-radius: 12px;
}

.podcast-embed-apple iframe {
  border-radius: 12px;
  overflow: hidden;
}

.embed-nudge {
  margin: 10px 0 0;
  font-size: 14px;
}

.embed-nudge a {
  color: var(--muted, #6b6b6b);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.embed-nudge a:hover {
  color: var(--ink);
}

.show-notes p {
  color: var(--ink);
  margin: 0 0 18px;
}

.show-notes ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.show-notes li {
  margin-bottom: 8px;
}

.episode-article .text-link {
  text-align: left;
  margin-top: 8px;
}

/* Episode archive list */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.episode-list-item {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.episode-list-item:hover h3 { color: var(--accent); }

.episode-list-item .eyebrow { margin-bottom: 8px; }

.episode-list-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}

.episode-list-item p {
  color: var(--muted);
  margin: 0;
}
