:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5b6673;
  --line: #d8dee6;
  --accent: #0f6d7a;
  --accent-2: #b33c2e;
  --code-bg: #eef2f4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5f7 0%, #f9faf7 42%, #f4f6f8 100%);
  font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header { display: flex; justify-content: space-between; align-items: center; max-width: 980px; margin: 0 auto; padding: 28px 22px; }
.brand { font-size: 22px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font: 15px/1.4 "Segoe UI", "Noto Sans CJK SC", sans-serif; }
main { max-width: 980px; margin: 0 auto; padding: 44px 22px 72px; }
.intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.eyebrow { color: var(--accent-2); font: 14px/1.4 "Segoe UI", "Noto Sans CJK SC", sans-serif; letter-spacing: 0; margin: 0 0 12px; }
h1 { max-width: 820px; margin: 0; font-size: 44px; line-height: 1.15; letter-spacing: 0; }
.intro p:last-child, .lead { max-width: 680px; color: var(--muted); font-size: 18px; margin: 24px 0 0; }
.post-list { padding-top: 42px; }
.post-list article { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
time { color: var(--muted); font: 14px/1.4 "Segoe UI", "Noto Sans CJK SC", sans-serif; }
h2 { margin: 0 0 8px; font-size: 26px; }
h2 a { text-decoration-color: var(--accent); text-underline-offset: 5px; }
.post-list p { color: var(--muted); margin: 0; }
.page { max-width: 820px; border-top: 1px solid var(--line); }
.page h1 { margin: 42px 0 20px; }
.content { margin-top: 34px; }
.content h2 { margin-top: 42px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.content h3 { margin-top: 30px; }
.content p, .content li { font-size: 18px; }
.content img { max-width: 100%; height: auto; display: block; margin: 24px auto; border: 1px solid var(--line); background: #fff; }
.content figure { margin: 28px 0; }
.content figcaption { color: var(--muted); font: 14px/1.5 "Segoe UI", "Noto Sans CJK SC", sans-serif; text-align: center; }
.content code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
.content pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); background: #f8fafb; }
.content pre code { background: transparent; padding: 0; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.35rem 0; }
.site-footer { max-width: 980px; margin: 0 auto; padding: 24px 22px 44px; color: var(--muted); font: 14px/1.4 "Segoe UI", "Noto Sans CJK SC", sans-serif; }
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  main { padding-top: 22px; }
  .intro { padding: 42px 0; }
  h1 { font-size: 32px; }
  .post-list article { grid-template-columns: 1fr; gap: 8px; }
}

/* Use a Times-like math face instead of KaTeX's Computer Modern webfonts. */
.katex,
.katex * {
  font-family: "Times New Roman", Times, "STIX Two Math", "Cambria Math", serif !important;
}
.katex-display {
  font-size: 1.08em;
}
