/* ==========================================================================
   The Remarkable Case — stylesheet

   MATCH YOUR BRAND: once you've picked a cover-art design, replace the
   values in the :root block below with colors and fonts pulled from it.
   Everything else in this file references these variables, so a handful
   of edits here restyles the whole site.
   ========================================================================== */

:root {
  /* -- Brand palette (pulled from "The Docket" cover art) -- */
  --color-ink: #17110a;        /* primary text — near-black ink from the plate */
  --color-paper: #fdf6ec;      /* page background — the cream mat */
  --color-paper-dim: #f2ead9;  /* card / section background — deeper cream */
  --color-accent: #6a2027;     /* deep maroon frame/red — links, highlights */
  --color-accent-dim: #98444b;
  --color-gold: #18171f;       /* black outer frame — rule lines, card borders */
  --color-border: #e7d6ce;

  /* -- Type -- */
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* -- Layout -- */
  --max-width: 780px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  padding: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--color-accent); text-decoration: underline; text-decoration-color: var(--color-gold); }
a:hover { color: var(--color-accent-dim); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-ink);
}

.site-header {
  border-bottom: 3px solid var(--color-gold);
  background: var(--color-paper-dim);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-gold);
  flex-shrink: 0;
}

.site-tagline {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--color-accent);
  font-weight: normal;
  margin-top: 0.15rem;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-gold);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.hero__logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--color-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  margin: 0 auto 1.5rem;
  display: block;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.hero p { font-size: 1.15rem; color: #4a4235; max-width: 560px; margin: 0 auto; }

.resources-box {
  background: var(--color-paper-dim);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 2rem;
}
.resources-box ul { margin: 0; padding-left: 1.2rem; }

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}
.button:hover { background: var(--color-accent-dim); color: #fff; }

.listen-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
  margin: 3rem 0 1.25rem;
}
.section-title:first-child { margin-top: 0; }

.episode-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.episode-card:last-child { border-bottom: none; }
.episode-card__meta {
  font-size: 0.85rem;
  color: #6b6152;
  margin-bottom: 0.25rem;
}
.episode-card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.episode-card h3 a { text-decoration: none; }
.episode-card h3 a:hover { text-decoration: underline; }
.episode-card p { margin: 0 0 0.5rem; color: #3c352a; }

.bio-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.bio-card:last-child { border-bottom: none; }
.bio-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-paper-dim);
  border: 2px solid var(--color-gold);
  object-fit: cover;
  flex-shrink: 0;
}
.bio-card h3 { margin: 0 0 0.15rem; }
.bio-card .role { color: var(--color-accent); font-size: 0.9rem; margin-bottom: 0.6rem; display: block; }

@media (max-width: 540px) {
  .bio-card { flex-direction: column; align-items: center; text-align: center; }
}

.episode-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.episode-header__meta { color: #6b6152; font-size: 0.9rem; margin-bottom: 0.5rem; }
.episode-header h1 { font-size: 1.9rem; margin: 0 0 0.75rem; }

.episode-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; font-size: 0.92rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tabs a {
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  font-size: 0.9rem;
}
.tabs a[aria-current="true"] {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.episode-body h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.episode-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.episode-body p { margin: 0 0 1rem; }
.episode-body strong { color: var(--color-ink); }
.episode-body ul { padding-left: 1.3rem; }

.placeholder-note {
  background: #fff7e6;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: #5c4a1a;
  margin-bottom: 1.5rem;
}

.site-footer {
  border-top: 3px solid var(--color-gold);
  background: var(--color-paper-dim);
  margin-top: 3rem;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  font-size: 0.85rem;
  color: #6b6152;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-footer a { color: #6b6152; }
