@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/work-sans@5.3.0/files/work-sans-latin-wght-normal.woff2")
    format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/fira-code@5.3.0/files/fira-code-latin-wght-normal.woff2")
    format("woff2");
}

:root {
  --mu-font-family-sans-serif: "Work Sans", system-ui, sans-serif;
  --mu-font-family: var(--mu-font-family-sans-serif);
  --mu-font-family-monospace: "Fira Code", ui-monospace, monospace;
  --mu-font-size: 100%;
  --mu-line-height: 1.65;
  --mu-border-radius: 0.375rem;
}

/* Nyala palette: warm paper and coat terracotta in light mode, nocturnal
   aubergine and crisp ice-blue in dark mode. */
:root:not([data-theme="dark"]),
:root[data-theme="light"] {
  color-scheme: light;
  --mu-background-color: #fcfaf8;
  --mu-card-background-color: #ffffff;
  --mu-code-background-color: #f3eeeb;
  --mu-secondary: #ebe3df;
  --mu-secondary-background: #ebe3df;
  --mu-muted-border-color: #e2d9d5;
  --mu-h1-color: #241924;
  --mu-h2-color: #332433;
  --mu-h3-color: #332433;
  --mu-h4-color: #332433;
  --mu-color: #3b2c3b;
  --mu-muted-color: #665166;
  --mu-code-color: #543d54;
  --mu-primary: #ab3e1c;
  --mu-primary-background: #ab3e1c;
  --mu-primary-border: #ab3e1c;
  --mu-primary-underline: rgba(171, 62, 28, 0.5);
  --mu-primary-hover: #8a3014;
  --mu-primary-hover-background: #8a3014;
  --mu-primary-hover-border: #8a3014;
  --mu-primary-hover-underline: #8a3014;
  --mu-primary-focus: rgba(171, 62, 28, 0.375);
  --mu-primary-inverse: #ffffff;
  --mu-info: #18629e;
  --mu-warning: #945600;
  --mu-success: #246e38;
  --mu-error: #b82e2a;
  --mu-contrast: #241924;
  --mu-form-element-background-color: #ffffff;
  --mu-form-element-active-background-color: #ffffff;
  --mu-form-element-selected-background-color: #ebe3df;
  --mu-form-element-border-color: #e2d9d5;
  --mu-form-element-color: #3b2c3b;
  --mu-table-border-color: #e2d9d5;
  --mu-card-border-color: #e2d9d5;
  --mu-text-selection-color: rgba(171, 62, 28, 0.2);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --mu-background-color: #161219;
  --mu-card-background-color: #1f1924;
  --mu-code-background-color: #110e14;
  --mu-secondary: #2b2232;
  --mu-secondary-background: #2b2232;
  --mu-muted-border-color: #33293a;
  --mu-h1-color: #f5f0ee;
  --mu-h2-color: #e5dcda;
  --mu-h3-color: #e5dcda;
  --mu-h4-color: #e5dcda;
  --mu-color: #d6cbc8;
  --mu-muted-color: #a191a1;
  --mu-code-color: #cbbec8;
  --mu-primary: #91c2f2;
  --mu-primary-background: #91c2f2;
  --mu-primary-border: #91c2f2;
  --mu-primary-underline: rgba(145, 194, 242, 0.5);
  --mu-primary-hover: #b4d6f7;
  --mu-primary-hover-background: #b4d6f7;
  --mu-primary-hover-border: #b4d6f7;
  --mu-primary-hover-underline: #b4d6f7;
  --mu-primary-focus: rgba(145, 194, 242, 0.375);
  --mu-primary-inverse: #161219;
  --mu-info: #e5959c;
  --mu-warning: #f28561;
  --mu-success: #65c483;
  --mu-error: #f07167;
  --mu-contrast: #f5f0ee;
  --mu-form-element-background-color: #1f1924;
  --mu-form-element-active-background-color: #1f1924;
  --mu-form-element-selected-background-color: #2b2232;
  --mu-form-element-border-color: #33293a;
  --mu-form-element-color: #d6cbc8;
  --mu-table-border-color: #33293a;
  --mu-card-border-color: #33293a;
  --mu-text-selection-color: rgba(145, 194, 242, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --mu-background-color: #161219;
    --mu-card-background-color: #1f1924;
    --mu-code-background-color: #110e14;
    --mu-secondary: #2b2232;
    --mu-secondary-background: #2b2232;
    --mu-muted-border-color: #33293a;
    --mu-h1-color: #f5f0ee;
    --mu-h2-color: #e5dcda;
    --mu-h3-color: #e5dcda;
    --mu-h4-color: #e5dcda;
    --mu-color: #d6cbc8;
    --mu-muted-color: #a191a1;
    --mu-code-color: #cbbec8;
    --mu-primary: #91c2f2;
    --mu-primary-background: #91c2f2;
    --mu-primary-border: #91c2f2;
    --mu-primary-underline: rgba(145, 194, 242, 0.5);
    --mu-primary-hover: #b4d6f7;
    --mu-primary-hover-background: #b4d6f7;
    --mu-primary-hover-border: #b4d6f7;
    --mu-primary-hover-underline: #b4d6f7;
    --mu-primary-focus: rgba(145, 194, 242, 0.375);
    --mu-primary-inverse: #161219;
    --mu-info: #e5959c;
    --mu-warning: #f28561;
    --mu-success: #65c483;
    --mu-error: #f07167;
    --mu-contrast: #f5f0ee;
    --mu-form-element-background-color: #1f1924;
    --mu-form-element-active-background-color: #1f1924;
    --mu-form-element-selected-background-color: #2b2232;
    --mu-form-element-border-color: #33293a;
    --mu-form-element-color: #d6cbc8;
    --mu-table-border-color: #33293a;
    --mu-card-border-color: #33293a;
    --mu-text-selection-color: rgba(145, 194, 242, 0.22);
  }
}

