:root {
  --ink: #102033;
  --muted: #5b6570;
  --paper: #f3efe6;
  --card: #fffcf6;
  --line: #ddd4c4;
  --navy: #0f2744;
  --gold: #b8893a;
  --rust: #6b2c14;
  --teal: #0e4d4a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  background:
    radial-gradient(1200px 400px at 10% -10%, #e8dcc4 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fffcf6cc;
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: #f6ecd4;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
}
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
nav { display: flex; gap: 16px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.btn {
  display: inline-block;
  background: var(--navy); color: #fff !important;
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  text-decoration: none;
}
main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); letter-spacing: -0.035em; margin: 6px 0 12px; line-height: 1.05; }
.hero.tight h1 { font-size: clamp(26px, 4.5vw, 40px); }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--gold); margin: 0; }
.lede { color: var(--muted); max-width: 620px; font-size: 18px; line-height: 1.45; }
.latest { margin: 36px 0 28px; }
.latest-card {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  background: var(--navy); color: #f6ecd4;
  padding: 28px; border-radius: 20px; text-decoration: none;
}
.latest-card h2 { margin: 8px 0 10px; font-size: clamp(22px, 4vw, 32px); }
.latest-card .go { color: #e8c27a; white-space: nowrap; }
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: #ffffff18; color: #f6ecd4; font-size: 12px; margin-right: 6px;
}
.pill.night { background: #c9a22733; }
.pill.audio { background: #3d8f7a55; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px 18px; text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--navy); }
.card h2 { font-size: 20px; margin: 6px 0 8px; }
.when, .bits { color: var(--muted); font-size: 13px; margin: 0; }
.crumb { color: var(--muted); font-size: 14px; }
.crumb a { color: var(--teal); }
.sec { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); margin: 28px 0 12px; }
.counts { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.audio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.file {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px;
  overflow: hidden;
}
.file header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.file h2 { margin: 0; font-size: 22px; }
.file h2 em { font-style: normal; color: var(--muted); font-size: 14px; }
.kind {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px;
}
.hint { color: var(--muted); margin: -4px 0 14px; font-size: 15px; }
.sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-weight: 400; }
.key { margin: 28px 0 8px; }
.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.key-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.key-grid h3 { margin: 0 0 6px; font-size: 17px; }
.key-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.pair .featured { min-width: 0; }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pdf-wrap { isolation: isolate; }
.pdf-frame {
  position: relative;
  width: 100%;
  height: min(62vh, 640px);
  border-radius: 12px;
  overflow: hidden;
  background: #1a222b;
}
.pdf-frame.mid { height: min(58vh, 560px); }
.pdf-frame.tall { height: min(70vh, 780px); }
.pdf {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a222b;
}
audio { width: 100%; margin: 6px 0 8px; }
.row { display: flex; gap: 14px; align-items: center; margin: 10px 0 0; flex-wrap: wrap; }
.tally { color: var(--muted); font-size: 13px; margin-left: auto; }
.thanks { margin-top: 36px; }
.thanks-bar { margin: 10px 0 16px; }
.note {
  display: grid; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px;
  max-width: 560px;
}
.note label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.note input, .note textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.note textarea { min-height: 88px; resize: vertical; }
.notes { list-style: none; padding: 0; margin: 18px 0 0; max-width: 640px; }
.notes li { border-top: 1px solid var(--line); padding: 12px 0; }
.notes strong { margin-right: 8px; }
.notes span { color: var(--muted); font-size: 12px; }
.notes p { margin: 6px 0 0; }
.err { color: var(--rust); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.lede.short { font-size: 16px; }
.quiet { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }
footer {
  border-top: 1px solid var(--line); color: var(--muted);
  padding: 22px 24px 40px; font-size: 13px; line-height: 1.5;
  max-width: 1080px; margin: 0 auto;
}
footer span { display: block; margin-top: 6px; color: var(--gold); }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .top { padding: 12px 14px; }
  nav { gap: 10px; }
  nav a:not(.btn) { display: none; }
  .latest-card { flex-direction: column; align-items: flex-start; }
  .pdf-frame, .pdf-frame.mid, .pdf-frame.tall { height: 58vh; }
}
