
:root {
  --bg: #faf9f7;
  --bg-elevated: #ffffff;
  --bg-soft: #eeebe6;
  --text: #181310;
  --text-soft: #332a25;
  --text-muted: #6b655d;
  --border: #d6d1c8;
  --brand: #2b4562;
  --brand-strong: #1c2f45;
  --ember: #b6422b;
  --shadow: 0 1px 3px rgba(24,19,16,0.06), 0 1px 2px rgba(24,19,16,0.04);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171412;
    --bg-elevated: #211d1a;
    --bg-soft: #2a2522;
    --text: #efebe5;
    --text-soft: #ddd6cd;
    --text-muted: #a39b91;
    --border: #3a3430;
    --brand: #8fb0d3;
    --brand-strong: #b5cde6;
    --ember: #e07a62;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171412;
  --bg-elevated: #211d1a;
  --bg-soft: #2a2522;
  --text: #efebe5;
  --text-soft: #ddd6cd;
  --text-muted: #a39b91;
  --border: #3a3430;
  --brand: #8fb0d3;
  --brand-strong: #b5cde6;
  --ember: #e07a62;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; color: var(--text); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.masthead-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.masthead-nav { display: flex; align-items: center; gap: 16px; }
.masthead-nav a { font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--text-muted); white-space: nowrap; }
.brand-short { display: none; }
.masthead-nav a:hover { color: var(--ember); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}

main { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }
main.landing { max-width: 820px; }

.intro { margin-bottom: 36px; }
.intro-title { font-size: clamp(2.1rem, 6vw, 3rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.intro-tagline { font-size: 1.2rem; color: var(--text-soft); margin: 0 0 14px; }
.intro-schedule {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ember);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 4px 12px;
  margin: 0 0 14px;
}
.intro-byline { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.hero {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.hero:hover { transform: translateY(-2px); color: inherit; }

.hero-kicker, .issue-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero-lede { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text); margin: 0 0 18px; }
.hero-headlines { margin: 0 0 20px; padding-left: 20px; color: var(--text-soft); }
.hero-headlines li { margin-bottom: 6px; }
.hero-cta { font-weight: 600; color: var(--brand); }

.archive h2, .worth-watching h2, .explore-card h2, .subscribe h2, .about h2 {
  font-size: 1.45rem;
  margin: 0 0 16px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.issue-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.issue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.issue-card-date { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 8px; font-weight: 600; }
.issue-card-headline { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 8px; }
.issue-card-count { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.issue-header { margin-bottom: 28px; }
.issue-title { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.issue-disclaimer {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}

.lede {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.55;
  border-left: 3px solid var(--ember);
  padding-left: 20px;
  margin: 0 0 40px;
  color: var(--text);
}

.story-grid { display: flex; flex-direction: column; gap: 32px; }

.story-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.story-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-media.media-broken img { display: none; }
.story-media-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 5; }
.fallback-glyph { font-size: 2rem; }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.65);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.story-media-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 28px;
  aspect-ratio: 16 / 5;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-elevated));
}
.card-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.card-id { font-family: var(--font-serif); font-size: 1.3rem; margin: 8px 0; word-break: break-all; color: var(--text); }
.card-sub { font-size: 0.85rem; color: var(--text-muted); }

.story-body { padding: 24px 28px 28px; }

.story-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

.meter { display: inline-flex; gap: 3px; }
.meter-seg { width: 14px; height: 6px; border-radius: 3px; background: var(--border); display: inline-block; }

.tag-chip {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid;
  border-radius: 6px;
  padding: 2px 8px;
}

.story-headline { font-size: 1.45rem; margin: 0 0 6px; line-height: 1.3; }
.story-dates { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.story-audience { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 12px; }
.story-audience strong { color: var(--text-soft); font-weight: 600; }
.story-text { margin: 0 0 16px; color: var(--text-soft); }

.callout {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
}
.callout-try { border-left: 3px solid var(--ember); }
.callout-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.callout-try .callout-label { color: var(--ember); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pros h4, .cons h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; color: var(--text-muted); }
.pros ul, .cons ul { margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--text-soft); }

.source-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.source-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  max-width: 100%;
}
.source-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-chip:hover { border-color: var(--ember); color: var(--ember); }
.source-favicon { width: 14px; height: 14px; border-radius: 3px; }

.worth-watching { margin-top: 48px; }
.worth-watching-list { padding-left: 20px; color: var(--text-soft); }
.worth-watching-list li { margin-bottom: 10px; }
.worth-watching-list a { font-size: 0.85rem; white-space: nowrap; }

.explore-card {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-soft);
}
.explore-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.explore-card p { color: var(--text-soft); }
.explore-link { display: inline-block; margin-top: 4px; font-weight: 600; text-decoration: none; }

.subscribe {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-elevated);
  text-align: center;
}
.subscribe p { color: var(--text-muted); margin: 0 0 16px; }
.subscribe-button {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
}
.subscribe-button:hover { background: var(--ember); color: var(--bg); }

.issue-nav { margin-top: 48px; }
.issue-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.issue-nav a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; }
.issue-schedule { font-size: 0.9rem; color: var(--text-muted); }

.about-title { font-size: clamp(2rem, 6vw, 2.6rem); margin: 0 0 16px; }
.about-lede { font-size: 1.15rem; color: var(--text-soft); }
.about h2 { margin-top: 40px; }
.about p, .about li { color: var(--text-soft); }
.about li { margin-bottom: 8px; }
.disclaimer-box {
  background: var(--bg-soft);
  border-left: 3px solid var(--ember);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer p { margin: 0 0 6px; max-width: 640px; margin-left: auto; margin-right: auto; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--ember); }

.empty-note { color: var(--text-muted); font-style: italic; }

@media (max-width: 560px) {
  main { padding: 28px 16px 48px; }
  .masthead { padding: 12px 16px; }
  .masthead-brand { font-size: 1rem; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .masthead-nav { gap: 10px; }
  .hero, .explore-card, .subscribe { padding: 22px 18px; }
  .story-body { padding: 20px 18px 22px; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 16px 32px; }
}
