/* Lauschwald: warm woodcut forest. Mobile first, light and dark, no external resources. */

@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-soft-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: #f4ecda;
  --paper-2: #ebe0c6;
  --card: #fbf6ea;
  --ink: #1f2a22;
  --ink-soft: #4a574d;
  --line: #d3c5a4;
  --forest: #2f4a36;
  --forest-deep: #22362a;
  --on-forest: #f4ecda;
  --accent: #96421d;
  --gold: #e2b75b;
  --gold-soft: rgba(226, 183, 91, 0.22);
  --focus: #1f2a22;
  --footer: #22362a;
  --shadow: 0 1px 2px rgba(31, 42, 34, 0.08), 0 8px 24px rgba(31, 42, 34, 0.08);
  /* speaker colours: text-safe on --paper and --card */
  --sp-0: #2f4a36;
  --sp-1: #9a3b26;
  --sp-2: #2a5a87;
  --sp-3: #74488a;
  --sp-4: #7c5e0c;
  --sp-5: #24695c;
  --sp-6: #8a3460;
  --sp-7: #55601b;

  --font-body: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius: 1rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a15;
    --paper-2: #18231c;
    --card: #1c2820;
    --ink: #ede4cf;
    --ink-soft: #b8b19c;
    --line: #34453a;
    --forest: #8fb88a;
    --forest-deep: #1f3326;
    --on-forest: #10180f;
    --accent: #f0b46a;
    --gold-soft: rgba(226, 183, 91, 0.18);
    --focus: #f2c66d;
    --footer: #0b110d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --sp-0: #a9c9a0;
    --sp-1: #f2a487;
    --sp-2: #9cc4ec;
    --sp-3: #d3abe5;
    --sp-4: #e8c76a;
    --sp-5: #8fd3c4;
    --sp-6: #eda5c6;
    --sp-7: #cbd27e;
  }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
@media (hover: hover) { a:hover { text-decoration-thickness: 0.14em; } }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

code, kbd {
  font-family: ui-monospace, "SFMono-Regular", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.82em;
}
kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.35em;
  padding: 0.05em 0.4em;
  background: var(--card);
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--forest);
  color: var(--on-forest);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-text { max-width: calc(46rem + 2 * var(--gutter)); }

