:root { color-scheme: light dark; --bg: #f7f6f2; --text: #242421; --muted: #6c6a63; --line: #d8d5cc; --link: #184f87; }
@media (prefers-color-scheme: dark) { :root { --bg: #171716; --text: #e9e7df; --muted: #aaa79d; --line: #3b3a36; --link: #8fc4f4; } }
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; line-height: 1.65; }
a { color: var(--link); text-underline-offset: .16em; }
header, main, footer { width: min(100% - 2rem, 720px); margin-inline: auto; }
header { display: flex; justify-content: space-between; align-items: baseline; padding: 2rem 0 1.25rem; border-bottom: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
header .name { color: var(--text); font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 1rem; }
main { padding: 3.5rem 0 5rem; }
.intro { margin-bottom: 4rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); margin: 0 0 1rem; }
article h1 { max-width: 18ch; }
h2 { margin-top: 2.8rem; font-size: 1.6rem; }
h3 { margin-top: 2rem; font-size: 1.2rem; }
.intro p { max-width: 35rem; color: var(--muted); font-size: 1.2rem; }
.posts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.posts li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.posts time, .meta, .back, footer { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; }
.posts a { color: var(--text); font-weight: 700; font-size: 1.08rem; }
.posts p { color: var(--muted); margin: .25rem 0 0; font-size: .9rem; line-height: 1.45; }
article > p, article > ul, article > ol { max-width: 68ch; }
article img { max-width: 100%; height: auto; }
article pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; font-size: .82rem; }
article code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; }
article blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.meta { margin: 0 0 3rem; }
.back { margin: 0 0 1.5rem; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 3rem; }
@media (max-width: 520px) { html { font-size: 17px; } main { padding-top: 2.5rem; } .posts li { grid-template-columns: 1fr; gap: .25rem; } }
@media print { header, footer, .back { display: none; } body { background: white; color: black; } main { padding: 0; } a { color: inherit; } }
