:root {
  --paper: #f6f5ef;
  --ink: #232a25;
  --muted: #626a60;
  --green: #244b3c;
  --line: #d9dcd1;
  --well: #edece3;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --leading: 1.65;
}
:root[lang="zh-Hans"] {
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --leading: 1.85;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/var(--leading) var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #6e8741;
  outline-offset: 3px;
}
::selection {
  background: #d6e6bc;
}
.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
}
.brand img {
  width: 28px;
  height: 28px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover,
nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
}
h1 {
  margin: 2.5rem 0 0.25rem;
  font-family: var(--mono);
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--muted);
}
h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
p,
ul {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.35rem;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
}
p code,
li code {
  background: var(--well);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
pre code {
  font-size: inherit;
}
pre .c {
  color: var(--muted);
}
.note {
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--green);
  background: var(--well);
  border-radius: 0 8px 8px 0;
}
.docs {
  list-style: none;
  padding: 0;
}
.docs li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.docs li:first-child {
  border-top: 1px solid var(--line);
}
.docs span {
  color: var(--muted);
}
footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer nav a {
  font-size: inherit;
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  .lede {
    font-size: 1.15rem;
  }
  pre {
    font-size: 0.82rem;
  }
}