.lead { font-size: 1.22em; line-height: 1.5; color: var(--ink-soft); }
.note { font-size: 0.95rem; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

/* ---------------------------------------------------------------- buttons, badges */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--on-forest);
  border: 2px solid var(--forest);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button-quiet { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
@media (hover: hover) {
  .button:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #f4ecda; }
  .button-quiet:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
}

.more { font-weight: 700; }
.more::after { content: " →"; }

.badge {
  display: inline-block;
  padding: 0.12em 0.65em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.badge-full { background: var(--forest); color: var(--on-forest); }
.badge-preview { background: var(--gold); color: #1f2a22; }
.badge-upcoming, .badge-wish { border-color: var(--ink-soft); color: var(--ink); }

.soon { font-size: 0.85em; opacity: 0.8; font-style: italic; }
.soon-box {
  display: inline-block;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 3.25rem; height: 3.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.brand-claim { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
@media (hover: hover) { .site-nav a:hover { background: var(--paper-2); } }
.site-nav a[aria-current],
.site-nav a[aria-current]:hover {
  background: var(--forest);
  color: var(--on-forest);
}


/* DE · EN: each language is its own site (Lauschwald, Copsetale); the current one is filled like the nav's page.
   Top right next to the brand, the nav on its own row below; from 62rem (the German preview's nav with the Werkstatt
   fits there) brand, nav and switch share one row. */
.lang-switch { order: 1; margin-left: auto; }
.site-nav { order: 2; width: 100%; }
@media (min-width: 62rem) {
  .site-nav { order: 1; width: auto; flex: 1 1 auto; }
  .site-nav ul { justify-content: flex-end; }
  .lang-switch { order: 2; margin-left: 0; }
}
.lang-switch ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a,
.lang-switch span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
@media (hover: hover) { .lang-switch a:hover { background: var(--paper-2); } }
.lang-switch [aria-current] { background: var(--forest); color: var(--on-forest); }

@media (max-width: 40rem) {
  .header-inner { padding-block: 0.6rem 0.4rem; column-gap: 0.75rem; }
  .site-nav ul { gap: 0.1rem; margin-inline: -0.5rem; }
  .site-nav a { padding: 0.3rem 0.5rem; font-size: 1rem; }
}
@media (max-width: 24rem) {
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.35rem; margin-inline: 0; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section-tinted { background: var(--paper-2); }
.page-head { padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem; }

/* the hero: a night-forest band (the same in light and dark mode, like the covers' night skies), the covers fanned
   out on the right, below the text on phones */
.hero {
  --hero-ink: #f4ecda;
  padding-block: clamp(2.25rem, 7vw, 4.5rem);
  color: var(--hero-ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 236, 218, 0.14), rgba(244, 236, 218, 0) 32%),
    radial-gradient(ellipse at 10% 110%, rgba(226, 183, 91, 0.16), rgba(226, 183, 91, 0) 55%),
    linear-gradient(180deg, #17261d 0%, #22382a 100%);
  overflow: hidden;
}
.hero h1 { color: var(--hero-ink); }
.hero .lead { color: rgba(244, 236, 218, 0.84); max-width: 34rem; }
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem 0; }
.hero .button { background: #e2b75b; border-color: #e2b75b; color: #1f2a22; }
.hero .button-quiet { background: transparent; border-color: rgba(244, 236, 218, 0.55); color: var(--hero-ink); }
@media (hover: hover) {
  .hero .button:hover { background: #f0c46a; border-color: #f0c46a; color: #1f2a22; }
  .hero .button-quiet:hover { background: rgba(244, 236, 218, 0.1); border-color: var(--hero-ink); color: var(--hero-ink); }
}
.hero .button:focus-visible, .hero-book:focus-visible { outline: 3px solid #f2c66d; outline-offset: 3px; }
.hero-shelf {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1.35;
  margin-inline: auto;
}
.hero-book {
  --turn: 0deg;
  position: absolute;
  top: 11%;
  width: 56%;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 1px rgba(244, 236, 218, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--turn));
  transition: transform 0.25s ease;
}
.hero-book img { display: block; width: 100%; height: auto; border-radius: inherit; }
.hero-book:nth-child(1) { left: 0; --turn: -7deg; }
.hero-book:nth-child(2) { left: 22%; top: 0; z-index: 2; }
.hero-book:nth-child(3) { right: 0; --turn: 7deg; }
.shelf-1 .hero-book { left: 22%; top: 0; }
.shelf-2 .hero-book:nth-child(2) { left: auto; right: 0; top: 11%; --turn: 6deg; }
@media (hover: hover) { .hero-book:hover { transform: rotate(var(--turn)) translateY(-0.5rem); z-index: 3; } }
@media (prefers-reduced-motion: reduce) { .hero-book { transition: none; } }
@media (min-width: 44rem) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
  .hero-shelf { width: 100%; }
}
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.split { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin-bottom: 1.5rem;
}
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.episode-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  grid-template-areas: "cover head" "text text";
  gap: 0.9rem 0.9rem;
  padding: 0.9rem;
}
.card-cover { grid-area: cover; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.6rem; }
.card-head { grid-area: head; min-width: 0; }
.card-text { grid-area: text; }
.episode-card .card-meta { margin-bottom: 0; }
.episode-card .card-title { font-size: 1.2rem; }
.episode-card.is-upcoming .card-cover { filter: saturate(0.6); }
/* an upcoming tale without its own cover: a text card, dashed like every "kommt bald" */
.episode-card.no-cover {
  grid-template-columns: 1fr;
  grid-template-areas: "head" "text";
  border: 1.5px dashed var(--ink-soft);
  box-shadow: none;
}
@media (min-width: 36rem) {
  .episode-card { display: flex; padding: 0; gap: 0; }
  .episode-card .card-title { font-size: 1.35rem; }
  .card-cover { border-radius: 0; }
  .card-head { padding: 1rem 1.15rem 0; }
  .card-text { padding: 0.6rem 1.15rem 1.25rem; }
  .episode-card .card-meta { margin-bottom: 0; }
}
.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.card-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .card:hover .card-title a { text-decoration: underline; } }
.card-meta { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.card-meta > span { white-space: nowrap; }
.card-meta > span:not(:last-child)::after { content: " ·"; }
.card-text { font-size: 1rem; margin: 0; }

/* "Weitere Hörspiele": on wide screens the cover sits beside the text, so one or two cards fill the row */
@media (min-width: 52rem) {
  .card-grid-row { grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); }
  .card-grid-row .episode-card {
    display: grid;
    grid-template-columns: 12rem 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "cover head" "cover text";
    gap: 0 1.5rem;
    padding: 1.25rem;
  }
  .card-grid-row .card-cover { border-radius: 0.6rem; }
  .card-grid-row .card-head { padding: 0; }
  .card-grid-row .card-text { padding: 0.6rem 0 0; max-width: 40rem; }
}

/* the home page's "Weitere Hörspiele": cover first, like books on a shelf (phones keep the small card) */
@media (min-width: 36rem) {
  .card-grid-covers { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .card-grid-covers .episode-card { flex-direction: column; }
  .card-grid-covers .card-cover { transition: transform 0.35s ease; }
  .card-grid-covers .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card-grid-covers .episode-card:hover .card-cover { transform: scale(1.03); }
  }
}
@media (min-width: 52rem) { .card-grid-covers { grid-template-columns: repeat(3, 1fr); } }

.group-title { margin-top: 2.25rem; }
.episode-groups > .group-title:first-child { margin-top: 0.5rem; }
h3.group-title { font-size: 1.45rem; }
.group-intro { color: var(--ink-soft); margin-bottom: 1.25rem; }

.featured-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-areas: "cover head" "body body";
  gap: 1rem 1.1rem;
  align-items: start;
}
.featured-cover {
  grid-area: cover;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink-soft), var(--shadow);
}
.featured-head { grid-area: head; min-width: 0; }
.featured-head .card-meta { margin-bottom: 0; }
@media (max-width: 35.99rem) {  /* phones: title over the full width, the thumbnail beside kicker and facts */
  .featured-card { grid-template-areas: "title title" "cover kicker" "cover meta" "body body"; row-gap: 0.5rem; }
  .featured-head { display: contents; }
  .featured-head .card-kicker { grid-area: kicker; margin: 0; }
  .featured-head .featured-title { grid-area: title; margin: 0; }
  .featured-head .card-meta { grid-area: meta; align-self: start; }
  .featured-head .card-meta > span { display: block; }
  .featured-head .card-meta > span::after { content: none; }
  .featured-cover { margin-block: 0.5rem; }
  .featured-body { margin-top: 0.75rem; }
}
.featured-body { grid-area: body; min-width: 0; }
.featured-title { font-size: clamp(1.5rem, 4.5vw, 2.6rem); }
.featured-title a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .featured-title a:hover { text-decoration: underline; } }
@media (min-width: 36rem) {
  .featured-card { grid-template-columns: 12rem 1fr; gap: 1.25rem 1.75rem; }
  .featured-cover { border-radius: var(--radius); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink-soft), var(--shadow); }
}
@media (min-width: 52rem) {
  .featured-card {
    grid-template-columns: minmax(16rem, 0.8fr) 1.2fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "cover head" "cover body";
    gap: 1rem 2.5rem;
  }
  .featured-cover { max-width: 26rem; }
}

