:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #20252c;
  --secondary: #454d57;
  --muted: #555e69;
  --line: #d9dde2;
  --complete: #166534;
  --current: #1d4ed8;
  --current-row: #f3f7ff;
  font: 100%/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 62rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
header { border-bottom: 1px solid var(--line); }

.mast, .heading, .roadmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
}
.mast { padding-block: .75rem; font-size: .925rem; font-weight: 600; }
.credit { margin-block: -.2rem .7rem; color: var(--secondary); font-size: .9rem; }
.credit strong { color: var(--ink); font-weight: 600; }
.machine, .tested, .roadmap-head p, footer, .notice {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.heading { padding-block: 1.65rem 1.25rem; }
h1 { font-size: clamp(1.95rem, 4vw, 2.65rem); letter-spacing: -.035em; font-weight: 650; }
.focus {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: .75rem clamp(1rem, 4vw, 2.5rem);
  padding: .2rem 0 .2rem 1rem;
  border-inline-start: 3px solid var(--current);
}
.stage-count { margin-bottom: .25rem; color: var(--current); font-weight: 650; }
.focus h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 600; }
.focus-notes { display: grid; gap: .6rem; }
.focus-notes h3 { font-size: 1rem; font-weight: 650; }
.focus-notes p { margin-top: .12rem; color: var(--secondary); }
.focus-notes p, .step-body p { overflow-wrap: anywhere; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; }

.roadmap { margin-top: clamp(1.5rem, 4vw, 2.4rem); }
.roadmap-head { margin-bottom: .75rem; }
.roadmap-head h2 { font-size: 1.3rem; font-weight: 650; }
.stage-summary { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.stage-summary a { text-underline-offset: .16em; }
.stage-summary a:focus-visible { outline: 2px solid var(--current); outline-offset: 3px; }
ol { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.stage {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 6.2rem;
  column-gap: .75rem;
  align-items: baseline;
  padding: .85rem .75rem;
  border-top: 1px solid var(--line);
  border-inline-start: 3px solid transparent;
  scroll-margin-block-start: .75rem;
}
.stage-current { border-inline-start-color: var(--current); background: var(--current-row); }
.number { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.number::after { content: "."; }
.stage-current .number { color: var(--current); }
.step-body h3 { font-size: 1.0625rem; font-weight: 650; }
.step-body p { max-width: 68ch; margin-top: .2rem; color: var(--secondary); }

.state {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.state::before { content: ""; display: inline-block; flex: none; }
.state-complete { color: var(--complete); }
.state-complete::before {
  width: .72rem;
  height: .42rem;
  margin-top: -.14rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.state-current { color: var(--current); }
.state-upcoming { color: var(--muted); }
.state-current::before, .state-upcoming::before {
  width: .62rem;
  height: .62rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.state-current::before { background: currentColor; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.coverage { margin-block: 1.25rem 1.75rem; max-width: 52rem; }
.coverage h2 { margin-bottom: .35rem; font-size: 1.2rem; }
.shader-count { margin: .75rem 0; }
.shader-count h3 { margin: 0 0 .15rem; font-size: 1rem; }
.shader-batch { border-top: 1px solid var(--line); padding-top: .7rem; }
.coverage progress { display: block; appearance: none; width: 100%; height: .65rem; margin: .45rem 0; border: 0; border-radius: 1rem; overflow: hidden; background: var(--line); color: var(--current); }
.coverage progress::-webkit-progress-bar { background: var(--line); }
.coverage progress::-webkit-progress-value { background: var(--current); }
.coverage progress::-moz-progress-bar { background: var(--current); }
.coverage .coverage-note { margin-top: .35rem; font-size: .875rem; color: var(--muted); }
.notice { margin-block: 1rem 0; }
footer { padding-block: .9rem 1.5rem; }

@media (max-width: 42rem) {
  .heading, .roadmap-head { flex-direction: column; }
  .focus { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1.2rem minmax(0, 1fr); gap: .15rem .55rem; padding-inline: .45rem; }
  .number { grid-column: 1; grid-row: 1; }
  .step-body { display: contents; }
  .step-body h3 { grid-column: 2; grid-row: 1; }
  .state { grid-column: 2; grid-row: 2; }
  .step-body p { grid-column: 2; grid-row: 3; }
}
