/* Space Midrash: matches the 2024–25 WordPress look (blue link page + white episode pages). */
:root {
  --blue: #014bad;
  --ink: #111;
  --muted: #5f5f5f;
  --line: #d9d9d9;
  --pill-ring: #a3a3a3;
  --paper: #f9f9f9;
  --white: #fff;
  --serif: "Cardo", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- home: blue link page ---------- */
body.home { background: var(--blue); }
.home-wrap { max-width: 620px; margin: 0 auto; padding: 48px 16px 64px; display: flex; flex-direction: column; gap: 14px; }
.home-wrap .hero { width: 170%; max-width: none; margin: 0 -35% 24px; display: block; }
@media (max-width: 900px) { .home-wrap .hero { width: 100%; margin: 0 0 16px; } }
.card { background: var(--white); border: 3px solid var(--pill-ring); padding: 22px 24px; font-size: 1.05rem; line-height: 1.65; }
.card.center { text-align: center; }
.card .sig { width: 110px; display: block; margin: 0 auto 10px; }
.card p { margin: 0; }
.big-pill {
  display: block; text-align: center; text-decoration: none;
  background: var(--white); color: var(--ink);
  border: 8px solid var(--pill-ring); border-radius: 999px;
  padding: 12px 20px; font-size: clamp(1.25rem, 3.6vw, 1.85rem); font-weight: 500;
  transition: transform .12s ease, border-color .12s ease;
}
.big-pill:hover, .big-pill:focus-visible { transform: translateY(-2px); border-color: #fff; outline: none; }
.big-pill.dark { border-width: 2px; border-color: var(--ink); font-size: 1.1rem; padding: 10px 18px; }

/* ---------- inner pages ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 48px); background: var(--white); border-bottom: 1px solid var(--ink);
}
.brand img { width: 72px; height: 72px; display: block; }
.site-header nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 16px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.pill:hover { background: var(--ink); color: var(--white); }

.page { max-width: 660px; margin: 0 auto; padding: 48px 16px 64px; }
.page.wide { max-width: 780px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin: .2em 0 .5em; }
h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; }

article audio { width: 100%; margin: 18px 0 6px; }
.meta-line { margin: 4px 0; font-size: .9rem; }
.ep-cover { display: block; width: 100%; margin: 8px 0 12px; border-radius: 4px; }
.notice { background: #fff6dd; border: 1px solid #e9cf7a; padding: 14px 16px; border-radius: 6px; margin: 18px 0; }
.ep-body { margin-top: 28px; overflow-wrap: anywhere; }
.ep-body figure { margin: 18px 0; }
.ep-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.ep-body video { width: 100%; }
.ep-body a { text-underline-offset: 2px; }

.ep-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.ep-nav .next { text-align: right; margin-left: auto; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 24px 0; }

.ep-list { list-style: none; padding: 0; margin: 0; }
.ep-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ep-card .thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; display: block; background: var(--line); }
.ep-card h3 { margin: 2px 0 6px; }
.ep-card h3 a { text-decoration: none; }
.ep-card h3 a:hover { text-decoration: underline; }
.ep-card p { margin: 0; }
.summary { color: #333; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #fff6dd; border: 1px solid #e9cf7a; color: #6b5310; font-size: .75rem; }
@media (max-width: 520px) {
  .ep-card { grid-template-columns: 76px 1fr; gap: 12px; }
  .ep-card .thumb img { width: 76px; height: 76px; }
  .brand img { width: 56px; height: 56px; }
  .pill { padding: 6px 12px; font-size: .9rem; }
}

.site-footer { text-align: center; padding: 48px 16px 64px; border-top: 1px solid var(--line); background: var(--white); }
.site-footer img { width: 96px; height: 96px; }
.footer-title { font-weight: 600; font-size: 1.3rem; margin: 8px 0 4px; }
.site-footer p { margin: 4px 0; }
