:root {
  --paper: #f8f6f1;
  --paper-deep: #efe9dc;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #58616d;
  --line: #d8d2c4;
  --accent: #1e3a5f;
  --accent-soft: #e6eef5;
  --green: #496a5a;
  --green-soft: #e8eee9;
  --gold: #8d6e36;
  --shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img, svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: var(--ink);
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .94rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .55rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-deep);
}

main {
  min-height: 60vh;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.25rem 1.25rem;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.75rem 1.25rem 4.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 58, 95, .14);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.hero h1 {
  margin-top: 1.2rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.lede {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  color: var(--muted);
  max-width: 760px;
}

p {
  margin-top: 0;
}

.kicker-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .8rem;
  color: var(--gold);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.kicker-line::before,
.kicker-line::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .88rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.2;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, .17);
}

.button-primary:hover {
  background: var(--green);
  color: #fff;
}

.button-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.net-sheet {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.net-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
  font-weight: 800;
}

.net-row,
.net-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.net-row:last-of-type {
  border-bottom: 0;
}

.net-total {
  color: var(--ink);
  background: var(--green-soft);
  font-weight: 850;
  border-top: 2px solid var(--green);
  border-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: .92rem;
  margin: 1rem 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.grid-3,
.grid-2,
.card-grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(31, 41, 51, .04);
}

.card h3 {
  margin-bottom: .6rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-number {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--accent);
  font-weight: 850;
  margin-bottom: .85rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}

.list-clean li:last-child {
  border-bottom: 0;
}

.callout {
  background: var(--accent);
  color: #fff;
  border-radius: 26px;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  position: relative;
}

.callout h2,
.callout h3,
.callout p {
  color: #fff;
}

.callout p {
  opacity: .88;
}

.callout .button-secondary {
  background: #fff;
  color: var(--ink);
}

.quiet-band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 2.5rem;
}

.page-header h1 {
  max-width: 900px;
}

.breadcrumb {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
}

.content-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.content-narrow h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  margin-top: 2.5rem;
}

.content-narrow h3 {
  margin-top: 1.75rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: .4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem .9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.checkbox {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .92rem;
}

.checkbox input {
  width: auto;
  margin-top: .3rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-link:hover .card {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-link .card {
  transition: transform .16s ease, border-color .16s ease;
  height: 100%;
}

.meta {
  color: var(--muted);
  font-size: .92rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .65rem;
  background: var(--card);
  color: var(--muted);
  font-size: .88rem;
}

.episode-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.player-placeholder {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  background: #fbfaf7;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1ede3;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.disclaimer {
  color: var(--muted);
  font-size: .86rem;
  max-width: 850px;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: .75rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .grid-3,
  .grid-2,
  .card-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
