
:root {
  --paper: #fbfaf7;
  --ink: #16140f;
  --muted: #6f6a60;
  --accent: #5b21b6;
  --accent-soft: #ece2fb;
  --teal: #0d7a6c;
  --gold: #f0a800;
  --rule: #e8e3d9;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 5px solid var(--accent);
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; margin: 0 auto; }

header.site { padding: 1.5rem 0 1.2rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand::after { content: '.'; color: var(--accent); }
nav.primary { display: flex; gap: 1.3rem; }
nav.primary a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase; letter-spacing: 0.05em; }
nav.primary a:hover, nav.primary a[aria-current] { color: var(--accent); }

main { min-height: 60vh; }
h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.7rem; }
h2 { font-size: 1.45rem; margin: 2.75rem 0 1rem; }
h1 + .lede + h2, .lede + h2 { margin-top: 2rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1 a, h2 a, h3 a { color: inherit; text-decoration-thickness: 3px; text-decoration-color: var(--accent-soft); }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--accent); text-decoration-color: var(--accent); }
p { margin: 0 0 1.1rem; }
time, .meta { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.01em; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; color: var(--muted); letter-spacing: -0.015em; max-width: 38rem; text-wrap: pretty; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 320px); gap: 2rem 4.5rem; align-items: center; margin-bottom: 3rem; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero .photo { width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--ink); transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--accent); }
.hero .strap { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; margin-top: 1.25rem; }
.hero .strap a { color: var(--muted); text-decoration: none; }
.hero .strap a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 44rem) { .hero { grid-template-columns: 1fr; } .hero .photo { max-width: 260px; } }

/* Numbered editorial sections */
.section { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem 3rem; padding: 2.75rem 0; border-top: 1px solid var(--rule); }
.section > .marker { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; position: sticky; top: 1.25rem; align-self: start; margin: 0.35rem 0 0; }
.section > .marker b { color: var(--accent); font-weight: 600; margin-right: 0.6rem; }
@media (max-width: 44rem) { .section { grid-template-columns: 1fr; gap: 0.75rem; } }

.kicker { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin: 0 0 0.5rem; }
.page-hero {
  display: block; width: 100%; height: auto; margin: 1.75rem 0 2rem;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--accent);
}

/* Lists */
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { display: flex; align-items: center; gap: 1.1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
ul.list li:last-child { border-bottom: 0; }
ul.list .row-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
ul.list .title { font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
ul.list a.title:hover { color: var(--accent); }
ul.list .meta { white-space: nowrap; }
ul.list .row-thumb {
  width: 6.5rem; height: 4.25rem; object-fit: cover; display: block;
  border: 2px solid var(--ink); border-radius: 10px; flex-shrink: 0;
}
ul.list li:hover .row-thumb { box-shadow: 3px 3px 0 var(--accent); }
li.featured { display: block; padding: 1.1rem 0; }
li.featured .title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; display: block; margin-bottom: 0.3rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; padding: 0; list-style: none; margin: 0; }
.card { border: 2px solid var(--ink); border-radius: 12px; padding: 1rem 1.1rem 1.05rem; background: #fff; transition: transform 120ms ease, box-shadow 120ms ease; }
.grid li:nth-child(3n+1).card:hover { box-shadow: 5px 5px 0 var(--accent); }
.grid li:nth-child(3n+2).card:hover { box-shadow: 5px 5px 0 var(--teal); }
.grid li:nth-child(3n+3).card:hover { box-shadow: 5px 5px 0 var(--gold); }
.card:hover { transform: translate(-2px, -2px); }
.card a { font-weight: 700; letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.card:hover a { color: var(--accent); }
.card p { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* On Audio subscribe embed */
.subscribe { border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 6px 6px 0 var(--accent); padding: 1.1rem 1.25rem 0.35rem; margin: 2rem 0 0.75rem; max-width: 34rem; }
.subscribe p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--muted); }
.subscribe iframe { display: block; width: 100%; height: 150px; border: 0; }

/* Write index: intro/years on the left, subscribe box on the right */
.write-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 23rem); gap: 1rem 3rem; align-items: start; }
.write-head .subscribe { margin: 0.5rem 0 0; }
@media (max-width: 52rem) { .write-head { grid-template-columns: 1fr; } .write-head .subscribe { margin: 1rem 0 1.5rem; } }

