:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #0f1113;
  --panel-2: #0c0e10;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9eaee;
  --muted: #9aa2ad;
  --accent: #7aa7c7;
  --accent-2: #9a8fbf;
  --accent-3: #6fae9b;
  --link: #5ea7ff;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8vw 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.page {
  position: relative;
  z-index: 1;
  padding: 48px 8vw 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  margin: 6px 0 12px;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-size: 0.75rem;
}

.dek {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.value {
  font-size: 1.6rem;
  font-weight: 600;
}

.panel {
  padding: 24px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-weight: 600;
  max-width: 720px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.chart-wrap {
  margin-top: 20px;
  width: 100%;
  height: 320px;
}

.chart-wrap.small {
  height: 240px;
}

.chart-wrap.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

#sr-line,
#sr-buckets {
  width: 100%;
  height: 100%;
}

.note {
  background: var(--panel);
}

.assumptions {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.assumptions ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.assumptions li {
  margin-bottom: 6px;
}

.footer {
  padding: 24px 8vw 40px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .chart-wrap {
    height: 260px;
  }
}
