:root {
  color-scheme: dark;
  --background: #0e0e0d;
  --surface: #151512;
  --ink: #e8e3d5;
  --muted: #8a857a;
  --rule: #2a2926;
  --rule-strong: #403e39;
  --accent: #c1432e;
  --sans: Geist, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--background);
}

::selection {
  color: var(--ink);
  background: var(--rule-strong);
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #f4f0e5;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-width {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

.site-header,
.doc-header {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.publisher-signature {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.publisher-dot {
  color: #c1432e;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.35rem 0.55rem;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-8rem);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.section-index,
.site-footer,
.header-nav {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

.section-index,
.site-footer,
.header-nav a:not(:hover) {
  color: var(--muted);
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 15vw, 9rem);
  letter-spacing: -0.075em;
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
  line-height: 1.35;
}

.header-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  white-space: nowrap;
}

.nav-label-compact {
  display: none;
}

.demo {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.demo picture,
.demo img {
  display: block;
  width: 100%;
}

.demo picture {
  border-block: 1px solid var(--rule-strong);
}

.demo img {
  height: auto;
  background: var(--background);
}

.section {
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.section-intro {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-index {
  margin: 0;
  color: var(--muted);
}

pre,
code {
  font-family: var(--mono);
}

pre {
  overflow-x: auto;
  margin: 0;
  border-left: 2px solid var(--accent);
  padding: 1rem 0 1rem 1.25rem;
  background: var(--surface);
  font-size: 0.88rem;
  line-height: 1.7;
}

.install-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.install-note span {
  margin-inline: 0.35rem;
}

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

.facts li {
  border-top: 1px solid var(--rule);
}

.facts li:first-child {
  border-top: 0;
}

.fact-link,
.fact-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.fact-link {
  position: relative;
  padding-right: 2rem;
  text-decoration: none;
}

.fact-link::after {
  position: absolute;
  top: 0.9rem;
  right: 0;
  color: var(--muted);
  content: "→";
  font-family: var(--mono);
}

.facts li:first-child .fact-link,
.facts li:first-child .fact-row {
  padding-top: 0;
}

.facts li:first-child .fact-link::after {
  top: 0;
}

.fact-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.fact-link .fact-label {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.fact-link:hover .fact-label {
  color: #f4f0e5;
}

.fact-link:hover::after {
  color: var(--accent);
}

.site-footer {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--rule-strong);
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.doc-shell {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

.doc-main {
  max-width: 46rem;
  padding: 0 0 4rem;
}

.prose {
  min-width: 0;
}

.prose h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.15rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  max-width: 68ch;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose code:not(pre code) {
  color: var(--ink);
  font-size: 0.88em;
}

.prose pre {
  margin: 1.5rem 0;
}

.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 1.25rem 0.55rem 0;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.prose blockquote {
  margin-left: 0;
  border-left: 1px solid var(--rule-strong);
  padding-left: 1.25rem;
  color: var(--muted);
}

@media (max-width: 45rem) {
  .page-width,
  .doc-shell {
    width: min(100% - 2rem, 70rem);
  }

  .site-header,
  .doc-header {
    min-height: 3.5rem;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 1.25rem;
  }

  .fact-link,
  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
  }

  .doc-nav a:nth-child(2) {
    display: none;
  }

}

@media (max-width: 28rem) {
  .nav-label-wide {
    display: none;
  }

  .nav-label-compact {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
