:root {
  --cyan: #76d6f5;
  --amber: #f7931e;
  --violet: #b794f4;
  --surface: #1a1a1a;
  --border-subtle: #2a2a2a;
}

body {
  background-color: #0d0d0d;
  color: white;
  font:
    1.2em Helvetica,
    Arial,
    sans-serif;
  margin: 0;
}

a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}

h1 {
  font-weight: bold;
  font-size: larger;
}

h2 {
  font-weight: bold;
  font-size: large;
}

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

p {
  margin-block-start: 0.5em;
  margin-block-end: 0em;
}

body > div {
  width: 100%;
}

.content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 60px;
}

.content-container > div,
.content-container > header,
.content-container > section,
.content-container > main,
.content-container > footer {
  width: 100%;
}

header.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.inner {
  max-width: 960px;
  margin: 0 auto;
}

header.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  gap: 8px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.header-logo span {
  font-weight: bold;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--cyan);
}

section.hero {
  width: 100%;
  background-image: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,0.82) 55%), url("/img/website-flames-960x960.jpg");
  background-size: cover;
}

section.hero a, #transcript a {
  color: #76d6f5;
}

section.hero .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 100px 15px 80px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: bold;
  color: white;
  margin: 0 0 16px;
  line-height: 1.05;
}

.hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #aaa;
  margin: 0 0 32px;
  max-width: 480px;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.hero-platforms img {
  height: 40px;
  width: auto;
}

.hero-platforms a:last-child img {
  height: 32px;
  width: 32px;
}

.hero-platforms img.rss {
  height: 20px;
}

.hero-platforms a:last-child img.rss {
  height: 20px;
}

.hero-platforms .button {
  border: 1px solid white;
  border-radius: 6px;
}

.hero-platforms .podcast-feed {
  display: flex;
  align-items: center;
  height: 40px;
  color: white;
  font-size: small;
  background-color: black;
  padding-right: 6px;
}

.hero-platforms .podcast-feed a {
  color: white;
}

.hero-listen {
  color: var(--amber);
  padding: 15px 30px;
  border: 1px solid rgba(247, 147, 30, 0.5);
  border-radius: 999px;
  font-size: 0.85em;
  background: transparent;
  transition: background 0.15s;
}

.hero-listen:hover {
  background: rgba(247, 147, 30, 0.15);
  text-decoration: none;
}

.page-main {
  width: 100%;
  padding: 40px 0 60px;
}

.page-main .inner {
  padding: 0 15px;
}

section.episode-strip {
  width: 100%;
  background-color: var(--surface);
  padding: 60px 0;
}

section.episode-strip .inner,
section.news-section .inner {
  padding-left: 15px;
  padding-right: 15px;
}

.episode-cards,
.news-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media screen and (min-width: 600px) {
  .episode-cards {
    flex-direction: row;
    gap: 20px;
  }

  .episode-card {
    flex: 1;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #111;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.episode-card {
  border-left: 3px solid var(--amber);
  border-radius: 10px;
}

.news-card {
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  min-width: 100%;
}

.resource-card {
  border-left: 3px solid var(--violet);
  border-radius: 6px;
}

.card:hover { transform: translateY(-4px); }

.card-cover {
  height: 120px;
  overflow: hidden;
}

.news-card .card-cover {
  height: 400px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradients — cycle through 3 palettes */
.card:nth-child(3n+1) .card-cover--gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, #0a4a5a 60%, #0d0d0d 100%);
}

.card:nth-child(3n+2) .card-cover--gradient {
  background: linear-gradient(135deg, var(--amber) 0%, #7a3a00 60%, #0d0d0d 100%);
}

.card:nth-child(3n) .card-cover--gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--amber) 50%, #0d0d0d 100%);
}

/* Card body */
.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-body h3 {
  font-weight: bold;
  margin: 0;
}

.card-body h4 {
  margin: 0;
}

.card-body p {
  margin: 0;
  font-size: 0.9em;
  color: #ccc;
}

.card-body .blog-post p {
  margin-block-start: 0.5em;
  margin-block-end: 0em;
}

.card-body a {
  color: white;
}

.episode-card a {
  color: var(--amber); 
}

.card-body a.hero-listen {
  align-self: flex-start;
}

.card-body ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body li {
  padding-left: 1em;
  border-left: 2px solid var(--border-subtle);
  line-height: 1.5;
}

.card-body li a {
  font-weight: normal;
}

.news-card .card-body h1 a,
.resource-card .card-body h3 a {
  color: white;
}

.news-card a {
  color: var(--cyan);
}

