
:root{--bg:#fbfaf7;--panel:#f3f2ec;--paper:#fffefa;--text:#292e29;--muted:#85877d;--line:#e5e5db;--accent:#3c5c49;--tint:#e8ede5;--serif:"Consolas",'Noto Serif SC','Source Han Serif SC','SimSun',serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 'Segoe UI','Microsoft YaHei',sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{background:none;border:0} .sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--panel);border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:13px;align-items:center;font-size:17px;font-weight:600;letter-spacing:1px}.brand small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:2px;letter-spacing:3px}.brand-icon{position:relative;background:var(--accent);color:#fff;width:42px;height:45px;border-radius:10px;font-family:var(--serif);font-size:27px;text-align:center;line-height:45px}.brand-icon span{position:absolute;font:14px Georgia;right:2px;top:0}.search-button{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:8px 9px;margin:35px 0 29px;color:var(--muted);font-size:12px;background:var(--bg)}.search-button kbd{margin-left:auto;font:10px monospace;border:1px solid var(--line);border-radius:3px;padding:1px 3px}.nav-caption{font-size:10px;letter-spacing:2px;color:var(--muted);padding-left:11px;margin-bottom:11px}nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;margin-bottom:5px;font-size:12px}nav a>span{width:18px;font-size:17px;color:var(--muted)}nav a small{margin-left:auto;font-size:10px;color:var(--muted)}nav a:hover{background:var(--line)}nav a.active{background:var(--tint);color:var(--accent);font-weight:600}nav a.active>span{color:var(--accent)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 10px 0;font-size:11px;color:var(--muted)}.sidebar-bottom p{font-family:var(--serif);margin:8px 0 15px}.sidebar-bottom button{padding:0;font-size:10px}.status-dot{display:inline-block;width:6px;height:6px;background:#789379;border-radius:50%;margin-right:6px}.main{margin-left:244px}header{height:76px;display:flex;align-items:center;justify-content:space-between;margin:0 46px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.header-right{display:flex;align-items:center;gap:24px;letter-spacing:2px;font-size:9px}.header-right button{font-size:21px;padding:4px}#menu{display:none}main{max-width:1230px;margin:auto;padding:0 55px;min-height:calc(100vh - 165px)}.hero{position:relative;padding:60px 0 45px;overflow:hidden}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.5px;color:var(--accent)}h1{font-family:var(--serif);font-size:39px;letter-spacing:1px;font-weight:500;margin:20px 0 15px;line-height:1.4}.hero p{color:var(--muted);font-family:var(--serif);font-size:15px;letter-spacing:1px}.hero-meta{display:flex;align-items:center;gap:13px;font-size:10px;color:var(--muted);margin-top:28px}.hero-meta i{width:3px;height:3px;background:var(--muted);border-radius:50%}.hero-decoration{position:absolute;width:170px;height:160px;right:12px;top:55px;opacity:.6}.hero-decoration span{position:absolute;font-family:var(--serif);border:1px solid #cbd2c2;color:var(--accent);border-radius:50%;width:70px;height:70px;text-align:center;line-height:70px;font-size:24px;background:var(--bg)}.hero-decoration span:nth-child(1){left:4px;top:49px;z-index:2}.hero-decoration span:nth-child(2){left:53px;top:5px}.hero-decoration span:nth-child(3){left:99px;top:73px}.hero-decoration div{position:absolute;border:1px solid #dce0d1;border-radius:50%;inset:-8px;transform:rotate(-35deg) scaleY(.6)}.section{margin:10px 0 38px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-title h2{font-size:15px;letter-spacing:1px;font-weight:600;margin:0}.section-title h2 small{font:10px 'Segoe UI';margin-left:8px;background:var(--tint);padding:2px 6px;border-radius:5px;color:var(--accent)}.section-title>span{font-size:10px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.category-card{border:1px solid var(--line);background:var(--paper);padding:20px 20px 17px;border-radius:8px;transition:transform .2s,border-color .2s}.category-card:hover{transform:translateY(-3px);border-color:#9daf99}.card-top{display:flex;justify-content:space-between;align-items:center}.category-icon{font:22px var(--serif);color:var(--accent);height:30px}.card-num{font:10px monospace;color:#b0b3a7}.category-card h3{font-size:14px;letter-spacing:1px;margin:16px 0 5px;font-weight:600;display:flex;justify-content:space-between}.category-card h3 span{color:#a0a898}.category-card p{color:var(--muted);font-size:11px;margin:0 0 23px}.category-card small{font-size:9px;color:var(--muted)}select{border:0;background:transparent;font-size:10px;color:var(--muted);padding:4px}.note-row{display:flex;align-items:center;gap:18px;padding:19px 4px;border-top:1px solid var(--line)}.note-row:hover .row-body h3{color:var(--accent)}.row-number{color:#b3b6aa;font:10px monospace;width:20px}.row-body{flex:1;min-width:0}.row-body h3{font-size:13px;font-weight:500;margin:0 0 3px}.row-body p{color:var(--muted);font-size:10px;margin:0}.tag{color:var(--accent);background:var(--tint);border-radius:4px;padding:3px 8px;font-size:9px}.readtime{font-size:10px;color:var(--muted);width:58px;text-align:right}.arrow{color:#9aa391;font-size:16px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:22px 0;margin:30px 46px 0;color:var(--muted);font-size:9px;letter-spacing:1px}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:52px}.reading{padding-top:35px}.back{font-size:11px;color:var(--muted)}.article-heading{margin:36px 0 38px;border-bottom:1px solid var(--line);padding-bottom:23px}.article-heading h1{font-size:32px}.article-heading p{color:var(--muted);font-size:10px}.prose{font-family:var(--serif);font-size:16px;line-height:1.9;overflow-wrap:anywhere}.prose h2{font-size:25px;font-weight:500;margin:45px 0 18px}.prose h3{font-size:20px;margin:32px 0 14px}.prose h4{font-size:17px}.prose p{margin:14px 0}.prose a{color:var(--accent);border-bottom:1px solid #a6b4a0}.prose img{max-width:100%;height:auto;display:block;margin:25px auto}.prose pre{overflow:auto;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:6px;font:12px/1.7 Consolas,monospace}.prose code{font-family:Consolas,monospace;font-size:.88em}.prose :not(pre)>code{background:var(--tint);padding:2px 5px;border-radius:3px}.prose .hljs{background:transparent}.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-family:'Segoe UI','Microsoft YaHei',sans-serif;font-size:13px}.prose td,.prose th{padding:9px 13px;border:1px solid var(--line)}.prose th{background:var(--panel)}.prose blockquote{margin-left:0;padding:3px 20px;border-left:3px solid #9caa96;color:var(--muted)}.prose .katex-display{overflow:auto;padding:8px 0}.prose .katex{font-size:1.05em}.toc{align-self:start;position:sticky;top:30px;margin-top:15px;max-height:calc(100vh - 60px);overflow:auto;font-size:11px;border-left:1px solid var(--line);padding-left:20px}.toc>div{font-size:10px;letter-spacing:2px;margin-bottom:15px;color:var(--muted)}.toc a{display:block;color:var(--muted);padding:5px 0;line-height:1.6}.toc a:hover{color:var(--accent)}.toc .depth-3{padding-left:10px;font-size:10px}.toc .depth-4{padding-left:18px;font-size:10px}.toc button{margin-top:20px;padding:15px 0 0;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.article-bottom{display:flex;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding:28px 0;margin-top:50px;font-size:11px;color:var(--accent)}dialog{background:var(--paper);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:0;max-width:640px;width:calc(100% - 35px);box-shadow:0 25px 100px #0002}dialog::backdrop{background:#242d284d;backdrop-filter:blur(4px)}#search-dialog{margin-top:15vh}.search-head{display:flex;gap:14px;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line)}.search-head input{background:transparent;border:0;outline:none;flex:1;min-width:0}.search-head button{font:10px monospace;border:1px solid var(--line);border-radius:4px;padding:3px 6px;color:var(--muted)}#search-results{max-height:55vh;overflow-y:auto;padding:8px 18px 18px}#search-results a{display:block;padding:14px 6px;border-bottom:1px solid var(--line)}#search-results a:hover{background:var(--panel)}#search-results strong{display:block;font-size:13px;font-weight:500;margin-bottom:6px}#search-results a span{font-size:11px;color:var(--muted);display:block}.search-hint{font-size:12px;color:var(--muted);padding:15px 8px}.result-count{font-size:10px;color:var(--muted);padding:10px 6px}#info-dialog{padding:30px;max-width:510px;font-size:13px}#info-dialog h2{font:23px var(--serif)}#info-dialog p{margin:18px 0}.close{float:right;font-size:11px;color:var(--muted)}.progress{height:2px;background:var(--accent);position:fixed;top:0;left:0;width:0;z-index:50}.loading{margin-top:70px;color:var(--muted)}[data-theme=dark]{--bg:#1d211e;--panel:#242a25;--paper:#222723;--text:#d9dfd5;--muted:#959f90;--line:#353e34;--accent:#acc2a6;--tint:#303d31}[data-theme=dark] .hljs{color:#d9dfd5}[data-theme=dark] .brand-icon{background:#4f6953;color:#fff}@media(min-width:1500px){.category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:215px;padding:28px 17px}.main{margin-left:215px}main{padding:0 32px}.reading{padding-top:30px}.hero-decoration{display:none}.article-layout{grid-template-columns:minmax(0,1fr)}.toc{display:none}.category-card{padding:17px 14px}.category-card p{min-height:35px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);width:244px;box-shadow:10px 0 70px #0002;transition:transform .2s}.sidebar.open{transform:none}.main{margin-left:0}header{height:65px;margin:0 22px}#menu{display:inline-block;margin-right:12px}.header-right>span{display:none}main{padding:0 23px}.hero{padding:40px 0 30px}h1{font-size:28px}.hero p{font-size:13px}.eyebrow{font-size:8px;letter-spacing:1.5px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card p{font-size:10px}.category-card h3{font-size:13px}.note-row{gap:10px}.tag{display:none}.readtime{width:45px;font-size:9px}.row-number{width:16px}.row-body h3{font-size:12px}.row-body p{font-size:9px}.section-title>span{font-size:9px}.reading{padding-top:26px}.article-heading h1{font-size:27px}.prose{font-size:15px}.prose h2{font-size:23px}footer{margin:20px 23px 0;font-size:8px}}

/* Interface sizing. */
:root{--serif:"Consolas",'Noto Serif SC','Source Han Serif SC',Georgia,serif}body{font-size:16px}.brand{font-size:19px}.brand small{font-size:12px}.search-button{font-size:14px}.search-button kbd{font-size:11px}.nav-caption{font-size:12px}nav a{font-size:15px;padding-top:12px;padding-bottom:12px}nav a small{font-size:12px}.sidebar-bottom{font-size:13px}.sidebar-bottom button{font-size:12px}header{font-size:13px}.header-right{font-size:11px}.eyebrow{font-size:11px}h1{font-size:42px}.hero p{font-size:18px}.hero-meta{font-size:13px}.section-title h2{font-size:18px}.section-title>span{font-size:13px}.category-card h3{font-size:17px}.category-card p{font-size:14px;line-height:1.8}.category-card small{font-size:12px}.card-num{font-size:12px}.note-row{padding:21px 4px}.row-number{font-size:12px}.row-body h3{font-size:16px}.row-body p{font-size:12px}.tag{font-size:12px}.readtime{font-size:12px;width:65px}select{font-size:13px}footer{font-size:12px}.back{font-size:14px}.article-heading h1{font-size:37px}.article-heading p{font-size:13px}.prose{font-size:19px;line-height:1.9}.prose h2{font-size:28px}.prose h3{font-size:23px}.prose h4{font-size:20px}.prose pre{font-size:14px}.prose table{font-size:15px}.toc{font-size:13px;width:190px}.toc>div{font-size:12px}.toc .depth-3,.toc .depth-4{font-size:12px}.toc button{font-size:12px}.article-bottom{font-size:14px}.search-head input{font-size:16px}#search-results strong{font-size:16px}#search-results a span{font-size:14px}.result-count,.search-hint{font-size:13px}#info-dialog{font-size:15px}.hero-decoration{opacity:.4}
@media(max-width:760px){h1{font-size:31px}.hero p{font-size:16px}.eyebrow{font-size:9px}.category-card h3{font-size:16px}.category-card p{font-size:13px}.category-card small{font-size:12px}.section-title>span{font-size:12px}.row-body h3{font-size:15px}.row-body p{font-size:12px}.readtime{font-size:11px}.article-heading h1{font-size:31px}.prose{font-size:18px}.prose h2{font-size:26px}footer{font-size:10px}}

/* Reading sizing; final shared font rules are below. */
:root { --serif: "Consolas", "Noto Serif SC", "Source Han Serif SC", serif; }
.prose { font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.prose table { font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.prose pre, .prose pre *, .prose code, .prose code * { font-family: "Consolas" !important; }
.prose pre { font-size: 16px; line-height: 1.9; }
.prose code { font-size: 1em; }
@media(max-width:760px) { .prose { font-size: 16px; line-height: 1.9; } }

/* Match the Obsidian reading snippets: separate paragraphs and block spacing. */
.prose p { margin-block: 1em; }
.prose li > p { margin-block: .5em; }
.prose pre { margin-block: 1.2em; }
.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > :last-child { margin-bottom: 0; }

/* A consistent font stack across navigation, cards and the reading page. */
:root { --reading-font: "Consolas", "Bird Mono", "Noto Serif SC", "Source Han Serif SC", "Bird Serif", serif; --serif: var(--reading-font); --code-font: "Consolas", "Bird Mono", ui-monospace, monospace; }
body, button, input, select, textarea { font-family: var(--reading-font); }
.brand, .brand small, .brand-icon span, h1, h2, h3, h4, h5, h6, .category-card p, .category-card small, .row-body p, .tag, .toc, .hero-meta, .header-right, footer, .card-num, .row-number, .section-title h2 small { font-family: var(--reading-font); }
.prose, .prose table { font-family: var(--reading-font); font-size: 16px; line-height: 1.9; }
.prose pre, .prose pre *, .prose code, .prose code *, kbd { font-family: var(--code-font) !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.main, article, .article-layout, .prose { min-width: 0; }
.prose .katex { font-size: 1.05em; text-indent: 0; }
.prose .katex-display { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; margin: 1.4em 0; padding: .45em .1em; -webkit-overflow-scrolling: touch; }
.prose .katex-display > .katex { display: block; min-width: max-content; text-align: center; }
.prose .math-inline { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; line-height: normal; padding: .16em .05em; }
/* KaTeX's stylesheet owns all internal metrics and accessible MathML hiding. */
@media(max-width:760px) {
  .prose, .prose table, .prose pre { font-size: 16px; line-height: 1.9; }
  .article-layout { display: block; }
  .prose .katex { font-size: 1em; }
  .prose table, .prose pre { max-width: 100%; -webkit-overflow-scrolling: touch; }
  .category-card h3 { line-height: 1.6; }
}