body {
  margin: 0;
  background-color: var(--mu-background-color);
  color: var(--mu-color);
}
.container {
  width: min(100% - 3rem, 1160px);
  max-width: none;
  padding-inline: 0;
}
:is(.theme-picker, .octicon, .copy-button, .motion-toggle)[hidden] {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a {
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mu-primary);
  outline-offset: 5px;
  box-shadow: none;
}
code,
kbd,
pre,
samp {
  font-family: var(--mu-font-family-monospace);
}
:not(pre) > code {
  display: inline;
  padding: 0.12rem 0.32rem;
  border-radius: 0.25rem;
  background: var(--mu-code-background-color);
  color: var(--mu-code-color);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  padding: 0.1rem 0.38rem;
  border: 1px solid var(--mu-muted-border-color);
  border-bottom-width: 2px;
  border-radius: 0.28rem;
  background: var(--mu-code-background-color);
  color: var(--mu-code-color);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.35;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.6rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--mu-background-color);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
body > main:focus-visible {
  outline: none;
}
body > main:focus-visible h1:first-of-type {
  position: relative;
}
body > main:focus-visible h1:first-of-type::before {
  position: absolute;
  top: 0.12em;
  left: -0.75rem;
  width: 4px;
  height: 0.9em;
  border-radius: 2px;
  background: var(--mu-primary);
  content: "";
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--mu-muted-border-color);
}
.brand {
  --mu-color: var(--mu-h1-color);
  display: inline-flex;
  flex-shrink: 1;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
  color: var(--mu-h1-color);
  font-size: 1.5rem;
  font-weight: 750;
  text-decoration: none;
}
.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 22.46%;
}
.site-header nav {
  margin-left: auto;
}
.site-header nav ul {
  flex-wrap: wrap;
  column-gap: 0.35rem;
}
nav a {
  color: var(--mu-muted-color);
  font-size: 0.92rem;
}
nav a:hover {
  color: var(--mu-primary);
}
.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--mu-color);
  box-shadow: none;
}
.icon-button:hover {
  background: var(--mu-secondary-background);
  color: var(--mu-primary);
}

/* Octicons 19.36.0, loaded from the CDN as colourable masks. */
.octicon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.octicon[hidden] {
  display: none;
}
.github-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/mark-github-24.svg");
}
.inline-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
.arrow-down {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/arrow-down-16.svg");
}
.link-external {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/link-external-16.svg");
}
.arrow-up-right {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/arrow-up-right-16.svg");
}
.terminal-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/terminal-24.svg");
}
.container-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/package-24.svg");
}
.actions-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/play-24.svg");
}
.copy-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/copy-16.svg");
}

