:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a66d8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --accent: #4c9bff;
  }
}

* { box-sizing: border-box; }

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

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

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

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

.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }

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

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }

p, ul { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

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

.updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.lead { font-size: 20px; color: var(--muted); margin-bottom: 28px; }

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 16px;
}

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

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

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

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

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  header { flex-direction: column; align-items: flex-start; }
}
