* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0b0b0c;
  color: #f2f2f2;
}

main {
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

p {
  color: #999;
}

a {
  color: #6ea8fe;
}

body.projects-page {
  display: block;
  padding: 3rem 1.5rem 5rem;
}

.projects-main {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.intro {
  margin-bottom: 2.5rem;
}

.project {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #222;
}

.project:last-child {
  border-bottom: none;
}

.project h2 {
  font-size: 1.4rem;
  color: #f2f2f2;
  margin-bottom: 1rem;
}

.project p {
  color: #ccc;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project code {
  background: #1a1a1c;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e6e6e6;
}

.eval-chart-frame {
  --gt: #4dabf7;
  --gen2: #7a7a7a;
  --pred: #ff922b;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #131315;
  border: 1px solid #262626;
  border-radius: 8px;
}

.eval-chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f2f2f2;
  margin-bottom: 0.4rem;
}

.eval-chart-meta {
  font-weight: 400;
  color: #888;
  font-size: 0.85rem;
  margin-left: 0.4rem;
}

.eval-chart-legend {
  margin-bottom: 1rem;
}

.eval-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 14px;
  font-size: 0.8rem;
  color: #ccc;
}

.eval-chart-legend .swatch {
  width: 14px;
  height: 3px;
  display: inline-block;
  border-radius: 2px;
}

.eval-chart .chartwrap {
  margin-bottom: 1.25rem;
}

.eval-chart .chartwrap h3 {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0 0 0.2rem;
  font-weight: 500;
}

.eval-chart svg {
  width: 100%;
  height: 200px;
  display: block;
}

.eval-chart .axis {
  stroke: #444;
  stroke-width: 1;
}

.eval-chart .grid {
  stroke: #232323;
  stroke-width: 1;
}

.eval-chart .tick {
  fill: #777;
  font-size: 10px;
}

.eval-chart-caption {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
}
