/* Layout concept: a private library's card catalogue. Every episode is a filed
   entry with a shelf, a date, and a running time, set in old-book type. */
:root {
  color-scheme: dark;
  --ink: #141014;
  --ink-2: #1e171c;
  --rule: #4a3b33;
  --vellum: #efe5d0;
  --vellum-dim: #bdb09a;
  --gilt: #d3ad5c;
  --rose: #a33a4b;
  --display: "IM Fell DW Pica", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Alegreya Sans SC", "Gill Sans", "Trebuchet MS", sans-serif;
  --measure: 66ch;
}
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
.wrap { max-width: 1120px; margin-inline: auto; }
a { color: var(--gilt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--vellum); }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }

.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.brand { font-family: var(--display); font-size: 1.3rem; color: var(--vellum); text-decoration: none; }
.brand img { display: block; width: 112px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--label); font-size: 1.05rem; letter-spacing: .06em; }
.nav a { color: var(--vellum-dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--gilt); }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; padding-block: 32px 40px; align-items: center; }
.hero h1 { line-height: 0; }
.hero h1 img { display: block; width: 100%; height: auto; }
.hero p { font-size: 1.2rem; max-width: 34ch; margin: 0 0 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; font-family: var(--label); letter-spacing: .05em; font-size: 1.05rem; padding: 7px 16px 9px; border: 1px solid var(--gilt); color: var(--ink); background: var(--gilt); text-decoration: none; }
.btn:hover { background: var(--vellum); border-color: var(--vellum); color: var(--ink); }
.btn.quiet { background: transparent; color: var(--gilt); }
.btn.quiet:hover { background: var(--gilt); border-color: var(--gilt); color: var(--ink); }

.latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; background: var(--ink-2); border-top: 3px double var(--gilt); border-bottom: 3px double var(--gilt); padding: 32px clamp(16px, 4vw, 40px); }
.latest h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.latest h2 a { color: var(--vellum); text-decoration: none; }
.latest h2 a:hover { color: var(--gilt); }
.latest p { margin: 12px 0 0; max-width: var(--measure); }
.eyebrow { font-family: var(--label); letter-spacing: .08em; font-size: 1.05rem; color: var(--gilt); }

.section { padding-block: 56px 16px; }
.section > h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.lede { color: var(--vellum-dim); max-width: var(--measure); margin: 0 0 24px; }
.shelves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.shelf { padding: 20px; border-left: 1px solid var(--rule); color: var(--vellum); text-decoration: none; }
.shelf:first-child { border-left: 0; }
.shelf:hover { background: var(--ink-2); color: var(--vellum); }
.shelf b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gilt); font-variant-numeric: lining-nums; }
.shelf span { font-family: var(--label); letter-spacing: .05em; font-size: 1.1rem; }

.cat { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 5rem; gap: 4px 24px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.entry .meta { font-family: var(--label); letter-spacing: .04em; color: var(--vellum-dim); font-size: 1rem; line-height: 1.3; }
.entry .meta b { display: block; font-weight: 500; color: var(--rose); filter: brightness(1.35); }
.entry .run { text-align: right; font-family: var(--label); color: var(--vellum-dim); font-size: 1rem; font-variant-numeric: tabular-nums; }
.entry h3 { font-size: 1.5rem; }
.entry h3 a { color: var(--vellum); text-decoration: none; }
.entry h3 a:hover { color: var(--gilt); }
.entry .who { color: var(--gilt); font-style: italic; margin: 2px 0 0; }
.entry .sum { margin: 6px 0 0; color: var(--vellum-dim); font-size: 1rem; max-width: var(--measure); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button, .filters input { font: 1.05rem var(--label); letter-spacing: .04em; background: transparent; color: var(--vellum); border: 1px solid var(--rule); padding: 6px 14px 8px; }
.filters button { cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--gilt); border-color: var(--gilt); color: var(--ink); }
.filters input { flex: 1 1 220px; min-width: 0; letter-spacing: .02em; }
.filters input::placeholder { color: var(--vellum-dim); }

.page { padding-block: 48px 24px; }
.page h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); max-width: 18ch; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.9rem; margin: 40px 0 8px; }
.prose p { margin: 0 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 28px; font-family: var(--label); letter-spacing: .04em; color: var(--vellum-dim); }
.facts b { color: var(--gilt); font-weight: 500; }
.books { padding: 0; margin: 0 0 16px; list-style: none; }
.books li { font-style: italic; }
.transcript { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.transcript .speaker { display: block; font-family: var(--label); letter-spacing: .04em; color: var(--gilt); }
.linklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.linklist a { display: block; padding-block: 12px; border-bottom: 1px solid var(--rule); color: var(--vellum); text-decoration: none; font-family: var(--label); letter-spacing: .04em; font-size: 1.15rem; }
.linklist a:hover { color: var(--gilt); }

.form { display: grid; gap: 6px; margin-bottom: 24px; }
.form label { font-family: var(--label); letter-spacing: .04em; color: var(--gilt); margin-top: 12px; }
.form input, .form select, .form textarea { width: 100%; font: 1rem var(--body); color: var(--vellum); background: var(--ink-2); border: 1px solid var(--rule); padding: 10px 12px; }
.form input::placeholder { color: var(--vellum-dim); }
.form .sendrow { margin-top: 16px; }
.form button { cursor: pointer; }
.deck { font-size: 1.15rem; color: var(--vellum); }
.prose blockquote { margin: 24px 0; padding-block: 12px; border-top: 1px solid var(--gilt); border-bottom: 1px solid var(--gilt); }
.prose blockquote p { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; margin: 0 0 6px; }
.prose blockquote cite { font-family: var(--label); font-style: normal; color: var(--gilt); letter-spacing: .04em; }
.topics { padding-left: 1.2em; margin: 0 0 16px; }
.support { margin: 32px 0; padding: 4px 20px 16px; background: var(--ink-2); border: 1px solid var(--gilt); }
.support h2 { margin-top: 16px !important; font-size: 1.6rem; }
.support ul { padding-left: 1.2em; margin: 0; }
.foot { margin-top: 64px; padding-block: 24px 40px; border-top: 3px double var(--gilt); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--vellum-dim); font-size: 1rem; }
.foot a { color: var(--vellum-dim); }
.foot a:hover { color: var(--gilt); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
  .latest { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf:nth-child(odd) { border-left: 0; }
  .shelf:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .entry { grid-template-columns: minmax(0, 1fr) auto; }
  .entry .meta { grid-column: 1; }
  .entry .run { grid-column: 2; grid-row: 1; }
  .entry .body { grid-column: 1 / -1; }
}