.theme-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.theme-picker .octicon {
  position: absolute;
  z-index: 1;
  left: 0.65rem;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.theme-picker select {
  width: auto;
  min-width: 7.5rem;
  height: 44px;
  padding: 0.45rem 2rem 0.45rem 2.2rem;
  margin: 0;
  border-color: var(--mu-muted-border-color);
  font-size: 0.85rem;
}
#theme-sun {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/sun-24.svg");
  color: var(--mu-warning);
}
#theme-moon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/moon-24.svg");
  color: var(--mu-contrast);
}

body > main {
  padding-block: 0;
}

/* Typography */
.eyebrow {
  color: var(--mu-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0;
}
.eyebrow + :is(h1, h2, h3) {
  margin-top: 0.3rem;
}
h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 1.15rem;
  color: var(--mu-h1-color);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--mu-h2-color);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
  color: var(--mu-h3-color);
  overflow-wrap: anywhere;
}

/* Hero */
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-block: 4rem 4.25rem;
  margin-bottom: 0;
}
.hero-copy {
  max-width: 47rem;
  margin-inline: auto;
  text-align: center;
}
.hero-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.35rem;
  border-radius: 22.46%;
  box-shadow:
    0 0 0 1px rgba(51, 36, 51, 0.12),
    0 10px 24px -12px rgba(36, 25, 36, 0.25);
}
:root[data-theme="dark"] .hero-icon {
  box-shadow:
    0 0 0 1px var(--mu-muted-border-color),
    0 12px 28px -12px rgba(0, 0, 0, 0.65);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-icon {
    box-shadow:
      0 0 0 1px var(--mu-muted-border-color),
      0 12px 28px -12px rgba(0, 0, 0, 0.65);
  }
}
.lead {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--mu-muted-color);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.site-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border: var(--mu-border-width) solid var(--mu-primary);
  border-radius: var(--mu-border-radius);
  background-color: var(--mu-primary);
  color: var(--mu-primary-inverse);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.primary-action:is(:hover, :focus) {
  border-color: var(--mu-primary-hover);
  background-color: var(--mu-primary-hover);
  color: var(--mu-primary-inverse);
}
.primary-action:focus-visible {
  outline: 3px solid var(--mu-primary);
  outline-offset: 5px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.94rem;
  font-weight: 600;
}
.hero-note {
  max-width: 38rem;
  margin: 1.2rem auto 0;
  color: var(--mu-muted-color);
  font-size: 0.88rem;
  text-wrap: pretty;
}

/* Terminal-framed hero showcase */
.hero-shot {
  margin: 0;
  min-width: 0;
}
.terminal-frame {
  overflow: hidden;
  padding: 0.4rem;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.9rem;
  background: var(--mu-code-background-color);
  box-shadow:
    0 1px 2px rgba(36, 25, 36, 0.06),
    0 22px 44px -22px rgba(36, 25, 36, 0.24);
}
:root[data-theme="dark"] .terminal-frame {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 24px 48px -20px rgba(0, 0, 0, 0.72);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .terminal-frame {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.35),
      0 24px 48px -20px rgba(0, 0, 0, 0.72);
  }
}
.hero-shot img,
.hero-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.55rem;
  background: #110e14;
}
.hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  color: var(--mu-muted-color);
  font-size: 0.88rem;
  text-align: center;
}
.motion-toggle {
  --mu-background-color: var(--mu-card-background-color);
  --mu-border-color: var(--mu-muted-border-color);
  --mu-color: var(--mu-code-color);
  width: auto;
  min-height: 32px;
  padding: 0.22rem 0.7rem;
  margin: 0;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: var(--mu-border-radius);
  background: var(--mu-card-background-color);
  color: var(--mu-code-color);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}
.motion-toggle:is(:hover, :focus, :active) {
  --mu-background-color: var(--mu-card-background-color);
  --mu-border-color: var(--mu-primary);
  --mu-color: var(--mu-primary);
  border-color: var(--mu-primary);
  background: var(--mu-card-background-color);
  color: var(--mu-primary);
}
.motion-toggle:focus-visible {
  outline-offset: 2px;
}

