@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/plex-sans-e2291e842c.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Serif';
  src: url('/assets/fonts/plex-serif-677082fc2e.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f2f6f1;
  --surface: #ffffff;
  --rule: #c5d6c8;
  --rule-soft: #dfe8e1;
  --ink: #14261c;
  --ink-2: #4f6b5b;
  --pen: #1f4e8c;
  --pen-soft: #e3ecf8;
  --warning: #b45309;
  --up: #b8651b;
  --down: #1f4e8c;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #6250d6;
  --heat-1: #eef3fa;
  --heat-2: #d9e4f4;
  --heat-3: #c0d2ec;
  --heat-4: #a4bfe3;
  --heat-5: #87abd9;
  --font-sans: 'Plex Sans', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Plex Serif', 'IBM Plex Serif', Georgia, serif;
  --max: 1200px;
  --pad: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1512;
    --surface: #151c18;
    --rule: #2c3a31;
    --rule-soft: #22302a;
    --ink: #e6eee8;
    --ink-2: #9db3a5;
    --pen: #7faae6;
    --pen-soft: #1b2b40;
    --warning: #e0924a;
    --up: #e0924a;
    --down: #7faae6;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #9085e9;
    --heat-1: #182029;
    --heat-2: #1b2b40;
    --heat-3: #1f3652;
    --heat-4: #244264;
    --heat-5: #2a4f78;
  }
}
@media (min-width: 720px) {
  :root {
    --pad: 48px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
}
a {
  color: var(--pen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 2px;
}
h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 24px;
  margin-top: 0;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 1.2em 0 0.4em;
}
@media (min-width: 720px) {
  h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 26px;
  }
}
p {
  margin: 0 0 1em;
  max-width: 68ch;
}
.lead {
  font-size: 19px;
  line-height: 1.45;
  max-width: 60ch;
}
.spec,
.sub,
.muted,
.section-head p {
  color: var(--ink-2);
}
.spec {
  font-size: 15px;
}
.sub {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}
.num {
  text-align: right;
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--pen);
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--pen) 3px 4px);
}
.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--pen);
}

/* Hero and stamp */
.hero {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 40px 0 24px;
}
@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1fr auto;
    gap: 48px;
    padding: 56px 0 32px;
  }
}
.stamp {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-self: start;
  border: 2px solid var(--pen);
  color: var(--pen);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  transform: rotate(-1.5deg);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 2px var(--paper),
    inset 0 0 0 3px var(--pen);
}
.page-head {
  padding: 28px 0 8px;
}
.crumbs {
  padding-top: 20px;
  font-size: 14px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--rule);
}

/* Sections */
section {
  margin: 36px 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 0;
  font-size: 15px;
}
.two-col {
  display: grid;
  gap: 24px 48px;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.prose {
  max-width: 68ch;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.5em;
}
.empty {
  color: var(--ink-2);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Figures row */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 24px;
  margin: 16px 0 8px;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
}
.figures dt {
  font-size: 13px;
  color: var(--ink-2);
}
.figures dd {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
}

/* Ledger tables */
.table-wrap {
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.ledger th,
table.ledger td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}
table.ledger .num,
table.ledger time,
table.ledger .price,
table.ledger .source {
  white-space: nowrap;
}
table.ledger tbody tr:last-child th,
table.ledger tbody tr:last-child td {
  border-bottom: 0;
}
table.ledger thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}
table.ledger tbody th {
  font-weight: 500;
}
table.ledger .num {
  text-align: right;
}
table.ledger tr.best {
  background: var(--pen-soft);
}
table.ledger tr[hidden] {
  display: none;
}
table.ledger .price {
  font-size: 16px;
  font-weight: 500;
}
table.ledger tr.best .price {
  font-weight: 600;
}
button.sort {
  all: unset;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding-right: 14px;
  position: relative;
}
button.sort::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--rule);
  transform: translateY(-50%);
}
th[aria-sort='ascending'] button.sort::after {
  border-top: 0;
  border-bottom: 5px solid var(--pen);
}
th[aria-sort='descending'] button.sort::after {
  border-top-color: var(--pen);
}
@media (max-width: 800px) {
  .sticky-first table.ledger th:first-child,
  .sticky-first table.ledger td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--rule-soft);
  }
  .sticky-first table.ledger tr.best th:first-child {
    background: var(--pen-soft);
  }
  .sticky-first table.ledger thead th:first-child {
    z-index: 3;
  }
}
table.ledger.unit-instance .col-per-gpu,
table.ledger:not(.unit-instance) .col-per-instance {
  display: none;
}
.heat-1 {
  background: var(--heat-1);
}
.heat-2 {
  background: var(--heat-2);
}
.heat-3 {
  background: var(--heat-3);
}
.heat-4 {
  background: var(--heat-4);
}
.heat-5 {
  background: var(--heat-5);
}
td.heat span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.source {
  font-size: 13px;
}
.spark {
  color: var(--ink-2);
  vertical-align: middle;
}
.spark-empty {
  display: inline-block;
  width: 120px;
}

