:root {
  color-scheme: light;
  --background: #f5f4ef;
  --paper: #fffefa;
  --ink: #142420;
  --muted: #566761;
  --rule: #d6dcd4;
  --green: #246047;
  --dark: #132c24;
  --lime: #dcf6a6;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--green); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 69rem); margin-inline: auto; }
.reading { width: min(100%, 45rem); margin-inline: auto; min-width: 0; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand, .masthead nav a { text-decoration: none; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); font-weight: 750; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  width: 1.85rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .45rem;
  background: var(--dark);
  color: var(--lime);
  font: 700 1.05rem var(--mono);
}
.masthead nav a { font-size: .88rem; font-weight: 650; }
.masthead nav a:hover, .article-end a:hover { text-decoration: underline; }
.article-shell { padding-block: clamp(1.25rem, 4vw, 3.2rem) 3.75rem; }
.article-header {
  padding: clamp(1.35rem, 5vw, 4rem);
  border-radius: 1.15rem 1.15rem 0 0;
  background: var(--dark);
  color: #f2f6eb;
}
.article-header p { margin: 0 0 .75rem; color: var(--lime); font: .82rem/1.5 var(--mono); }
.article-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4.4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.article-paper {
  padding: clamp(1.35rem, 5vw, 3.75rem) clamp(1.25rem, 5vw, 4rem) clamp(1.35rem, 4vw, 2.75rem);
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 1.15rem 1.15rem;
  background: var(--paper);
}
.article-content { font-size: clamp(1rem, 1.6vw, 1.09rem); line-height: 1.8; overflow-wrap: anywhere; }
.article-content .kg-card-markdown > :first-child { margin-top: 0; }
.article-content .kg-card-markdown > :last-child { margin-bottom: 0; }
.article-content p, .article-content ul, .article-content ol { margin-block: 0 1.05em; }
.article-content li + li { margin-top: .28em; }
.article-content :is(h1, h2, h3, h4, h5, h6) { margin: 1.65em 0 .55em; line-height: 1.35; }
.article-content :is(h1, h2) { font-size: 1.42em; letter-spacing: -.022em; }
.article-content :is(h3, h4) { font-size: 1.15em; }
.article-content pre {
  max-width: 100%;
  margin: 1.2rem 0;
  padding: .95rem 1rem;
  overflow: auto;
  border: 1px solid #314c40;
  border-radius: .65rem;
  background: #0e211a;
  color: #e6eee1;
  font: .84rem/1.7 var(--mono);
  scrollbar-color: #799484 #0e211a;
}
.article-content code { font-family: var(--mono); }
.article-content :not(pre) > code { padding: .12em .3em; border-radius: .25em; background: #eaf0e5; color: #24503d; font-size: .9em; }
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: .45rem;
  outline: 1px solid var(--rule);
}
.article-content :is(video, iframe) { max-width: 100%; }
.article-content figure { margin-inline: 0; }
.article-content blockquote {
  margin: 1.2rem 0;
  padding: .7rem 1rem;
  border-left: .22rem solid #7aa989;
  border-radius: 0 .4rem .4rem 0;
  background: #edf2e8;
}
.article-content blockquote > :last-child { margin-bottom: 0; }
.article-end { margin-top: 2.3rem; padding-top: 1.15rem; border-top: 1px solid var(--rule); }
.article-end a { font-size: .92rem; font-weight: 650; text-decoration: none; }
@media (max-width: 42rem) {
  .wrap { width: min(100% - 1.5rem, 69rem); }
  .masthead .wrap { min-height: 3.75rem; }
  .article-header { border-radius: .8rem .8rem 0 0; }
  .article-paper { border-radius: 0 0 .8rem .8rem; }
  .article-content pre { padding: .8rem .75rem; font-size: .8rem; }
  .article-content :is(ul, ol) { padding-left: 1.4rem; }
}
