:root{
  --bg:#0d0f14;
  --panel:#151922;
  --text:#f1f3f8;
  --muted:#a0a8b8;
  --accent:#6ea8ff;
  --border:rgba(255,255,255,0.08);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(1100px,92%);
  margin:0 auto;
}

/* Links: use accent by default, white when needed via specific components */
a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{ opacity:0.85; }

/* ===== Header (matches revised HTML) ===== */
.site-header{
  background:#000;
  border-bottom:1px solid var(--border);
  padding:16px 0 0;
}

/* Make header/nav align to same wider width */
.gh-header-wrap,
.gh-nav{
  width:min(1350px,92%);
  margin:0 auto;
  padding:0 10px;
}

.gh-header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.gh-celeb{
  width:460px;
}

.gh-brand{
  display:block;
}

.gh-logo{
  width:378px;
}

.gh-nav{
  margin:10px auto 14px;
  display:flex;
  justify-content:flex-end;
  gap:22px;
  flex-wrap:wrap;
}

.gh-nav a{
  color:#fff;
  font-size:15px;
  font-weight:500;
  letter-spacing:0.3px;
  padding:6px 0;
  text-decoration:none;
}
.gh-nav a:hover{ opacity:0.7; }

/* Hide side images + tighten logo on smaller screens */
@media (max-width:1024px){
  .gh-celeb{ display:none; }
  .gh-header-wrap{ justify-content:center; }
  .gh-logo{ width:320px; }
}
@media (max-width:700px){
  .gh-nav{ justify-content:center; gap:14px; }
}

/* ===== Sections / cards ===== */
.section{
  padding:40px 0;
  border-top:1px solid var(--border);
}

.content-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
}

.muted{ color:var(--muted); }

/* ===== Hero ===== */
.hero{
  padding:60px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:30px;
  align-items:start;
}

.hero h1{
  font-size:clamp(32px,4vw,48px);
  margin:0 0 16px;
}

.hero p{
  color:var(--muted);
  max-width:550px;
}

.hero-buttons{ margin-top:20px; }

.btn-primary{
  background:var(--accent);
  color:#000;
  padding:10px 18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  margin-right:10px;
  display:inline-block;
}

.btn-secondary{
  border:1px solid var(--border);
  padding:10px 18px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  display:inline-block;
}

.hero-card{
  background:var(--panel);
  border:1px solid var(--border);
  padding:20px;
  border-radius:16px;
}

.card-label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}

.card-summary{
  margin-top:12px;
  font-size:14px;
  color:var(--muted);
}

/* Callouts under hero */
.home-callouts{
  margin-top:22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  max-width:560px;
}

.callout{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(255,255,255,0.02);
}

.callout-label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}

.callout-text{
  font-size:14px;
  color:var(--text);
}

/* Stack hero on mobile */
@media (max-width:980px){
  .hero{ padding:36px 0 26px; }
  .hero-grid{ grid-template-columns:1fr; }
  .home-callouts{ grid-template-columns:1fr; }
}

/* ===== Listen / Subscribe ===== */
.listen-embed{ margin:16px 0 14px; }

.subscribe-list{
  list-style:none;
  padding:0;
  margin:12px 0 0;
}

.subscribe-list li{ margin-bottom:8px; }

.subscribe-list a{
  color:var(--accent);
  text-decoration:none;
}

/* ===== Topics ===== */
.topics{
  padding:40px 0;
  border-top:1px solid var(--border);
}

.topic-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:16px;
}

.topic-card{
  background:var(--panel);
  border:1px solid var(--border);
  padding:14px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  font-size:14px;
  display:block;
}

.topic-card:hover{ border-color:var(--accent); }

@media (max-width:980px){
  .topic-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .topic-grid{ grid-template-columns:1fr; }
}

/* ===== Home split cards ===== */
.home-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:980px){
  .home-split{ grid-template-columns:1fr; }
}
@media (max-width:700px){
  .content-card{ padding:14px; }
}

/* ===== Episode pages ===== */
.page-hero{ padding:44px 0 18px; }

.page-hero h1{
  margin:0 0 10px;
  font-size:clamp(28px,3vw,40px);
}

