:root {
  --bg: #0a0a0a;
  --bg-raised: #131313;
  --line: #262626;
  --text: #ededed;
  --text-muted: #8a8a8a;
  --accent: #e10600;
  --focus: #4da3ff;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 760px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 48px 0 32px;
}

.logo {
  height: 100px;
  display: block;
  margin-bottom: 18px;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text);
  max-width: 300ch;
  margin: 0 0 24px;
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.subscribe a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.subscribe a:hover,
.subscribe a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Sections */
main.wrap { padding: 40px 24px 0; }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Featured episode */
.latest { margin-bottom: 56px; }

.episode--featured h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.15;
}

.episode--featured time {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.episode--featured p {
  max-width: 68ch;
  color: #cfcfcf;
}

.player {
  margin-top: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.player iframe { display: block; border: none; }

/* Episode list */
.episodes { margin-bottom: 56px; }

.episodes-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 4px;
}

.filters input::placeholder { color: var(--text-muted); }

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.episode-list > .episode {
  border-bottom: 1px solid var(--line);
}

.episode-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
}

.episode-toggle:hover .episode-title,
.episode-toggle:focus-visible .episode-title {
  color: var(--accent);
}

.episode-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

.episode-toggle time {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.episode-body {
  display: none;
  padding: 0 0 22px;
}

.episode-body p {
  color: #cfcfcf;
  max-width: 68ch;
  margin: 0 0 14px;
}

.episode.is-open .episode-body { display: block; }

.empty-state {
  color: var(--text-muted);
  padding: 24px 0;
}

/* Related links */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.links a:hover, .links a:focus-visible { color: var(--text); }

/* Porra */
.porra-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.porra-section .eyebrow {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.porra-section .links {
  border-top: none;
  padding: 0;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0 0 14px; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.site-footer nav a { text-decoration: none; color: var(--text-muted); }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--text); }

.license a { color: var(--text-muted); }

@media (max-width: 560px) {
  .episode--featured h2 { font-size: 1.5rem; }
  .site-header { padding-top: 32px; }
}
