/* juicerpodcast — audio-first blog / podcast theme.
 *
 * Aesthetic: deep indigo on warm bone-white. Coral accent for the
 * play button and links. Native HTML5 <audio> player on every
 * episode page and card. Big cover art, prominent duration. */

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --brand:        #2b1f4a;
  --brand-strong: #160d2d;
  --brand-soft:   #e2dded;
  --accent:       #e36e5b;
  --accent-soft:  #fbe1da;

  --bg:           #fbf8f3;
  --bg-soft:      #f3eee5;
  --surface:      #ffffff;
  --surface-soft: #f3eee5;
  --ink:          #1c1632;
  --ink-soft:     #4d4664;
  --ink-faint:    #8a849c;
  --rule:         #e2dee8;
  --rule-soft:    #ece9f1;

  --font-sans:  -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --font-serif: 'Iowan Old Style', Georgia, serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure:    62ch;
  --gutter:     1.25rem;
  --max-w:      72rem;
  --max-w-ep:   60rem;

  --radius:     0.4rem;
  --radius-lg:  0.6rem;
  --shadow-sm:  0 1px 2px 0 rgba(28, 22, 50, 0.05);
  --shadow-md:  0 8px 22px -6px rgba(28, 22, 50, 0.20);
  --transition: 0.18s ease;
}

[data-theme="dark"] {
  --brand:        #d5cdec;
  --brand-strong: #ffffff;
  --brand-soft:   rgba(213, 205, 236, 0.16);
  --accent:       #ff8e7a;
  --accent-soft:  rgba(255, 142, 122, 0.18);

  --bg:           #14102a;
  --bg-soft:      #1a153a;
  --surface:      #1a153a;
  --surface-soft: #211a47;
  --ink:          #ece8f5;
  --ink-soft:     #b8b1ce;
  --ink-faint:    #8c8499;
  --rule:         #2a234e;
  --rule-soft:    #211a47;

  --shadow-md:    0 8px 22px -6px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color var(--transition), border-color var(--transition);
}
a:hover { color: var(--brand-strong); border-bottom-color: var(--accent); }
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.4em 0;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}
h1 { font-size: 2.3rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em 0; }

/* ============================================================
   Layout shell
   ============================================================ */
.juicerpodcast-page { min-height: 100vh; display: flex; flex-direction: column; }
.juicerpodcast-main { flex: 1; }

/* ============================================================
   Topbar
   ============================================================ */
.juicerpodcast-topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.juicerpodcast-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.juicerpodcast-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--brand);
  border-bottom: none;
}
.juicerpodcast-brand:hover { color: var(--accent); }
.juicerpodcast-brand-logo { width: 1.6rem; height: 1.6rem; align-self: center; }
.juicerpodcast-brand-name { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
.juicerpodcast-brand-tagline {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-faint);
  font-style: italic;
}
.juicerpodcast-topbar-actions { display: flex; align-items: center; gap: 1rem; }
.juicerpodcast-nav { display: flex; gap: 1rem; }
.juicerpodcast-nav a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-bottom: none;
}
.juicerpodcast-nav a:hover { color: var(--accent); }
.juicerpodcast-rss {
  color: var(--accent);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
}
.juicerpodcast-rss:hover { color: var(--brand-strong); }
.juicerpodcast-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.juicerpodcast-theme-toggle:hover {
  background: var(--surface-soft);
  color: var(--accent);
  border-color: var(--rule);
}
.juicerpodcast-icon-sun { display: none; }
.juicerpodcast-icon-moon { display: block; }
[data-theme="dark"] .juicerpodcast-icon-sun { display: block; }
[data-theme="dark"] .juicerpodcast-icon-moon { display: none; }

/* ============================================================
   Hero (home page)
   ============================================================ */
.juicerpodcast-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 3rem var(--gutter) 3rem;
}
.juicerpodcast-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) {
  .juicerpodcast-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem;
  }
}
.juicerpodcast-hero-cover {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  justify-self: center;
}
.juicerpodcast-hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.2em;
}
.juicerpodcast-hero-tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1em;
}
.juicerpodcast-hero-blurb {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}

/* ============================================================
   Subscribe strip
   ============================================================ */
.juicerpodcast-subscribe { margin-top: 1.25rem; }
.juicerpodcast-subscribe-h {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 0.55rem;
}
.juicerpodcast-subscribe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.juicerpodcast-subscribe-link {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--brand);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: none;
  transition: background var(--transition), color var(--transition);
}
.juicerpodcast-subscribe-link:hover {
  background: var(--accent);
  color: white;
}

