/*
Theme Name: Narrative
Theme URI: https://metaflow.no
Author: Metaflow
Author URI: https://metaflow.no
Description: A modern, minimalist WordPress theme for podcast interviews and episodes. Features horizontal scrolling carousel, dark/light mode toggle, sticky audio player, video backgrounds, audio player with OGG/MP3 support, and a clean typography-focused design with custom color scheme.
Version: 1.7.9
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: narrative
Tags: blog, podcast, interviews, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, carousel
*/

/* ==========================================================================
   CSS Custom Properties - Enhanced Fluid System
   ========================================================================== */

:root {
  /* Colors - Dark Mode Default */
  --color-bg: #212a2e;
  --color-text: #fff;
  --color-text-secondary: #999999;
  --color-border: #222;
  --color-accent: #fff;
  
  /* Typography - All 1.3rem */
  --font-size-base: 1.3rem;
  --font-size-small: 1.3rem;
  --font-size-h1: 1.3rem;
  --font-size-h2: 1.3rem;
  --font-size-episode-title: 1.3rem;
  --font-size-episode-meta: 1.3rem;
  
  /* Font Stacks */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Fluid Spacing */
  --gutter: clamp(16px, 1.736vw, 33px);
  --container-padding: var(--gutter);
  --section-spacing: clamp(40px, 8vw, 154px);
  --card-gap: var(--gutter);
  
  /* Transitions */
  --transition-speed: 0.35s;
  --transition-ease: cubic-bezier(0.39, 0.575, 0.565, 1);
  
  /* Breakpoints (for reference) */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-desktop-lg: 1440px;
  --breakpoint-desktop-xl: 1920px;
}

[data-colors="light"] {
  --color-bg: #fff;
  --color-text: #212a2e;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-accent: #212a2e;
}

/* ==========================================================================
   Base Styles - Enhanced
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: clip;
  transition: background-color var(--transition-speed) var(--transition-ease),
              color var(--transition-speed) var(--transition-ease);
  min-height: 100vh;
}

/* ==========================================================================
   Typography - All 1.3rem
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
}

p {
  margin: 0 0 1.5em 0;
  line-height: 1.6;
  font-size: 1.3rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-speed);
  font-size: 1.3rem;
}

strong {
  font-weight: 400;
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
}

a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Layout - Container System
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================================================
   Header - Enhanced with Fluid Spacing
   ========================================================================== */

header[data-nav] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  padding: var(--gutter) var(--container-padding);
  transition: transform var(--transition-speed) var(--transition-ease),
              background-color var(--transition-speed);
}

header[data-nav].hidden {
  transform: translateY(-100%);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header nav .logo {
  font-size: var(--font-size-h2);
  font-weight: 500;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  align-items: center;
}

header nav ul li a {
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

header nav ul li a:hover,
header nav ul li a.active {
  opacity: 1;
}

/* Dark/Light Toggle */
.light-dark {
  display: flex;
  gap: clamp(0.5rem, 1vw, 1rem);
  align-items: center;
}

.light-dark button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  opacity: 1;
  transition: opacity var(--transition-speed);
  position: relative;
}

.light-dark button:hover {
  opacity: 0.7;
}

.light-dark button .circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Dark mode button - always white with border */
.light-dark button .dark-circle {
  background-color: #fff;
  border: 1.2px solid #fff;
}

/* Light mode button - always light gray with dark border */
.light-dark button .light-circle {
  background-color: #D9D9D9;
  border: 1.2px solid #666;
}

/* ==========================================================================
   Hero Section - Improved
   ========================================================================== */

article[b-tpl="cta banner"] {
  position: relative;
  margin-bottom: var(--section-spacing);
  max-height: 8vh;
}

article[b-tpl="cta banner"] .inner {
  position: relative;
  display: grid;
  min-height: clamp(150px, 15vh, 200px);
  max-height: 15vh;
  border-radius: clamp(30px, 3vw, 60px);
  overflow: hidden;
}

article[b-tpl="cta banner"] .bg {
  grid-area: 1/1;
  position: relative;
}

article[b-tpl="cta banner"] .bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

article[b-tpl="cta banner"] .content {
  grid-area: 1/1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem .9rem .9rem .9rem;
  gap: clamp(1rem, 2vw, 2rem);
}

article[b-tpl="cta banner"] .content .text p {
  font-size: clamp(1.5rem, 2.6vw, 3rem);
  font-weight: 500;
  margin: 0;
}

article[b-tpl="cta banner"] .button a {
  display: inline-block;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.25rem, 2vw, 2rem);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  font-weight: 500;
  transition: backdrop-filter 0.55s;
}

