/* Pod-on-the-Parish stylesheet
 * Brand palette per style_guide.md:
 *   - Traditional Parish (earth & stone): structure, text, footer
 *   - Progressive Graffiti (vibrant & urban): CTAs, accents, energy
 * Typography: Libre Baskerville for the brand voice (logo, hero, episode title);
 *             Outfit for all digital UI and body copy.
 */

:root {
  /* Progressive Graffiti palette */
  --orange: #F38D21;          /* Orange Burst — primary warm accent */
  --orange-dark: #D9761A;
  --orange-tint: #FCE4CC;
  --teal: #00968F;            /* Vibrant Teal — CTAs and modern accents */
  --teal-dark: #007870;
  --teal-tint: #CFEEEC;
  --gold: #C28E2E;            /* Parish Gold — heritage highlights */
  --gold-dark: #9E731F;
  --gold-tint: #F0E2C0;

  /* Traditional Parish palette */
  --green: #2D4C32;           /* Forest Green — signage post / footer */
  --green-soft: #3E6444;
  --slate: #667476;           /* Historic Slate — secondary text */
  --slate-soft: #8E9295;
  --cream: #F5EFE0;           /* Lightened Ochre Stone — page background */
  --cream-dark: #EDE5D2;
  --border: #DDD5C2;          /* Warmer border tint */
  --ink: #1A1A1A;
  --paper: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 6px 20px rgba(26, 26, 26, 0.08);
  --max-width: 1100px;
  --content-width: 760px;

  /* Font stacks */
  --font-serif: 'Libre Baskerville', Baskerville, 'Hoefler Text', 'Times New Roman', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--orange); text-decoration: none; font-weight: 500; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav .logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav .logo:hover { text-decoration: none; color: var(--teal); }

.site-nav .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav .nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
}
.site-nav .nav-links a:hover { color: var(--teal); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 .accent { color: var(--orange); }

.hero .tagline {
  font-size: 19px;
  color: var(--slate);
  margin: 0 0 20px;
  max-width: 560px;
}

.hero .host {
  font-size: 15px;
  color: var(--slate-soft);
  margin: 0 0 28px;
  font-weight: 500;
}

.hero-art img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--orange-tint);
}

.hero-art .placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 280px; margin: 0 auto; }
}

/* Subscribe buttons */
.subscribe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.subscribe a:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.subscribe a.rss {
  background: var(--orange);
  color: white;
}
.subscribe a.rss:hover { background: var(--orange-dark); }

.subscribe a.primary {
  background: var(--teal);
  color: white;
}
.subscribe a.primary:hover { background: var(--teal-dark); }

.subscribe a.spotify {
  background: #1DB954;
  color: white;
}
.subscribe a.spotify:hover { background: #17963F; color: white; }

.subscribe a svg {
  flex: 0 0 auto;
  display: block;
}

/* Section headings */
.section-heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 32px;
}

/* Episode list */
.episode-list {
  display: grid;
  gap: 20px;
  padding-bottom: 80px;
}

.episode-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.episode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-tint);
}

.episode-card a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.episode-card a:hover { text-decoration: none; }

.episode-card .art {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream-dark);
}

.episode-card .art-placeholder {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  font-weight: 700;
}

.episode-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.episode-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate-soft);
  margin-bottom: 10px;
  font-weight: 500;
}

.episode-card .ep-num {
  background: var(--gold-tint);
  color: var(--gold-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.episode-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.episode-card .guest {
  font-size: 15px;
  color: var(--slate);
  margin: 0 0 10px;
  font-weight: 500;
}

.episode-card .desc {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .episode-card a { grid-template-columns: 1fr; gap: 16px; }
  .episode-card .art,
  .episode-card .art-placeholder { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* Episode page */
.episode-page { padding: 24px 0 80px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--teal); text-decoration: none; }

.episode-header { margin-bottom: 32px; }

.episode-header .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--slate-soft);
  margin-bottom: 16px;
  font-weight: 500;
}

.episode-header .ep-num {
  background: var(--gold-tint);
  color: var(--gold-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.episode-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: 0;
  font-weight: 700;
}

.episode-header .guest {
  font-size: 18px;
  color: var(--slate);
  margin: 0;
}

.episode-artwork {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 auto 32px;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-dark);
}

.episode-artwork-placeholder {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 auto 32px;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 120px;
  font-weight: 700;
}

/* Media cards — matched pair: audio player (Listen) and resources CTA (Watch).
 * Shared chrome so the two sit together as a visual set below the episode
 * header: white card, coloured icon tile on the left, kicker + title + body
 * content in the middle column. */
.media-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.media-card:last-of-type {
  margin-bottom: 40px;
}

.media-card-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--paper);
}

.media-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.media-card-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2px;
}

.media-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.media-card-meta {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
}

/* --- Audio card (Listen) --- */
.audio-card .media-card-icon {
  background: var(--orange);
}

.audio-card audio {
  width: 100%;
  margin: 2px 0 10px;
}

.audio-card .download {
  font-size: 14px;
  color: var(--slate-soft);
  margin: 0;
}

/* --- Resources card (Watch) — full-card link --- */
.resources-card {
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.resources-card:hover,
.resources-card:focus {
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-tint);
}

.resources-card .media-card-icon {
  background: var(--teal);
}

.resources-card:hover .media-card-icon,
.resources-card:focus .media-card-icon {
  background: var(--teal-dark);
}

.media-card-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-tint);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.resources-card:hover .media-card-arrow,
.resources-card:focus .media-card-arrow {
  background: var(--teal);
  color: var(--paper);
  transform: translateX(3px);
}

/* Mobile: stack icon above the body on narrow screens. */
@media (max-width: 560px) {
  .media-card { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .media-card-icon { width: 48px; height: 48px; border-radius: 12px; }
  .media-card-title { font-size: 18px; }
  .media-card-arrow { width: 36px; height: 36px; }
}

/* Show notes */
.show-notes {
  margin-bottom: 48px;
}

.show-notes h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.show-notes p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--ink);
}

.show-notes p:last-child { margin-bottom: 0; }

/* Chapters */
.chapters {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 48px;
}

.chapters h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.chapters ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapters li { border-bottom: 1px solid var(--border); }
.chapters li:last-child { border-bottom: none; }

.chapters button {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  transition: color 0.12s ease;
  font-weight: 500;
}

.chapters button:hover { color: var(--teal); }

.chapters .time {
  color: var(--slate-soft);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}

/* Sponsor callout */
.sponsors-callout {
  background: var(--teal-tint);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--ink);
}

.sponsors-callout strong { color: var(--ink); }
.sponsors-callout a { color: var(--teal-dark); }
.sponsors-callout a:hover { color: var(--teal); }

/* Footer — Forest Green "signage post" */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: 48px 0;
  margin-top: 48px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.92;
}

.site-footer a {
  color: var(--orange);
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--gold-tint);
  text-decoration: underline;
}

.site-footer .sponsors-line {
  font-weight: 500;
}

@media (max-width: 600px) {
  .site-footer .container { flex-direction: column; text-align: center; }
}