.pillars {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.pillars li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
  border-top: 5px solid var(--forest);
}
.pillars li:nth-child(2) { border-top-color: var(--gold); }
.pillars li:nth-child(3) { border-top-color: var(--accent); }

.wish-preview { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.wish-preview li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.wish-preview-title { font-weight: 700; display: block; }
.wish-preview-author { color: var(--ink-soft); font-size: 0.95rem; }

.channel-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin-top: 1.5rem;
}
.channel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

/* ---------------------------------------------------------------- episode page */

.crumbs ol {
  display: flex;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.crumbs li { white-space: nowrap; }
.crumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; }
.crumbs a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }

.ep-head {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  grid-template-areas: "title title" "cover facts" "intro intro";
  gap: 1rem 1.1rem;
  align-items: start;
  padding-block: 1.25rem 1.5rem;
}
.ep-title { grid-area: title; margin: 0; font-size: clamp(2rem, 4.2vw + 0.6rem, 3.4rem); }
.ep-cover {
  grid-area: cover;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink-soft), var(--shadow);
}
.ep-facts { grid-area: facts; min-width: 0; }
.ep-facts .card-kicker { margin-bottom: 0.35rem; }
.ep-facts .card-meta { margin: 0; }
.ep-intro { grid-area: intro; }
.ep-intro .lead:last-child { margin-bottom: 0; }
@media (max-width: 35.99rem) {
  .ep-facts .card-meta > span { display: block; }
  .ep-facts .card-meta > span::after { content: none; }
  .ep-intro .lead { font-size: 1.12em; }
}
@media (min-width: 36rem) {
  .ep-head { grid-template-columns: 11rem 1fr; gap: 1rem 1.5rem; }
  .ep-cover { border-radius: var(--radius); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink-soft), var(--shadow); }
}
@media (min-width: 46rem) {
  .ep-head {
    grid-template-columns: minmax(12rem, 17rem) 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "cover kicker" "cover title" "cover meta" "cover intro";
    gap: 0.6rem 2.5rem;
    padding-block: 1.5rem 2rem;
  }
  .ep-facts { display: contents; }
  .ep-facts .card-kicker { grid-area: kicker; margin: 0; }
  .ep-facts .card-meta { grid-area: meta; }
  .ep-title { font-size: clamp(2.2rem, 3.4vw + 0.6rem, 3.4rem); }
  .ep-intro .lead { margin-top: 0.4rem; }
}
@media (min-width: 64rem) { .ep-head { grid-template-columns: 20rem 1fr; } }

