:root { color-scheme: light dark; --page: #fff; --ink: #1b1b1b; --muted: #666; --line: #e3e3e3; --card: #f6f6f4; --accent: #2a5bd7; --serif: Charter, "Iowan Old Style", Georgia, serif; --sans: "Segoe UI", system-ui, -apple-system, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --page: #141414; --ink: #ececec; --muted: #a0a0a0; --line: #2c2c2c; --card: #1d1d1d; --accent: #7aa2ff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.7 var(--sans); }
a { color: var(--accent); }
.top { display: flex; gap: 8px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.crumb, .crumb a { color: var(--muted); }
.wrap { max-width: 700px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.lede, .muted, .meta { color: var(--muted); }
.posts { list-style: none; padding: 0; margin: 32px 0 0; }
.posts li { padding: 18px 0; border-top: 1px solid var(--line); }
.posts .when { display: block; font-size: 14px; color: var(--muted); }
.posts a { font-size: 22px; font-weight: 650; text-decoration: none; color: var(--ink); }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 6px 0 0; color: var(--muted); }
.pinned { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: #2a78d6; color: #fff; padding: 1px 6px; border-radius: 4px; }
.draft { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: #f0c419; color: #1b1b1b; padding: 1px 6px; border-radius: 4px; }
.post { font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.post h2, .post h3, .post h4 { font-family: var(--sans); line-height: 1.25; margin: 1.8em 0 .5em; }
.post img { max-width: 100%; height: auto; border-radius: 8px; }
.post blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.post code { font-size: .88em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.post pre { background: var(--card); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.post pre code { background: none; padding: 0; }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.foot { text-align: center; color: var(--muted); padding: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.share span { color: var(--muted); }
.share button { font: inherit; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
details.section > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::before { content: "▾"; color: var(--muted); font-size: .9em; width: 1em; flex: none; }
details.section:not([open]) > summary::before { content: "▸"; }
details.section > summary > :is(h2, h3, h4) { margin-bottom: 0; }
details.section[open] > summary { margin-bottom: .6em; }
.comments { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.comments .muted { font-size: 14px; }
/* giscus's own loader would inject these; ours doesn't load any third-party CSS */
.giscus, .giscus-frame { width: 100%; }
.giscus-frame { border: none; color-scheme: light dark; min-height: 150px; }
