/* The Double Blind: retro science-poster palette, sampled from the cover */
:root {
  --paper: #faedcb;
  --paper-deep: #f2e0b5;
  --ink: #1b1812;
  --ink-soft: #4a4337;
  --red: #eb3b05;
  --red-deep: #c23104;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --rule: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* faint print grain */
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.label {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .2rem .55rem;
  background: var(--ink);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 18px; padding-bottom: 14px;
  border-bottom: var(--rule);
}
.wordmark { font-family: var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; font-size: 1.05rem; }
.masthead nav { display: flex; gap: 1.1rem; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
@media (max-width: 420px) { .masthead nav a:first-child { display: none; } }

/* hero */
.hero {
  display: grid; gap: 28px; align-items: center;
  padding-top: 40px; padding-bottom: 48px;
  border-bottom: var(--rule);
}
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; } }
.hero h1 {
  margin: 0;
  font: 400 clamp(3.4rem, 13vw, 7.6rem)/.86 var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.tagline { max-width: 32ch; margin: 1.25rem 0 1.5rem; font-size: 1.25rem; line-height: 1.45; }
.hero-cover { width: 100%; max-width: 460px; justify-self: center; border: var(--rule); box-shadow: 10px 10px 0 var(--ink); }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  background: var(--ink); color: var(--paper);
  font: 600 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }

/* latest episode */
.feature { padding-top: 44px; padding-bottom: 48px; border-bottom: var(--rule); }
.feature h2 { margin: 0 0 .75rem; font: 400 clamp(1.8rem, 5vw, 3rem)/1.02 var(--display); text-transform: uppercase; max-width: 22ch; }
.feature h2 a { text-decoration: none; }
.lede { max-width: 62ch; font-size: 1.15rem; margin: 0 0 1.25rem; }
.meta { color: var(--ink-soft); margin: .75rem 0 0; }
audio { width: 100%; max-width: 640px; display: block; accent-color: var(--red); }

/* episode list */
.section-title {
  margin: 0 0 1.25rem;
  font: 400 1.6rem/1 var(--display); text-transform: uppercase;
  display: flex; align-items: center; gap: .75rem;
}
.section-title::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
#episodes, .about { padding-top: 44px; padding-bottom: 44px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.rows li { border-bottom: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 4px; text-decoration: none; }
.row:hover { background: var(--paper-deep); color: var(--ink); }
.row:hover .row-arrow { color: var(--red); transform: translateX(4px); }
.row-num { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1 var(--display); color: var(--red); min-width: 2.6ch; }
.row-body { display: flex; flex-direction: column; gap: 4px; }
.row-title { font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.row-meta { color: var(--ink-soft); }
.row-arrow { font: 400 1.4rem/1 var(--display); transition: transform .15s ease; }
.empty { padding: 18px 4px; }

/* about */
.about { border-top: var(--rule); }
.about-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.about p { margin: 0 0 1rem; max-width: 62ch; }
.hosts { display: grid; gap: 14px; align-content: start; }
.host { border: var(--rule); padding: 16px 18px; background: var(--paper-deep); box-shadow: 6px 6px 0 var(--ink); }
.host h3 { margin: 0 0 .35rem; font: 400 1.3rem/1 var(--display); text-transform: uppercase; }
.host:first-child h3 { color: var(--red); }
.host p { margin: 0; font-size: .98rem; }

/* episode page */
.episode { padding-top: 40px; padding-bottom: 56px; }
.episode-title { margin: 0 0 1rem; font: 400 clamp(2.2rem, 7vw, 4.4rem)/.95 var(--display); text-transform: uppercase; max-width: 20ch; }
.episode-grid { display: grid; gap: 40px; margin-top: 44px; }
@media (min-width: 960px) { .episode-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; } .episode-grid aside { position: sticky; top: 24px; align-self: start; } }
.transcript { border-top: var(--rule); padding-top: 8px; }
.turn { margin: 0; padding: 12px 0; border-bottom: 1px dashed rgba(27, 24, 18, .25); max-width: 68ch; }
.speaker { display: block; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 2px; }
.turn-maya .speaker { color: var(--red-deep); }
.sources { margin: 0 0 1.75rem; padding-left: 1.4rem; border-top: var(--rule); padding-top: 14px; font-size: .95rem; }
.sources li { margin-bottom: .55rem; padding-left: .2rem; }
.sources li::marker { font-family: var(--mono); color: var(--red-deep); }
.sources a { overflow-wrap: anywhere; }

/* footer */
.footer { border-top: var(--rule); padding-top: 18px; padding-bottom: 36px; color: var(--ink-soft); }
.footer p { margin: .25rem 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