/* Podcast panel — the one big colour block */
.panel { background: var(--accent); color: #fff; border-radius: 14px; padding: 1.75rem 2rem; margin: 0.5rem 0 1rem; }
.panel h3 { margin: 0 0 0.4rem; font-size: 1.45rem; letter-spacing: -0.025em; }
.panel p { color: #d9c9f5; margin: 0 0 0.75rem; }
.panel a { color: #fff; text-decoration-thickness: 2px; }
.panel .kicker { color: #d9c9f5; }
.panel-show { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: 1.75rem; align-items: center; }
.panel-show .art { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--gold); }
@media (max-width: 44rem) { .panel-show { grid-template-columns: 1fr; } .panel-show .art { max-width: 8.5rem; } }

/* Articles */
article { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
article header { margin-bottom: 1.75rem; }
article header h1 { font-family: var(--sans); font-size: clamp(1.9rem, 4vw, 2.6rem); }
article header p, article footer { font-family: var(--sans); }
article img, article iframe, article audio { max-width: 100%; height: auto; }
article img { border: 3px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--accent); }
article .hero-img { display: block; width: 100%; margin: 0 0 1.75rem; }
/* Classic WordPress alignment classes, restored with breathing room */
article img.alignleft, article .alignleft { float: left; max-width: min(50%, 20rem); margin: 0.35rem 1.5rem 1rem 0; }
article img.alignright, article .alignright { float: right; max-width: min(50%, 20rem); margin: 0.35rem 0 1rem 1.5rem; }
article img.aligncenter, article .aligncenter { display: block; float: none; margin: 1.25rem auto; }
article img.alignnone { display: block; margin: 1.25rem 0; }
article p, article ul, article ol { overflow-wrap: break-word; }
article footer, article header { clear: both; }
section[aria-label="Comments"] { clear: both; }
@media (max-width: 34rem) {
  article img.alignleft, article .alignleft, article img.alignright, article .alignright {
    float: none; max-width: 100%; margin: 1rem 0;
  }
}
article .embed-video { aspect-ratio: 16 / 9; margin: 1.25rem 0; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 6px 6px 0 var(--teal); }
article .embed-video iframe { width: 100%; height: 100%; border: 0; display: block; }
article blockquote { border-left: 3px solid var(--accent); margin: 1.25rem 0; padding: 0 0 0 1.1rem; color: var(--muted); }
section[aria-label="Comments"] { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1.5rem; font-family: var(--sans); }
section[aria-label="Comments"] ol { list-style: none; padding: 0; }
section[aria-label="Comments"] li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
section[aria-label="Comments"] h2 { font-size: 1.2rem; }

footer.site { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 2.5rem 0 3rem; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 1.5rem 3rem; }
.foot-grid .brand { font-family: var(--sans); font-size: 1rem; }
.foot-grid p { margin: 0.5rem 0 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.foot-head { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--muted); margin: 0 0 0.6rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
@media (max-width: 44rem) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

form.search { display: flex; gap: 0.5rem; margin: 1.25rem 0 2rem; }
form.search input[type=search] { flex: 1; font: inherit; padding: 0.6rem 0.85rem; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
form.search input[type=search]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
form.search button { font: inherit; font-weight: 600; padding: 0.6rem 1.2rem; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1.5rem; padding: 0; list-style: none; }
.pill-row a { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.75rem; background: #fff; }
.pill-row a:hover, .pill-row a[aria-current] { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Admin forms */
form.stack { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; margin: 1.25rem 0; }
form.stack label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
form.stack label small { color: var(--muted); font-weight: 400; }
form.stack input, form.stack textarea, form.stack select {
  font: inherit; font-weight: 400; padding: 0.5rem 0.7rem; border: 1px solid var(--rule);
  border-radius: 8px; background: #fff;
}
form.stack textarea { font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }
form.stack input:focus, form.stack textarea:focus { outline: 2px solid var(--accent); }
form.stack button, form button {
  font: inherit; font-weight: 600; padding: 0.5rem 1.1rem; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; cursor: pointer; align-self: flex-start;
}

.event-row { display: flex; gap: 1.25rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.event-row:last-child { border-bottom: 0; }
.event-row .when { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; width: 10.5rem; }
@media (max-width: 34rem) { .event-row { flex-direction: column; gap: 0.15rem; } .event-row .when { width: auto; } }

/* Featured latest piece */
.featured-write { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1.75rem 2.25rem; align-items: start; }
.featured-write .title { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-decoration: none; margin-bottom: 0.4rem; }
.featured-write a.title:hover { color: var(--accent); }
.featured-write .excerpt { color: var(--muted); margin: 0.25rem 0 0.5rem; }
.featured-write .thumb { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--accent); }
@media (max-width: 44rem) { .featured-write { grid-template-columns: 1fr; } .featured-write .thumb { max-width: 14rem; } }

/* Episode pages */
.epi-head { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; font-family: var(--sans); }
.epi-head.no-art { grid-template-columns: 1fr; }
.role-badge {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 0.18em 0.65em;
  margin-left: 0.55rem; vertical-align: 0.15em; white-space: nowrap;
}
.related-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: start; margin-top: 1rem; }
@media (max-width: 48rem) { .related-cols { grid-template-columns: 1fr; } }
.epi-art { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--gold); }
.epi-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.listen { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline; margin-top: 0.75rem; }
.listen .btn { background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.9rem; }
.listen a:not(.btn) { font-family: var(--mono); font-size: 0.78rem; }
article.episode { font-family: var(--sans); font-size: 1rem; }
article.episode .page-hero { max-height: 23rem; object-fit: cover; object-position: center; }
article.episode audio { margin: 0.5rem 0 1rem; }
article.episode blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: 0.25rem 0 0.25rem 1.1rem; }
@media (max-width: 40rem) { .epi-head { grid-template-columns: 1fr; } .epi-art { max-width: 9rem; } }

/* Episode cards with artwork */
.epi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0.5rem; }
.epi a { display: flex; gap: 0.85rem; align-items: flex-start; text-decoration: none; color: var(--ink); }
.epi img { width: 4.25rem; height: 4.25rem; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--gold); flex-shrink: 0; }
.epi .epi-title { display: block; font-weight: 600; letter-spacing: -0.01em; font-size: 0.95rem; line-height: 1.3; margin-bottom: 0.2rem; }
.epi a:hover .epi-title { color: var(--accent); }
