/* =========================================================
   Campfire Learning Series — stylesheet
   Deep charcoal & midnight-blue backgrounds, firelight amber
   accents, cream text, cinematic campfire atmosphere.
   ========================================================= */

:root {
  --charcoal: #14120f;
  --midnight: #0d1420;
  --midnight-soft: #161f2e;
  --panel: #1b1712;
  --panel-alt: #10151f;
  --cream: #f3e9d8;
  --cream-dim: #d8cbb2;
  --amber: #e8973a;
  --amber-bright: #f6b352;
  --amber-deep: #c96a1f;
  --ember: #d1521f;
  --border-soft: rgba(243, 233, 216, 0.12);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--charcoal) 45%, var(--midnight) 100%);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--charcoal);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: "Trajan Pro", "Georgia", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 0 0 0.5em;
}

a { color: var(--amber-bright); }

p { margin: 0 0 1em; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-bright), var(--ember));
  color: #201205;
  box-shadow: 0 10px 25px rgba(216, 111, 34, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(216, 111, 34, 0.5); }

.btn-outline {
  background: rgba(20, 18, 15, 0.35);
  color: var(--cream);
  border-color: rgba(243, 233, 216, 0.55);
}
.btn-outline:hover { border-color: var(--amber-bright); color: var(--amber-bright); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }

.play-icon { font-size: 0.75em; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(13, 20, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }

.primary-nav {
  display: flex;
  gap: 16px;
}

.primary-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber-bright);
  transition: width 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after { width: 100%; }

.primary-nav a:hover { color: var(--amber-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 2px;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 32px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--charcoal) 100%);
}

.hero-media {
  width: 100%;
  line-height: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fallback caption for very narrow phones, where the lettering
   baked into the hero artwork can shrink past comfortable reading
   size. Hidden by default; revealed only at the narrowest widths
   (see mobile breakpoint below). This is a plain accessible
   heading, not a duplicate of any text overlaid on the image. */
.hero-caption-fallback {
  display: none;
  margin: 18px 24px 0;
  font-size: 1.1rem;
  color: var(--cream-dim);
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* -------------------- Intro -------------------- */
.intro {
  padding: 64px 0 20px;
}
.intro-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--cream-dim);
}

/* -------------------- Sections -------------------- */
.section { padding: 80px 0; }
.section-alt { background: rgba(255,255,255,0.02); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* -------------------- Full Episodes -------------------- */
.episode-grid {
  display: grid;
  gap: 32px;
}

.episode-grid-featured {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}

.episode-grid-secondary {
  grid-template-columns: repeat(3, 1fr);
}

.episode-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.episode-card:hover { transform: translateY(-6px); box-shadow: 0 26px 55px rgba(0,0,0,0.6); }

.episode-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.episode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.episode-card:hover .episode-media img { transform: scale(1.05); }

.episode-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.65);
  border: 2px solid rgba(243, 233, 216, 0.7);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(2px);
}

.episode-card-large .episode-play {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}

.episode-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }

