.blog-shell{width:100%;max-width:52rem;margin:0 auto;padding:4.5rem 1.25rem 2rem}.blog-shell main,.blog-shell article{display:block}.page-title{max-width:48rem;color:hsl(var(--foreground));font-size:clamp(2.4rem,7vw,4.6rem);font-weight:700;line-height:1.05;letter-spacing:-.055em;text-wrap:balance}.page-title .cursor{color:hsl(var(--primary))}.page-subtitle{margin-top:1.25rem;color:hsl(var(--muted-foreground));font-size:.78rem;line-height:1.7}.page-subtitle:before{content:"// ";color:hsl(var(--primary))}.blog-shell a{transition:color .18s ease,border-color .18s ease}
.post-title{font-size:clamp(2rem,6vw,3.5rem);line-height:1.12}
.archive-year-group{margin-top:4rem}.archive-year{margin-bottom:.85rem;color:hsl(var(--primary));font-size:.72rem;font-weight:600;letter-spacing:.12em}.archive-year:before{content:"## "}.archive-list{border-top:1px solid hsl(var(--border))}.archive-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:1.5rem;padding:1rem 0;border-bottom:1px solid hsl(var(--border))}.archive-title{color:hsl(var(--foreground));font-size:.9rem;line-height:1.55}.archive-title:hover{color:hsl(var(--primary))}.archive-date{color:hsl(var(--muted-foreground));font-size:.68rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.wechat-follow{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.72fr);align-items:center;gap:2rem;margin:3rem 0 4rem;padding:1.5rem;border:1px solid hsl(var(--border));background:hsl(var(--card))}.wechat-follow-kicker{margin:0 0 .6rem;color:hsl(var(--primary));font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.wechat-follow-kicker:before{content:"// "}.wechat-follow h2{color:hsl(var(--foreground));font-size:1.05rem;font-weight:650;line-height:1.5}.wechat-follow-copy>p:last-child{margin-top:.75rem;color:hsl(var(--muted-foreground));font-size:.78rem;line-height:1.75}.wechat-follow img{width:100%;height:auto;border:1px solid hsl(var(--border))}
.post-article .lang-zh{display:none}:root[data-article-lang=zh] .post-article .lang-en{display:none}:root[data-article-lang=zh] .post-article .lang-zh{display:revert}.lang-switch{display:inline-flex;gap:.25rem;margin-top:1rem;padding:.2rem;border:1px solid hsl(var(--border));background:hsl(var(--card))}.lang-switch button{min-width:2.25rem;padding:.35rem .55rem;border:0;background:transparent;color:hsl(var(--muted-foreground));font:inherit;font-size:.68rem;cursor:pointer}.lang-switch button:hover,.lang-switch button.active{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.translation-note{margin-top:2rem;color:hsl(var(--muted-foreground));font-size:.75rem;font-style:italic}.translation-note-link{padding:0;border:0;background:none;color:hsl(var(--primary));font:inherit;cursor:pointer}
.md-reader{margin-top:3.5rem;color:hsl(var(--foreground)/.88);font-size:.93rem;line-height:1.85;overflow-wrap:anywhere}.md-reader>:first-child{margin-top:0}.md-reader h1,.md-reader h2,.md-reader h3,.md-reader h4,.md-reader h5,.md-reader h6{color:hsl(var(--foreground));font-weight:650;line-height:1.35;letter-spacing:-.025em;text-wrap:balance}.md-reader h1{margin:3rem 0 1.2rem;font-size:1.8rem}.md-reader h2{margin:2.8rem 0 1rem;padding-top:.85rem;border-top:1px solid hsl(var(--border));font-size:1.4rem}.md-reader h2:before{content:"## ";color:hsl(var(--primary));font-size:.72em}.md-reader h3{margin:2rem 0 .8rem;font-size:1.15rem}.md-reader h4,.md-reader h5,.md-reader h6{margin:1.6rem 0 .65rem;font-size:1rem}.md-reader p{margin:1.1rem 0}.md-reader strong{color:hsl(var(--foreground));font-weight:650}.md-reader a{color:hsl(var(--primary));text-decoration:underline;text-decoration-color:hsl(var(--primary)/.35);text-underline-offset:3px}.md-reader a:hover{text-decoration-color:hsl(var(--primary))}.md-reader ul,.md-reader ol{margin:1rem 0;padding-left:1.5rem}.md-reader ul{list-style:square}.md-reader ol{list-style:decimal}.md-reader li{margin:.35rem 0;padding-left:.15rem}.md-reader li::marker{color:hsl(var(--primary))}.md-reader blockquote{margin:1.5rem 0;padding:.2rem 0 .2rem 1.15rem;border-left:2px solid hsl(var(--accent));color:hsl(var(--muted-foreground))}.md-reader hr{margin:3rem 0;border:0;border-top:1px solid hsl(var(--border))}.md-reader img{max-width:100%;height:auto;margin:1.75rem auto;border:1px solid hsl(var(--border))}.md-reader figure{margin:1.75rem 0}.md-reader figcaption{margin-top:-.9rem;color:hsl(var(--muted-foreground));font-size:.7rem;text-align:center}
.md-reader code{padding:.12rem .32rem;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground));font-size:.86em}.md-reader pre,.md-reader .highlight{margin:1.5rem 0;overflow-x:auto;border:1px solid hsl(var(--border));background:hsl(var(--card))}.md-reader pre{padding:1rem 1.1rem;line-height:1.65}.md-reader pre code{padding:0;border:0;background:transparent;font-size:.78rem}.md-reader .highlight pre{margin:0;border:0}.md-reader table{display:block;width:100%;margin:1.5rem 0;overflow-x:auto;border-collapse:collapse;font-size:.78rem}.md-reader th,.md-reader td{padding:.65rem .8rem;border:1px solid hsl(var(--border));text-align:left}.md-reader th{background:hsl(var(--card));color:hsl(var(--foreground))}
.toc{margin:0 0 2.5rem;padding:1rem 1.15rem;border:1px solid hsl(var(--border));background:hsl(var(--card))}.toc:before{content:"## contents";display:block;margin-bottom:.65rem;color:hsl(var(--primary));font-size:.68rem;letter-spacing:.08em}.toc ul{margin:0;padding-left:1.1rem}.toc a{font-size:.75rem}.comments{margin-top:4rem;padding-top:2rem;border-top:1px solid hsl(var(--border))}
.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs{color:#746f62;font-style:italic}.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt,.highlight .o{color:#d8a657}.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .se,.highlight .sh,.highlight .si,.highlight .sr{color:#b8c87a}.highlight .m,.highlight .mi,.highlight .mf,.highlight .mh,.highlight .mo{color:#c49adf}.highlight .nb,.highlight .bp,.highlight .nc,.highlight .nf,.highlight .nt,.highlight .na{color:#9bca6b}.highlight .err{color:#e06c5f}
@media(max-width:700px){.blog-shell{padding-top:3.25rem}.archive-list li{grid-template-columns:1fr;gap:.35rem}.wechat-follow{grid-template-columns:1fr;gap:1.25rem}.wechat-follow img{max-width:28rem}.md-reader{font-size:.88rem}}

/* Archive discovery; the article list remains usable without JavaScript. */

.archive-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,14rem) auto;align-items:end;gap:1rem;margin-top:3rem}.archive-filters label{display:block;margin-bottom:.6rem;font-size:.8rem;color:hsl(var(--muted-foreground))}.archive-filters input,.archive-filters select,.archive-filters button{width:100%;min-height:44px;padding:.65rem .75rem;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground));font:inherit;font-size:.85rem;border-radius:0}.archive-filters input:focus,.archive-filters select:focus{outline:1px solid hsl(var(--primary));outline-offset:2px}.archive-filters button{cursor:pointer}.archive-filters button:hover{border-color:hsl(var(--primary));color:hsl(var(--primary))}.archive-results{margin-top:1rem;font-size:.8rem;color:hsl(var(--muted-foreground))}#archive-empty{margin-top:2rem;line-height:1.7}
.page-subtitle{font-size:.875rem}.archive-date{font-size:.75rem}.wechat-follow-copy>p:last-child{font-size:.9rem}.wechat-follow{margin-bottom:0}
@media(max-width:600px){.archive-filters{grid-template-columns:1fr auto}.archive-filters>div:first-child{grid-column:1/-1}.archive-list li{grid-template-columns:1fr;gap:.35rem}.blog-shell{padding-top:3rem}}

