/* -----------------------------------------------
   Everyone Is Moving To Berlin — minimal styles
   ----------------------------------------------- */

:root {
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #c0392b;
  --border: #e0ddd8;
  --max-width: 680px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1e2e;
    --fg: #c8ccd8;
    --muted: #7a8090;
    --accent: #e05a4e;
    --border: #282d42;
  }
}

[data-theme="dark"] {
  --bg: #1a1e2e;
  --fg: #c8ccd8;
  --muted: #7a8090;
  --accent: #e05a4e;
  --border: #282d42;
}

[data-theme="light"] {
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #c0392b;
  --border: #e0ddd8;
}

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

html {
  font-size: 18px;
  line-height: 1.65;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Site hero (homepage) ---- */

.site-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0 2rem;
  margin-bottom: 2rem;
}

.cover-link {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
}

.cover-img {
  width: 210px;
  height: 210px;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 0;
  -webkit-user-select: none;
  user-select: none;
}

.site-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.tagline {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tagline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.tagline a:hover {
  color: var(--accent);
}

@media (min-width: 600px) {
  .tagline-byline { display: block; }
}

.hiatus-note {
  display: inline-block;
  margin: 0 0 2.25rem;
  font-size: 0.82rem;
  font-style: normal;
  color: #7c5e00;
  background: #fef9ec;
  border: 1px solid #f0d88a;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .hiatus-note {
    background: #201e00;
    border-color: #4a3e00;
    color: #d4a800;
  }
}

[data-theme="dark"] .hiatus-note {
  background: #201e00;
  border-color: #4a3e00;
  color: #d4a800;
}

[data-theme="light"] .hiatus-note {
  background: #fef9ec;
  border-color: #f0d88a;
  color: #7c5e00;
}

.subscribe-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.subscribe-icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.35em;
  flex-shrink: 0;
  overflow: visible;
}

.subscribe-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  color: var(--fg);
  background: var(--bg);
  white-space: nowrap;
  transition: border-color 0.15s;
}

.subscribe-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.hero-action-sep {
  color: var(--border);
  font-size: 0.9rem;
}

.hero-action-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}

.hero-action-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---- Sticky nav (episode pages) ---- */

.nav-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
}

.nav-home:hover {
  opacity: 0.75;
}

.sticky-nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 0.6rem 0 0.5rem;
  margin-bottom: 0.75rem;
  z-index: 100;
  display: flex;
  justify-content: center;
}

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

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ---- Episode list ---- */

.episodes-heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.episode-link {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s;
}

.episode-link:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .episode-link:hover { background: rgba(255, 255, 255, 0.06); }
}

[data-theme="dark"] .episode-link:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="light"] .episode-link:hover { background: rgba(0, 0, 0, 0.04); }

.episode-link:hover .episode-title {
  color: var(--accent);
}

.episode-number {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 2rem;
  text-align: right;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.episode-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.episode-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Episode page ---- */

.episode-page .episode-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.episode-page h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.episode-description {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.audio-player {
  margin: 1.5rem 0 2rem;
}

.audio-player audio {
  width: 100%;
}

.show-notes,
.transcript {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.show-notes h2,
.transcript > h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.transcript-body h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 2.5rem 0 0.75rem;
}

.show-notes ul {
  padding-left: 1.4rem;
}

.show-notes li {
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.show-notes li p {
  margin: 0;
}


/* ---- Transcript — new speech-block format ---- */

.transcript .speech-block {
  margin: 0 0 0.9rem;
}

.transcript .speaker-name {
  display: block;
  font-weight: 600;
  margin-bottom: -0.2rem;
}

.transcript .timestamp {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 0.15rem;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

.transcript .speech-block p {
  display: inline;
  margin: 0;
}

/* Legacy transcript format (fallback) */
.transcript p {
  margin: 0.75rem 0;
}

.transcript b[data-spk] {
  display: block;
  margin-top: 1.25rem;
  font-weight: 600;
}

.transcript a.pp-timestamp,
.transcript small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---- Imprint / simple pages ---- */

.simple-page h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.simple-page p {
  color: var(--fg);
  line-height: 1.8;
}

.back-link {
  font-size: 0.85rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Theme toggle button ---- */

.theme-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--muted);
}

/* ---- Responsive ---- */

@media (max-width: 520px) {
  html {
    font-size: 16px;
  }

  .cover-img {
    width: 160px;
    height: 160px;
  }
}
