:root {
  --bg: #fffdf8;
  --ink: #1c1b19;
  --muted: #6b675f;
  --accent: #b3541e;
  --rule: #e6e1d6;
  --code-bg: #f4f1e9;
  --max: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --ink: #ece7db;
    --muted: #a39d8f;
    --accent: #e8823f;
    --rule: #2e2c24;
    --code-bg: #201e16;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  max-width: var(--max);
  font: 1.05rem/1.65 Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .site-title, nav, .meta, .tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.2rem 0 0.6rem; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.site-header {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.4rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}
.site-title { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.site-header nav a { margin-left: 0.9rem; text-decoration: none; }
.hero .tagline { font-size: 1.15rem; color: var(--muted); }
.post-preview { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.post-preview h3 { margin: 0 0 0.3rem; }
.post-preview h3 a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.85rem; }
.tag { background: var(--code-bg); border-radius: 4px; padding: 0.1rem 0.45rem; margin-left: 0.3rem; }
.e-content img, .e-content video { max-width: 100%; height: auto; border-radius: 6px; }
.e-content pre { background: var(--code-bg); padding: 0.9rem 1.1rem; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; }
.e-content code, .wm-hint code { background: var(--code-bg); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.9em; }
.e-content pre code { background: none; padding: 0; }
.e-content blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.author-card.compact { font-size: 0.9rem; color: var(--muted); }
.webmentions { margin-top: 2.5rem; }
.wm-hint { color: var(--muted); font-size: 0.9rem; }
.skills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.skills li { background: var(--code-bg); border-radius: 6px; padding: 0.25rem 0.7rem; font-size: 0.9rem; }
.experience h3, .education h3, .project h2 { margin-bottom: 0.2rem; }
.project { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.site-footer { margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }
time { white-space: nowrap; }
