:root {
  --dusk: #2a2832;
  --dusk-deep: #201e27;
  --fog: #45424f;
  --haze: #aaa3b6;
  --sky: #e6e0e8;
  --straw: #d6bc7f;
  --chart-win32: #8b7bbe;
  --chart-x64: #b58c3c;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-code: "JetBrains Mono", Consolas, monospace;
  --gutter: max(clamp(16px, 5vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --text-width: 42rem;
  --wide-width: 70rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dusk);
  color: var(--sky);
  font: 400 1.0625rem/1.65 var(--font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--straw);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--straw);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}

h2 {
  font: 500 clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem)/1.15 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3 {
  font: 600 1.0625rem/1.4 var(--font-body);
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

code {
  font: 400 0.875em/1.5 var(--font-code);
  white-space: nowrap;
}

.nb {
  white-space: nowrap;
}

pre {
  margin: 0 0 1rem;
  padding: 1rem 1.125rem;
  overflow-x: auto;
  background: var(--dusk-deep);
  border-left: 2px solid var(--fog);
  font: 400 0.875rem/1.7 var(--font-code);
  tab-size: 2;
}

pre code {
  font: inherit;
  white-space: pre;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--straw);
  color: var(--dusk-deep);
  font-weight: 600;
}

.skip:focus-visible {
  top: 16px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(90svh, 54rem);
  padding: 1.25rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--dusk) 0%, rgb(42 40 50 / 0.92) 34%, rgb(42 40 50 / 0.15) 62%, rgb(42 40 50 / 0.5) 100%);
}

.hero-shot {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2;
  width: 100%;
  height: 64%;
  object-fit: cover;
  object-position: 58% 45%;
}

@media (min-width: 64rem) {
  .hero-shot {
    width: 62%;
    height: 100%;
    object-position: 45% 50%;
  }

  .hero::after {
    background:
      linear-gradient(to right, var(--dusk) 38%, rgb(42 40 50 / 0.55) 48%, rgb(42 40 50 / 0) 66%),
      linear-gradient(to top, var(--dusk) 0%, rgb(42 40 50 / 0) 30%),
      linear-gradient(to bottom, rgb(42 40 50 / 0.6) 0%, rgb(42 40 50 / 0) 18%);
  }
}

.crumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--haze);
}

.crumbs a {
  color: var(--sky);
}

.crumbs,
.crumbs a {
  text-shadow: 0 1px 8px rgb(32 30 39 / 0.9);
}

.hero-body {
  align-self: end;
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.hero-title {
  font: 700 clamp(2.75rem, 0.5rem + 7.2vw, 7rem)/0.92 var(--font-display);
  letter-spacing: -0.035em;
  white-space: nowrap;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  text-shadow: 0 2px 24px rgb(32 30 39 / 0.6);
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgb(230 224 232 / 0.45);
  border-radius: 3px;
  color: var(--sky);
  font-weight: 500;
  text-decoration: none;
  background: rgb(32 30 39 / 0.45);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  border-color: var(--sky);
  background: rgb(32 30 39 / 0.75);
}

.button-primary {
  border-color: var(--straw);
  background: var(--straw);
  color: var(--dusk-deep);
  font-weight: 600;
}

.button-primary:hover {
  border-color: #e6cf98;
  background: #e6cf98;
}

.hero-meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--haze);
}

main {
  padding: 0 var(--gutter);
}

.section {
  scroll-margin-top: 1rem;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}

.section > p,
.section-text {
  max-width: var(--text-width);
}

.note {
  color: var(--haze);
  font-size: 0.9375rem;
}

.changes {
  margin: 2rem 0 0;
  max-width: 56rem;
}

.changes > div {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--fog);
}

.changes > div:last-child {
  border-bottom: 1px solid var(--fog);
}

.changes dt {
  font-weight: 600;
}

.changes dd {
  margin: 0;
  max-width: var(--text-width);
  color: var(--haze);
}

.compare {
  margin: 2rem 0 0;
}

.compare-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dusk-deep);
  border-radius: 4px;
  touch-action: pan-y;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--straw);
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  translate: -50% -50%;
  border: 2px solid var(--straw);
  border-radius: 50%;
  background:
    linear-gradient(var(--straw), var(--straw)) 38% 50% / 2px 40% no-repeat,
    linear-gradient(var(--straw), var(--straw)) 62% 50% / 2px 40% no-repeat,
    rgb(32 30 39 / 0.8);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.compare-frame:has(.compare-range:focus-visible) {
  outline: 2px solid var(--straw);
  outline-offset: 3px;
}