.page-subtitle{
  color:var(--muted);
  max-width:75ch;
  margin:0 0 16px;
}

/* Filters */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.filter-pill{
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}
.filter-pill:hover{ border-color:var(--accent); }

/* Episode grid + list */
.episode-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:16px;
}
@media (max-width:980px){
  .episode-grid{ grid-template-columns:1fr; }
}

.episode-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
}

.episode-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.episode-row{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
}

/* In the revised home list, title is a link */
.episode-title{
  margin:0;
  font-size:18px;
}
.episode-title a{
  color:var(--text);
  text-decoration:none;
}
.episode-title a:hover{ opacity:0.85; }

.episode-meta{
  font-size:12px;
  color:var(--muted);
  margin:4px 0 0;
}

.episode-desc{
  margin:8px 0 12px;
  color:var(--muted);
  max-width:70ch;
}

.episode-links{
  margin:12px 0 0;
  font-size:14px;
}
.episode-links a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}
.episode-links a:hover{ opacity:0.8; }

.listen-cta{
  margin-top:12px;
  font-size:14px;
}
.listen-cta a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}
.listen-cta a:hover{ opacity:0.8; }

.placeholder{
  border:1px dashed var(--border);
  border-radius:12px;
  padding:18px;
  color:var(--muted);
  font-size:14px;
}

/* ===== Authors index blocks ===== */
.index-block{ margin-top:18px; }

.index-letter{
  margin:0 0 10px;
  font-size:18px;
  color:var(--text);
}

.index-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media (max-width:980px){
  .index-grid{ grid-template-columns:1fr; }
}

.index-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
}

.index-name{
  margin:0 0 6px;
  font-size:16px;
}

.index-detail{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14px;
}

/* ===== About page ===== */
.about-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:30px;
  align-items:start;
  margin-bottom:30px;
}

.about-photo img{
  width:100%;
  border-radius:16px;
  border:1px solid var(--border);
  display:block;
}

@media (max-width:900px){
  .about-grid{ grid-template-columns:1fr; }
  .about-photo img{ max-width:420px; margin:0 auto; }
}

/* ===== Contact ===== */
.contact-line{ margin:10px 0 0; }
.contact-line a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.contact-line a:hover{ opacity:0.75; }

/* ===== Featured Project (These Two Guys) ===== */
.featured-project{
  padding:80px 20px;
  border-top:1px solid var(--border);
  text-align:center;
}

.featured-inner{
  max-width:800px;
  margin:0 auto;
}

.project-card-wrapper img{
  width:220px;
  height:auto;
  margin:0 auto 20px;
}

.project-description{
  font-size:18px;
  margin-bottom:30px;
  opacity:0.85;
}

.project-buttons{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.project-btn{
  padding:10px 20px;
  border:2px solid #fff;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border-radius:12px;
  transition:background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.project-btn:hover{
  background:#fff;
  color:#000;
  opacity:1;
}

/* ===== Footer ===== */
.site-footer{
  border-top:1px solid var(--border);
  padding:20px 0;
  font-size:14px;
  color:var(--muted);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* ===== Anchor offset for hash links ===== */
.anchor{
  display:block;
  position:relative;
  top:-90px;
  height:0;
  visibility:hidden;
}

/* ===== Books page ===== */
.books-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:10px;
}
@media (max-width:980px){
  .books-grid{ grid-template-columns:1fr; }
}

.book-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  display:flex;
  gap:24px;
  align-items:flex-start;
}

.book-cover,
.book-cover-img{
  width:160px;
  flex:0 0 160px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
}

.book-cover{
  aspect-ratio:2/3;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:13px;
}

.book-info{
  flex:1 1 auto;
  min-width:0;
}

.book-title{
  margin:0 0 6px;
  font-size:18px;
}

.book-meta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13px;
}

.book-desc{
  margin:0 0 12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  max-width:60ch;
  word-wrap:break-word;
}

.book-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.book-btn{
  display:inline-block;
  border:1px solid #fff;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
}

.book-btn:hover{
  background:#fff;
  color:#000;
}

@media (max-width:980px){
  .book-card{ gap:16px; }
  .book-cover,
  .book-cover-img{
    width:120px;
    flex:0 0 120px;
  }
}