article[b-tpl="cta banner"] .button a:hover {
  backdrop-filter: saturate(1000%) blur(60px);
}

/* ==========================================================================
   Episodes Section - Enhanced Carousel
   ========================================================================== */

article[b-tpl="episodes"] {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

article[b-tpl="episodes"] .inner > .actions {
  display: flex;
  gap: var(--gutter);
  align-items: center;
  margin-bottom: clamp(1rem, 2vw, 2rem);
  padding-left: var(--container-padding);
}

article[b-tpl="episodes"] .inner > .actions h2 {
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  margin: 0;
}

article[b-tpl="episodes"] .inner > .actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: clamp(20px, 2.5vw, 32px);
  height: clamp(20px, 2.5vw, 32px);
  opacity: 0.8;
  transition: opacity var(--transition-speed);
}

article[b-tpl="episodes"] .inner > .actions button.active,
article[b-tpl="episodes"] .inner > .actions button:hover {
  opacity: 1;
}

article[b-tpl="episodes"] .inner > .actions button svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

article[b-tpl="episodes"] .inner > .actions button svg path {
  fill: #fff;
}

/* Light mode - black icons */
[data-colors="light"] article[b-tpl="episodes"] .inner > .actions button svg,
[data-colors="light"] article[b-tpl="episodes"] .inner > .actions button svg path {
  fill: #212a2e;
}

/* Horizontal Scrolling Carousel - Enhanced */
.marquee {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding-bottom: 1rem;
}

.marquee::-webkit-scrollbar {
  display: none;
}

.marquee.grabbing {
  cursor: grabbing;
}

.marquee-group {
  display: flex;
  gap: var(--card-gap);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  flex-shrink: 0;
  min-width: 100%;
}

/* ==========================================================================
   Episode Cards - Fluid & Responsive
   ========================================================================== */

.episode {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 70vw, 450px);
  max-height: 70vh;
  color: #fff;
  scroll-snap-align: start;
  transition: transform var(--transition-speed) var(--transition-ease);
}

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

/* Episode Background */
.episode .bg {
  position: relative;
  width: 100%;
  aspect-ratio: 536 / 750;
  overflow: hidden;
  border-radius: 0;
}

.episode .bg figure,
.episode .bg picture {
  width: 100%;
  height: 100%;
}

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

/* Episode Content Overlay */
.episode .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 105%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Episode Header */
.episode .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}

.episode .header .title {
  flex: 0 0 75%;
  text-align: left;
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode .header .meta {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.episode .header .meta .season,
.episode .header .meta .episode-number {
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Episode Footer - Always Visible */
.episode .footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.episode .footer dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1rem) 0;
  border-top: 1.5px solid rgba(255, 255, 255, 1);
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  width: 100%;
  color: white;
  visibility: visible;
  opacity: 1;
}

.episode .footer dl:first-child {
  border-top: 1.5px solid rgba(255, 255, 255, 1);
  padding-top: 0;
}

.episode .footer dt {
  font-weight: 400;
  color: white;
  margin: 0;
  visibility: visible;
}

.episode .footer dd {
  margin: 0;
  font-weight: 400;
  color: white;
  text-align: right;
  visibility: visible;
}

.episode .footer .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 1.5vw, 1rem) 0 0;
  border-top: 1.5px solid rgba(255, 255, 255, 1);
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  visibility: visible;
}