.resource-card a {
  color: var(--violet);
}

.card-body .news-author {
  color: #999;
  font-size: 0.85em;
  margin-block-start: 2px;
}

section.news-section {
  width: 100%;
  padding: 60px 0 80px;
}

h1#id {
  margin: 15px;
}

.post {
  background-color: var(--surface);
  border-left: 3px solid var(--amber);
  margin-top: 10px;
  padding: 15px;
}

.post details {
  margin-top: 1em;
}

.post a {
  color: var(--cyan);
}

.post > h1 > a {
  color: white;
}

.post div.quote {
  background-color: white;
  color: black;
  padding: 2em;
}

.post div.quote > p {
  margin-block-end: 1em;
}

.post div.quote > p:last-child {
  margin-block-end: 0em;
}

.post p.emphasis {
  font-weight: bold;
  color: var(--amber);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading span {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  font-weight: bold;
}

.section-heading a {
  color: white;
}

.section-heading .section-all {
  color: var(--cyan);
  font-size: 0.8em;
  letter-spacing: 0.02em;
}

/* Episode page */

section.episode-hero {
  width: 100%;
  min-height: 460px;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 70%),
    url("/img/website-flames-960x960.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.episode-hero-inner {
  padding: 0 15px 50px;
}

.episode-label {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 10px;
  font-weight: bold;
}

.episode-hero-summary {
  color: #ccc;
  margin: 8px 0 20px;
  max-width: 600px;
  font-size: 1em;
}

.season-heading {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.episode-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: bold;
  color: white;
  margin: 0;
  line-height: 1.15;
  max-width: 700px;
}

section.episode-player {
  width: 100%;
  background-color: #111;
  border-bottom: 1px solid var(--border-subtle);
}

.episode-player-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 15px;
  flex-wrap: wrap;
}

.episode-player-info {
  min-width: 0;
}

.episode-player-title {
  margin: 0;
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-player-meta {
  margin: 2px 0 0;
  font-size: 0.8em;
  color: var(--amber);
  font-weight: normal;
}

.episode-player-controls-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

#cljcastr-player-timeline-wrapper {
  width: 100%;
}

/* Override cljcastr's fixed 300px width */
#cljcastr-player-timeline {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

section.episode-body {
  width: 100%;
  padding: 50px 0;
}

section.episode-body .inner {
  padding: 0 15px;
  max-width: 760px;
}

section.episode-body #cljcastr-player-description {
  color: #ccc;
  line-height: 1.8;
  font-size: 1em;
}

section.episode-body #cljcastr-player-description .episode-epilogue {
  display: none;
}

section.episode-transcript {
  width: 100%;
  padding: 0 0 80px;
}

section.episode-transcript .inner {
  padding: 0 15px;
}

section.episode-transcript #transcribe-link {
  margin-bottom: 15px;
}

.cljcaster-player-hidden {
  display: none;
}

/* Player icon overrides — hide cljcastr SVGs, use Font Awesome */
#cljcastr-player-controls svg.control {
  display: none;
}

#cljcastr-player-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.4rem;
  padding: 6px 10px;
  opacity: 0.85;
  transition: opacity 0.15s;
}

#cljcastr-player-controls button:hover {
  opacity: 1;
}

#rewind-button::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f04a";
}

#play-button::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f144";
}

#pause-button::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f28b";
}

#fast-forward-button::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f04e";
}

#blog-info {
  text-align: end;
}

#transcript-body {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
}

.transcript-ts {
  color: #76d6f5;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  &:hover {
    text-decoration: underline;
  }
}

#transcribe-link {
  margin-bottom: 1em;
}

.transcript-speaker {
  font-weight: bold;
  margin-right: 0.5em;
}

#footnotes-section {
  margin-top: 2em;
}

footer.site-footer {
  background-color: #0a0a0a;
  border-top: 1px solid var(--border-subtle);
}

.footer-cols {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 15px 50px;
}

@media screen and (min-width: 700px) {
  .footer-cols {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .footer-col--nav {
    flex: 1;
  }

  .footer-col--about {
    flex: 2;
  }
}

.footer-col-heading {
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #aaa;
  font-weight: normal;
  font-size: 0.9em;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: white;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #222;
  transition: background-color 0.15s;
}

.footer-socials a:hover {
  background-color: #333;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-credits {
  font-size: 0.85em;
  color: #666;
  line-height: 1.7;
}

.footer-credits a {
  color: #aaa;
  font-weight: normal;
}

.monospace {
  font-family: monospace;
}
