/* Project subpage — overrides + additions on top of the main site style.css */

.project-page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}
.breadcrumb a {
  color: var(--ink-2);
  border-bottom: 0;
}
.breadcrumb a:hover { color: var(--accent); }

.project-hero { margin-bottom: 3rem; }
.project-hero .display {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}
.project-hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  margin: 0 0 1.6rem;
}
.project-hero .lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
  max-width: none;
}
.hero-cta-row .cta-aside {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.project-page section { margin-top: 3rem; }
.project-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
}
.project-page p {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 64ch;
}
.project-page p strong { color: var(--ink); }

.project-page code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.4em;
  background: var(--bg-alt);
  border-radius: 3px;
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.metric-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.metric-label .hint {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
@media (max-width: 720px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .metric-grid { grid-template-columns: 1fr; } }

.chart {
  width: 100%;
  height: 420px;
  margin: 1.25rem 0 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem 0.5rem;
}
#chart-features { height: 360px; }
@media (max-width: 640px) {
  .chart { height: 360px; padding: 0.5rem 0.25rem; }
  #chart-features { height: 320px; }
}

.findings {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.2rem;
  color: var(--ink-2);
}
.findings li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
  max-width: 62ch;
}
.findings li::marker { color: var(--ink-faint); }

.source p { font-size: 0.97rem; }

#inline-cov { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
