:root {
  --ink: #1b1b1f;
  --ink-soft: #55555f;
  --paper: #fdfdfb;
  --rule: #dcdcd6;
  --accent: #2d5b8a;
  --code-paper: #f0f0ec;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e6e9;
    --ink-soft: #a6a6b0;
    --paper: #16161a;
    --rule: #34343c;
    --accent: #8ab4e0;
    --code-paper: #24242b;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: 1;
}

.chrome,
main {
  max-width: var(--measure);
  margin: 0 auto;
}

.crumbs {
  padding: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--rule);
}

main {
  padding: 1rem 0 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0 0 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

code {
  background: var(--code-paper);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.index {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.index li {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.index li:last-child {
  border-bottom: 0;
}

.index a {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.index a:hover {
  text-decoration: underline;
}

.index p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer.chrome {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer.chrome p {
  margin: 0 0 0.25rem;
}
