:root {
  --paper: #f7f7f2;
  --ink: #111713;
  --muted: #5e6761;
  --line: #d8ded9;
  --accent: #087f5b;
  --code: #17211b;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 23, 19, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 19, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-header, main, footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero {
  padding: 108px 0 78px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.1rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.venue {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.question {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.motivation,
.summary,
.section-intro > p:last-child,
.paper-hook {
  max-width: 54rem;
}

.motivation {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.1rem;
}

.summary {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.button.primary { color: white; background: var(--ink); }

.authors { margin-bottom: 4px; font-size: 0.93rem; }
.authors a { text-decoration-color: rgba(17, 23, 19, 0.3); }
.authors a:hover { text-decoration-color: var(--accent); }
.affiliations { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }

code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.evidence,
.example {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  margin-bottom: 38px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.speed-chart {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
}

.chart-group {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.open-group {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.bar-row + .bar-row { margin-top: 19px; }

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
  font-size: 0.85rem;
}

.bar-label strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}

.bar-label small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e6e1;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.open-row .bar-track span { background: #2eaa7e; }

.speed-chart figcaption {
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.paper-hook {
  margin: 24px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
}

.scale-note {
  margin: 22px 0 0;
  padding: 19px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(8, 127, 91, 0.055);
  color: var(--muted);
  font-size: 0.92rem;
}

.scale-note strong { color: var(--ink); }

.artifacts {
  border-top: 1px solid var(--ink);
}

.artifact {
  border-bottom: 1px solid var(--line);
}

.artifact summary {
  display: grid;
  grid-template-columns: 48px 1fr auto 24px;
  align-items: center;
  min-height: 74px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}

.artifact summary::-webkit-details-marker { display: none; }

.artifact summary::after {
  content: "+";
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  text-align: right;
}

.artifact[open] summary::after { content: "−"; }

.artifact-step,
.artifact-meta,
.artifact-toolbar {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.artifact-step {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
}

.artifact-name { font-weight: 600; }

.artifact-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.artifact-body {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 14px 38px rgba(17, 23, 19, 0.1);
}

.artifact-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #aebcb3;
  font-size: 0.75rem;
}

.artifact-toolbar a { color: #8ee8c1; }

pre {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 20px;
  color: #edf3ef;
  font-size: 0.78rem;
  line-height: 1.65;
}

pre code.hljs {
  padding: 0;
  background: transparent;
}

.source-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: white;
}

footer {
  display: flex;
  align-items: center;
  min-height: 96px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p { margin-bottom: 0; }

@media (max-width: 760px) {
  .hero { padding: 72px 0 56px; }
  .evidence, .example { padding: 64px 0; }
  .speed-chart { padding: 22px 18px; }
  .bar-label { font-size: 0.76rem; }
  .bar-label small { display: block; margin-left: 0; }
  .artifact summary {
    grid-template-columns: 38px 1fr 22px;
    min-height: 68px;
  }
  .artifact-meta { display: none; }
  pre { font-size: 0.72rem; }
}
