/* === As the Story Goes — Dark Archival Theme === */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg:         #1a1a1a;
  --surface:    #2a2a2a;
  --surface-lt: #333333;
  --text:       #f0e6d3;
  --text-muted: #b8a896;
  --copper:     #b87333;
  --green:      #2d5016;
  --green-lt:   #3d6a20;
  --border:     #3a3a3a;
  --amber:      #c4873a;
  --red:        #8b4545;
  --max-w:      960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* --- Paper-texture overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,230,211,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

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

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* --- Copper divider --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  border: none;
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* === Header === */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.site-logo span { color: var(--copper); }
.site-sub { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: -2px; }

.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.header-nav a { font-size: 0.9rem; color: var(--text-muted); }
.header-nav a:hover { color: var(--text); }
.header-rss {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--green);
  color: var(--text) !important;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.header-rss:hover { background: var(--green-lt); color: var(--text) !important; }
.header-rss svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* === Hero === */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.hero-artwork {
  width: 220px; height: 220px;
  border-radius: 12px;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}
.hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  color: var(--copper);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero .description {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* === Subscribe Section === */
.subscribe-section {
  padding: 1.5rem 0 2rem;
  text-align: center;
}
.subscribe-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.subscribe-box h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.rss-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.rss-url-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Consolas', monospace;
}
.copy-btn {
  background: var(--green);
  color: var(--text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.copy-btn:hover { background: var(--green-lt); }
.copy-btn.copied { background: var(--copper); }
.platform-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* === Episode Grid === */
.episodes-section { padding: 1rem 0 3rem; }
.episodes-section h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.25s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
}
.episode-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-number {
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.05em;
}
.card-badges { display: flex; gap: 0.35rem; }
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.badge-audio   { background: var(--green); color: var(--text); }
.badge-review  { background: var(--amber); color: #1a1a1a; }
.badge-soon    { background: var(--surface-lt); color: var(--text-muted); }
.badge-explicit { background: var(--red); color: var(--text); }
.card-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.card-meta { font-size: 0.8rem; color: var(--text-muted); }
.card-premise { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.card-arrow { font-size: 0.85rem; color: var(--copper); margin-top: auto; }

/* === Episode Page === */
.ep-page { padding: 2.5rem 0 3rem; }
.ep-back {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.ep-back:hover { color: var(--text); }
.ep-header { margin-bottom: 1.5rem; }
.ep-id {
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.05em;
}
.ep-title {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.25rem 0;
}
.ep-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ep-premise {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin: 1rem 0;
  border-left: 3px solid var(--copper);
  padding-left: 1rem;
}

/* Advisory */
.advisory-box {
  background: rgba(196,135,58,0.08);
  border: 1px solid rgba(196,135,58,0.3);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--amber);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.advisory-box .adv-icon { flex-shrink: 0; margin-top: 2px; font-size: 1.1rem; }

/* Methodology note */
.method-box {
  background: var(--surface);
  border-left: 3px solid var(--copper);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.method-box strong { color: var(--text); }

/* Section headings */
.ep-section-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text);
}

/* Transcript / source audit */
.transcript-content, .audit-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.transcript-content p, .audit-content p { margin-bottom: 1rem; }

/* Source list */
.source-list { list-style: none; padding: 0; }
.source-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.source-list li:last-child { border-bottom: none; }
.source-list a { color: var(--copper); }

/* Credits */
.credits-box {
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.credits-box strong { color: var(--text); }

/* Coming Soon placeholder */
.coming-soon-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
}
.coming-soon-box .cs-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-lt);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.coming-soon-box h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.coming-soon-box p { font-size: 0.9rem; }

/* === Footer === */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.site-footer a { color: var(--copper); }

/* === Mobile Nav Overlay === */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'EB Garamond', serif; font-size: 1.4rem; color: var(--text); }
.mobile-nav-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: var(--text);
  font-size: 2rem; cursor: pointer;
}

/* === Utility === */
.review-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--amber);
  color: #1a1a1a;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}
