/* Wikiwright site: one reading column, documentation first. Colors follow the logo. */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --fg: #171a2c;
  --muted: #565c78;
  --line: #dfe2ee;
  --accent: #3347d6;
  --accent-soft: #eceefc;
  --code: #f0f2f8;
  /* System fonts only: the site loads nothing from other servers. */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #171a2e;
    --fg: #e8eaf5;
    --muted: #a4a9c4;
    --line: #2b2f4a;
    --accent: #95a2ff;
    --accent-soft: #23284a;
    --code: #20243c;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
}
a {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
header.site,
main,
footer.site {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 20px;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 700 19px var(--display);
  color: var(--fg);
  text-decoration: none;
}
.brand img {
  border-radius: 7px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
header nav a {
  color: var(--muted);
  text-decoration: none;
}
header nav a[aria-current='page'],
header nav a:hover {
  color: var(--fg);
}
main {
  padding-block: 36px 56px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  margin: 0 0 12px;
}
h2 {
  font-size: 23px;
  margin: 40px 0 8px;
}
h3 {
  font-size: 18px;
  margin: 26px 0 4px;
}
p,
li {
  max-width: 68ch;
}
.lead {
  font-size: 20px;
  color: var(--muted);
}
.meta {
  color: var(--muted);
  font-size: 15px;
}
code {
  font: 0.9em var(--mono);
  background: var(--code);
  padding: 1px 5px;
  border-radius: 4px;
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}
.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}
.table {
  overflow-x: auto;
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
}
figure {
  margin: 24px 0;
}
figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
figcaption {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.toc {
  columns: 2 220px;
  padding-left: 20px;
}
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 20px 40px;
  color: var(--muted);
  font-size: 14px;
}
