/* Precious Gem — front page. Coal + emerald, matching the show artwork. */

:root {
  --coal: #050505;
  --rock: #151515;
  --emerald: #083e2e;
  --signal: #0fc668;
  --paper: #fdfdfd;
  --muted: #c9c9c9;
  --line: #2a2a2a;
  --font: Futura, "Century Gothic", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--paper);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--signal);
  color: var(--coal);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  background: var(--coal);
  border-bottom: 1px solid var(--emerald);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark-accent {
  color: var(--signal);
}

.wordmark-gem {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: var(--muted);
}

.nav-list a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 0.3em;
}

.nav-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--paper);
  border-radius: 50%;
}

.nav-icon a:hover {
  color: var(--signal);
  text-decoration: none;
}

.nav-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--coal);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(5, 5, 5, 0.94) 0%,
      rgba(5, 5, 5, 0.62) 34%,
      rgba(5, 5, 5, 0.12) 62%,
      rgba(5, 5, 5, 0.28) 100%
    ),
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.52) 0%,
      rgba(5, 5, 5, 0.2) 46%,
      rgba(5, 5, 5, 0) 72%
    );
}

.hero-content {
  padding-block: 5rem 3.5rem;
}

.eyebrow {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.hero h1 {
  margin: 0 0 0 -0.07em;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.tagline {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
}

.host {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--signal);
  color: var(--coal);
}

.button-primary:hover {
  background: #2fe07f;
}

.button-outline {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(5, 5, 5, 0.35);
}

.button-outline:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.section-rock {
  background: var(--rock);
  border-block: 1px solid var(--line);
}

.section-note {
  margin: -1rem 0 1.75rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--rock);
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

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

.text-link {
  font-weight: 700;
  color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

/* Featured episode */

.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.featured-art {
  margin: 0;
}

.featured-art img {
  width: 100%;
  max-width: 340px;
  border-radius: 0.5rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.featured-body h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.25;
}

.featured-body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.featured-player {
  grid-column: 1 / -1;
}

.featured-player iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.5rem;
  background: #000;
}

.subhead {
  margin: 2.5rem 0 1rem;
  font-size: 1.2rem;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.episode-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.episode-number {
  font-weight: 700;
  color: var(--signal);
}

.episode-title {
  font-weight: 700;
}

.episode-list a.episode-title {
  text-decoration: none;
}

.episode-list a.episode-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 0.3em;
}

/* Submit */

.section-emerald {
  background: var(--emerald);
}

.submit-inner p {
  max-width: 36rem;
}

.submit-inner h2 {
  margin-bottom: 0.75rem;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.section-emerald .button-outline {
  background: transparent;
}

/* Footer */

.site-footer {
  background: var(--coal);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}

.footer-inner p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.footer-name {
  color: var(--paper);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--paper);
}

.copyright {
  font-size: 0.9rem;
}

/* Wider screens */

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured {
    grid-template-columns: 300px 1fr;
    padding: 2rem;
  }

  .hero {
    min-height: 82vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Inner pages */

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.page-lead {
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
}

.page-text {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.page-text:last-child {
  margin-bottom: 0;
}

.nav-list a[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 0.3em;
}

/* Full episode list */

.episode-list-full li {
  align-items: flex-start;
}

.episode-main {
  flex: 1 1 16rem;
  min-width: 0;
}

.episode-main .episode-title {
  display: block;
}

.episode-desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.episode-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-left: auto;
  text-align: right;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-date {
  color: var(--muted);
  white-space: nowrap;
}

/* Single-card page */

.single-card {
  max-width: 44rem;
}

.card p.card-actions {
  margin: 1.25rem 0 0;
}

/* Playlists page */

.playlist-block {
  margin: 0 0 2.5rem;
}

.playlist-block:last-child {
  margin-bottom: 0;
}

.playlist-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.playlist-block iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: var(--rock);
}

.playlist-block p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Social icons (footer) */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--paper);
  border-radius: 50%;
}

.social-icons a:hover {
  color: var(--signal);
}

.social-icons svg {
  width: 26px;
  height: 26px;
  display: block;
}

@media (max-width: 480px) {
  .social-icons {
    gap: 0.25rem 0.6rem;
  }
}
