/* Theme from the Housed league page: indigo, iris, Poppins, hairline cards. */

:root {
  --char: #3a3b40;
  --mist: #c7ccef;
  --peri: #9aa3de;
  --iris: #6872c4;
  --indigo: #353f92;
  --violet: #382c7a;
  --deep: #261b52;
  --line: #e4e6f4;
  --wash: #f4f5fc;
  --soft: #6b6d78;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: #fff;
  color: var(--char);
  font: 400 15px/1.65 "LDL Poppins", Poppins, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--indigo);
}

::selection {
  background: var(--mist);
  color: var(--deep);
}

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

a { color: var(--indigo); }

a:hover { color: var(--violet); }

img, svg { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--indigo);
  color: #fff;
  padding: 8px 12px;
  z-index: 5;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.skip:focus {
  transform: none;
  color: #fff;
}

.site-nav {
  border-bottom: 1px solid var(--line);
}

.site-nav-inner,
.site-footer-inner,
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.wordmark {
  color: var(--indigo);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover { color: var(--deep); }

.page { padding-top: 28px; padding-bottom: 64px; }

.hero {
  border-bottom: 2px solid var(--indigo);
  padding: 8px 0 22px;
  margin-bottom: 8px;
}

.home .hero {
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.75rem;
}

.hero-copy {
  flex: 1 1 auto;
  max-width: 62ch;
  min-width: 0;
  text-align: left;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--char);
}

.hero p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 16px;
  max-width: 62ch;
}

.home .hero .tagline {
  margin: 0 0 1.75rem;
  color: var(--indigo);
  font-size: 1.35rem;
  line-height: 1.4;
  max-width: 62ch;
  font-weight: 400;
}

.intro { margin: 0; }

.home .intro p {
  margin: 0 0 1em;
  color: var(--char);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: none;
}

.home .intro p:last-child { margin-bottom: 0; }

.hero-art {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 36rem;
}

.home .feed-heading { margin-top: 0; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 600;
  margin: 0 0 10px;
}

.feed-heading {
  margin: 26px 0 12px;
  padding: 0;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 600;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-card a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--char);
  text-decoration: none;
  transition: background-color 120ms linear, border-color 120ms linear;
}

.feed-card a:hover,
.feed-card a:focus-visible {
  background: var(--wash);
  border-color: var(--peri);
  color: var(--char);
}

.feed-copy .kicker { margin-bottom: 6px; }

.feed-title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--char);
  text-wrap: balance;
}

.feed-teaser {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.feed-copy time {
  display: block;
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.mini-chart {
  margin: 0;
  min-width: 0;
}

.mini-chart svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  overflow: visible;
}

.mini-chart figcaption {
  margin-top: 6px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 200px;
}

.spk-l {
  font: 400 8px/1 "LDL Poppins", Poppins, Arial, sans-serif;
  fill: #6b6d78;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty {
  color: var(--soft);
  margin: 18px 0 0;
}

.toc {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--char);
}

.toc a:hover,
.toc a:focus-visible {
  background: var(--wash);
  border-color: var(--peri);
  color: var(--char);
}

.toc-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}

.toc-teaser {
  display: block;
  color: var(--soft);
  margin: 0;
}

.toc time {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.machine {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.site-footer-inner {
  padding-top: 18px;
  padding-bottom: 36px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer a {
  color: var(--indigo);
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 12px;
}

.mini-chart figcaption { text-wrap: balance; }

@media (min-width: 960px) {
  .hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero-copy { flex: 1 1 55%; }

  .hero-art {
    flex: 1 1 45%;
    width: auto;
    max-width: 45%;
  }

  .hero-art svg { max-width: none; }
}

@media (min-width: 720px) {
  .feed-card a {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }

  .mini-chart { justify-self: end; width: 240px; }

  .mini-chart figcaption { text-align: right; max-width: 240px; }
}

@media (max-width: 720px) {
  .site-nav-inner,
  .site-footer-inner,
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page { padding-top: 20px; padding-bottom: 48px; }

  .hero h1 { font-size: 28px; }

  /* Fixed 140px sparklines plus Mentions, Episodes and % eps were wider
     than a phone. Shrink the chart with its cell and tighten the type so
     every figure stays on screen. */
  body.stat .wrap { padding-left: 12px; padding-right: 12px; }
  body.stat .panel { padding: 2px 2px 4px; }
  body.stat td.name,
  body.stat .sp-cell,
  body.stat .sp-main,
  body.stat .sp-chart { min-width: 0; }
  body.stat .spark {
    width: 100%;
    max-width: 140px;
    min-width: 0;
    height: auto;
  }
  body.stat table { font-size: 12px; }
  body.stat th,
  body.stat td { padding: 5px 3px; }
  body.stat th {
    font-size: 10px;
    letter-spacing: 0;
  }
  body.stat td.r,
  body.stat th.r { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card a { transition: none; }
}

@media print {
  body::before,
  .skip,
  .site-nav,
  .site-footer { display: none; }

  .page { padding: 0; }
  a { text-decoration: none; }
}
