:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f6f8;
  --text: #16161a;
  --muted: #5b5b66;
  --border: #e2e2e8;
  --accent: #5b45c9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #17171a;
    --text: #f2f2f4;
    --muted: #a0a0ac;
    --border: #2a2a30;
    --accent: #9c8cff;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  padding: 0 20px 72px;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  margin: 0 auto;
  max-width: 720px;
}

header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 40px;
  padding: 26px 0 18px;
}

header .brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: auto;
  text-decoration: none;
}

header nav a {
  color: var(--muted);
  font-size: 15px;
  margin-left: 18px;
  text-decoration: none;
}

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

header nav a:first-child {
  margin-left: 0;
}

.langs {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 14px;
}

.langs a {
  text-decoration: none;
}

.langs span[aria-current] {
  color: var(--text);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 20px;
}

h2 {
  border-top: 1px solid var(--border);
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 28px;
}

h3 {
  font-size: 17px;
  margin: 28px 0 10px;
}

p,
ul,
ol {
  margin: 0 0 18px;
}

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

li {
  margin-bottom: 8px;
}

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

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.88em;
  padding: 1px 5px;
  /* Relay addresses and package names are long enough to push the page
     sideways on a phone otherwise. */
  overflow-wrap: anywhere;
}

.meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 32px;
  padding: 16px 18px;
}

.meta div + div {
  margin-top: 4px;
}

.meta strong {
  color: var(--text);
}

.lede {
  color: var(--muted);
  font-size: 19px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-top: 56px;
  padding-top: 22px;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 26px;
  }
}