/* Shared section layout */
.section-rule {
  scroll-margin-top: 1.5rem;
  border-top: 1px solid var(--mu-muted-border-color);
  padding-block: 4rem;
  margin-bottom: 0;
}
.section-heading {
  max-width: 46rem;
}
.section-heading > p:not(.eyebrow) {
  color: var(--mu-muted-color);
  text-wrap: pretty;
}
.section-heading > p:last-child {
  margin-bottom: 0;
}

/* Rendering showcase */
.rendering {
  margin-bottom: 0;
}
.backend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.backend-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.75rem;
  background: var(--mu-card-background-color);
  box-shadow: var(--mu-card-box-shadow);
}
.backend-media {
  border-bottom: 1px solid var(--mu-muted-border-color);
  background: var(--mu-code-background-color);
}
.backend-media img {
  display: block;
  width: 100%;
  height: auto;
}
.backend-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.35rem;
}
.backend-badge {
  align-self: flex-start;
  padding: 0.14rem 0.5rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--mu-secondary-background);
  color: var(--mu-code-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 0.72rem;
  font-weight: 600;
}
.backend-body h3 {
  margin: 0 0 0.4rem;
}
.backend-body p {
  margin: 0;
  color: var(--mu-muted-color);
  font-size: 0.92rem;
  line-height: 1.55;
}