.player-dock {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 0.5rem;
  background: var(--paper);  /* the read-along text must not show above or beside the docked player */
}
@media (max-height: 34rem) { .player-dock { position: static; } }
.player-dock .note { margin: 0.5rem 0 0; }

.soon-panel {
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 0.5rem;
  background: var(--card);
  margin-block: 0.5rem 1rem;
}
.soon-panel h2 { font-size: 1.5rem; }

.ep-info {
  display: grid;
  gap: 2.5rem 3rem;
  padding-block: 2rem;
}

.about-recording dl { margin: 0; }
.about-recording dt { font-weight: 700; margin-top: 0.9rem; }
.about-recording dd { margin: 0.15rem 0 0; }
.original summary { cursor: pointer; font-weight: 600; color: var(--accent); padding-block: 0.55rem; }

/* ---------------------------------------------------------------- read-along transcript */

.transcript-section { padding-block: 1rem 3rem; }
.follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.follow input { width: 1.2rem; height: 1.2rem; accent-color: var(--forest); }

.tr-section { scroll-margin-top: 9rem; }
.tr-chapter {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tr-chapter::before {
  content: "";
  width: 1.1rem; height: 1.1rem;
  flex: none;
  background: var(--gold);
  -webkit-mask: url("../img/leaf.svg") center / contain no-repeat;
  mask: url("../img/leaf.svg") center / contain no-repeat;
}
.tr-lines { list-style: none; margin: 0; padding: 0; }
.tr-line {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0.5rem 0.3rem 0.4rem;
  border-left: 4px solid transparent;
  border-radius: 0.4rem;
  scroll-margin-block: 10rem;
  transition: background-color 0.2s;
}
.tr-line:not(.is-narrator) { border-left-color: var(--sp); }
.tr-line.is-section-end { margin-bottom: 1.25rem; }
@media (max-width: 35.99rem) {
  .tr-line { grid-template-columns: 2.9rem 1fr; column-gap: 0.35rem; padding-left: 0.25rem; }
}
.tr-line.is-current { background: var(--gold-soft); }
.tr-content { grid-column: 2; margin: 0; }
.is-untimed .tr-line { grid-template-columns: 1fr; }  /* nothing recorded yet: no empty time column */
.is-untimed .tr-content { grid-column: 1; }
.tr-who {
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  color: var(--sp);
  margin-right: 0.25rem;
}
.tr-line.is-tag .tr-text { font-style: italic; color: var(--ink-soft); }
.sd { font-style: italic; color: var(--ink-soft); }
.tr-time {
  grid-column: 1;
  justify-self: start;
  font: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent);
  background: none;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0 0.3rem;
  min-height: 1.75rem;
  cursor: pointer;
}
@media (hover: hover) { .tr-time:hover:not(:disabled) { border-color: var(--line); background: var(--card); } }
.tr-time:disabled { cursor: default; color: var(--ink-soft); }
.tr-time:not(:disabled) { position: relative; }
.tr-time:not(:disabled)::before { content: ""; position: absolute; inset: -0.5rem -0.4rem; }  /* 44 px tap target */
.tr-preview-end {
  margin: 1rem 0 1.5rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 0.6rem;
  font-style: italic;
  color: var(--ink-soft);
}
.tr-preview-end p { margin: 0; }

