:root {
  color-scheme: light;
  --ink: #192337;
  --muted: #475569;
  --line: #d7dfeb;
  --link: #194da7;
  --surface: #f3f6fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.wrap {
  width: min(100% - 2rem, 44rem);
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.document-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.site-header .wrap {
  justify-content: space-between;
  padding-block: .25rem;
}

.brand { font-weight: 750; }
.brand span { margin-inline-start: .3rem; color: var(--muted); font-weight: 500; }

.document-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

a { color: var(--link); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

main { padding-block: clamp(1.75rem, 6vw, 4rem); }

article + article {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 2rem;
  scroll-margin-block-start: 1rem;
}

h1, h2, h3 { line-height: 1.35; }
h1, #english-title { margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 2.75rem); }
h2, h3 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
p, ol { margin: .5rem 0 .85rem; }
ol { padding-inline-start: 1.5rem; }
li + li { margin-top: .5rem; }

.references { color: var(--muted); }