/* ============================================================
   Section heading
   ============================================================ */
.juicerpodcast-section-h {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
   Episode list (cards)
   ============================================================ */
.juicerpodcast-episodes {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
.juicerpodcast-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
@media (min-width: 40rem) {
  .juicerpodcast-card { grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; }
}
.juicerpodcast-card:last-child { border-bottom: 0; }
.juicerpodcast-card-figure {
  display: block;
  width: 6rem;
  height: 6rem;
  background: var(--surface-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border-bottom: none;
  flex-shrink: 0;
}
@media (min-width: 40rem) {
  .juicerpodcast-card-figure { width: 8rem; height: 8rem; }
}
.juicerpodcast-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.juicerpodcast-card-figure-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  background: var(--accent-soft);
}
.juicerpodcast-card-body { min-width: 0; }
.juicerpodcast-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--brand);
  line-height: 1.25;
}
.juicerpodcast-card-title a {
  color: inherit;
  border-bottom: none;
}
.juicerpodcast-card-title a:hover { color: var(--accent); }
.juicerpodcast-card-summary {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.juicerpodcast-card-meta {
  margin: 0 0 0.6rem;
  font-size: 0.825rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.juicerpodcast-card-duration { font-family: var(--font-mono); }
.juicerpodcast-card-audio {
  width: 100%;
  max-width: 28rem;
  height: 2.25rem;
}

/* ============================================================
   Episode page
   ============================================================ */
.juicerpodcast-episode {
  max-width: var(--max-w-ep);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 5rem;
}
.juicerpodcast-episode-head {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) {
  .juicerpodcast-episode-head {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}
.juicerpodcast-episode-cover {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}
.juicerpodcast-episode-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.juicerpodcast-episode-title {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.juicerpodcast-episode-summary {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1em;
}
.juicerpodcast-episode-meta {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.juicerpodcast-episode-duration { font-family: var(--font-mono); }
.juicerpodcast-episode-player {
  width: 100%;
  margin: 0 0 0.6rem;
}
.juicerpodcast-episode-download {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.juicerpodcast-episode-download a {
  color: var(--ink-soft);
  border-bottom-color: var(--rule);
}
.juicerpodcast-episode-download a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.juicerpodcast-episode-body {
  margin-top: 3rem;
  max-width: var(--measure);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.juicerpodcast-episode-body > * + * { margin-top: 1.1rem; }
.juicerpodcast-episode-body h2 { margin-top: 2.2rem; }

.juicerpodcast-episode-links { margin-top: 2.5rem; max-width: var(--measure); }
.juicerpodcast-episode-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.juicerpodcast-episode-link-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.juicerpodcast-episode-link-list li:last-child { border-bottom: 0; }

.juicerpodcast-transcript {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.juicerpodcast-transcript summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--brand);
}
.juicerpodcast-transcript-body {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.juicerpodcast-episode-tags {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--ink-faint);
}
.juicerpodcast-episode-tags a {
  color: var(--ink-soft);
  border-bottom: none;
}
.juicerpodcast-episode-tags a:hover { color: var(--accent); }

.juicerpodcast-episode-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.92rem;
}
.juicerpodcast-episode-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: none;
  color: var(--ink);
}
.juicerpodcast-episode-nav a:first-child span:first-child,
.juicerpodcast-episode-nav a:last-child span:first-child {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.juicerpodcast-episode-nav-next { text-align: right; }
.juicerpodcast-episode-nav a:hover { color: var(--accent); }

/* ============================================================
   Section (folder) + tag pages
   ============================================================ */
.juicerpodcast-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}
.juicerpodcast-section-head { margin-bottom: 1.5rem; }
.juicerpodcast-section-title {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.juicerpodcast-section-summary {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 0.5em;
}
.juicerpodcast-section-blurb {
  font-size: 1rem;
  color: var(--ink-soft);
}

.juicerpodcast-taglist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.juicerpodcast-taglist-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-left: 0.15rem;
}

/* ============================================================
   Footer
   ============================================================ */
.juicerpodcast-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  padding: 1.5rem var(--gutter);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.juicerpodcast-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.juicerpodcast-footer-credit a { color: var(--ink-soft); border-bottom: none; }
.juicerpodcast-footer-credit a:hover { color: var(--accent); }
.juicerpodcast-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.juicerpodcast-footer-links a { color: var(--ink-soft); border-bottom: none; }
.juicerpodcast-footer-links a:hover { color: var(--accent); }

.juicerpodcast-404 { text-align: center; padding-top: 5rem; }
