@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1A1A1A;
  --paper: #FAF7F2;
  --rust: #B8472A;
  --forest: #2D4A3E;
  --terracotta: #D4866C;
  --gold: #C8A961;
  --cream: #F0E9DD;
  --stone: #8B8378;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
}

/* --- Typography --- */

h1, h2, h3 { font-family: Georgia, serif; font-weight: 700; }
h1 { font-size: 2.75rem; line-height: 1.18; }
h2 { font-size: 1.875rem; line-height: 1.27; }
h3 { font-family: 'Inter', sans-serif; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }

.ui-text, .eyebrow, nav, button, input, select, label, .meta {
  font-family: 'Inter', sans-serif;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.meta {
  font-size: 0.8125rem;
  color: var(--stone);
  line-height: 1.38;
}

.accent { color: var(--rust); }
.period { color: var(--rust); }

a { color: var(--ink); text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

/* --- Layout --- */

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--cream); }

/* --- Navigation --- */

nav.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cream);
}

.wordmark {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

nav.top-nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

nav.top-nav .nav-links a {
  text-decoration: none;
  color: var(--stone);
}
nav.top-nav .nav-links a:hover { color: var(--ink); }

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background-color: var(--rust);
  color: var(--paper);
}
.btn-primary:hover { background-color: #9a3b22; color: var(--paper); }

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background-color: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--stone);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--ink); }

/* --- Cards --- */

.card {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* --- Podcast Card --- */

.pod-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1.5px solid var(--cream);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s;
}
.pod-card:hover { border-color: var(--terracotta); }
.pod-card.selected { border-color: var(--rust); background: #fdf8f6; }

.pod-card .pod-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--forest);
  flex-shrink: 0;
}

.pod-card .pod-info h4 {
  font-family: Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pod-card .pod-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--stone);
  line-height: 1.4;
}

/* --- Digest Player --- */

.player-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.player-card audio {
  width: 100%;
  margin: 1.25rem 0;
  border-radius: 4px;
}

.chapter-list { list-style: none; }

.chapter-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  align-items: flex-start;
}
.chapter-item:last-child { border-bottom: none; }

.chapter-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rust);
  min-width: 4rem;
  padding-top: 0.15rem;
}

.chapter-info h4 {
  font-family: Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.chapter-source {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chapter-summary {
  font-size: 0.875rem;
  color: var(--stone);
  margin-top: 0.35rem;
  font-family: 'Inter', sans-serif;
}

/* --- Hero --- */

.hero {
  padding: 6rem 0 4rem;
  text-align: left;
}

.hero h1 { margin-bottom: 1.25rem; max-width: 580px; }

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--stone);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* --- Stats --- */

.stats-row {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
}

.stat { text-align: left; }
.stat .stat-number {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}
.stat .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* --- Pull Quote --- */

.pull-quote {
  font-family: Georgia, serif;
  font-size: 1.375rem;
  font-style: italic;
  color: var(--forest);
  border-left: 3px solid var(--rust);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  line-height: 1.55;
}

/* --- Dashboard --- */

.dash-header {
  padding: 3rem 0 1.5rem;
}

.dash-header .greeting {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.dash-header .greeting-sub {
  color: var(--stone);
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

.digest-banner {
  background: var(--forest);
  color: var(--paper);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.digest-banner h2 { color: var(--paper); font-size: 1.375rem; }
.digest-banner .digest-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--terracotta);
  margin-top: 0.4rem;
}

.digest-banner .btn-play {
  background: var(--rust);
  color: var(--paper);
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.digest-banner .btn-play:hover { background: #d4553a; color: var(--paper); }

/* --- Footer --- */

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--stone);
  text-align: center;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0 2rem; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .digest-banner { flex-direction: column; gap: 1.25rem; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
}