.sp-0 { --sp: var(--sp-0); } .sp-1 { --sp: var(--sp-1); } .sp-2 { --sp: var(--sp-2); } .sp-3 { --sp: var(--sp-3); }
.sp-4 { --sp: var(--sp-4); } .sp-5 { --sp: var(--sp-5); } .sp-6 { --sp: var(--sp-6); } .sp-7 { --sp: var(--sp-7); }

.original {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.original[open] summary { margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------- player */

.player {
  --pl-bg: #22362a;
  --pl-ink: #f4ecda;
  --pl-soft: #c9c2ac;
  --pl-line: rgba(244, 236, 218, 0.18);
  --pl-hover: rgba(244, 236, 218, 0.08);
  background: var(--pl-bg);
  color: var(--pl-ink);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .player { --pl-bg: #1f3326; border: 1px solid #34453a; }
}
.player :focus-visible { outline-color: var(--gold); }
.pl-audio { width: 100%; display: block; }
.player.is-enhanced .pl-audio { display: none; }
/* phone: [play | title]  [play | slider]  [time ... -15 +15 speed]; from 40rem the buttons sit beside the slider */
.pl-ui {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "play now now" "play seek seek" "time time buttons";
  column-gap: 0.75rem;
  align-items: center;
}
.pl-ui[hidden] { display: none; }
.pl-play {
  grid-area: play;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #1f2a22;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(226, 183, 91, 0.25);
}
@media (hover: hover) { .pl-play:hover { background: #f0c46a; } }
.pl-play svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.pl-play .i-pause, .player.is-playing .pl-play .i-play { display: none; }
.player.is-playing .pl-play .i-pause { display: block; }
.pl-now {
  grid-area: now;
  align-self: end;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-seek { grid-area: seek; }
.pl-time {
  grid-area: time;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.95rem;
  color: var(--pl-soft);
  white-space: nowrap;
}
.pl-buttons { grid-area: buttons; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.pl-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 236, 218, 0.3);
  background: transparent;
  color: var(--pl-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
@media (hover: hover) { .pl-btn:hover { background: rgba(244, 236, 218, 0.1); } }
.pl-btn svg { width: 1.65rem; height: 1.65rem; fill: currentColor; }
.pl-btn text { font: 700 6.5px/1 system-ui, sans-serif; fill: currentColor; }
.pl-rate { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; color: var(--pl-soft); }
.pl-rate-btn {
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--pl-ink);
  background: transparent;
  border: 1px solid rgba(244, 236, 218, 0.3);
  border-radius: 1.4rem;
  min-width: 3.6rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  cursor: pointer;
  touch-action: manipulation;
}
@media (hover: hover) { .pl-rate-btn:hover { background: rgba(244, 236, 218, 0.1); } }
@media (max-width: 25rem) {
  .player { padding: 0.75rem 0.65rem; }
  .pl-ui { column-gap: 0.5rem; }
  .pl-buttons { gap: 0.25rem; }
  .trailer { padding-inline: 0.75rem; }
  .pl-rate-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 40rem) {
  .pl-ui { grid-template-areas: "play now time" "play seek buttons"; column-gap: 1rem; }
  .pl-play { width: 3.5rem; height: 3.5rem; }
  .pl-play svg { width: 1.8rem; height: 1.8rem; }
  .pl-time { justify-self: end; }
}

.pl-seek {
  --progress: 0%;
  width: 100%;
  min-width: 0;
  height: 2rem;
  margin: 0.1rem 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.pl-seek::-webkit-slider-runnable-track {
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold) var(--progress), rgba(244, 236, 218, 0.4) var(--progress));
}
.pl-seek::-moz-range-track { height: 0.45rem; border-radius: 999px; background: rgba(244, 236, 218, 0.4); }
.pl-seek::-moz-range-progress { height: 0.45rem; border-radius: 999px; background: var(--gold); }
.pl-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.2rem; height: 1.2rem;
  margin-top: -0.375rem;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--pl-ink);
}
.pl-seek::-moz-range-thumb {
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--pl-ink);
  box-sizing: border-box;
}
.pl-seek:focus-visible { outline-offset: 1px; }
@media (pointer: coarse) { .pl-seek { height: 2.75rem; margin: 0; } }  /* a finger-sized slider */

.pl-chapters-box, .pl-keys {
  margin-top: 0.75rem;
  border-top: 1px solid var(--pl-line);
  padding-top: 0.6rem;
}
.pl-chapters-box summary, .pl-keys summary { cursor: pointer; font-weight: 700; padding-block: 0.55rem; }
.pl-keys summary { font-weight: 600; font-size: 0.95rem; color: var(--pl-soft); min-height: 2.75rem; }
.pl-chapters { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.pl-chapter {
  width: 100%;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.5rem;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  color: var(--pl-ink);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
  min-height: 2.75rem;
  align-items: center;
  cursor: pointer;
}
@media (hover: hover) { .pl-chapter:hover:not(:disabled) { background: var(--pl-hover); } }
.pl-chapter:disabled { cursor: default; color: var(--pl-soft); }
.pl-chapter[aria-current="true"] { border-left-color: var(--gold); background: rgba(226, 183, 91, 0.14); font-weight: 700; }
.pl-chapter-time { font-variant-numeric: tabular-nums lining-nums; color: var(--pl-soft); }
.pl-keys dl { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.pl-keys dl div { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 0.75rem; }
.pl-keys dd { margin: 0; }
.pl-chapters-note { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--pl-soft); }
@media (hover: none) and (pointer: coarse) { .pl-keys { display: none !important; } }  /* no keyboard on a phone */
.pl-keys kbd { background: transparent; color: var(--pl-ink); border-color: var(--pl-soft); }

.player-extras {
  --pl-ink: var(--ink);
  --pl-soft: var(--ink-soft);
  --pl-line: var(--line);
  --pl-hover: var(--paper-2);
  color: var(--ink);
}
.player-extras .note { margin: 0.75rem 0 0; max-width: 46rem; }
.player-extras .pl-chapters-box { border-top: 0; max-width: 46rem; }
.player-extras .pl-keys { max-width: 46rem; }
.player-extras .pl-chapter[aria-current="true"] { background: var(--gold-soft); }

.player-heading { font-size: 1.15rem; margin: 0.5rem 0 0; }
.featured-body > .player { margin-block: 0.75rem; }

/* trailer: a gold-framed teaser above the full episode */
.trailer {
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.25rem;
  margin-block: 0.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.trailer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin-bottom: 0.4rem; }
.trailer-title { font-size: 1.35rem; margin: 0; }
.trailer-length { font-variant-numeric: tabular-nums lining-nums; }
.trailer-text { margin-bottom: 0.75rem; }
.trailer .player { --pl-bg: #3a2c12; box-shadow: none; }
.trailer .note { margin: 0.6rem 0 0.75rem; }
.badge-trailer { border-color: var(--gold); color: var(--ink); }  /* outlined: beside the gold "Hörprobe" badge */
@media (prefers-color-scheme: dark) {
  .trailer .player { --pl-bg: #2c2412; border-color: #4a3d1f; }
}

/* ---------------------------------------------------------------- prose pages */

.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 2.2rem; }
.prose > h2:first-child { margin-top: 0; }
.page-head:not(:has(.lead)) { padding-bottom: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; margin: 0; }
.steps > .step {
  counter-increment: step;
  position: relative;
  padding: 0.25rem 0 0.5rem 3.75rem;
  margin-bottom: 1.5rem;
}
.steps > .step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--on-forest);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  font-variant-numeric: lining-nums;
}
.steps > .step h2 { margin-top: 0.15rem; font-size: 1.5rem; }
@media (max-width: 30rem) {  /* phones: the number sits beside the heading, the text uses the full width */
  .steps > .step { padding-left: 0; }
  .steps > .step h2 { display: flex; align-items: center; min-height: 2.6rem; padding-left: 3.4rem; }
}
.principles { display: grid; gap: 0.25rem 1.5rem; }
.principles dt { font-family: var(--font-head); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.2rem; }
.principles dd { margin: 0 0 1rem; }
@media (min-width: 40rem) {
  .principles { grid-template-columns: 11rem 1fr; }
  .principles dd { margin: 0 0 0.75rem; }
}

/* ---------------------------------------------------------------- wishlist */

.wish-section { margin-bottom: 2.5rem; }
.wish-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.wish-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 0.75rem;
}
.wish-item-linked { border-color: var(--forest); border-width: 2px; }
.wish-title { font-size: 1.25rem; margin-bottom: 0.4rem; }
.wish-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.pd { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--sp-5); font-weight: 700; }
.pd svg { width: 1rem; height: 1rem; fill: currentColor; }
.wish-text { margin: 0; font-size: 1.02rem; }
.wish-aside { display: grid; gap: 1.25rem; padding-bottom: 3rem; }
@media (min-width: 52rem) { .wish-aside { grid-template-columns: 1fr 1fr; } }
.rule-panel { padding: 1.25rem 0 0; }
.rule-panel h2, .wish-aside .soon-panel h2 { font-size: 1.4rem; }

