/* Underhood site styles. Tokens live in /tokens.css, linked from every page (never pulled in from here). */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* the paper: a faint grain over the whole page */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.48 0 0 0 0 0.42 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * {
  position: relative;
  z-index: 1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  flex: none;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 32px);
  }
}

/* ---------- controls: one height per size, pill, real depth */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h-control);
  padding: 0 18px;
  border-radius: var(--r-control);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm), var(--rim);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--rim);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}
.btn.lg {
  height: var(--h-control-lg);
  padding: 0 22px;
  font-size: 16px;
}
.btn.ink {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
  box-shadow:
    0 1px 2px rgba(var(--shadow-ink), 0.12),
    0 8px 20px rgba(var(--shadow-ink), 0.2);
}
.btn.ink:hover {
  box-shadow:
    0 2px 4px rgba(var(--shadow-ink), 0.12),
    0 14px 32px rgba(var(--shadow-ink), 0.26);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--h-control);
  height: var(--h-control);
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-xs), var(--rim);
}
.icon-btn:hover {
  box-shadow: var(--shadow-sm), var(--rim);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn .in-light {
  display: var(--show-in-light);
}
.icon-btn .in-dark {
  display: var(--show-in-dark);
}

/* ---------- header */
.top {
  position: relative;
  z-index: 20;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  height: var(--h-control);
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand .mark svg {
  width: 18px;
  height: 18px;
  margin: 0;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  height: var(--h-control);
  padding: 0 12px;
  border-radius: var(--r-control);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.top nav a:not(.btn):hover {
  color: var(--ink);
  background: var(--wash);
}
@media (max-width: 480px) {
  .top nav a.hide-sm {
    display: none;
  }
}

/* ---------- hero: the first viewport */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero::before {
  /* the soft light behind the wordmark, as on the channel banner */
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(880px, 120vw);
  height: 440px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 12.5vw, 136px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.wordmark .u {
  position: relative;
  display: inline-block;
}
.wordmark .u::after {
  /* the stroke under part of the word, one of the brand's two marks */
  content: '';
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: -0.15em;
  height: 0.055em;
  border-radius: 1em;
  background: currentColor;
}
.tagline {
  margin-top: clamp(28px, 4vw, 40px);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.005em;
  color: var(--ink-2);
}
.lede {
  margin-top: 18px;
  max-width: 560px;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.cadence {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cadence::before,
.cadence::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}
/* the fanned stack of episode art: three sheets, a real stack with layered shadows */
.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 40px;
  padding: 10px 0 14px;
  text-decoration: none;
}
.fan span {
  display: block;
  width: 132px;
  aspect-ratio: 9 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-md);
  transition: transform 0.25s ease;
}
.fan span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fan span:nth-child(1) {
  transform: rotate(-7deg) translate(14px, 10px);
}
.fan span:nth-child(2) {
  transform: translateY(-4px);
  z-index: 1;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-lg);
}
.fan span:nth-child(3) {
  transform: rotate(7deg) translate(-14px, 10px);
}
.fan:hover span:nth-child(1) {
  transform: rotate(-10deg) translate(4px, 8px);
}
.fan:hover span:nth-child(3) {
  transform: rotate(10deg) translate(-4px, 8px);
}
.fan:hover span:nth-child(2) {
  transform: translateY(-10px);
}
@media (max-width: 480px) {
  .fan span {
    width: 92px;
  }
  .fan {
    margin-top: 30px;
  }
}
@media (max-height: 700px) and (min-width: 481px) {
  .fan {
    display: none;
  }
}

/* ---------- sections */
.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
}
.section-head p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.episodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 860px) {
  .episodes {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}
.ep {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 12px 12px 18px;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-md),
    var(--rim);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ep:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-lg),
    var(--rim);
}
.ep-art {
  margin: 0;
  border-radius: var(--r-art);
  overflow: hidden;
  aspect-ratio: 9 / 10;
  background: #f1eee6;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.06);
}
.ep-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 8px 0;
}
.ep-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ep-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.ep-title {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.2;
}
.ep-summary {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
}
.ep-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  min-height: 32px;
}
.ep-watch,
.ep-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
}
.ep-watch {
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.ep-watch svg {
  width: 15px;
  height: 15px;
}
.ep-soon {
  background: var(--paper-2);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ep-soon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* about: a sheet of paper laid on the page, two columns */
.about {
  padding-bottom: 96px;
}
.sheet {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-md),
    var(--rim);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 760px) {
  .sheet {
    grid-template-columns: 1fr;
  }
}
.sheet h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}
.sheet .col p + p {
  margin-top: 12px;
}
.sheet .col p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: pretty;
}
.sheet h2 + p {
  margin-top: 16px;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.facts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.facts li:first-child {
  border-top: 0;
  padding-top: 0;
}
.facts li:last-child {
  padding-bottom: 0;
}
.facts .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.facts .glyph svg {
  width: 21px;
  height: 21px;
  margin: 0;
}
.facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.facts span:not(.glyph) {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- prose pages (legal, 404) */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 32px;
}
.prose h1 {
  font-size: clamp(34px, 5vw, 44px);
}
.prose .updated {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.prose h2 {
  font-size: 22px;
  margin-top: 36px;
}
.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.65;
}
.prose p {
  margin-top: 14px;
}
.prose ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.prose li + li {
  margin-top: 8px;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 6px;
}
.prose .btn {
  margin-top: 8px;
}

/* ---------- footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 64px;
  color: var(--ink-2);
  font-size: 14px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-top .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--h-control);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.mode-switch {
  display: inline-flex;
  height: var(--h-control);
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mode-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.mode-switch button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.mode-switch svg {
  width: 15px;
  height: 15px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.foot-legal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 32px;
}
.foot-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}
/* the "Your privacy choices" link the kit renders into [data-sk-privacy-link]: the footer's size */
.foot-legal .sk-privacy-link {
  font-size: 14px;
  min-height: 32px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}
footer nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
footer nav a:hover {
  color: var(--ink);
}
footer nav .footer-support {
  color: var(--ink);
}
