/* ── Bitachon Podcast ─────────────────────────────────
   Palette: deep night blue, parchment, soft sky, gold thread
--------------------------------------------------------*/
:root {
  --ink:        #1b2a41;   /* deep night blue — text */
  --ink-soft:   #4d5d75;
  --paper:      #f7f5f0;   /* warm parchment background */
  --card:       #ffffff;
  --sky:        #dbe7f0;   /* soft dawn sky */
  --gold:       #b98a2e;   /* gold thread accent */
  --gold-soft:  #f0e6cf;
  --radius:     14px;
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body:    "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 320px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

/* ── Header ── */
.site-header { padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.15rem;
}
.brand-name { font-weight: 600; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.rss-link { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); }

/* ── Hero ── */
.hero { padding: 48px 0 36px; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 12px; font-weight: 700; }
.hero-sub { color: var(--ink-soft); max-width: 46ch; margin: 0 0 22px; }
.subscribe-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.subscribe-hint { font-size: 0.85rem; color: var(--ink-soft); max-width: 34ch; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* ── Episode list ── */
.episode-list { padding-bottom: 60px; }
.list-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(27, 42, 65, 0.08);
}
.card-art { width: 128px; height: 128px; object-fit: cover; border-radius: 10px; display: block; }
.card-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 4px; }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card-desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 12px; }
.empty { color: var(--ink-soft); }

/* ── Audio players ── */
.player { width: 100%; border-radius: 999px; }
.player-compact { height: 40px; }

/* ── Episode page ── */
.episode { padding: 30px 0 60px; }
.episode-hero { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: end; margin-bottom: 26px; }
.episode-art { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(27, 42, 65, 0.18); }
.episode-heading h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0; }
.episode-actions { display: flex; gap: 12px; margin: 18px 0 28px; flex-wrap: wrap; }
.episode-description {
  background: var(--card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  color: var(--ink-soft);
}
.episode-description p:first-child { margin-top: 0; }
.episode-description p:last-child { margin-bottom: 0; }
.back-link { margin-top: 30px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--gold-soft);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── Mobile ── */
@media (max-width: 620px) {
  .card { grid-template-columns: 1fr; }
  .card-art { width: 100%; height: auto; aspect-ratio: 1; }
  .episode-hero { grid-template-columns: 1fr; align-items: start; }
  .episode-art { width: 160px; height: 160px; }
  .subscribe-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
