:root {
  --ink: #141210;
  --ink-2: #3b3631;
  --muted: #6f675e;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e2d9c8;
  --green: #1d402d;      /* brand green: links, nav, contact band */
  --green-dark: #142e20;
  --orange: #ff7a00;     /* brand orange: buttons */
  --orange-dark: #e56d00;
  --orange-ink: #b35400; /* darker brand orange that stays readable as text */
  --max: 1120px;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2); max-width: 40ch; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-media { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fact strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 15px; }

/* Episodes */
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ep { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.ep:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 18, 16, .08); }
.ep img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--line); }
.ep-body { padding: 16px 18px 20px; }
.ep-body h3 { font-size: 19px; margin-bottom: 8px; }
.ep-body p { color: var(--muted); font-size: 15px; margin: 0; }
.ep-body time { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; color: var(--green); text-decoration: none; }

/* Clients */
.clients { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.clients li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.clients { padding: 0; }

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }

/* CTA band */
.cta { background: var(--green); color: var(--paper); }
.cta h2 { color: #fff; }
.cta p { color: #d3e3d6; max-width: 52ch; }
.cta .btn-ghost { border-color: var(--paper); }
.cta .btn-ghost:hover { background: var(--paper); color: var(--green-dark); }

/* Episode archive */
.archive-count { color: var(--muted); font-size: 15px; }
.archive-year { font-size: 26px; margin: 40px 0 8px; }
.archive-year:first-child { margin-top: 0; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive-list a { text-decoration: none; font-weight: 500; min-width: 0; }
.archive-list a:hover { color: var(--green); text-decoration: underline; }
.archive-list time { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Single episode */
.wrap.narrow { max-width: 760px; }
.episode-hero { padding: 56px 0 40px; }
.episode-hero .eyebrow a { text-decoration: none; }
.ep-title { font-size: clamp(30px, 4.6vw, 48px); text-wrap: balance; }
.ep-meta { color: var(--muted); font-size: 15px; }
.ep-meta a { color: var(--green); }
.episode-hero audio { width: 100%; margin-top: 12px; }
.notes { overflow-wrap: anywhere; }
.notes a { color: var(--green); }
.notes ul, .notes ol { padding-left: 1.2em; color: var(--ink-2); }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--green); }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .ep-grid, .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .ep-grid, .services, .facts { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .brand span { display: none; }
}
