/* Scaling Theory pages (inc/render.php). The site's own type and colours: Roboto Mono from the theme, ink #161616,
   links #00225E, the grey ground #F2F2F2 of the home page, white panels edged in light grey. The colour comes from
   the podcast's artwork only: the banner, the drawn visuals of the episodes and, on an episode's page, its cover. */

.st {
  background: #f2f2f2;
  color: #161616;
  font-size: 15px;
  line-height: 1.7;
  padding: 64px 0 96px;
}
.st a { color: #00225e; }
.st a:focus-visible,
.st-banner a:focus-visible,
.st input:focus-visible {
  outline: 2px solid #00225e;
  outline-offset: 3px;
}
.st-banner a:focus-visible { outline-color: #fff; }
.st-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.st h2, .st h3, .st h4 { font-family: inherit; color: #1f1f1f; }

/* ------------------------------------------------------------------ banner (the theme's, with the artwork) */
.st-banner {
  background-size: cover;
  background-position: 50% 45%;
}
.st-banner .st-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
.st-banner .st-kicker a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.st-banner-episode .infinite-page-title-content {
  padding-top: 64px;
  padding-bottom: 58px;
}
.st-banner .infinite-page-title.st-ep-title {
  max-width: 940px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

/* ------------------------------------------------------------------ section titles: lower case, like the home page's */
.st .st-h2 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ buttons */
.st-listen,
.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}
.st .st-btn {
  display: inline-block;
  padding: 8px 16px 7px;
  border: 1px solid #161616;
  background: #fff;
  color: #161616;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.st .st-btn:hover { background: #00225e; border-color: #00225e; color: #fff; }
.st .st-btn-dark { background: #161616; color: #fff; }
.st .st-btn-quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.st .st-btn-quiet:hover { background: transparent; border-color: transparent; color: #00225e; }

/* ------------------------------------------------------------------ dates, numbers, lengths */
.st-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6670;
}
.st-meta b { color: #161616; font-weight: 700; }

/* ------------------------------------------------------------------ landing: what the podcast is */
.st-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}
.st .st-lead {
  margin: 0 0 26px;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -.01em;
}
.st-intro-text p { max-width: 64ch; margin: 0 0 16px; }
.st .st-tally { color: #5c6670; margin-bottom: 0; }
.st-intro-cover { margin: 0; }
.st-intro-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------------ landing: the latest episode */
.st-latest { margin-top: 80px; }
.st-feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e3e3e3;
}
.st-feature-img { display: block; }
.st .st-feature-title {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}
.st .st-feature-title a { color: #161616; text-decoration: none; }
.st .st-feature-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st .st-guest { margin: 0 0 14px; color: #5c6670; }
.st-feature-excerpt { margin: 0; max-width: 70ch; }

/* ------------------------------------------------------------------ the grid of episodes */
.st-all { margin-top: 80px; }
.st-all-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 28px;
  margin-bottom: 26px;
}
.st .st-all-head .st-h2 { margin: 0; }
.st-filter input {
  width: 300px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  background: #fff;
  color: #161616;
  font: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.st .st-count { margin: 0 0 0 auto; font-size: 13px; color: #5c6670; }
.st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-grid > li { margin: 0; padding: 0; }
.st-grid > li::before { content: none; }
.st .st-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  color: #161616;
  text-decoration: none;
}
/* the drawn visual of an episode (inc/art.php): the cover's discs and lines, its grain, the guest's name */
.st-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #232323;
  color: #f7eae0;
  container-type: inline-size;
}
.st-art-svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}
.st-art::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url(grain.png);
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
}
.st-art::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 52%;
  background: linear-gradient(to top, rgba(20, 20, 20, .5), rgba(20, 20, 20, 0));
  pointer-events: none;
}
.st-art-name {
  position: absolute;
  right: 7%;
  bottom: 6.5%;
  left: 7%;
  z-index: 2;
  font-size: 20px;
  font-size: clamp(14px, 9.2cqi, 40px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.st-card-link:hover .st-art-svg { transform: scale(1.04); }
.st .st-card-title {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #161616;
}
.st-card-link:hover .st-card-title { text-decoration: underline; text-underline-offset: 3px; }
.st-card-guest {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6670;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.st-card[hidden] { display: none; }
.st-none { margin: 24px 0 0; }

/* ------------------------------------------------------------------ an episode */
.st-ep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.st .st-ep-guest { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: #161616; }
.st .st-ep-guest a { font-weight: 700; }
.st-video {
  position: relative;
  margin: 30px 0 0;
  padding-top: 56.25%;
  background: #000;
}
.st-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* the theme's script wraps YouTube iframes in a box with its own 16:9 padding: inside ours, it would double the
   height, so the box simply fills ours */
.st-video .gdlr-core-fluid-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-top: 0 !important;
}
.st-player { margin: 30px 0 0; }
.st-player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}
.st-ep-main .st-h2 { margin-top: 52px; }
.st-desc { max-width: 72ch; }
.st-desc p { margin: 0 0 16px; }
.st .st-desc .st-sub { margin: 34px 0 12px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.st .st-desc .st-sub2 { margin: 22px 0 8px; font-size: 15px; line-height: 1.5; font-weight: 700; }
.st-desc ul,
.st-desc ol { margin: 0 0 18px 20px; padding: 0; }
.st-desc li { margin: 0 0 8px; }
.st-desc a { overflow-wrap: anywhere; word-break: break-word; }
.st-ep-aside { position: sticky; top: 110px; }
.st-ep-cover { display: block; width: 100%; height: auto; }
.st-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.st .st-facts dt,
.st .st-facts dd {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
.st .st-facts dt { color: #5c6670; font-weight: 400; }
.st-more-links {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #d9d9d9;
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}
.st-more-links li { margin: 0 0 6px; padding: 0; }
.st-more-links li::before { content: none; }

/* previous and next */
.st-pager { margin-top: 72px; }
.st-pager-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.st .st-pager a {
  display: block;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e3e3e3;
  color: #161616;
  text-decoration: none;
}
.st .st-pager a span { display: block; margin-bottom: 4px; font-size: 13px; color: #5c6670; }
.st .st-pager a strong { font-size: 15px; line-height: 1.45; }
.st .st-pager a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.st-pager-next { text-align: right; }
.st-more { margin-top: 72px; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 999px) {
  .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-intro { grid-template-columns: minmax(0, 1fr); }
  .st-intro-cover { max-width: 340px; }
  .st-ep-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .st-ep-aside {
    position: static;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0 28px;
    align-items: start;
  }
  .st-ep-aside .st-facts { margin-top: 0; }
  .st-ep-aside .st-more-links { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .st { padding: 40px 0 64px; }
  .st .st-lead { font-size: 25px; }
  .st-latest, .st-all, .st-more, .st-pager { margin-top: 56px; }
  .st-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px; }
  .st-feature-img { max-width: 300px; }
  .st .st-feature-title { font-size: 21px; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .st .st-count { margin-left: 0; }
  .st-filter, .st-filter input { width: 100%; }
  .st-banner-episode .infinite-page-title-content { padding-top: 44px; padding-bottom: 40px; }
  body.st-podcast .st-banner .infinite-page-title.st-ep-title { font-size: 23px; line-height: 1.3; }
  .st-intro-cover { display: none; }
  .st-ep-aside { grid-template-columns: 120px minmax(0, 1fr); gap: 0 20px; }
  .st-pager-in { grid-template-columns: minmax(0, 1fr); }
  .st-pager-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .st-art-svg, .st .st-btn { transition: none; }
  .st-card-link:hover .st-art-svg { transform: none; }
}
