:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --line: #d9d9de;
  --link: #0b5fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #e8e8ea;
    --muted: #9a9aa0;
    --line: #2a2a2d;
    --link: #7aa7ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 48px 20px 40px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  overflow-wrap: break-word;
}

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

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

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

p, li { color: var(--fg); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

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

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

footer {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

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