:root {
  --paper: #F6F1E8;
  --ink: #1A1814;
  --mute: #5C574E;
  --line: #D9D1C3;
  --blue: #1E6FA8;
  --red: #B91C2C;
  --ochre: #9C5A2A;
  --pine: #3A6B52;
  --rust: #C45C26;
  --indigo: #3A4F7A;
  --plate: #FFFBF3;
}
* { box-sizing: border-box; margin: 0; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  padding-left: max(clamp(1.6rem, 6vw, 3.25rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.6rem, 6vw, 3.25rem), env(safe-area-inset-right));
}
@media (min-width: 640px) {
  body { font-size: 18px; line-height: 1.88; }
}
a { color: var(--blue); }
.page { max-width: 40rem; margin: 0 auto; padding: 3.25rem 0 8rem; }
header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem 1.5rem; flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.brand { font-size: 13px; font-weight: 600; color: var(--mute); text-decoration: none; }
.brand b { color: var(--blue); font-family: "IBM Plex Mono", "ui-monospace", monospace; font-weight: 600; letter-spacing: .06em; }
.back {
  font-family: "IBM Plex Mono", "ui-monospace", monospace; font-size: 13px; font-weight: 500; color: var(--mute);
  text-decoration: none;
}
.series {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--blue);
}
h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700; letter-spacing: .02em; line-height: 1.35;
  margin-top: .55rem;
  text-wrap: pretty;
}
.lede {
  margin-top: 1rem;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 34em;
}
.cover {
  display: block; width: 100%; height: auto;
  margin: 1.9rem 0 2.4rem;
  border: 1px solid var(--ink);
  background: var(--plate);
}
.article { overflow-wrap: break-word; }
.article h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.28rem; font-weight: 700; line-height: 1.4;
  margin: 2.85rem 0 .95rem;
  text-wrap: pretty;
}
.article h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.08rem; font-weight: 700; line-height: 1.45;
  margin: 2rem 0 .65rem;
}
.article p { margin: 0 0 1.15em; }
.article h2 + p,
.article h3 + p { margin-top: 0; }
.article strong { font-weight: 700; }
.article em { font-style: italic; }
.article blockquote {
  margin: 1.6rem 0 1.75rem;
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 2px solid var(--ink);
  color: var(--mute);
}
.article blockquote p { margin: .4rem 0; }
.article ul, .article ol {
  margin: 1.05rem 0 1.45rem;
  padding-left: 1.45rem;
}
.article li { margin: .45rem 0; padding-left: .15rem; }
.article li::marker { color: var(--mute); }
.article li + li { margin-top: .5rem; }
.article hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
.article img {
  display: block; max-width: 100%; height: auto;
  margin: 1.7rem 0 .45rem;
  border: 1px solid var(--line);
}
.article p:has(> img:only-child) {
  margin: 1.7rem 0 .2rem;
}
.article p:has(> img:only-child) img { margin: 0; }
.article p:has(> img:only-child) + p:has(> img:only-child) {
  margin-top: 1.15rem;
}
.article figcaption,
.article p:has(> img:only-child) {
  font-size: inherit;
}
.article figcaption {
  font-size: 13px; color: var(--mute); line-height: 1.5;
  margin: .4rem 0 1.4rem;
}
.article code {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: .84em;
  font-weight: 500;
  background: var(--plate);
  border: 1px solid var(--line);
  padding: .08em .32em;
}
.article pre {
  margin: 1.2rem 0 1.5rem;
  padding: .9rem 1rem;
  background: var(--plate);
  border: 1px solid var(--ink);
  overflow-x: auto;
}
.article pre code {
  font-size: 12px;
  line-height: 1.55;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  color: var(--ink);
}
.article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.article a:hover { color: var(--ink); }
.article .refs {
  margin-top: 2.75rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}
.article hr:has(+ .refs) { display: none; }
.article .refs h2,
.article .refs .refs-kicker {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--blue);
  margin: 0 0 1rem;
}
.article .refs p,
.article .refs li {
  font-size: .92em;
  line-height: 1.7;
  color: var(--mute);
}
.article .refs p { margin: 0 0 .75em; }
.article .refs ul { margin: .2rem 0 0; }
.head-meta { display: flex; align-items: baseline; gap: 1rem; }
.feed {
  font-family: "IBM Plex Mono", "ui-monospace", monospace; font-size: 13px; font-weight: 500; color: var(--mute);
  text-decoration: none;
}
.feed:hover, .back:hover, .brand:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: .75rem;
  background: var(--ink); color: var(--paper);
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  padding: .4rem .7rem; text-decoration: none;
}
.skip:focus { left: 1rem; z-index: 10; }
