/* ============================================
   The Write and Wrong Podcast — site styles
   Edit the colours below to re-theme the site.
   ============================================ */
:root {
  --blue: #cadae8;       /* Write & Wrong brand blue */
  --paper: #f5f8fb;
  --paper-2: #e4edf5;
  --ink: #111111;
  --ink-soft: #2c2f33;
  --muted: #5a6570;
  --accent: #34628c;     /* deeper blue for links, tags and ticks */
  --accent-dark: #244a6d;
  --line: #d5e0ea;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
  --serif: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: inline-block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
.wrong { text-decoration: underline wavy var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.strike { position: relative; color: var(--muted); }
.strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px;
  background: var(--accent); transform: rotate(-3deg); border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 251, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.logo .amp { color: var(--accent); font-style: italic; padding: 0 2px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav a.nav-cta { background: var(--ink); color: var(--paper); }
.nav a.nav-cta:hover { background: var(--accent); color: var(--white); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); transition: all .15s; cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-red:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--blue); }
.dark p { color: #c4ced8; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.manuscript {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: 0 30px 60px -30px rgba(27, 31, 59, .35); transform: rotate(1.5deg);
  font-family: var(--serif); position: relative;
  background-image: repeating-linear-gradient(transparent, transparent 33px, #ece4d4 33px, #ece4d4 34px);
}
.manuscript .ms-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--muted); font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.manuscript p { font-size: 1.25rem; line-height: 34px; margin: 0; }
.manuscript .note {
  font-family: "Caveat", "Bradley Hand", cursive; color: var(--accent); font-size: 1.5rem; line-height: 1.1;
  display: block; margin-top: 18px; transform: rotate(-2deg);
}
.manuscript .ep-badge {
  position: absolute; top: -16px; right: 24px; background: var(--accent); color: var(--white);
  font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
  transform: rotate(-1.5deg);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .manuscript { transform: none; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Episode cards ---------- */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ep {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.ep:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(27, 31, 59, .4); }
.ep-num { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.ep h3 { margin-bottom: 12px; }
.ep p { color: var(--muted); font-size: .97rem; flex: 1; }
.ep-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: .75rem; font-weight: 600; background: var(--paper-2); padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); }
.ep-links { display: flex; gap: 16px; font-size: .9rem; font-weight: 600; }
.ep-links a { text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.ep-links a:hover { color: var(--accent); }
.ep.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px; }
.ep.featured h3 { font-size: 1.9rem; }
@media (max-width: 820px) { .ep.featured { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Guests ---------- */
.roles { display: flex; flex-wrap: wrap; gap: 12px; }
.role {
  font-family: var(--serif); font-size: 1.35rem; padding: 12px 22px; border: 1.5px solid var(--ink);
  border-radius: 999px; background: var(--white);
}
.role:nth-child(3n) { background: var(--ink); color: var(--paper); }
.role:nth-child(4n) { border-color: var(--accent); color: var(--accent); }

/* ---------- Two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Perks ---------- */
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-weight: 500;
}
.alt .perks li, .perks.light li { background: var(--white); border-color: var(--line); }
.perks .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}

/* ---------- Embed ---------- */
.embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Page hero ---------- */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 60ch; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); background: var(--white); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hidden { display: none; }

/* ---------- Platform strip ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); transition: all .15s;
}
.platform:hover { border-color: var(--ink); }
.platform svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4ced8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .logo { color: var(--paper); font-size: 1.6rem; display: inline-block; margin-bottom: 12px; }
.site-footer h4 { color: var(--paper); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #c4ced8; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Brand additions ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }
.script { font-family: var(--script); font-weight: 400; font-size: 1.6em; line-height: .6; letter-spacing: 0; vertical-align: -0.12em; padding: 0 .08em; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 500; font-size: 1.25rem; letter-spacing: .01em; }
.logo img { width: 46px; height: 46px; }
.site-footer .logo img { width: 64px; height: 64px; }
.brand-hero { background: var(--blue); padding: 0 0 64px; border-bottom: 1px solid #b7cadb; }
.brand-hero .banner { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 4 / 1; object-fit: cover; }
.brand-hero .hero-text { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-top: 8px; }
.brand-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.brand-hero .lead { color: var(--ink-soft); margin: 0; }
.brand-hero .platform { background: rgba(255,255,255,.75); border-color: rgba(17,17,17,.12); }
.brand-hero .platform:hover { background: var(--white); }
@media (max-width: 860px) {
  .brand-hero .banner { aspect-ratio: 2.4 / 1; object-position: 47% 50%; }
  .brand-hero .hero-text { grid-template-columns: 1fr; gap: 24px; }
}
.page-hero { background: var(--blue); border-bottom: 1px solid #b7cadb; }
.page-hero .lead { color: var(--ink-soft); }
.page-hero .eyebrow { color: var(--ink); }
.page-hero .platform { background: rgba(255,255,255,.75); }
.btn-red { background: var(--ink); border-color: var(--ink); }
.btn-red:hover { background: var(--accent); border-color: var(--accent); }
.dark .btn-red { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.dark .btn-red:hover { background: var(--white); border-color: var(--white); }
.dark .perks .tick { background: var(--blue); color: var(--ink); }
.books { border-radius: var(--radius); width: 100%; max-width: 380px; margin: 0 auto; }
.ep-num { color: var(--accent); }
.role:nth-child(3n) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.role:nth-child(4n) { background: var(--blue); border-color: var(--blue); color: var(--ink); }

/* ---------- Latest episode artwork ---------- */
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.art-card { text-decoration: none; display: block; }
.art-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px;
  background: var(--blue); box-shadow: 0 14px 30px -18px rgba(17, 17, 17, .45); transition: transform .2s, box-shadow .2s;
}
.art-card:hover img { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(17, 17, 17, .5); }
.art-card .ep-num { display: block; margin-bottom: 6px; }
.art-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.art-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* ---------- On-site player ---------- */
.art-wrap { position: relative; display: block; }
.play-badge {
  position: absolute; right: 12px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); transition: transform .15s, background .15s;
}
.play-badge::before {
  content: ""; position: absolute; left: 20px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--white);
}
.art-card:hover .play-badge { transform: scale(1.08); background: var(--accent); }
.art-card.playing:not(.is-paused) .play-badge::before {
  left: 18px; top: 17px; width: 6px; height: 18px; border: 0; background: var(--white); box-shadow: 10px 0 0 var(--white);
}
.art-card.playing img { outline: 3px solid var(--ink); outline-offset: 3px; }
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(0,0,0,.35); padding: 12px 0;
}
.player[hidden] { display: none; }
.player-inner { display: flex; align-items: center; gap: 16px; }
.player-art { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.player-info { min-width: 0; flex: 1 1 220px; }
.player-info .ep-num { display: block; font-size: .7rem; margin: 0 0 2px; }
.player-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player audio { flex: 2 1 320px; min-width: 0; height: 40px; }
.player-app { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.player-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
body.has-player { padding-bottom: 90px; }
@media (max-width: 700px) {
  .player-inner { flex-wrap: wrap; gap: 10px; }
  .player audio { order: 5; flex-basis: 100%; }
  .player-app { display: none; }
  body.has-player { padding-bottom: 140px; }
}



/* ---------- Compact stats strip ---------- */
.stats-wrap { margin-top: 28px; }
.stats-wrap + section { padding-top: 56px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 14px 12px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.stat strong { display: inline; font-size: 1.5rem; margin: 0; }
.stat span { font-size: .88rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--line); }
  .stat { flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; text-align: center; }
  .stat strong { font-size: 1.3rem; }
  .stat span { font-size: .75rem; line-height: 1.3; }
}

/* ---------- Episode archive ---------- */
.playing .play-badge { background: var(--accent); }
.playing:not(.is-paused) .play-badge::before {
  left: 18px; top: 17px; width: 6px; height: 18px; border: 0; background: var(--white); box-shadow: 10px 0 0 var(--white);
}
#archive .arc-tools, #archive .arc-list, #archive .arc-more { display: none; }
#archive.is-live .arc-tools { display: flex; }
#archive.is-live .arc-list { display: grid; }
#archive.is-live .arc-more:not([hidden]) { display: inline-flex; margin-top: 32px; }
#archive.is-live .arc-fallback { display: none; }
.arc-tools { flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.arc-label { flex-basis: 100%; margin: 0; }
.arc-search { flex: 1 1 320px; max-width: 560px; font-size: 1.05rem; padding: 14px 18px; border-radius: 999px; background: var(--white); }
.arc-count { color: var(--muted); font-size: .92rem; }
.arc-list { gap: 18px; }
.arc { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.arc-art { position: relative; padding: 0; border: 0; background: none; cursor: pointer; align-self: start; border-radius: 10px; }
.arc-art img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; background: var(--blue); display: block; }
.arc-art .play-badge { right: 8px; bottom: 8px; width: 44px; height: 44px; }
.arc-art .play-badge::before { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.arc-art.playing:not(.is-paused) .play-badge::before { left: 14px; top: 13px; width: 5px; height: 18px; box-shadow: 9px 0 0 var(--white); }
.arc-art:hover .play-badge { transform: scale(1.08); background: var(--accent); }
.arc-art.playing img { outline: 3px solid var(--ink); outline-offset: 3px; }
.arc-body h3 { font-size: 1.3rem; margin: 4px 0 2px; }
.arc-sub { color: var(--ink-soft); font-weight: 500; margin-bottom: 8px; }
.arc-sum { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.arc-notes { margin-bottom: 12px; }
.arc-notes summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent); }
.arc-notes > div { margin-top: 10px; padding: 14px 16px; background: var(--paper); border-radius: 10px; font-size: .94rem; color: var(--ink-soft); }
.arc-notes p { margin: 0 0 6px; }
.arc-empty { color: var(--muted); text-align: center; padding: 40px 0; }
@media (max-width: 600px) {
  .arc { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .arc-art img { width: 96px; height: 96px; }
  .arc-art .play-badge { width: 36px; height: 36px; right: 6px; bottom: 6px; }
  .arc-art .play-badge::before { left: 14px; top: 10px; border-width: 8px 0 8px 12px; }
  .arc-body h3 { font-size: 1.1rem; }
}
.site-footer { border-top: 1px solid rgba(255, 255, 255, .12); }
.co-latest { padding-top: 40px; }
.co-latest .section-head { margin-bottom: 24px; }
.page-hero.compact { padding: 44px 0 36px; }
.page-hero.compact h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero.compact .lead { font-size: 1.08rem; margin: 0; }
.co-latest { padding-top: 32px; }
.co-latest .section-head { flex-wrap: nowrap; align-items: center; }
.co-latest .section-head h2 { margin: 0; }
@media (max-width: 600px) {
  .page-hero.compact { padding: 28px 0 24px; }
  .co-latest { padding-top: 24px; }
  .co-latest .section-head .btn { padding: 9px 14px; font-size: .88rem; white-space: nowrap; }
}
.ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.ig::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 5px; box-sizing: border-box;
  background: radial-gradient(circle at 50% 50%, transparent 3px, currentColor 3.5px, currentColor 4.5px, transparent 5px); }
.ig:hover { text-decoration: underline; }
.write-in { margin: 12px 0 0; font-weight: 500; color: var(--ink); }
.write-in a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.write-in a:hover { color: var(--accent); }

/* ---------- Episode notes (blog) ---------- */
.notes-section { padding-top: 40px; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.note-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.note-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(17,17,17,.4); }
.note-card h2 { font-size: 1.3rem; margin: 6px 0 10px; }
.note-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.note-more { font-weight: 600; font-size: .9rem; color: var(--accent); }
.post-head { background: var(--blue); border-bottom: 1px solid #b7cadb; padding: 40px 0 36px; }
.post-wrap { max-width: 760px; }
.post-back { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.post-back:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 8px 0 12px; }
.post-head .lead { margin: 0; max-width: none; font-size: 1.12rem; }
.post-listen { margin: 32px 0 8px; }
.post-listen-card { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; font: inherit; color: inherit; }
.post-listen-card:hover { border-color: var(--ink); }
.post-listen-card .art-wrap { flex: none; }
.post-listen-card img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; display: block; background: var(--blue); }
.post-listen-card .play-badge { right: 6px; bottom: 6px; width: 36px; height: 36px; }
.post-listen-card .play-badge::before { left: 14px; top: 10px; border-width: 8px 0 8px 12px; }
.post-listen-card.playing:not(.is-paused) .play-badge::before { left: 11px; top: 10px; width: 5px; height: 16px; box-shadow: 9px 0 0 var(--white); }
.post-listen-text { display: grid; gap: 4px; min-width: 0; }
.post-listen-text strong { font-weight: 500; font-size: 1.05rem; }
.post-hero-img { width: 100%; border-radius: var(--radius); margin: 28px 0 0; }
.post-body { padding: 28px 0 8px; font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); }
.post-body h2, .post-body h3, .post-body h4 { color: var(--ink); margin: 1.8em 0 .5em; }
.post-body h2 { font-size: 1.7rem; } .post-body h3 { font-size: 1.35rem; } .post-body h4 { font-size: 1.15rem; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.15em; }
.post-body li { margin-bottom: .4em; }
.post-body a { color: var(--accent); }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--blue); font-size: 1.2rem; color: var(--ink); }
.post-body img { border-radius: 10px; margin: 1.4em 0; }
.post-body figure { margin: 1.6em 0; } .post-body figcaption { font-size: .9rem; color: var(--muted); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding: 28px 0 72px; margin-top: 24px; }
@media (max-width: 600px) { .post-body { font-size: 1.04rem; } .post-listen-card img { width: 68px; height: 68px; } }