.episode .actions button,
.episode .actions a {
  background: none;
  border: none;
  color: white;
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  visibility: visible;
  transition: opacity var(--transition-speed);
}

.episode .actions button:hover,
.episode .actions a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   List View - Enhanced Table Layout
   ========================================================================== */

.episodes-list {
  display: none;
  width: 100%;
  max-width: 1920px;
  margin: clamp(2rem, 4vw, 4rem) auto 0;
  padding: 0 var(--container-padding);
}

.episodes-list.active {
  display: block;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  border-top: 1px solid var(--color-border);
  transition: opacity var(--transition-speed);
}

.episode-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.episode-item .title {
  flex: 1;
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

.episode-item .actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  flex-shrink: 0;
}

.episode-item .actions .episode-number {
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
}

.episode-item .actions a,
.episode-item .actions button {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.5rem);
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

.episode-item .actions a:hover,
.episode-item .actions button:hover {
  opacity: 0.7;
}
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
}

.episode-item .actions {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  flex-shrink: 0;
}

.episode-item .actions a,
.episode-item .actions button {
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  
  letter-spacing: 0.05em;
  transition: opacity var(--transition-speed);
}

.episode-item .actions a:hover,
.episode-item .actions button:hover {
  opacity: 0.7;
}

/* Hide/Show Views */
.marquee.hidden {
  display: none;
}

/* ==========================================================================
   Footer - Enhanced
   ========================================================================== */

footer {
  border-top: 1px solid var(--color-border);
  padding: clamp(2rem, 4vw, 4rem) var(--container-padding);
  margin-top: var(--section-spacing);
}

footer .brand {
  margin: 0;
  text-align: center;
  font-weight: 500;
}

footer .spread {
  display: flex;
  gap: clamp(0.5rem, 1vw, 1rem);
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
}

/* ==========================================================================
   Audio Player - Sticky Bottom (Enhanced)
   ========================================================================== */

.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 2rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  transition: transform var(--transition-speed) var(--transition-ease);
  transform: translateY(100%);
}

.audio-player.active {
  transform: translateY(0);
}

.audio-player .play-pause-btn {
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FEFBB0;
  transition: opacity var(--transition-speed);
}

.audio-player .play-pause-btn:hover {
  opacity: 0.7;
}

.audio-player .play-pause-btn svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.audio-player .controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
  min-width: 0;
}

.audio-player .controls__current-time,
.audio-player .controls__total-time {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: #FEFBB0;
  font-variant-numeric: tabular-nums;
  min-width: clamp(35px, 4vw, 45px);
  flex-shrink: 0;
}

.audio-player .controls__slider {
  flex: 1;
  height: 4px;
  background-color: rgba(254, 251, 176, 0.2);
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  min-width: 0;
}