.compare-tag {
  position: absolute;
  top: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  background: rgb(32 30 39 / 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

.compare-tag-before {
  left: 0.75rem;
}

.compare-tag-after {
  right: 0.75rem;
}

.compare figcaption {
  margin-top: 0.75rem;
  color: var(--haze);
  font-size: 0.9375rem;
}

.fps {
  margin: 2rem 0 0;
  max-width: 48rem;
}

.fps > figcaption {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.fps-legend {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--haze);
  font-size: 0.9375rem;
}

.fps-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 2px;
  background: var(--bar-color);
}

.swatch-win32,
.bar-win32 {
  --bar-color: var(--chart-win32);
}

.swatch-x64,
.bar-x64 {
  --bar-color: var(--chart-x64);
}

.fps-group {
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--fog);
}

.fps-group h3 {
  margin-bottom: 0.75rem;
}

.fps-group h3 span {
  margin-left: 0.5rem;
  color: var(--haze);
  font-weight: 400;
  font-size: 0.9375rem;
}

.bar {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1px 0;
  border-radius: 2px;
}

.bar-name {
  color: var(--haze);
  font-size: 0.9375rem;
}

.bar-track {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.bar-fill {
  flex: none;
  width: calc(var(--v) / 1000 * (100% - 4rem));
  height: 1.75rem;
  border-radius: 0 4px 4px 0;
  background: var(--bar-color);
}

.bar-value {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.bar-tip {
  position: absolute;
  left: 4.25rem;
  bottom: calc(100% + 6px);
  z-index: 2;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--fog);
  border-radius: 3px;
  background: var(--dusk-deep);
  color: var(--sky);
  font-size: 0.875rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  visibility: hidden;
  opacity: 0;
}

.bar:hover .bar-tip,
.bar:focus-visible .bar-tip {
  visibility: visible;
  opacity: 1;
}

.fps-delta {
  margin: 0.5rem 0 0.75rem 4.25rem;
  color: var(--haze);
  font-size: 0.9375rem;
}

.fps-table {
  margin-top: 0.5rem;
  border-top: 1px solid var(--fog);
  padding-top: 1rem;
}

.fps-table summary {
  cursor: pointer;
  color: var(--straw);
  width: fit-content;
}

.fps-table table {
  margin-top: 1rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.fps-table th,
.fps-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--fog);
  vertical-align: top;
}

.fps-table thead th {
  color: var(--haze);
  font-weight: 500;
}

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr));
  gap: 0 2rem;
  max-width: 56rem;
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.levels li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--fog);
  background: no-repeat 0 50% / 0.875rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3L12 3.5' fill='none' stroke='%23d6bc7f' stroke-width='2'/%3E%3C/svg%3E");
}

.steps {
  max-width: var(--text-width);
  margin: 2rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 0 0 1.5rem 3rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.125rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--fog);
  border-radius: 50%;
  font: 500 0.875rem/1 var(--font-display);
  color: var(--straw);
}

.steps h3 {
  margin-bottom: 0.375rem;
}

.steps p {
  color: var(--haze);
}

.steps p code,
.note code {
  color: var(--sky);
}

.stages {
  max-width: var(--text-width);
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: stage -1;
}

.stages li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--fog);
  color: var(--haze);
  counter-increment: stage;
}

.stages li::before {
  content: counter(stage);
  grid-row: span 2;
  font: 500 1rem/1.6 var(--font-display);
  color: var(--straw);
  font-variant-numeric: tabular-nums;
}

.stage-name {
  display: block;
  color: var(--sky);
  font-weight: 600;
}

.footer {
  max-width: calc(var(--wide-width) + 2 * var(--gutter));
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--fog);
  color: var(--haze);
  font-size: 0.875rem;
}

.footer p {
  max-width: var(--text-width);
}

.footer p:last-child {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

@media (max-width: 40rem) {
  .changes > div {
    grid-template-columns: 1fr;
  }

  .bar {
    grid-template-columns: 3rem 1fr;
  }

  .bar-tip {
    left: 3.75rem;
  }

  .fps-delta {
    margin-left: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .bar-fill,
  .swatch {
    background: CanvasText;
    forced-color-adjust: none;
  }

  .bar-x64 .bar-fill,
  .swatch-x64 {
    background: repeating-linear-gradient(45deg, CanvasText 0 3px, Canvas 3px 6px);
  }
}
