/* One stylesheet for the whole site. No fonts, scripts or images are fetched from anywhere
   else: the privacy policy promises the site loads no third-party resources, and that promise
   is only true if this file keeps it. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --text: #1a1d21;
  --muted: #5b6370;
  --rule: #dfe2e7;
  --accent: #1f6feb;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --bg-soft: #1c2126;
    --text: #e8eaed;
    --muted: #9aa4b2;
    --rule: #2c333a;
    --accent: #6ea8ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

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

a:hover {
  text-decoration: none;
}

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

header.site .brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}

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

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.25rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 0;
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  margin-top: 1rem;
}

dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
}

.cards .card {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  padding: 0.05em 0.35em;
}

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