.audio-player .controls__progress {
  height: 100%;
  background-color: #FEFBB0;
  position: relative;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-player .controls__progress .pin {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #FEFBB0;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.audio-player .podcast-title {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 500;
  color: #FEFBB0;
  flex-shrink: 0;
  max-width: 35%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-player .volume {
  position: relative;
  flex-shrink: 0;
}

.audio-player .volume__button {
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(4px, 0.5vw, 8px);
  color: #FEFBB0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-speed);
}

.audio-player .volume__button:hover {
  opacity: 0.7;
}

.audio-player .volume__button svg {
  width: clamp(16px, 2vw, 20px);
  height: clamp(16px, 2vw, 20px);
  fill: currentColor;
}

.audio-player .volume__controls {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: clamp(0.5rem, 1vw, 0.75rem);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-player .volume__controls.hidden {
  display: none;
}

.audio-player .volume__slider {
  width: 4px;
  height: clamp(80px, 10vh, 120px);
  background-color: rgba(254, 251, 176, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.audio-player .volume__progress {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #FEFBB0;
  border-radius: 2px;
  transition: height 0.1s linear;
}

.audio-player [data-close] {
  background: none;
  border: none;
  color: #FEFBB0;
  cursor: pointer;
  padding: clamp(4px, 0.5vw, 8px);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
  transition: opacity var(--transition-speed);
}

.audio-player [data-close]:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Responsive Breakpoints - Mobile First
   ========================================================================== */

/* Mobile (0-479px) */
@media (max-width: 479px) {
  :root {
    --font-size-base: 16px;
    --section-spacing: 40px;
  }
  
  header[data-nav] {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  header nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .episode {
    width: clamp(260px, 80vw, 350px);
  }
  
  article[b-tpl="cta banner"] .content {
    flex-direction: column;
    text-align: center;
  }
  
  .audio-player .podcast-title {
    display: none;
  }
}

/* Tablet Portrait (480-767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .episode {
    width: clamp(300px, 70vw, 400px);
  }
  
  article[b-tpl="cta banner"] .content {
    flex-direction: column;
    text-align: center;
  }
}

/* Tablet Landscape (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .episode {
    width: clamp(350px, 60vw, 500px);
  }
  
  .episode-item {
    flex-wrap: wrap;
  }
  
  .episode-item .actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .episode {
    width: clamp(380px, 32vw, 550px);
    max-height: 70vh;
  }
  
  .marquee-group {
    gap: calc(var(--card-gap) * 1.2);
  }
  
  .episode-item > * {
    opacity: 0.7;
  }
  
  .episode-item:hover > * {
    opacity: 1;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-padding: clamp(33px, 1.736vw, 40px);
  }
  
  .episode {
    max-width: 600px;
  }
}

/* XL Desktop (1920px+) */
@media (min-width: 1920px) {
  :root {
    --container-padding: 33px;
    --section-spacing: 154px;
  }
  
  .container {
    padding-left: 33px;
    padding-right: 33px;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.hidden {
  display: none !important;
}

/* Loading States */
.loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading.active {
  display: block;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Custom Adjustments
   ========================================================================== */

/* Episodes list view adjustments */
.episodes-list .title {
  width: 65%;
}

.episodes-list .actions {
  width: 35%;
  display: grid;
  gap: 30px;
}

/* Dark mode colors */
html[data-colors='dark'] {
  --color-bg: #212a2e;
  --color-text: #fff;
  --color-text-secondary: #333;
  --color-border: #fff;
  --color-accent: #fff;
}

/* Light mode colors */
[data-colors="light"] {
  --color-bg: #fff;
  --color-text: #212a2e;
  --color-text-secondary: #444;
  --color-border: #e5e5e5;
  --color-accent: #212a2e;
}

/* Entry header sizing */
.entry-header h1 {
  font-size: 3rem;
}

/* Episode footer spacing */
.episode .footer dl,
.episode .footer dl.duration,
.episode .footer dl.location {
  padding: 0.4rem 0;
}

/* Light/dark toggle circles */
.light-dark button .dark-circle {
  background-color: #222;
  border: 1.2px solid #fff;
}

.light-dark button .light-circle {
  background-color: #fff;
  border: 1.2px solid #222;
}

/* Page content padding */
.content.page-content {
  padding: 5rem 1.5rem 1.5rem 1.5rem;
}

.content.page-content .inner {
  padding: 1rem;
}

/* Paragraph sizing */
p {
  font-size: clamp(1.125rem, 1.0556rem + 0.2222vw, 1.25rem);
}

/* Episode header proportions */
.episode .header .title {
  flex: 0 0 65%;
}

.episode .header .meta {
  flex: 0 0 30%;
}

/* Main content padding */
#content > .content {
  padding: 1rem 0 1rem 0;
}

/* Header positioning */
header[data-nav] {
  position: relative;
}

/* Print Styles */
@media print {
  header[data-nav],
  footer,
  .audio-player,
  .actions {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .episode {
    page-break-inside: avoid;
  }
}
