:root {
  --paper: #f5efe3;
  --card: #fffaf1;
  --ink: #23303a;
  --muted: #5d6a72;
  --sea: #2c5d74;
  --sea-dark: #1f4456;
  --amber: #b8642a;
  --rule: #e2d8c6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 2rem 1.25rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font: 1.06rem/1.6 var(--serif);
}

a { color: var(--sea); }
a:hover { color: var(--sea-dark); }

.masthead { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 2rem; }
.cover { border-radius: 10px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.15); flex: none; }
.kicker { margin: 0; font: 600 0.8rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
h1 { margin: 0.1rem 0 0.4rem; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; font-weight: 600; }
h2 { font-size: 1.35rem; margin: 0 0 0.5rem; font-weight: 600; }
.lede { margin: 0; color: var(--muted); }

section { margin: 0 0 2.25rem; }

.onair {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1rem;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}
.onair-head { display: flex; align-items: center; gap: 0.6rem; }
.lamp { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #b9b2a5; flex: none; }
.lamp.live { background: #c8372d; box-shadow: 0 0 0 0 rgb(200 55 45 / 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6rem rgb(200 55 45 / 0); } 100% { box-shadow: 0 0 0 0 rgb(200 55 45 / 0); } }
@media (prefers-reduced-motion: reduce) { .lamp.live { animation: none; } }
.detail { margin: 0.35rem 0 0.9rem; color: var(--muted); }
.onair-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
audio { width: 100%; }
.now-playing { margin: 0.6rem 0 0; font-style: italic; min-height: 1.6em; }

button {
  font: 600 0.95rem/1 var(--sans);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  border: 1px solid var(--sea);
}
button.primary { background: var(--sea); color: #fff; }
button.primary:hover { background: var(--sea-dark); }
button.secondary { background: transparent; color: var(--sea); }
button.secondary:hover { background: rgb(44 93 116 / 0.08); }
button.small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.note { color: var(--muted); margin-top: 0; }
.guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.guide li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.guide h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.guide .meta { font: 0.85rem/1.4 var(--sans); color: var(--muted); margin: 0.15rem 0 0.5rem; }
.guide .badge { font: 600 0.72rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--amber); border-radius: 999px; padding: 0.2rem 0.5rem; margin-left: 0.4rem; vertical-align: 0.15em; }
.guide p { margin: 0 0 0.7rem; }
.guide .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.guide details { margin-top: 0.6rem; }
.guide summary { cursor: pointer; color: var(--sea); font: 0.9rem/1.4 var(--sans); }
.guide ol.chapters { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.95rem; }
.guide ol.chapters time { font: 0.82rem var(--sans); color: var(--muted); margin-right: 0.4rem; }

.podcast .feed { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
code { font-size: 0.9rem; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 0.25rem 0.45rem; word-break: break-all; }

footer { border-top: 1px solid var(--rule); padding-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 34rem) {
  .masthead { flex-direction: column; align-items: flex-start; }
}
