:root {
  color-scheme:light;
  --ink:#29251f;
  --accent:#783b3c;
  --muted:#675f56;
  --line:#dbd2c5;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  background:#faf7f1;
  color:var(--ink);
  font:17px/1.65 system-ui,-apple-system,sans-serif;
}
header,main,footer {
  max-width:1160px;
  margin:auto;
  padding:24px;
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
a {
  color:var(--accent);
  text-underline-offset:3px;
}
a:hover {
  text-decoration-thickness:2px;
}
.brand {
  font-weight:800;
  text-decoration:none;
  font-size:23px;
}
.language-switch {
  display:flex;
  gap:8px;
}
button {
  font:inherit;
  padding:7px 13px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  cursor:pointer;
}
button[aria-pressed=true] {
  background:var(--accent);
  color:white;
}
h1 {
  font-size:clamp(34px,6vw,60px);
  line-height:1.12;
  letter-spacing:-.035em;
  max-width:900px;
  margin:15px 0 25px;
}
h2 {
  font-size:28px;
  line-height:1.25;
}
.eyebrow {
  font-size:13px;
  letter-spacing:.14em;
  font-weight:700;
  color:var(--accent);
}
.lead {
  font-size:22px;
  max-width:900px;
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:35px 0;
}
.stats a {
  display:flex;
  flex-direction:column;
  border-top:3px solid var(--accent);
  padding:15px;
  text-decoration:none;
  background:#f0e9de;
}
.stats b {
  font-size:40px;
  line-height:1.3;
}
aside {
  padding:22px;
  border-left:4px solid var(--accent);
  background:#f0e9de;
}
section {
  margin-top:55px;
  scroll-margin-top:24px;
}
section>p {
  max-width:1000px;
}
.table-scroll {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffdfa;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  white-space:nowrap;
}
caption {
  text-align:left;
  padding:14px;
  color:var(--muted);
  white-space:normal;
}
th,td {
  padding:13px 16px;
  text-align:left;
  border-top:1px solid var(--line);
}
thead {
  background:#efe9df;
}
tbody tr:nth-child(even) {
  background:#f8f4ed;
}
tbody th {
  font-variant-numeric:tabular-nums;
}
td strong {
  color:#315649;
}
#pending .table-scroll {
  border-color:#9f7045;
}
img {
  display:block;
  max-width:100%;
  height:auto;
  border:1px solid var(--line);
}
footer {
  color:var(--muted);
  font-size:14px;
  margin-top:50px;
}
.skip {
  position:absolute;
  left:15px;
  top:-100px;
  background:white;
  padding:10px;
  z-index:10;
}
.skip:focus {
  top:10px;
}
:focus-visible {
  outline:3px solid #276d92;
  outline-offset:3px;
}
@media(max-width:600px) {
  header,main,footer {
    padding:18px;
  }
  .lead {
    font-size:19px;
  }
  .stats {
    gap:8px;
  }
  .stats a {
    padding:10px;
    font-size:14px;
  }
  .stats b {
    font-size:32px;
  }
  h2 {
    font-size:25px;
  }
  th,td {
    padding:11px 13px;
  }
  aside {
    padding:17px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}

.code-example {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 19px;
  background: #fffdfa;
}

html:lang(en) [data-figure-lang="zh-CN"],
html:lang(zh-CN) [data-figure-lang="en"] {
  display: none;
}
