/* Podcast website maker: shared stylesheet. Series colours come from :root vars set per site. */
:root {
  --bg: var(--paper); --fg: var(--ink); --muted: #6b6259; --line: rgba(0,0,0,.12);
  --card: #fff; --card-line: rgba(0,0,0,.08); --link: var(--accent);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14110e; --fg: #f1ebe2; --muted: #a79d91; --line: rgba(255,255,255,.14); --card: #1e1a16; --card-line: rgba(255,255,255,.08); --link: var(--accent-dark); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--accent); margin-bottom: .6rem; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent-dark); } }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 62ch; }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .78rem; font-variant-numeric: tabular-nums; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.site-nav .nav-support { color: var(--link); font-weight: 600; }
.site-nav .nav-support[aria-current] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 720px) { .brand span { display: none; } .site-nav a { padding: 8px 9px; font-size: .88rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; font-size: .86rem; }
.btn-platform svg { width: 18px; height: 18px; fill: currentColor; }
.listen-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.listen-row.stack { flex-direction: column; align-items: stretch; }
.listen-row.stack .btn { justify-content: flex-start; }

/* hero */
.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(28px, 6vw, 64px); }
.hero-art img { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.hero-text h1 { margin-bottom: .6rem; }
.hero-text .stats { color: var(--muted); }
.hero-links { margin-top: 1.2rem; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 240px; } }

/* cards and grids */
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ep-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ep-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.ep-thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ep-body { padding: 14px 16px 18px; }
.ep-meta { color: var(--muted); font-size: .86rem; margin-bottom: .4rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ep-card h3 { font-size: 1.08rem; }
.ep-card h3 a { color: var(--fg); text-decoration: none; }
.ep-card h3 a:hover { color: var(--link); }
.ep-summary { color: var(--muted); font-size: .95rem; margin: 0; }
.ep-list { display: grid; gap: 16px; }
.ep-list .ep-card { flex-direction: row; }
.ep-list .ep-thumb { flex: 0 0 280px; }
.ep-list .ep-thumb img { height: 100%; }
@media (max-width: 640px) { .ep-list .ep-card { flex-direction: column; } .ep-list .ep-thumb { flex-basis: auto; } }
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.feature-side h3 { margin-top: .2rem; }
.feature-side h3 + p { color: var(--muted); }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.side-cards { display: grid; gap: 16px; }
.host-card img { border-radius: 50%; margin-bottom: 10px; }
.support-card { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); min-width: 0; }
.search-form.big input { font-size: 1.1rem; padding: 14px 18px; }
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* page head + prose */
.page-head { padding-bottom: 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose a.ep-ref { font-weight: 500; }
.prose a.ep-ref .num { margin-right: 4px; vertical-align: 1px; }

/* episode page */
.ep-head { padding-top: clamp(24px, 4vw, 44px); }
.ep-head h1 { max-width: 26ch; }
.ep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-bottom: 48px; }
@media (max-width: 900px) { .ep-layout { grid-template-columns: 1fr; } }
.ep-side { position: sticky; top: 80px; display: grid; gap: 16px; }
@media (max-width: 900px) { .ep-side { position: static; } }
.video-facade { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 16px; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.65); color: #fff; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.play-video:hover { background: var(--accent); }
.ep-hero-img { border-radius: var(--radius); margin-bottom: 16px; }
.player { margin-bottom: 24px; }
.player audio { width: 100%; margin-bottom: 10px; }
.show-notes { margin-bottom: 32px; }
.show-notes p { max-width: 70ch; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: .93rem; }
.chapters a { color: var(--fg); text-decoration: none; }
.chapters a:hover { color: var(--link); }
button.ts { font: inherit; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--link); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 0; border-radius: 6px; padding: 1px 6px; cursor: pointer; }
button.ts:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.transcript-body { max-width: 72ch; }
.transcript-body h2 { font-size: 1.25rem; margin-top: 2rem; scroll-margin-top: 90px; }
.transcript-body p { margin-bottom: .8rem; }
.transcript-body p strong { color: var(--muted); font-weight: 600; margin-right: 4px; }
.transcript-body mark, .results mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next a { text-decoration: none; color: var(--fg); font-weight: 500; }
.prev-next .next { text-align: right; }
.prev-next a:hover { color: var(--link); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 0 0 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 144px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.tl-date { text-align: right; font-weight: 600; color: var(--muted); font-size: .92rem; padding-top: 3px; }
.tl-body h3 { margin-bottom: .3rem; }
.tl-eps { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--card-line); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .86rem; color: var(--fg); text-decoration: none; }
.chip:hover { border-color: var(--accent); }
@media (max-width: 640px) { .timeline::before { left: 8px; } .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; } .tl-item::before { left: 2px; } .tl-date { text-align: left; } }

/* search results */
.results { display: grid; gap: 12px; }
.result { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 14px 18px; }
.result .r-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .92rem; }
.result .r-head a { font-weight: 600; text-decoration: none; }
.result .r-text { margin: 0; color: var(--fg); }
.result .r-text .spk { color: var(--muted); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 24px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--fg); font-weight: 600; }
.foot-legal { margin-top: 24px; font-size: .85rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

/* books */
.book-card .book { padding: 12px 0; border-top: 1px solid var(--line); }
.book-card .book:first-of-type { border-top: 0; padding-top: 4px; }
.book-card .book h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.book-card .book p { margin-bottom: .5rem; }
.book-links { display: flex; gap: 6px; flex-wrap: wrap; }

/* network bar and cross-promotion */
.network-bar { background: var(--ink); color: #e9e2d6; font-size: .82rem; }
@media (prefers-color-scheme: dark) { .network-bar { background: #0d0b09; } }
.network-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.network-bar a { color: #fff; text-decoration: none; }
.network-bar a:hover { text-decoration: underline; }
.network-links { display: flex; gap: 14px; flex-wrap: wrap; }
.network-label a { font-weight: 600; }
@media (max-width: 720px) { .network-links { display: none; } }
.network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.net-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 14px; color: var(--fg); text-decoration: none; }
.net-card:hover { border-color: var(--accent); }
.net-card img { border-radius: 10px; flex: 0 0 72px; }

/* contact + support pages */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
@media (max-width: 760px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.person-card > div { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.person-card .btn { white-space: normal; }
.person-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: 0 0 160px; }
.person-card h2 { font-size: 1.4rem; margin-bottom: .4rem; }
@media (max-width: 560px) { .person-card { flex-direction: column; } }
.support-grid { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.donate-card iframe { display: block; margin: 0 auto; }

/* "jump to latest" link in the episode-1 section header */
.btn-latest { max-width: 100%; white-space: normal; text-align: left; border-color: var(--accent); }
