/* One stylesheet, served by every subdomain as /site.css.
   Styling only. Nothing here is load-bearing for reading the page: with the stylesheet missing
   the document is still a heading, some paragraphs and some lists, in order. */

:root {
  --ink: #17191c;
  --ink-soft: #4a4f57;
  --paper: #fbfbf9;
  --rule: #dcdcd6;
  --link: #14507d;
  --code-bg: #f0f0ec;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e6e3;
    --ink-soft: #a9aeb6;
    --paper: #16181b;
    --rule: #32363c;
    --link: #7fb4de;
    --code-bg: #212429;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

.skip-link:focus {
  position: static;
  display: inline-block;
  padding: 0.5rem 0;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand { margin: 0; font-weight: 600; }
.brand a { color: inherit; text-decoration: none; }

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav [aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }

main { padding-top: 2rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1rem; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }

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

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

dt { font-weight: 600; margin-top: 0.75rem; }
dd { margin: 0 0 0.35rem; }

code, pre, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 0.92em; }

code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }

pre {
  background: var(--code-bg);
  padding: 0.9rem 1rem;
  border-radius: 5px;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--rule);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.4rem 0.7rem 0.4rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

footer h2 { font-size: 0.92rem; margin: 0 0 0.5rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
footer li { margin: 0; }

img { max-width: 100%; height: auto; }
