:root {
  --ink: #1b1f24;
  --muted: #5b6470;
  --line: #dde1e6;
  --link: #0b5fd0;
}

html {
  color-scheme: light;
  background: #fff;
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  font-weight: 600;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  border-bottom: 1px solid var(--line);
}

.lede {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.25rem;
}

code {
  padding: 0.15em 0.35em;
  font: 0.875em ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f0f2f5;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.toc {
  columns: 2 14rem;
  font-size: 0.95rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  margin-left: 0.75rem;
  white-space: nowrap;
}
