body {
  justify-content: start;
}

.soulkiller {
  --red: #ff2d3f;
  --red-dim: #8a1a24;
  --red-line: #4a1219;
  --red-bg: #1a0507;
  --red-glow: rgba(255, 45, 63, 0.35);
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.soulkiller header,
.soulkiller .layout,
.soulkiller .about {
  padding: 72px 72px 0;
}

.soulkiller .layout {
  padding-top: 8px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  color: var(--text-color);
  border: 1px solid #333;
  background: #0b0b0b;
}

.repo:hover {
  border-color: var(--red);
  color: var(--red);
}

h1 {
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 24px;
}

.intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0;
  color: var(--muted-color);
}

.download {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  font: inherit;
  text-align: left;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red);
  box-shadow: 0 0 24px var(--red-glow);
  cursor: pointer;
}

.download-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.download-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-color);
}

.download-meta span {
  color: var(--red);
}

.blink {
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blink {
    animation: none;
  }
}

.quote {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--red);
  max-width: 640px;
}

.quote blockquote {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

.quote figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-color);
}

.quote figcaption::before {
  content: "— ";
}

.quote figcaption a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

h2 {
  font-weight: 400;
  font-size: 14px;
  margin: 0 0 12px;
}

.about p,
.about ul {
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.about ul {
  padding-left: 1.1em;
}

.benchmarks h2,
.model h2 {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 24px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #1c1c1c;
  border-left: 1px solid #1c1c1c;
}

.spec {
  padding: 8px 12px;
  border-right: 1px solid #1c1c1c;
  border-bottom: 1px solid #1c1c1c;
}

.spec dt {
  margin-bottom: 2px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-color);
}

.pipeline h2 {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 24px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 32px;
}

/* the wire connecting each node to the next */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--red), var(--red-dim));
}

.step.next::before {
  background: none;
  border-left: 2px dashed var(--red-dim);
  width: 0;
}

.node {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  background: var(--red-bg);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 18px var(--red-glow);
}

.step.next .node {
  border-style: dashed;
  color: var(--red-dim);
  border-color: var(--red-dim);
  box-shadow: none;
}

.step.final .node {
  background: var(--red);
  color: var(--background-color);
  box-shadow: 0 0 28px var(--red-glow);
}

.step h3 {
  font-weight: 400;
  font-size: 18px;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step.final h3 {
  color: var(--red);
  text-shadow: 0 0 16px var(--red-glow);
}

.step p {
  margin: 0 0 10px;
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.6;
}

.chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--red);
  border: 1px solid var(--red-line);
  background: var(--red-bg);
}

.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--red-line);
  background: linear-gradient(180deg, var(--red-bg), transparent 60%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart.wide {
  grid-column: 1 / -1;
}

.chart h3 {
  font-weight: 400;
  font-size: 15px;
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.chart figcaption p {
  margin: 0;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.5;
}

.chart-plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-plot.pending {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--red-dim);
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.pending-note {
  color: var(--muted-color);
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.chart .grid {
  stroke: #1c1c1c;
}

.chart .axis {
  stroke: #333;
}

.chart .ref,
.chart .cross {
  stroke: var(--muted-color);
  stroke-dasharray: 3 3;
}

.chart .tick {
  fill: var(--muted-color);
  font-size: 11px;
}

.chart .value {
  fill: var(--text-color);
  font-size: 13px;
}

.chart .line {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart .dot {
  fill: var(--red);
  stroke: var(--background-color);
  stroke-width: 2;
}

.chart .bar.soulkiller {
  fill: var(--red);
}

.chart .bar.base {
  fill: #6b6b6b;
}

.chart-data summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted-color);
  font-size: 12px;
}

.chart-table table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
}

.chart-table th,
.chart-table td {
  padding: 4px 0;
  text-align: left;
  border-bottom: 1px solid #1c1c1c;
  color: var(--muted-color);
}

.chart-tip {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-color);
  background: #0d0d0d;
  border: 1px solid var(--red-line);
}

.chart-tip strong {
  color: var(--text-color);
  font-weight: 400;
}

.tag {
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-dim);
  border: 1px dashed var(--red-dim);
  padding: 1px 6px;
}

.face {
  display: flex;
  justify-content: center;
  padding: 96px 16px 0;
}

/* face.svg is pixel-snapped at 342px and symmetric around the face; only shrink if it must */
.face img {
  max-width: 100%;
  height: auto;
}

.soulkiller footer {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .soulkiller header,
  .soulkiller .layout,
  .soulkiller .about {
    padding: 32px 16px 0;
  }

  .soulkiller .layout {
    padding-top: 8px;
  }

  h1 {
    font-size: 40px;
  }

  .specs,
  .charts,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
