/* Scandinavian layer for the podcast, built on top of PicoCSS. */
:root {
  --ink: #000;
  --muted: rgb(0 0 0 / 64%);
  --meta: rgb(0 0 0 / 56%);
  --quiet: rgb(0 0 0 / 46%);
  --line: rgb(0 0 0 / 11%);
  --line-strong: rgb(0 0 0 / 18%);
  --hover: rgb(0 0 0 / 5%);
  --site-width: 1120px;
  --reading-width: 680px;
  --gutter: 48px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pico-font-family: var(--font-sans);
  --pico-font-family-sans-serif: var(--font-sans);
  --pico-background-color: #fff;
  --pico-color: var(--ink);
  --pico-muted-color: var(--muted);
  --pico-muted-border-color: var(--line);
  --pico-primary: var(--ink);
  --pico-primary-background: var(--ink);
  --pico-primary-border: var(--ink);
  --pico-primary-hover: var(--ink);
  --pico-primary-hover-background: var(--ink);
  --pico-primary-hover-border: var(--ink);
  --pico-border-radius: 4px;
}

html { background: #fff; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.container { width: min(var(--site-width), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.narrow { max-width: var(--reading-width); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.2; }
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a[role="button"], a[role="button"]:visited, button:not(.dialog-close) { border-color: var(--ink); background: var(--ink); color: #fff; }
a[role="button"]:hover, a[role="button"]:focus, button:not(.dialog-close):hover, button:not(.dialog-close):focus { border-color: var(--ink); background: #222; color: #fff; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.eyebrow, .section-label { margin-bottom: 16px; color: var(--muted); font-size: .84rem; font-weight: 600; letter-spacing: .01em; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header ul, .site-footer ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-header a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.site-header a[role="button"], .site-header a[role="button"]:visited { color: #fff; }
.site-header a[role="button"]:hover, .site-header a[role="button"]:focus { color: #fff; }
.site-title { font-weight: 600; letter-spacing: -.02em; }

.podcast-intro { padding-block: 128px 144px; }
.intro-layout { display: grid; grid-template-columns: minmax(220px, 30%) minmax(0, 1fr); align-items: center; gap: 56px; }
.show-art { display: grid; aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 16px 36px rgb(0 0 0 / 10%); }
.show-art img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.podcast-intro h1 { margin-bottom: 24px; }
.lead { max-width: 58ch; margin-bottom: 0; color: var(--muted); font-size: 1.16rem; line-height: 1.55; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; margin-bottom: 0; }
.intro-actions [role="button"], .newsletter [role="button"] { margin-bottom: 0; }

.episodes { padding-block: 0 128px; }
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 0; }
.episode-list { border-top: 1px solid var(--line); }
.episode-row { display: grid; grid-template-columns: 64px minmax(0, 680px); gap: 24px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.episode-number { padding-top: 4px; margin-bottom: 0; color: var(--quiet); font-size: .86rem; font-variant-numeric: tabular-nums; }
.episode-body { min-width: 0; }
.episode-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; color: var(--meta); font-size: .86rem; font-variant-numeric: tabular-nums; }
.episode-body h3 { margin-bottom: 12px; font-weight: 500; }
.episode-body h3 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.episode-body > p:not(.episode-meta) { max-width: 58ch; margin-bottom: 16px; color: var(--muted); font-size: .96rem; }
.episode-action { font-size: .9rem; text-underline-offset: 4px; }
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding-inline: 10px; font-size: .86rem; text-decoration: none; }
.pagination a:hover { background: var(--hover); }
.pagination [aria-current="page"] { border: 1px solid var(--line-strong); }
.pagination a:last-child { margin-left: 8px; }

.newsletter { padding-block: 128px; background: rgb(0 0 0 / 4%); }
.newsletter h2 { margin-bottom: 24px; }
.newsletter p:not(.eyebrow) { max-width: 58ch; color: var(--muted); }
.newsletter [role="button"] { margin-top: 16px; }
.listen { padding-block: 20px; border-top: 1px solid var(--line); }
.listen-layout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.listen-layout h2 { margin-bottom: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.platform-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.platform-links li { margin: 0; }
.platform-links a { display: block; padding-block: 4px; text-decoration: none; }
.platform-links a:hover { background: var(--hover); }

.site-footer { padding-block: 28px; border-top: 1px solid var(--line); }
.footer-minimal { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--quiet); font-size: .82rem; }
.footer-minimal strong { color: var(--ink); font-weight: 600; }
.footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 64px; }
.footer-layout strong { font-weight: 600; }
.footer-layout p { margin: 8px 0 0; color: var(--muted); }
.footer-layout nav ul { display: grid; gap: 8px; }
.footer-layout nav a { color: var(--ink); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--quiet); }