/* Six menu items: use the Menu button until there's room for them all */
.nav a { white-space: nowrap; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Full episode list on the home page ---------- */
.all-toggle { text-align: center; margin-top: 40px; }
.all-episodes { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.all-episodes[hidden] { display: none; }
.all-title { margin-bottom: 20px; }
#archive .arc-fallback, #archive .arc-loading { display: none; }
#archive:not(.is-live):not(.is-failed) .arc-loading { display: block; text-align: center; color: var(--muted); padding: 32px 0; }
#archive.is-failed .arc-fallback { display: block; }


/* Hand-drawn line where the banner meets the blue below it.
   The shape under the line is filled with the page blue, hiding the colour seam. */
.brand-hero .banner { display: block; }
.banner-rule { display: block; width: 100%; height: 16px; margin: -9px 0 22px; position: relative; overflow: visible; }
.banner-rule .cover { fill: var(--blue); }
.banner-rule .ink { fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.banner-rule .ink.thin { stroke-width: 1; opacity: .7; }
@media (max-width: 760px) { .banner-rule { height: 10px; margin: -6px 0 16px; } .banner-rule .ink { stroke-width: 1.6; } }

/* Episode descriptions in the full list: expand in place */
.arc-desc { margin-bottom: 12px; }
.arc-desc [hidden] { display: none; }
.arc-full p { color: var(--ink-soft); font-size: .97rem; margin: 0 0 8px; }
.arc-toggle { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; font-size: .92rem; color: var(--accent); cursor: pointer; }
.arc-toggle:hover { text-decoration: underline; }
.arc-toggle::after { content: " \25BE"; }
.arc-toggle[aria-expanded="true"]::after { content: " \25B4"; }

/* ---------- Episode Notes as a list with covers ---------- */
.notes-list { display: grid; gap: 18px; max-width: 920px; }
.note-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 26px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.note-row:hover { transform: translateY(-2px); border-color: #c2d2e0; box-shadow: 0 16px 34px -24px rgba(17, 17, 17, .4); }
.note-cover { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; background: var(--blue); display: block; }
.note-text { display: flex; flex-direction: column; min-width: 0; }
.note-text h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.note-text p { color: var(--muted); font-size: .97rem; margin: 0 0 10px; }
@media (max-width: 600px) {
  .note-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .note-cover { width: 88px; height: 88px; }
  .note-text h2 { font-size: 1.08rem; margin: 4px 0 6px; }
  .note-text p { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
