:root {
  color-scheme: light;
  --ink: #13201a;
  --muted: #55605a;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9ddd6;
  --green: #245f4f;
  --red: #d95d4f;
  --blue: #2867b2;
  --gold: #f0c84b;
  --violet: #5b4b8a;
  --shadow: 0 18px 42px rgba(19, 32, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(36, 95, 79, 0.38);
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.content-section,
.method-section,
.article-shell,
.related-section,
.listing-hero,
.static-page,
.home-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #26332c;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: stretch;
  padding: 58px 0 34px;
}

.hero-copy {
  padding: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.listing-hero h1,
.article-hero h1,
.static-page h1 {
  margin: 10px 0 16px;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p,
.listing-hero p,
.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 32px;
  background: var(--ink);
  color: #fff;
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  font-size: 46px;
  line-height: 1;
}

.hero-panel span {
  margin-bottom: 18px;
  color: #e9eee8;
  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-panel {
  max-width: 720px;
  margin-top: 28px;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: #334139;
  font-size: 14px;
  font-weight: 800;
}

.search-panel div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
}

.search-panel input,
.search-panel button {
  min-height: 48px;
  border: 1px solid #bfc8c1;
  border-radius: 6px;
  font: inherit;
}

.search-panel input {
  width: 100%;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.search-panel button {
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.compact-search {
  max-width: 560px;
}

.content-section,
.related-section {
  padding: 42px 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2,
.method-section h2,
.wide-section h2,
.quick-facts h2,
.source-notes h2,
.related-section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

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

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

.content-card,
.net-worth-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-card[hidden] {
  display: none;
}

.card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef3ee;
}

.card-image img,
.net-worth-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body h3,
.net-worth-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.card-body p,
.net-worth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #334139;
  font-size: 14px;
  font-weight: 800;
}

.category-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-grid a {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.category-grid span {
  color: var(--muted);
  font-size: 14px;
}

.method-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 42px 0 72px;
}

.method-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.listing-hero {
  padding: 44px 0 18px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  padding: 44px 0 32px;
}

.article-hero img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #324139;
  font-weight: 800;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 820px);
  gap: 34px;
  align-items: start;
  padding-bottom: 42px;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc nav {
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.article-content {
  min-width: 0;
}

.article-content h2,
.article-content h3 {
  margin: 38px 0 10px;
  line-height: 1.2;
  letter-spacing: 0;
}

.article-content h2 {
  font-size: 30px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content p,
.article-content li {
  color: #303a34;
  font-size: 18px;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.quick-facts {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quick-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.quick-facts div {
  min-width: 0;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #f7f8f3;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.article-figure {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.article-figure figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin: 28px 0;
  border: 1px dashed #aeb8b0;
  border-radius: 8px;
  background: #f4f5ef;
  color: #6a746d;
  font-size: 13px;
  font-weight: 800;
}

.source-notes,
.wide-section {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-notes p,
.source-notes li,
.wide-section p {
  color: var(--muted);
}

.income-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.income-table div {
  display: grid;
  grid-template-columns: minmax(0, 220px) 70px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.income-table p {
  margin: 0;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

.net-worth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.net-worth-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.net-worth-card img {
  aspect-ratio: 16 / 9;
}

.net-worth-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.static-page {
  max-width: 840px;
  padding: 44px 0 72px;
}

.static-page p,
.static-page li {
  color: #303a34;
  font-size: 18px;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.footer-inner p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #dce5df;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: #fff;
}

@media (max-width: 980px) {
  .home-hero,
  .article-hero,
  .article-layout,
  .method-section,
  .net-worth-card {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .card-grid,
  .card-grid.compact,
  .category-grid,
  .net-worth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    gap: 12px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-copy h1,
  .listing-hero h1,
  .article-hero h1,
  .static-page h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .listing-hero p,
  .article-hero p,
  .method-section p {
    font-size: 17px;
  }

  .search-panel div,
  .card-grid,
  .card-grid.compact,
  .category-grid,
  .net-worth-grid,
  .quick-facts dl,
  .income-table div {
    grid-template-columns: 1fr;
  }

  .article-content h2,
  .section-heading h2,
  .method-section h2,
  .wide-section h2,
  .quick-facts h2,
  .source-notes h2,
  .related-section h2 {
    font-size: 25px;
  }

  .article-content p,
  .article-content li,
  .static-page p,
  .static-page li {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
