:root { color-scheme: light dark; --accent: #D84315; }
@media (prefers-color-scheme: dark) { :root { --accent: #FF8A65; } }
body {
  margin: 0 auto;
  max-width: 1020px;
  padding: 24px 16px 48px;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; margin-top: 2.5rem; }
.up { font-size: 0.85rem; display: block; }

/* The wherever.audio header: the site's icon, the brand above the title,
   and a way into the app. Inner pages use it smaller, with the way back
   where the title would be. */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 0.5rem; }
.head img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.head .titles { flex: 1; min-width: 0; }
.head .toprow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.head h1 { margin: 0; }
.head .eyebrow, .head .app { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.head .app { white-space: nowrap; }
.head.small { margin-bottom: 1rem; }
.head.small img { width: 40px; height: 40px; border-radius: 10px; }
.provenance { font-size: 0.85rem; opacity: 0.75; }
a { overflow-wrap: anywhere; }
.topics { margin-top: 1.5rem; padding-left: 2.2rem; }
.topics > li { margin-bottom: 2rem; }
.topics > li::marker { font-size: 0.9rem; opacity: 0.55; }
.topic { font-size: 1.15rem; font-weight: 600; }
.count, .when { font-size: 0.85rem; }
.count, .when .day, .when .sep { opacity: 0.6; }
/* Flame, as in the site icon, and never dimmed: how long an episode is
   decides what to queue. */
.when .dur { color: var(--accent); font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.strip img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.lead { margin: 0; padding-left: 1rem; font-size: 0.95rem; }
.lead .name { font-weight: 600; }
.lead .name::after { content: " —"; font-weight: 400; opacity: 0.6; }
.also { margin: 6px 0 0; font-size: 0.85rem; opacity: 0.75; }
.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px 32px;
  margin: 1rem 0 1.5rem;
}
.episode { display: flex; align-items: flex-start; gap: 10px; }
.episode img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.episode .name { font-weight: 600; }
.episode .name a { color: inherit; text-decoration: none; }
.opml-button {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.opml-button.secondary { font-weight: 400; opacity: 0.75; }
footer { margin-top: 4rem; font-size: 0.85rem; opacity: 0.75; }
footer p { margin: 0 0 0.5rem; }
[hidden] { display: none !important; }

/* Topic-page filters: two segmented choices, the chosen one in flame. */
.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0.75rem 0 1rem; }
.seg { display: inline-flex; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; overflow: hidden; }
.seg button {
  font: inherit;
  font-size: 0.85rem;
  padding: 5px 12px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.seg button + button { border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { color: #111; } }
