:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d8dee4;
  --accent: #0b72e7;
  --accent-text: #0a5fc2;
  --max: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1a1f25;
    --text: #e6e9ee;
    --muted: #9aa4af;
    --border: #2d343c;
    --accent: #4c9bf5;
    --accent-text: #79b4f8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img,
.brand picture {
  width: 36px;
  height: 36px;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  margin: 2em 0 0.5em;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.4em;
}

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

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero picture img {
  width: 128px;
  height: 128px;
}

.hero .text {
  flex: 1 1 18rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0 32px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

footer.site a {
  color: var(--muted);
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .hero picture img {
    width: 96px;
    height: 96px;
  }
}
