/* ============================
   Algorithm & Blues – Stylesheet
   ============================ */

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

:root {
  --green:  #3a9e5f;
  --blue:   #2563eb;
  --orange: #e85d1a;
  --purple: #7c3aed;
  --red:    #dc2626;
  --teal:   #0d9488;
  --black:  #111111;
  --offwhite: #f7f6f3;
  --mid:    #e8e6e0;
  --text:   #1a1a1a;
  --muted:  #6b6b6b;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Colour utilities */
.c-green  { color: var(--green); }
.c-blue   { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-purple { color: var(--purple); }
.c-red    { color: var(--red); }
.c-teal   { color: var(--teal); }

/* ============================
   NAV
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mid);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  background: var(--black) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem !important;
}

.nav-cta:hover { background: #333 !important; }

/* ============================
   HERO
   ============================ */
.hero {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 93, 26, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-title { white-space: normal; font-size: 2.4rem; }
}

.hero-amp {
  font-family: 'Playfair Display', serif;
  color: var(--muted);
  font-weight: 400;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  width: 100%;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: white;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--mid);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ============================
   SECTION SHARED
   ============================ */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -1px;
  margin-bottom: 32px;
}

/* ============================
   DECORATIVE COLLAGE IMAGES
   ============================ */
.about, .episodes, .hosts, .cta {
  position: relative;
  overflow: hidden;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 160px;
  height: auto;
}

.deco-about {
  top: 40px;
  right: -20px;
  width: 200px;
  transform: rotate(8deg);
}

.deco-episodes {
  top: 40px;
  left: 24px;
  width: 200px;
  transform: rotate(-6deg);
  opacity: 0.92;
}

.deco-hosts {
  bottom: 0;
  left: 0;
  width: 180px;
  transform: none;
}

.deco-cta {
  top: 20px;
  right: 30px;
  width: 140px;
  opacity: 0.85;
  transform: rotate(8deg);
}

.about .container,
.episodes .container,
.hosts .container,
.cta .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .deco { display: none; }
}

/* ============================
   ABOUT
   ============================ */
.about {
  background: white;
  padding: 80px 0;
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-text p strong { color: var(--text); }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  background: var(--offwhite);
  border-radius: var(--radius);
  border: 1px solid var(--mid);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================
   EPISODES
   ============================ */
.episodes {
  padding: 80px 0;
}

.episode-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--mid);
  margin-bottom: 20px;
}

.episode-card.featured {
  border-left: 4px solid var(--orange);
}

.episode-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.episode-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 93, 26, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.episode-duration {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.episode-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.episode-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

.episode-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--offwhite);
  border: 1px solid var(--mid);
  color: var(--muted);
}

.episode-chapters {
  background: var(--offwhite);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.episode-chapters h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.episode-chapters ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-chapters li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.chapter-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 36px;
  font-variant-numeric: tabular-nums;
}

.episode-listen {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.listen-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.listen-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-link {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--black);
  color: white;
  transition: background 0.2s, transform 0.2s;
}

.platform-link:hover { background: #333; transform: translateY(-1px); }

.more-coming {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 12px;
}
.more-coming a { color: var(--blue); font-weight: 500; }
.more-coming a:hover { text-decoration: underline; }

.spotify-embed {
  max-width: 800px;
  margin: 0 auto;
}

.episodes-loading,
.episodes-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 0.95rem;
}
.episodes-empty a { color: var(--blue); }

.episode-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.episode-audio {
  width: 100%;
  margin: 8px 0 20px;
}

/* ============================
   HOSTS
   ============================ */
.hosts {
  background: white;
  padding: 80px 0;
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.host-card {
  background: var(--offwhite);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--mid);
}

.host-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.host-keith { background: var(--orange); }
.host-ciara { background: var(--green); }
.host-tom   { background: var(--blue); }

.host-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.host-role {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.host-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================
   CTA
   ============================ */
.cta {
  background: var(--black);
  color: white;
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta-platforms {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: white;
  color: var(--black);
}
.cta .btn-primary:hover { background: #eee; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand strong {
  display: block;
  color: white;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p { font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-copy {
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-title { text-align: center; }
  .hero-label { display: block; text-align: center; }
  .hero-bio { text-align: center; margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }

  .about-inner { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; }

  .hosts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .nav-links { gap: 18px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 20px 60px; }
  .hero-title { font-size: 3rem; }
  .episode-card { padding: 24px 20px; }
  .nav-links .nav-cta { display: none; }
  .about-stats { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 12px; }
  .cta-platforms .btn { width: 100%; text-align: center; }
}