.episode-series {
  display: inline-block;
  color: var(--amber-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.episode-body h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
.episode-card-large .episode-body h3 { font-size: 1.5rem; }

.episode-body p {
  color: var(--cream-dim);
  font-size: 0.98rem;
  flex: 1;
}

.episode-body .btn { margin-top: 8px; align-self: flex-start; }

/* -------------------- Explore the Series -------------------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.series-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease;
}
.series-card:hover { transform: translateY(-6px); }

.series-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,12,0.05) 0%, rgba(10,10,8,0.92) 88%);
}

.series-body {
  position: relative;
  z-index: 2;
  padding: 22px 20px 24px;
}

.series-body h3 {
  font-size: 1.2rem;
  color: var(--amber-bright);
  margin-bottom: 0.4em;
}

.series-body p {
  font-size: 0.92rem;
  color: var(--cream-dim);
  margin-bottom: 0;
}

.series-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-bright);
  text-decoration: none;
}
.series-link:hover { text-decoration: underline; }

/* -------------------- Red and Blue Fire -------------------- */
.redandblue-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.redandblue-header .episode-series {
  display: block;
  text-align: center;
  margin-bottom: 1em;
}
.redandblue-header .btn { margin-top: 8px; }

.redandblue-identity {
  font-size: 1rem;
  margin-bottom: 2em;
}

/* Non-clickable status badge (e.g. "Coming Soon") — deliberately not
   a link/button, since it points at a domain that isn't live yet. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.5);
  border: 1px solid var(--border-soft);
  color: var(--cream-dim);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 8px rgba(246, 179, 82, 0.7);
}

.featured-video {
  max-width: 900px;
  margin: 64px auto 40px;
  text-align: center;
}
.featured-video h3 {
  font-size: 1.6rem;
  color: var(--amber-bright);
}
.featured-video > p {
  color: var(--cream-dim);
  max-width: 720px;
  margin: 0 auto 32px;
}
.featured-video .btn { margin-top: 28px; }

.video-figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.featured-video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1264 / 720;
  background: #000;
}

.video-figure figcaption {
  padding: 16px 22px;
  font-size: 0.88rem;
  color: var(--cream-dim);
  text-align: left;
}

.rights-notice {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-dim);
  opacity: 0.85;
  font-style: italic;
}

/* -------------------- Contact -------------------- */
.contact-actions {
  display: flex;
  justify-content: center;
}

/* -------------------- Meet Mac and Diane -------------------- */
.hosts-banner {
  max-width: 720px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-soft);
}
.hosts-banner img { width: 100%; height: auto; object-fit: cover; }

.hosts-intro { margin-bottom: 56px; }

.host-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.host-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-deep);
  padding-bottom: 26px;
}

.host-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  margin-bottom: 18px;
}

.host-card h3 { font-size: 1.4rem; color: var(--amber-bright); margin-bottom: 0.3em; }
.host-card p { color: var(--cream-dim); margin: 0 24px; }

/* -------------------- Portal -------------------- */
.portal {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 130px 24px;
  text-align: center;
}

.portal-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,14,0.7) 0%, rgba(6,8,14,0.85) 100%);
}

.portal-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.portal-content p {
  font-size: 1.2rem;
  color: var(--cream);
}

/* -------------------- YouTube -------------------- */
.youtube-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.flame-accent {
  height: 54px;
  width: auto;
  margin-bottom: 18px;
  animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.youtube-copy .section-title { text-align: left; }
.youtube-copy p { color: var(--cream-dim); font-size: 1.1rem; max-width: 480px; }

.youtube-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-soft);
}
.youtube-media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--panel-alt);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
  text-align: center;
}

.footer-logo { height: 58px; width: auto; margin: 0 auto 16px; }

.footer-tagline {
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto 28px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--amber-bright); }

.footer-copy {
  color: var(--cream-dim);
  font-size: 0.82rem;
  margin: 0;
}

/* =========================================================
   Responsive — tablet
   ========================================================= */
@media (max-width: 1024px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .youtube-grid { grid-template-columns: 1fr; }
  .youtube-copy .section-title,
  .youtube-copy { text-align: center; }
  .youtube-copy p { margin-left: auto; margin-right: auto; }
  .youtube-media { max-width: 520px; margin: 0 auto; }

  .episode-grid-featured,
  .episode-grid-secondary { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Responsive — mobile
   ========================================================= */
@media (max-width: 1040px) {
  .header-inner { padding: 10px 18px; }
  .brand-logo { height: 44px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 20, 32, 0.97);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border-soft);
  }
  .primary-nav.open { max-height: 480px; overflow-y: auto; }
  .primary-nav a {
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 760px) {
  .hero { padding: 22px 0 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 18px; }
  .hero-actions .btn { justify-content: center; }

  .section { padding: 56px 0; }

  .series-grid { grid-template-columns: 1fr; }
  .host-grid { grid-template-columns: 1fr; gap: 26px; }

  .episode-grid-featured,
  .episode-grid-secondary { grid-template-columns: 1fr; }

  .portal { padding: 90px 18px; }

  .container { padding: 0 18px; }
}

/* Very narrow phones: the lettering baked into the hero artwork
   can become hard to read at full-bleed width, so reveal the
   plain-text fallback caption beneath the image. */
@media (max-width: 420px) {
  .section-title { font-size: 1.6rem; }
  .hero-caption-fallback { display: block; text-align: center; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flame-accent { animation: none; }
  .btn, .episode-card, .series-card { transition: none; }
  .episode-card:hover .episode-media img { transform: none; }
}
