:root{--bg:#fff;--fg:#1f2328;--muted:#6b7280;--border:#e5e7eb;--accent:#2563eb;--code-bg:#f6f8fa;--measure:44rem}@media (prefers-color-scheme:dark){:root{--bg:#0f1115;--fg:#e6e8eb;--muted:#9aa3ad;--border:#262b33;--accent:#7aa6ff;--code-bg:#171a20}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--fg);text-rendering:optimizelegibility;margin:0;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:17px;line-height:1.8}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.wrap{max-width:var(--measure);margin:0 auto;padding:0 1.25rem}.site-header{border-bottom:1px solid var(--border)}.site-header .wrap{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:1rem;padding-top:1.1rem;padding-bottom:1.1rem;display:flex}.site-title{color:var(--fg);font-size:1.05rem;font-weight:600}.site-title:hover{opacity:.7;text-decoration:none}.site-nav a{color:var(--muted);margin-left:1.15rem;font-size:.95rem}.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--fg)}main{padding:2.5rem 0 3.5rem}.lede{margin:0 0 2.25rem}.lede h1{margin:0 0 .5rem;font-size:1.6rem;line-height:1.4}.lede p{color:var(--muted);margin:0}.post-list{margin:0;padding:0;list-style:none}.post-item{border-top:1px solid var(--border);padding:1.15rem 0}.post-item:first-child{border-top:0}.post-item h2{margin:0 0 .35rem;font-size:1.12rem;font-weight:600;line-height:1.5}.post-meta{color:var(--muted);font-size:.85rem}.post-meta .tag{margin-right:.6rem}.post-item p{color:var(--muted);margin:.5rem 0 0;font-size:.95rem}.article-header{margin-bottom:2rem}.article-header h1{margin:0 0 .6rem;font-size:1.75rem;line-height:1.4}.prose h2{margin:2.5rem 0 .9rem;font-size:1.28rem;line-height:1.5}.prose h3{margin:1.9rem 0 .7rem;font-size:1.08rem;line-height:1.5}.prose p,.prose ul,.prose ol{margin:0 0 1.15rem}.prose ul,.prose ol{padding-left:1.4rem}.prose li{margin-bottom:.4rem}.prose strong{font-weight:600}.prose blockquote{border-left:3px solid var(--border);color:var(--muted);margin:1.5rem 0;padding:.15rem 0 .15rem 1rem}.prose code{background:var(--code-bg);border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}.prose pre{background:var(--code-bg);border-radius:8px;padding:1rem 1.1rem;font-size:.88rem;line-height:1.65;overflow-x:auto}.prose pre code{background:0 0;padding:0}.prose hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}.site-footer{border-top:1px solid var(--border);color:var(--muted);padding:1.5rem 0 2.5rem;font-size:.88rem}.site-footer p{margin:0 0 .35rem}.wrap-wide{max-width:62rem}.article-layout{grid-template-columns:minmax(0,1fr);gap:2rem;display:grid}.article-layout>article{min-width:0}.toc{border:1px solid var(--border);border-radius:8px;order:-1;padding:.9rem 1rem;font-size:.9rem;line-height:1.6}.toc-title{color:var(--muted);letter-spacing:.04em;margin:0 0 .5rem;font-size:.85rem;font-weight:600}.toc-list,.toc-sub{margin:0;padding:0;list-style:none}.toc-list>li{margin-bottom:.35rem}.toc-sub{margin-top:.3rem;padding-left:.9rem;display:none}.toc a{color:var(--fg)}.toc a:hover{color:var(--accent)}.related{border-top:1px solid var(--border);padding-top:1rem}.related-title{color:var(--muted);letter-spacing:.04em;margin:0 0 .5rem;font-size:.85rem;font-weight:600}.related-list{margin:0;padding:0;list-style:none}.related-list li{border-bottom:1px dashed var(--border);padding:.55rem 0}.related-list li:last-child{border-bottom:0}.related-list a{color:var(--fg);font-size:.9rem;line-height:1.55;display:block}.related-list a:hover{color:var(--accent)}.related-meta{color:var(--muted);margin-top:.15rem;font-size:.76rem;display:block}.related-side{display:none}@media (width>=1000px){.article-layout{grid-template-columns:minmax(0,1fr) 14rem;gap:3rem}.article-side{overscroll-behavior:contain;flex-direction:column;align-self:start;gap:2rem;max-height:calc(100vh - 3rem);display:flex;position:sticky;top:1.5rem;overflow-y:auto}.toc{border:0;border-left:1px solid var(--border);border-radius:0;flex:0 auto;order:0;min-height:0;padding:0 0 0 1.25rem;overflow-y:auto}.toc-sub{display:block}.related-bottom{display:none}.related-side{flex:none;margin-top:0;display:block}}.prose :is(h2,h3){scroll-margin-top:1.5rem}html{scroll-behavior:smooth}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}.search-form{margin:0 0 1rem}.search-form input{width:100%;color:var(--fg);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.7rem .9rem;font-family:inherit;font-size:1rem}.search-form input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.search-status{color:var(--muted);margin:0 0 1rem;font-size:.88rem}.search-results{margin:0;padding:0;list-style:none}.search-result{border-top:1px solid var(--border);padding:1rem 0}.search-result a{font-weight:600}.search-excerpt{color:var(--muted);margin:.35rem 0 0;font-size:.92rem}.search-excerpt mark{color:inherit;background:#f59e0b40;border-radius:3px;padding:0 .15em}.subscribe-form{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.subscribe-form label{color:var(--muted);font-size:.88rem}.subscribe-form input{min-width:160px;color:var(--fg);background:var(--bg);border:1px solid var(--border);border-radius:6px;flex:200px;padding:.45rem .7rem;font-family:inherit;font-size:.9rem}.subscribe-form button{color:var(--fg);background:var(--bg);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.45rem .9rem;font-family:inherit;font-size:.88rem}.subscribe-form button:hover{border-color:var(--accent);color:var(--accent)}.subscribe-msg{color:var(--muted);font-size:.85rem}.post-actions{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:.5rem;margin:1.5rem 0 0;padding-top:1rem;display:flex}.post-actions button{color:var(--fg);background:var(--bg);border:1px solid var(--border);cursor:pointer;border-radius:6px;padding:.4rem .8rem;font-family:inherit;font-size:.88rem}.post-actions button:hover,.post-actions button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.post-actions .msg{color:var(--muted);font-size:.85rem}
