:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f6b;
  --line: #e3e3ea;
  --accent: #3f35c4;
  --code-bg: #f1f0fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111116;
    --surface: #1a1a21;
    --text: #f2f2f6;
    --muted: #a3a3b2;
    --line: #2c2c36;
    --accent: #a59cff;
    --code-bg: #23222e;
  }
}

* {
  box-sizing: border-box;
}

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

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

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

.brand img {
  width: 32px;
  height: 32px;
}

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

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 56px 0 24px;
}

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

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 34em;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 15px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.download {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

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

tr:last-child td {
  border-bottom: 0;
}

th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

ul {
  padding-left: 20px;
}

footer {
  margin-top: 56px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

  th,
  td {
    padding: 8px 10px;
  }

  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