/* Writing: keep the terminal character while giving the articles more space. */
.blog-shell { --muted-foreground: 42 11% 65%; padding-top: 2.75rem; }
.blog-intro { max-width: 43rem; margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.8; }
.writing-note { margin-top: 1rem; color: hsl(var(--muted-foreground)); font-size: .85rem; line-height: 1.8; }
.writing-note a, .wechat-follow a, .author-note a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }

.archive-filters { margin-top: 1.5rem; }
.archive-year-group { margin-top: 2.5rem; }
.archive-date { font-size: .8rem; }
.language-badge { display: inline-block; margin-left: .5rem; padding: .05rem .35rem; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .7rem; font-weight: 400; vertical-align: middle; letter-spacing: normal; }
.post-notice { margin-top: 1.5rem; padding: 1rem 1.15rem; border: 1px solid hsl(var(--border)); border-left: 2px solid hsl(var(--accent)); color: hsl(var(--muted-foreground)); font-size: .875rem; line-height: 1.8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
.post-notice strong { color: hsl(var(--foreground)); font-weight: 600; }
.post-notice p { margin-top: .5rem; }
.post-notice a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.editorial-note { margin-top: 1.5rem; font-size: .8rem; color: hsl(var(--muted-foreground)); line-height: 1.8; }
.md-reader { margin-top: 1.75rem; }
.article-toc { margin-bottom: 1.5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.article-toc summary { padding: .75rem 1rem; cursor: pointer; color: hsl(var(--primary)); font-size: .85rem; }
.article-toc summary:focus-visible { outline: 1px solid hsl(var(--primary)); outline-offset: 3px; }
.article-toc .toc { margin: 0; border: 0; padding-top: .25rem; }
.article-toc .toc::before { display: none; }
.author-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .85rem; line-height: 1.9; }
.author-note p + p { margin-top: .5rem; }
@media (max-width: 600px) {
  .blog-shell { padding-top: 2rem; }
  .blog-intro { font-size: 1rem; }
  .post-notice { padding: .85rem 1rem; }
  footer .flex.items-center.gap-4 { flex-wrap: wrap; }
}

/* Personal entry point; the article list lives at /blog/. */
.entry-home{padding-top:1rem}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-top:3rem}.entry-card{display:flex;flex-direction:column;min-height:17rem;padding:1.75rem;border:1px solid hsl(var(--border));border-radius:1rem;background:hsl(var(--card));color:hsl(var(--foreground))}.entry-card:hover{border-color:hsl(var(--primary))}.entry-card:focus-visible{outline:3px solid hsl(var(--primary));outline-offset:4px}.entry-label{font-size:.65rem;letter-spacing:.12em;color:hsl(var(--muted-foreground))}.entry-card h2{font-size:1.65rem;font-weight:650;letter-spacing:-.035em;margin:1.8rem 0 .8rem}.entry-card h2 span{float:right;color:hsl(var(--primary))}.entry-card p{line-height:1.8;font-size:.9rem;color:hsl(var(--muted-foreground))}.entry-action{margin-top:auto;padding-top:1.75rem;font-size:.75rem;color:hsl(var(--primary))}.entry-projects{margin-top:2rem;font-size:.8rem;line-height:1.8}.entry-projects a{color:hsl(var(--primary))}.entry-projects span{display:block;color:hsl(var(--muted-foreground))}.personal-project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:2rem}.personal-project-list a{display:block;padding:1rem;border:1px solid hsl(var(--border));border-radius:.5rem}.personal-project-list small{display:block;margin-top:.4rem;color:hsl(var(--muted-foreground))}@media(max-width:600px){.entry-grid,.personal-project-list{grid-template-columns:1fr}.entry-card{min-height:15rem}.entry-home{padding-top:0}}