.not-found { text-align: center; }
.not-found img { border-radius: var(--radius); margin-bottom: 1rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { color: var(--footer); margin-top: 2rem; }
/* a page that ends in a tinted section: the forest grows out of it, without a strip of plain paper between */
main:has(> .section-tinted:last-child) + .site-footer { margin-top: 0; background: var(--paper-2); }
.forest-band { display: block; width: 100%; height: clamp(4.5rem, 9vw, 7.5rem); }
.footer-body {
  background: var(--footer);
  color: #e9e1cb;
  padding-block: 1.5rem 2rem;
  margin-top: -1px;
}
.footer-body a { color: #f4ecda; }
.footer-grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 22rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
  .footer-about { grid-column: 1 / -1; }
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem 3rem; }
  .footer-about { grid-column: auto; }
}
.footer-brand {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.footer-brand span { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: 1rem; }
.footer-about p { font-size: 1rem; }
.footer-privacy { font-weight: 700; }
.footer-heading { font-weight: 700; margin: 0 0 0.35rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-links li { padding-block: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-links li:not(:has(a)) { padding-block: 0.3rem; }
.footer-copy { margin-top: 1rem; font-size: 0.92rem; opacity: 0.85; }
.site-footer :focus-visible { outline-color: #f2c66d; }

/* ---------------------------------------------------------------- motion, print */

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

@media print {
  .site-header nav, .site-footer, .player, .player-dock, .hero-actions, .follow, .tr-time { display: none !important; }
  body { background: #fff; color: #000; }
  .tr-line { break-inside: avoid; }
}
