@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #F6F1E4;
  --bg-deep: #1E2B22;
  --bg-deep-2: #24352A;
  --ink: #241F17;
  --ink-soft: #4A4436;
  --cream: #F2ECDA;
  --gold: #A9782E;
  --gold-light: #C79B4E;
  --line: rgba(36, 31, 23, 0.14);
  --line-deep: rgba(242, 236, 218, 0.16);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --max: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header / nav */
header.site {
  background: var(--bg-deep);
  color: var(--cream);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 980px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  align-items: center;
}

.wordmark img {
  height: 34px;
  width: auto;
  display: block;
}

.wordmark span { color: var(--gold-light); }

nav.links {
  display: flex;
  gap: 28px;
}

nav.links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.82;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  opacity: 1;
  border-color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-size: 0.9rem;
  font-family: var(--sans);
}

/* Hero */
.hero {
  background: var(--bg-deep);
  color: var(--cream);
  padding: 56px 0 72px;
}

.hero-photo {
  position: relative;
  background-image: linear-gradient(100deg, rgba(30,43,34,0.97) 0%, rgba(30,43,34,0.88) 38%, rgba(30,43,34,0.55) 68%, rgba(30,43,34,0.28) 100%), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center 22%;
  padding: 72px 0 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  color: var(--cream);
}

.hero .topics {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero .kicker {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.hero p.lede {
  color: var(--cream);
  opacity: 0.86;
  font-size: 1.08rem;
  max-width: 56ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border-color: var(--line-deep);
  color: var(--cream);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-outline-dark {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  scroll-margin-top: 24px;
}

.section-head a.see-all {
  font-size: 0.92rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.section-head a.see-all:hover { text-decoration: underline; }

/* Latest episode card */
.player-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.player-card .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.player-card h3 { margin-bottom: 4px; }

.player-card .desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

iframe.spotify-embed {
  border-radius: 10px;
  width: 100%;
  border: none;
}

/* Series / cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card-link:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.card .tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 100px;
  padding: 3px 11px;
  margin-bottom: 12px;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card.has-cover { padding: 0; overflow: hidden; }
.card.has-cover img.cover {
  width: 100%;
  aspect-ratio: 27 / 33;
  object-fit: cover;
  display: block;
}
.card.has-cover .cover-body { padding: 20px 24px 24px; }

.poster-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.poster-banner .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.5);
  transform: scale(1.15);
}
.poster-banner .fg {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

@media (max-width: 720px) {
  .poster-banner { height: 320px; }
}

/* Episode rows */
.ep-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ep-row:last-child { border-bottom: none; }

.ep-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1rem;
  min-width: 28px;
  padding-top: 2px;
}

.ep-row .body { flex: 1; }
.ep-row h3 { margin-bottom: 4px; }
.ep-row .meta { font-size: 0.83rem; color: var(--ink-soft); margin-bottom: 6px; }
.ep-row p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 8px; }
.ep-row a.listen { font-size: 0.86rem; color: var(--gold); text-decoration: none; }
.ep-row a.listen:hover { text-decoration: underline; }

/* Footer */
footer.site {
  background: var(--bg-deep);
  color: var(--cream);
  padding: 48px 0 32px;
  margin-top: 40px;
}

footer.site .grid-2 { gap: 40px; }
footer.site .card,
footer.site .grid-2 { background: none; border: none; padding: 0; }

footer.site h3 { color: var(--cream); font-size: 1rem; }
footer.site p { color: rgba(242,236,218,0.72); font-size: 0.92rem; }
footer.site a { color: rgba(242,236,218,0.85); text-decoration: none; font-size: 0.92rem; }
footer.site a:hover { color: var(--gold-light); }

.foot-links { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-deep);
  font-size: 0.82rem;
  color: rgba(242,236,218,0.55);
}

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

label { font-size: 0.88rem; color: var(--ink-soft); }

input[type="text"], input[type="email"], textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Musings / blog */
.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: none; }
.post-card .meta { font-size: 0.83rem; color: var(--ink-soft); margin-bottom: 6px; }
.post-card p { color: var(--ink-soft); }

.editor-note {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.editor-note strong { color: var(--ink); }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .nav-toggle { display: inline-block; }
}
