@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrumentsans-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrumentsans-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/fraunces-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/fraunces-italic.woff2) format("woff2");
}

/* Palette: #ffd9da #ea638c #89023e #30343f #1b2021 */
:root {
  color-scheme: light dark;
  --paper: #fdecec;
  --surface: #ffd9da;
  --ink: #1b2021;
  --ink-2: #30343f;
  --ink-3: color-mix(in srgb, #30343f 70%, var(--paper));
  --line: color-mix(in srgb, #ea638c 35%, transparent);
  --accent: #89023e;
  --accent-2: #ea638c;
  --icon: #ea638c;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b2021;
    --surface: #30343f;
    --ink: #ffd9da;
    --ink-2: color-mix(in srgb, #ffd9da 78%, var(--paper));
    --ink-3: color-mix(in srgb, #ffd9da 62%, var(--paper));
    --line: color-mix(in srgb, #ea638c 30%, transparent);
    --accent: #ea638c;
    --accent-2: #89023e;
    --icon: #ea638c;
  }
}

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

body {
  margin: 0;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  animation: fade .25s ease-out both;
}
@keyframes fade { from { opacity: 0; } }

main, .col { max-width: 40rem; margin-inline: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .9em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg.i { width: 1rem; height: 1rem; fill: currentColor; flex: none; vertical-align: -0.15em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color .15s, text-decoration-color .15s, background-color .15s;
}
a:hover { text-decoration-color: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; top: -3rem; left: 1rem; background: var(--ink); color: var(--paper); padding: .4rem .8rem; border-radius: 0 0 .4rem .4rem; }
.skip:focus { top: 0; }

/* prose: serif for anything longer than a line */
.prose { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; font-variation-settings: "opsz" 14, "SOFT" 0, "WONK" 0; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-thickness: 1px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

/* ---------- header ---------- */
.head { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; align-items: center; }
.head img { width: 6rem; height: 6rem; border-radius: .75rem; object-fit: cover; }
.head .sub { color: var(--ink-3); margin-top: .1rem; }
.links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .6rem; font-size: .875rem; }
.links a, .links button {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--ink-2); text-decoration: none;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.links a:hover, .links button:hover { color: var(--accent); }
.links .i { color: var(--icon); }
.lede { margin-top: 1.75rem; }

.back { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--ink-3); text-decoration: none; margin-bottom: 2rem; }
.back:hover { color: var(--accent); }

/* ---------- sections & rows ---------- */
section { margin-top: 3rem; }
.label {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; color: var(--ink-3); margin-bottom: .5rem;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label a { color: inherit; text-decoration: none; order: 1; }
.label a:hover { color: var(--accent); }

.rows > * {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .25rem 1rem; align-items: baseline;
  padding: .55rem .5rem; margin-inline: -.5rem;
  border-top: 1px solid var(--line); border-radius: .3rem;
  font-variant-numeric: tabular-nums;
}
.rows > *:first-child { border-top: 0; }
.rows > *:hover { background: var(--surface); }
.rows a { color: var(--ink); text-decoration: none; }
.rows a:hover { color: var(--accent); }
.rows .when, .rows .end { color: var(--ink-3); font-size: .875rem; white-space: nowrap; }
.rows .when { min-width: 5.5rem; }
.rows .end a { color: var(--accent); }
.rows .sub { color: var(--ink-3); font-size: .875rem; display: block; }
.rows .cover { width: 1.75rem; align-self: center; border-radius: 2px; }
.rows .note { grid-column: 1 / -1; color: var(--ink-3); font-size: .875rem; }
.rows > *:has(.note):hover { background: none; }

/* skeleton */
.rows .ph span { display: block; height: .8em; border-radius: .25em; background: var(--surface); animation: pulse 1.2s ease-in-out infinite alternate; }
.rows .ph span:first-child { width: 4.5rem; } .rows .ph span:last-child { width: 3rem; }
@keyframes pulse { to { opacity: .45; } }

/* ---------- podcasts ---------- */
.show { margin-top: 1.25rem; }
.show + .show { margin-top: 2.25rem; }
.show-head { display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: start; }
.show-head img { border-radius: .3rem; width: 2.5rem; }
.show-head h2 { font-size: 1rem; }
.show-head p { color: var(--ink-2); font-size: .9375rem; margin-top: .15rem; }
.show-head .links { margin-top: .4rem; }
.show iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: .6rem; margin-top: .9rem; background: var(--surface); }
.show .rows { margin-top: .5rem; }

/* ---------- book page ---------- */
.book { display: grid; grid-template-columns: 11rem 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.book img { border-radius: .2rem; box-shadow: 0 1px 0 var(--line); }
.book h1 { font-size: 1.6rem; }
.book .sub { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-2); margin-top: .25rem; font-variation-settings: "opsz" 18, "SOFT" 0, "WONK" 0; }
.book .meta { color: var(--ink-3); font-size: .875rem; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  background: var(--accent); color: var(--paper); padding: .5rem .9rem; border-radius: .4rem;
  text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* ---------- episodes (quellen) ---------- */
.episode { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.episode:first-child { border-top: 0; padding-top: .5rem; }
.episode header { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.episode h2 { font-size: 1.05rem; }
.episode .when { color: var(--ink-3); font-size: .875rem; font-variant-numeric: tabular-nums; }
.episode .skript { margin-top: .4rem; font-size: .9375rem; }
.episode .body { margin-top: .25rem; color: var(--ink-2); overflow-wrap: anywhere; }
.episode .body p { margin: 0 0 .7em; }
.episode .body p:last-child { margin-bottom: 0; }
.episode .fix { margin-top: 1rem; padding: .75rem .9rem; background: var(--surface); border-radius: .4rem; }
.episode .fix b { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--ink-3); margin-bottom: .25rem; }
details { margin-top: .5rem; }
details summary { cursor: pointer; color: var(--ink-3); font-size: .875rem; padding-block: .35rem; width: fit-content; }
details summary:hover { color: var(--accent); }

/* ---------- legal ---------- */
.legal h1 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.legal h2 { margin-top: 2rem; margin-bottom: .4rem; }
.legal h3 { font-size: .9375rem; margin-top: 1.25rem; margin-bottom: .25rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25rem; }

/* ---------- footer ---------- */
footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .8125rem; color: var(--ink-3); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .end { margin-left: auto; }

@media (max-width: 30rem) {
  body { padding-top: 1.5rem; }
  .head { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
  .head img { width: 4.5rem; height: 4.5rem; }
  .rows > * { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .when { grid-column: 1 / -1; min-width: 0; }
  .rows .cover { display: none; }
  .book { grid-template-columns: 1fr; }
  .book img { max-width: 11rem; }
}