/* Badges: icon plus text, never colour alone */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  vertical-align: middle;
}
.badge-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge-held,
.badge-stale,
.badge-failed {
  color: var(--warning);
}
.badge-ok {
  color: var(--series-3);
}
.badge-partial {
  color: var(--warning);
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.control {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
  border: 0;
  padding: 0;
  margin: 0;
}
.control legend {
  padding: 0;
  margin-bottom: 4px;
}
.control select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 8px;
  min-width: 140px;
}
.segmented {
  flex-direction: column;
}
.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  background: var(--pen-soft);
  border-color: var(--pen);
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--pen);
  outline-offset: 2px;
}
.segmented > label + label {
  margin-left: -1px;
}
.segmented legend + label {
  border-radius: 4px 0 0 4px;
}
.segmented label:last-child {
  border-radius: 0 4px 4px 0;
}
.segmented {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.segmented legend {
  float: left;
  width: 100%;
}
.button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--surface);
  background: var(--pen);
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.1);
}
.control-count {
  font-size: 13px;
  color: var(--ink-2);
  align-self: center;
}

/* Lists of changes and sources */
.changes,
.sources {
  list-style: none;
  margin: 0;
  padding: 0;
}
.changes li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}
.change-label {
  flex: 1 1 240px;
}
.sources li {
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--rule-soft);
}
.sources h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.sources p {
  font-size: 15px;
  margin-bottom: 8px;
}
.log-day {
  margin: 28px 0;
}

/* Charts */
.chart {
  margin: 16px 0 0;
}
.chart figcaption {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.chart-frame {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  font-family: var(--font-sans);
}
.chart .grid {
  stroke: var(--rule-soft);
  stroke-width: 1;
}
.chart .tick {
  fill: var(--ink-2);
  font-size: 12px;
}
.chart .series-label {
  fill: var(--ink);
  font-size: 13px;
}
.chart .crosshair {
  stroke: var(--ink-2);
  stroke-dasharray: 3 3;
}
.series-1 polyline,
.series-1.swatch {
  stroke: var(--series-1);
  background: var(--series-1);
}
.series-2 polyline,
.series-2.swatch {
  stroke: var(--series-2);
  background: var(--series-2);
}
.series-3 polyline,
.series-3.swatch {
  stroke: var(--series-3);
  background: var(--series-3);
}
.series-4 polyline,
.series-4.swatch {
  stroke: var(--series-4);
  background: var(--series-4);
}
.series-1 circle {
  fill: var(--series-1);
}
.series-2 circle {
  fill: var(--series-2);
}
.series-3 circle {
  fill: var(--series-3);
}
.series-4 circle {
  fill: var(--series-4);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.chart-tip {
  position: absolute;
  top: 8px;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Tools */
.tool {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin: 8px 0 24px;
}
.tool label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.tool input,
.tool select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 10px;
}
.tool .button {
  justify-self: start;
}
.tool-result {
  display: block;
  font-size: 17px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 1.5em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
  padding: 24px var(--pad) 40px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.site-footer p {
  max-width: 80ch;
}
.release {
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header nav,
  .toolbar,
  .skip {
    display: none;
  }
  .table-wrap {
    overflow: visible;
  }
}
