:root {
  color-scheme: light;

  /* palette */
  --green: #D8FFD1;
  --blue: #D1EFFF;
  --pink: #F8D1FF;
  --peach: #FFE1D1;

  --bg: #f8faf7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-accent: #edf8eb;
  --text: #1a2618;
  --text-muted: #566654;
  --border: rgba(26, 38, 24, 0.1);
  --shadow: 0 18px 50px rgba(30, 50, 28, 0.1);
  --brand: #5a9e52;
  --brand-strong: #478a3f;
  --button-text: #ffffff;
  --hero-glow:
    radial-gradient(circle at 15% 10%, rgba(216, 255, 209, 0.55), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(209, 239, 255, 0.50), transparent 35%),
    radial-gradient(circle at 75% 90%, rgba(248, 209, 255, 0.45), transparent 35%),
    radial-gradient(circle at 10% 85%, rgba(255, 225, 209, 0.45), transparent 35%);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --green: #2a4d24;
  --blue: #1e3a4f;
  --pink: #3f2345;
  --peach: #4a3023;

  --bg: #0e120d;
  --surface: rgba(16, 22, 14, 0.82);
  --surface-strong: #151d13;
  --surface-accent: #172115;
  --text: #e4f0e2;
  --text-muted: #a3b5a0;
  --border: rgba(228, 240, 226, 0.1);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  --brand: #8fc889;
  --brand-strong: #b0dda9;
  --button-text: #0e120d;
  --hero-glow:
    radial-gradient(circle at 15% 10%, rgba(42, 77, 36, 0.35), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(30, 58, 79, 0.30), transparent 35%),
    radial-gradient(circle at 75% 90%, rgba(63, 35, 69, 0.28), transparent 35%),
    radial-gradient(circle at 10% 85%, rgba(74, 48, 35, 0.28), transparent 35%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  background-image: var(--hero-glow);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 20;
}

.skip-link:focus {
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 18px;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
}

.brand-tagline,
.section-label,
.eyebrow,
.episode-date,
.episode-number {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--brand);
}

.theme-toggle,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.theme-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-episodes {
  padding-top: 1.5rem;
}

.body-art {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.body-art img {
  width: auto;
  height: auto;
  max-height: 300px;
  opacity: 0.85;
  filter: saturate(1.3);
  mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-composite: destination-in;
}

html[data-theme="dark"] .body-art img {
  opacity: 0.85;
  filter: saturate(1.3);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.section-grid h2 {
  margin: 0.35rem 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  max-width: 36ch;
}

.hero-text,
.section-copy p,
.section-intro,
.episode-card p,
.platform-copy {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible,
.platform-card:hover,
.platform-card:focus-visible,
.episode-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: var(--button-text);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-strong);
}

.button-secondary {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-panel,
.platform-card,
.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 2rem;
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.section-grid {
  align-items: start;
}

.section-accent {
  background: color-mix(in srgb, var(--surface-accent) 80%, transparent);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.link-grid,
.episode-list {
  display: grid;
  gap: 1.25rem;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-card,
.episode-card {
  padding: 1.4rem;
  text-decoration: none;
}

.platform-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

.episode-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.episode-card h3 {
  margin: 0.85rem 0 0.6rem;
  font-size: 1.25rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.episode-card:nth-child(1) { border-top: 3px solid var(--green); }
.episode-card:nth-child(2) { border-top: 3px solid var(--blue); }
.episode-card:nth-child(3) { border-top: 3px solid var(--pink); }

.platform-card:nth-child(1) { border-top: 3px solid var(--blue); }
.platform-card:nth-child(2) { border-top: 3px solid var(--pink); }
.platform-card:nth-child(3) { border-top: 3px solid var(--peach); }

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 60%, white);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .section-grid,
  .link-grid,
  .episode-list {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .episode-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    padding: 0.85rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
