@import url(fonts.css);

:root {
  --bg: #f7f7f7;
  --card: #fff;
  --text: #333;
  --muted: #aaa;
  --rule: #e4e4e4;
  --accent: #c0392b;
  --dark: #111;
  --sans: Jost, "Futura PT", "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --width: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.3; color: var(--text); }
main { max-width: var(--width); margin: 0 auto; padding: 0 20px 60px; }

/* header */
.site-header {
  max-width: var(--width);
  margin: 0 auto;
  padding: 44px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--sans);
}
.brand { font-size: 26px; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.site-title { color: var(--text); font-weight: 500; }
.tagline { color: #c4c4c4; }
.site-nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a { color: var(--text); }
.site-nav a[aria-current] { color: var(--accent); }

/* episode grid */
.intro { text-align: center; max-width: 720px; margin: 0 auto 48px; color: #555; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; align-items: start; }
.card { background: var(--card); text-align: center; }
.card > a { display: block; color: inherit; padding-bottom: 28px; }
.card > a:hover { text-decoration: none; }
.card > a:hover h2 { color: var(--accent); }
.card-image { aspect-ratio: 8 / 3; overflow: hidden; background: #ddd; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card > a:hover .card-image img { transform: scale(1.03); }
.card h2 { font-size: 20px; margin: 14px 24px 10px; }
.meta { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }

.date-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  margin: -25px auto 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-family: var(--sans);
  line-height: 1;
}
.date-badge .month { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.date-badge .day { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* episode page */
.episode .banner { aspect-ratio: 3 / 2; max-height: 640px; width: 100%; overflow: hidden; background: #ddd; }
.episode .banner img { width: 100%; height: 100%; object-fit: cover; }
.episode h1 { text-align: center; font-size: 34px; margin: 18px 0 8px; }
.episode > .meta { text-align: center; }
.episode-columns { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 80px; max-width: 810px; margin: 56px auto 0; }
.episode-body { font-size: 16px; line-height: 1.75; }
.sidebar h3 { font-size: 15px; margin: 0 0 22px; }
.sidebar .latest { display: block; color: var(--text); font-family: var(--sans); padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.sidebar .latest img { margin-bottom: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.sidebar .latest strong { display: block; font-weight: 500; font-size: 17px; line-height: 1.25; }
.sidebar .latest span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.sidebar .button { display: block; text-align: center; }

.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; font-family: var(--sans); font-size: 14px; }
.pager .newer { text-align: right; }

.more { border-top: 1px solid var(--rule); margin-top: 80px; padding-top: 60px; }
.more h3 { text-align: center; font-size: 19px; margin: 0 0 36px; }

/* audio player */
.player { margin: 32px 0 8px; }
.player audio { width: 100%; }
.player .download { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mm-player { display: flex; align-items: stretch; background: #1a1a1a; color: #fff; min-height: 56px; font-family: var(--serif); }
.mm-player button { flex: 0 0 50px; border: 0; border-right: 1px solid #333; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.mm-player button svg { width: 18px; height: 18px; fill: currentColor; }
.mm-player button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.mm-info { flex: 1; min-width: 0; padding: 8px 14px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.mm-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #999; }
.mm-row input[type=range] { flex: 1; min-width: 0; accent-color: #fff; height: 16px; margin: 0; }
.mm-time { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* text pages */
.prose { max-width: 640px; margin: 0 auto; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 16px; margin-top: 32px; }
.prose h3.lede { font-size: 15px; font-weight: 600; margin-top: 0; }
.prose figure { margin: 56px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose code { font-size: 15px; background: #eee; padding: 3px 8px; word-break: break-all; }
.center { text-align: center; }
.button {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.button:hover { background: var(--accent); text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 70px 20px 90px; text-align: center; font-size: 16px; }
.listen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0; }
.listen-button { display: inline-flex; align-items: center; gap: 7px; background: #000; color: #fff; padding: 12px 14px; font-size: 16px; }
.listen-button:hover { text-decoration: none; background: #333; }
.listen-button svg { width: 16px; height: 16px; }
.copyright { font-size: 13px; color: var(--muted); margin-top: 40px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .episode-columns { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { max-width: 320px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header { padding: 24px 16px 28px; }
  .brand { font-size: 21px; }
  .tagline { display: block; font-size: 16px; margin-top: 4px; }
  .site-nav { gap: 16px; font-size: 12px; }
  main { padding: 0 16px 40px; }
  .grid { grid-template-columns: 1fr; }
  .episode h1 { font-size: 26px; }
  .episode-columns { margin-top: 32px; }
  .pager { flex-direction: column; }
  .pager .newer { text-align: left; }
}
.prose .email-image { display: inline-block; vertical-align: middle; }
