
:root {
  --bg: #f4f6f2;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #5b6770;
  --border: #dde3da;
  --shadow: 0 10px 24px rgba(17, 24, 39, .08);
  --accent: #2f4f2f;
  --accent-soft: rgba(47, 79, 47, .10);
  --radius: 14px;
  --max: 1100px; 
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}


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

a:hover {
  text-decoration-thickness: 2px;
}


header {
  max-width: var(--max);
  margin: 48px auto 32px; 
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header h1 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover {
  background: var(--accent-soft);
}


main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 80px; 
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


.hero {
  padding: 48px 24px; 
  text-align: center;
  margin-top: 24px;
}

.hero .kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 79, 47, .18);
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h2 {
  margin: 0 0 16px;
  font-family: "Source Serif 4", serif;
  font-size: 28px; 
  line-height: 1.2;
}

.hero p {
  margin: 0 auto;
  max-width: 78ch;
  color: var(--muted);
  font-size: 15px; 
}


.section {
  margin-top: 40px; 
}

.section .card {
  padding: 40px; 
}

.section h3 {
  margin: 0 0 16px;
  font-family: "Source Serif 4", serif;
  font-size: 20px;
}

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

.section p:last-child {
  margin-bottom: 0;
}


.section ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 0;
}

.section li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

.section li strong {
  color: var(--ink);
  font-weight: 600;
}

.data-source-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.data-source-list a {
  font-weight: normal;
  text-decoration: underline;
  color: var(--accent);
}

.data-source-list a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}


.viz {
  margin-top: 40px; 
}

.viz h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left; 
}
.viz .caption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  text-align: left;    
  max-width: 100%;     
  margin-left: 0;    
  margin-right: 0;     
}

.viz .small-text {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.8;
}

.viz figure {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
  width: 100%;
}


.viz .vega-embed {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}


.viz .vega-embed .vega-bindings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px 0;
  width: 100%;
}


.viz .vega-embed canvas,
.viz .vega-embed svg,
.viz .vega-embed .vega-view {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}


.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px; 
  margin-top: 24px;
}

.two-col p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}


footer {
  max-width: var(--max);
  margin: 64px auto 32px; 
  padding: 0 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}


@media (max-width: 820px) {
  .hero h2 { font-size: 26px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  header { margin-top: 32px; flex-direction: column; align-items: flex-start; }
  nav { margin-top: 16px; }
  .section .card { padding: 24px; } 
}
