:root {
  --bg: #fbfaf7; --fg: #1b1d22; --muted: #6a6f7a; --line: #e3e1da; --panel: #f2f0ea;
  --accent: #117a53; --accent-2: #0b5c3f; --code-bg: #f0eee8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --fg: #e6e4de; --muted: #8e939e; --line: #262a33; --panel: #151821;
    --accent: #7dd3a8; --accent-2: #a6e5c5; --code-bg: #151821;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --fg: #e6e4de; --muted: #8e939e; --line: #262a33; --panel: #151821;
  --accent: #7dd3a8; --accent-2: #a6e5c5; --code-bg: #151821;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "IBM Plex Sans", system-ui, sans-serif; line-height: 1.6;
}
.top, main, .bottom { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.brand .dot { color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 1rem; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .9rem; }
nav a, .bottom a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.posts time, .meta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .85rem; color: var(--muted); }
.posts li a { display: block; font-size: 1.2rem; font-weight: 600; color: var(--fg); text-decoration: none; margin: .15rem 0; }
.posts li a:hover { color: var(--accent); }
.posts li p { margin: 0; color: var(--muted); }
article h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .25rem; }
article h2 { font-size: 1.35rem; margin-top: 2rem; }
article h3 { font-size: 1.1rem; margin-top: 1.5rem; }
article a { color: var(--accent); }
article a:hover { color: var(--accent-2); }
article img { max-width: 100%; height: auto; border-radius: 6px; }
article blockquote { margin: 1rem 0; padding: .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
article table { border-collapse: collapse; width: 100%; font-size: .95rem; }
article th, article td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .9em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 8px; overflow-x: auto; border: 1px solid var(--line); }
pre code { background: none; padding: 0; }
.tag { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 .4em; margin-left: .3em; }
.bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.empty { color: var(--muted); }
/* codehilite (pygments) minimal */
.hl .k, .hl .kd, .hl .kn { color: var(--accent-2); font-weight: 600; }
.hl .s, .hl .s1, .hl .s2 { color: #a3532b; }
.hl .c, .hl .c1, .hl .cm { color: var(--muted); font-style: italic; }
.hl .nb, .hl .nf { color: var(--accent); }
@media (prefers-color-scheme: dark) { .hl .s, .hl .s1, .hl .s2 { color: #e0a77a; } }
