/* y20k.org – Controller Show. Colors from the old site and the player. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e2e2e2;
  --link: #235973;
  --accent: #e64415;
  --surface: #e9f1f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191c;
    --text: #e6e6e6;
    --muted: #9aa4ab;
    --line: #2c3338;
    --link: #8cc3dd;
    --accent: #ff6a3d;
    --surface: #1f2a31;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 2rem 0 0.5rem; }
h1 { font-size: 1.75rem; margin-top: 0; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

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

/* Header: cover, name, tagline, subscribe links */
header.site {
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--accent);
}
header.site .show {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}
header.site .show img { border-radius: 8px; flex-shrink: 0; }
header.site .name { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
header.site .tagline { display: block; color: var(--muted); }

.subscribe { margin-top: 1rem; font-size: 0.95rem; }
.subscribe span { color: var(--muted); margin-right: 0.25rem; }
.subscribe ul { display: inline; margin: 0; padding: 0; list-style: none; }
.subscribe li { display: inline; }
.subscribe li + li::before { content: " · "; color: var(--muted); }

/* Overview */
.episodes { list-style: none; margin: 0; padding: 0; }
.episodes li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.episodes li:first-child { padding-top: 0; }
.episodes h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.episodes h2 a { text-decoration: none; }
.episodes p { margin: 0.25rem 0 0; }

.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }

/* Episode */
#player { margin: 1.5rem 0; min-height: 200px; }
audio { width: 100%; margin: 1.5rem 0; }

.shownotes ul, .shownotes ol { padding-left: 1.25rem; }
.shownotes li { margin: 0.2rem 0; }
.shownotes blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.shownotes table { border-collapse: collapse; display: block; overflow-x: auto; }
.shownotes th, .shownotes td { border: 1px solid var(--line); padding: 0.3rem 0.6rem; }

figure { margin: 1.25rem 0 0.25rem; }
figure img { display: block; border-radius: 6px; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* Footer */
footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9rem;
}
/* Items spread over the full width: first left, last right, the rest in between */
footer.site ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer.site a { color: inherit; }
footer.site a:hover { color: var(--accent); }