.perf-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1.5rem 2.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.75rem;
  background: var(--mu-card-background-color);
  box-shadow: var(--mu-card-box-shadow);
}
.perf-intro h3 {
  margin-bottom: 0.45rem;
}
.perf-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--mu-muted-color);
  font-size: 0.92rem;
  line-height: 1.55;
}
.perf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.perf-stat {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--mu-muted-border-color);
  border-top: 3px solid var(--stat-accent, var(--mu-primary));
  border-radius: 0.6rem;
  background: var(--mu-background-color);
}
.perf-stat:nth-child(1) {
  --stat-accent: var(--mu-primary);
}
.perf-stat:nth-child(2) {
  --stat-accent: var(--mu-success);
}
.perf-stat:nth-child(3) {
  --stat-accent: var(--mu-info);
}
.perf-stat dt {
  margin: 0;
  color: var(--mu-h3-color);
  font-size: 0.88rem;
  font-weight: 650;
}
.perf-stat dd {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
}
.perf-fps {
  color: var(--mu-h1-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.perf-detail {
  color: var(--mu-muted-color);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.features > div > p:not(.eyebrow) {
  color: var(--mu-muted-color);
  max-width: 26rem;
}
.feature-list {
  margin: 0;
}
.feature-list > div + div {
  border-top: 1px solid var(--mu-muted-border-color);
  padding-top: 1.35rem;
  margin-top: 1.35rem;
}
.feature-list dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--mu-h2-color);
}
.feature-list > div:nth-child(1) {
  --feature-accent: var(--mu-primary);
}
.feature-list > div:nth-child(2) {
  --feature-accent: var(--mu-info);
}
.feature-list > div:nth-child(3) {
  --feature-accent: var(--mu-warning);
}
.feature-list > div:nth-child(4) {
  --feature-accent: var(--mu-success);
}
.feature-number {
  display: inline-block;
  min-width: 1.85rem;
  color: var(--mu-muted-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 0.78rem;
  font-weight: 600;
  border-left: 3px solid var(--feature-accent);
  padding-left: 0.45rem;
}
.feature-list dd {
  margin: 0.45rem 0 0 2.35rem;
  color: var(--mu-muted-color);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Workflow and keyboard shortcuts */
.workflow {
  margin-bottom: 0;
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0;
  margin: 2rem 0 2.25rem;
  list-style: none;
  counter-reset: steps;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.75rem;
  background: var(--mu-card-background-color);
  box-shadow: var(--mu-card-box-shadow);
  list-style: none;
  counter-increment: steps;
}
.steps li:nth-child(1) {
  --step-accent: var(--mu-primary);
}
.steps li:nth-child(2) {
  --step-accent: var(--mu-info);
}
.steps li:nth-child(3) {
  --step-accent: var(--mu-warning);
}
.steps li:nth-child(4) {
  --step-accent: var(--mu-success);
}
.steps li::before {
  content: "0" counter(steps);
  display: block;
  width: 100%;
  color: var(--mu-muted-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 0.78rem;
  font-weight: 600;
  border-top: 3px solid var(--step-accent);
  padding-top: 0.75rem;
  margin-bottom: 0.85rem;
}
.steps li > code {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  background: var(--mu-code-background-color);
  color: var(--mu-code-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.steps h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.45rem;
}
.steps p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--mu-muted-color);
}

.key-chord {
  white-space: nowrap;
}
.keys-heading {
  margin: 0 0 0.85rem;
}
.overflow-auto {
  overflow-x: auto;
}
.keys-table-wrap {
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.75rem;
  background: var(--mu-card-background-color);
  box-shadow: var(--mu-card-box-shadow);
}
.keys-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.keys-table th,
.keys-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  background-color: transparent;
}
.keys-table thead th {
  background-color: color-mix(in srgb, var(--mu-secondary-background) 45%, transparent);
  color: var(--mu-h3-color);
  font-weight: 650;
  white-space: nowrap;
}
.keys-table tbody th {
  width: 13.5rem;
  color: var(--mu-color);
  font-weight: 500;
  white-space: nowrap;
}
.keys-table.striped tbody tr:nth-child(odd) th,
.keys-table.striped tbody tr:nth-child(odd) td {
  background-color: color-mix(in srgb, var(--mu-secondary-background) 28%, transparent);
}
.keys-table tbody tr:last-child th,
.keys-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Install */
.install {
  margin-bottom: 0;
}
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0;
  margin: 2rem 0 1.5rem;
  list-style: none;
}
/* Mid widths: four Linux tiles two to a row, three other repositories in a row,
   and command tiles full width. */
@media (min-width: 744px) {
  .install-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .install-grid > .install-linux {
    grid-column: span 6;
  }
  .install-grid > .install-other {
    grid-column: span 4;
  }
  .install-grid > .install-any {
    grid-column: span 12;
  }
}
@media (min-width: 744px) and (max-width: 999.98px) {
  .install-other > .install-tile > .arrow-up-right {
    display: none;
  }
}
/* Wide: four Linux repositories on row 1, three other repositories on row 2,
   and the three command tiles across row 3. */
@media (min-width: 1120px) {
  .install-grid > .install-linux {
    grid-column: span 3;
  }
  .install-linux > .install-tile {
    gap: 0.7rem;
    padding-inline: 0.9rem;
  }
  .install-linux .install-name {
    font-size: 0.96rem;
  }
  .install-grid > .install-any {
    grid-column: span 4;
  }
}
.install-grid > li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each tile takes its tint from the brand colour of its repository logo. */
.install-tile {
  --tile-brand: var(--mu-primary);
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  min-height: 5.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: 0.75rem;
  background: var(--mu-card-background-color);
  box-shadow: var(--mu-card-box-shadow);
  color: var(--mu-color);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
a.install-tile:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--tile-brand) 55%, var(--mu-muted-border-color));
  background: color-mix(in srgb, var(--tile-brand) 8%, var(--mu-card-background-color));
  color: var(--mu-color);
  text-decoration: none;
}
a.install-tile:focus-visible {
  outline-offset: 2px;
}
/* The muted lines take the heading colour on the tint, to keep their contrast. */
a.install-tile:is(:hover, :focus-visible) :is(.install-platform, .install-host) {
  color: var(--mu-h2-color);
}
.install-tile[data-repo="apt"] {
  --tile-brand: #e95420;
}
.install-tile[data-repo="rpm"] {
  --tile-brand: #ee0000;
}
.install-tile[data-repo="pkg"] {
  --tile-brand: #1793d1;
}
.install-tile[data-repo="apk"] {
  --tile-brand: light-dark(#0d597f, #7fc0e3);
}
.install-tile[data-repo="brew"] {
  --tile-brand: light-dark(#a8700f, #e2a843);
}
.install-tile[data-repo="scoop"] {
  --tile-brand: light-dark(#d9488f, #f77fb5);
}
.install-tile[data-repo="nix"] {
  --tile-brand: light-dark(#5277c3, #7ebae4);
}
.install-logo,
.install-glyph {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
.install-glyph {
  color: var(--mu-muted-color);
}
.install-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.install-platform {
  color: var(--mu-muted-color);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.install-name {
  color: var(--mu-h2-color);
  font-size: 1.02rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.install-host {
  margin-top: 0.1rem;
  color: var(--mu-muted-color);
  font-family: var(--mu-font-family-monospace);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.install-tile > .arrow-up-right {
  flex: 0 0 auto;
  color: var(--mu-muted-color);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
a.install-tile:is(:hover, :focus-visible) > .arrow-up-right {
  color: var(--tile-brand);
  transform: translate(2px, -2px);
}

/* Command tiles hold a command to copy, so only their name is a link. */
.install-command-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "glyph text copy"
    "command command command";
  row-gap: 0.75rem;
}
.install-command-tile > .install-glyph {
  grid-area: glyph;
}
.install-command-tile > .install-text {
  grid-area: text;
}
.install-command-tile a.install-name {
  align-self: flex-start;
  text-decoration: underline;
  text-decoration-color: var(--mu-muted-border-color);
}
.install-command-tile a.install-name:hover {
  text-decoration-color: currentColor;
}
.install-command {
  grid-area: command;
  display: block;
  min-width: 0;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: var(--mu-border-radius);
  background: var(--mu-code-background-color);
  color: var(--mu-code-color);
  font-size: 0.73rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.copy-button {
  --mu-background-color: transparent;
  --mu-border-color: var(--mu-muted-border-color);
  --mu-color: var(--mu-muted-color);
  grid-area: copy;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--mu-muted-border-color);
  border-radius: var(--mu-border-radius);
  background: transparent;
  color: var(--mu-muted-color);
  box-shadow: none;
}
.copy-button:is(:hover, :focus, :active) {
  --mu-background-color: transparent;
  --mu-border-color: var(--mu-primary);
  --mu-color: var(--mu-primary);
  border-color: var(--mu-primary);
  background: transparent;
  color: var(--mu-primary);
}
.copy-button:focus-visible {
  outline-offset: 2px;
}
.copy-button .octicon {
  width: 16px;
  height: 16px;
}
.copy-button[data-copied] {
  border-color: var(--mu-success);
  color: var(--mu-success);
}
.copy-button[data-copied] .copy-icon {
  --icon: url("https://cdn.jsdelivr.net/npm/@primer/octicons@19.36.0/build/svg/check-16.svg");
}
@media (min-width: 744px) and (max-width: 1119.98px) {
  .install-command-tile {
    grid-template-columns: auto minmax(9.5rem, auto) minmax(0, 1fr) auto;
    grid-template-areas: "glyph text command copy";
    column-gap: 0.9rem;
  }
  .install-command {
    margin-left: 0.4rem;
    padding-inline: 0.85rem;
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .install-tile,
  .install-tile > .arrow-up-right {
    transition: none;
  }
  a.install-tile:is(:hover, :focus-visible) > .arrow-up-right {
    transform: none;
  }
}
.install-note {
  max-width: 48rem;
  color: var(--mu-muted-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.install-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--mu-muted-border-color);
  padding-block: 3.5rem 2rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.site-footer .footer-brand > p {
  max-width: 19rem;
  color: var(--mu-muted-color);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-links ul {
  display: block;
  margin: 0;
  padding: 0;
}
.footer-links ul:first-of-type,
.footer-links ul:last-of-type {
  margin-inline: 0;
}
.footer-links li {
  display: block;
  padding: 0;
  margin: 0 0 0.55rem;
  list-style: none;
}
.footer-links h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.footer-links a {
  display: inline;
  padding: 0;
  margin: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--mu-muted-border-color);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.footer-bottom > p {
  flex-shrink: 0;
}
.footer-bottom .connection-links {
  justify-content: flex-end;
  margin-left: auto;
}
.site-footer p {
  margin: 0;
}
.site-footer small {
  color: var(--mu-muted-color);
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .site-header {
    gap: 1rem;
  }
  .site-hero {
    padding-block: 3.25rem;
  }
  .perf-callout {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    gap: 2.5rem;
  }
}

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

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

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .site-header nav ul {
    width: 100%;
    justify-content: flex-start;
    row-gap: 0.25rem;
  }
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .site-hero {
    padding-block: 2.75rem;
  }
  .hero-icon {
    width: 72px;
    height: 72px;
  }
  .section-rule {
    padding-block: 2.75rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .keys-table tbody th {
    width: auto;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 2rem);
  }
  .site-hero-actions {
    gap: 1rem;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
