:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #6b6a66;
  --rule: #e4e1da;
  --accent: #2f5d8a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #e9e7e2;
    --muted: #9a9892;
    --rule: #2c2b29;
    --accent: #8fb6dd;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 "Source Serif 4", Georgia, serif;
}
main { max-width: 720px; margin: 0 auto; padding: 64px 20px 96px; }
header { display: flex; gap: 28px; align-items: center; margin-bottom: 40px; }
header img {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: var(--rule);
}
h1 { font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0 0 6px; }
.role { color: var(--muted); margin: 0 0 12px; }
.links { font: 500 14px/1.6 Inter, system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 6px 16px; }
h2 {
  font: 500 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--rule);
}
p { margin: 0 0 14px; }
ul { margin: 0; padding-left: 1.2em; }
li { margin-bottom: 6px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
dl { margin: 0; }
dt { font-weight: 600; margin-top: 16px; }
dt:first-child { margin-top: 0; }
dd { margin: 4px 0 0; }
.tag { font: 500 12px/1 Inter, system-ui, sans-serif; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 8px; margin-left: 6px; white-space: nowrap; vertical-align: 2px; }
footer { margin-top: 56px; font: 13px Inter, system-ui, sans-serif; color: var(--muted); }
@media (max-width: 560px) {
  main { padding: 40px 16px 72px; }
  header { flex-direction: column; align-items: flex-start; gap: 18px; }
  header img { width: 108px; height: 108px; }
  h1 { font-size: 1.7rem; }
}

/* blog */
.back { font: 500 14px Inter, system-ui, sans-serif; display: inline-block; margin-bottom: 28px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin: 0 0 22px; }
.post-list a { font-weight: 600; font-size: 1.1rem; }
.post-date { display: block; font: 13px Inter, system-ui, sans-serif; color: var(--muted); margin-bottom: 2px; }
.post-summary { margin: 4px 0 0; color: var(--muted); }
article h1 { font-size: 2.1rem; margin-bottom: 8px; }
article h2 { font: 600 1.35rem/1.3 "Source Serif 4", Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--fg); border-top: 0; padding-top: 0; margin: 36px 0 12px; }
article h3 { font-size: 1.1rem; margin: 28px 0 10px; }
article ul, article ol { padding-left: 1.4em; margin: 0 0 14px; }
article img { max-width: 100%; height: auto; display: block; margin: 20px auto; }
article blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--rule); color: var(--muted); }
code { font: 0.88em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--rule); padding: 1px 5px; border-radius: 4px; }
pre { overflow-x: auto; background: var(--rule); padding: 14px 16px; border-radius: 6px; margin: 0 0 16px; }
pre code { background: none; padding: 0; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.highlight .c, .highlight .c1, .highlight .cm { color: var(--muted); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr { color: var(--accent); font-weight: 600; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #7a5c1e; }
.highlight .mi, .highlight .mf { color: #8a3b6e; }
@media (prefers-color-scheme: dark) {
  .highlight .s, .highlight .s1, .highlight .s2 { color: #d9b56a; }
  .highlight .mi, .highlight .mf { color: #d79ac2; }
}
article .post-date { margin-bottom: 28px; }