.detail-page { width: min(960px, calc(100% - (var(--gutter) * 2))); margin-inline: auto; padding-block: 64px 96px; }
.episode-detail { max-width: 800px; }
.episode-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.episode-header h1 { max-width: 700px; margin-bottom: 20px; font-size: clamp(2.25rem, 3.8vw, 3.05rem); }
.episode-summary { max-width: 62ch; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.episode-listen { padding-block: 40px 48px; }
.episode-listen audio { display: block; width: 100%; margin-bottom: 12px; }
.player-links { margin-bottom: 0; color: var(--meta); font-size: .92rem; }
.episode-notes { padding-top: 8px; }
.episode-notes .section-header { margin-bottom: 28px; }
.episode-notes h2 { font-size: 1.65rem; }
.episode-notes > p { max-width: 68ch; }
.episode-chapters { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.episode-chapters h2 { margin-bottom: 20px; font-size: 1.5rem; }
.episode-chapters ul { margin: 0; padding: 0; list-style: none !important; }
.episode-chapters li::marker { content: ""; }
.episode-chapters li { display: flex; padding-left: 0; margin-bottom: 10px; }
.episode-chapters a { display: flex; gap: 8px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.episode-chapters time { display: inline-block; min-width: 0; color: var(--meta); font-variant-numeric: tabular-nums; text-decoration: underline; text-underline-offset: 3px; }
.episode-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.back-link { text-underline-offset: 4px; }

.subscribe-dialog { box-sizing: border-box; width: min(calc(100% - 40px), 760px); max-height: calc(100vh - 32px); margin: auto; padding: 40px; overflow: auto; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); background: #fff; }
.subscribe-dialog::backdrop { background: rgb(255 255 255 / 96%); }
.subscribe-dialog > header { margin: 0; padding: 0; background: transparent; }
.subscribe-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.subscribe-dialog-header h2 { max-width: 620px; margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; }
.dialog-close { flex: 0 0 auto; width: 40px; height: 40px; margin: -6px -6px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 2.5rem; font-weight: 300; line-height: 1; }
.dialog-close:hover { background: var(--hover); }
.platform-picker { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.platform-picker li { margin: 0; }
.platform-picker a { display: flex; min-height: 82px; align-items: center; justify-content: center; gap: 16px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 1.55rem; letter-spacing: -.025em; text-decoration: none; }
.platform-picker a:hover { background: var(--hover); }
.platform-mark { display: inline-grid; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1; }
.platform-mark-apple { border-radius: 9px; }
.platform-mark-spotify { border-radius: 50%; }
.platform-mark-substack { border-radius: 50%; }

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .site-header nav { min-height: 64px; }
  .site-header ul { gap: 12px; }
  .site-header nav > ul:last-child li:nth-child(2), .site-header nav > ul:last-child li:nth-child(3) { display: none; }
  .podcast-intro { padding-block: 80px 96px; }
  .intro-layout { grid-template-columns: 1fr; gap: 32px; }
  .show-art { width: min(320px, 100%); }
  .podcast-intro h1 { font-size: 2.65rem; }
  .episode-header h1 { font-size: 2.35rem; }
  .episodes { padding-bottom: 96px; }
  .episode-row { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 32px; }
  .listen { padding-block: 16px; }
  .listen-layout { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-page { width: min(100% - 40px, 800px); padding-block: 40px 72px; }
  .subscribe-dialog { width: min(calc(100% - 32px), 760px); padding: 28px 20px; }
  .subscribe-dialog-header { margin-bottom: 32px; }
  .subscribe-dialog-header h2 { font-size: 2.25rem; }
  .platform-picker a { min-height: 70px; font-size: 1.25rem; }
  .episode-header { padding-bottom: 32px; }
  .episode-listen { padding-block: 32px 40px; }
  .site-footer { margin-top: 0; }
  .footer-minimal { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
