*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  background-color: #f4f6f2;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px 20px 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Helvetica Neue', Arial, sans-serif;
  color: #000;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.big {
  font-size: 2.5em;
}

h2 {
  font-size: 1.75em;
}

.small {
  font-size: 1.05em;
}

p {
  margin-bottom: 1em;
  font-weight: 300;
}

section {
  margin-bottom: 32px;
}

.section-light {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background-color: #fbfcfa;
}

a {
  color: #065f46;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.chart-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.chart-item {
  flex: 1 1 0;
  min-width: 280px;
}

.chart-item figure {
  margin: 0;
}

.chart-item .vega-embed,
.chart-item svg,
.chart-item canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.small-text {
  font-size: 13px;
  line-height: 1.4;
  color: #444;
  margin-top: 4px;
}

.chart-container.vertical {
  flex-direction: column;
}

.cc6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.cc6-grid figure {
  margin: 0;
}

.topbar {
  max-width: 1200px;
  margin: 32px auto 18px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 34px;
  letter-spacing: .2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1f2933;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(47, 79, 47, .10);
}

.site-nav a.active {
  background: rgba(47, 79, 47, .10);
}

@media (max-width: 820px) {
  .topbar {
    margin-top: 22px;
    align-items: flex-start;
  }

  .site-title {
    font-size: 28px;
  }

  .site-nav {
    gap: 14px;
    justify-content: flex-end;
  }

  .cc6-grid {
    grid-template-columns: 1fr;
  }
}
