:root {
  color-scheme: dark;
  --background: #171717;
  --foreground: #fafafa;
  --muted: #999999;
  --border: #2a2a2a;
  --surface: #1d1d1d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.625;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--foreground) 42%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--foreground);
}

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

.page {
  width: min(calc(100% - 48px), 672px);
  margin: 0 auto;
  padding: 44px 0 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 4px solid currentColor;
  border-radius: 4px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
}

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

main {
  display: block;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
}

p,
li,
dd {
  color: var(--muted);
}

.lede {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 56px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  background: var(--foreground);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.text-link {
  color: var(--foreground);
  font-weight: 600;
}

.content-section {
  margin: 0 0 38px;
}

.content-section p:last-child,
.content-section ul:last-child,
.content-section ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.example {
  margin: 42px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.example dl {
  margin-bottom: 0;
}

.example dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.example dt {
  color: var(--muted);
}

.example dd {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.note {
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.related-links {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links li {
  margin: 0;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 8px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 32px), 672px);
    padding-top: 28px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 48px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .lede {
    font-size: 17px;
  }

  .example {
    padding: 20px;
  }

  .example dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
