:root{color-scheme:light;--ink:#222725;--muted:#68726e;--line:#e4e8e5;--accent:#32695c;--paper:#fff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:6px}a:hover{color:var(--accent)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:5px}img{max-width:100%;height:auto}.site-header{max-width:1240px;margin:auto;padding:40px 36px 32px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:17px;text-decoration:none}.site-avatar{height:60px;width:60px;object-fit:cover;border-radius:4px}.brand-text{display:grid;gap:7px}.site-title{font-size:29px;font-weight:800;letter-spacing:-1px;margin:0}.site-tagline{font-size:15px;color:var(--muted);margin:0}.header-links{display:flex;gap:24px;font-size:14px;white-space:nowrap}.header-links a{text-decoration:none}.page-shell{max-width:1168px;margin:0 auto;padding:58px 36px 80px}.page-intro{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:32px}.page-intro h1{font-size:14px;text-transform:uppercase;letter-spacing:2px;font-weight:600;margin:0;color:var(--muted)}.page-intro p{font-size:13px;color:var(--muted)}.blog-controls{display:flex;gap:12px;align-items:center;margin-bottom:46px;flex-wrap:wrap}.blog-controls label{font-size:13px;color:var(--muted)}.blog-controls input,.blog-controls select{background:white;color:var(--ink);border:1px solid #d8dfdb;border-radius:3px;padding:10px 12px;font-size:14px;min-height:42px}.blog-controls input{width:245px}.blog-controls select{min-width:132px}.post-list{display:grid;gap:0}.post-card{display:grid;grid-template-columns:300px 1fr;gap:50px;align-items:center;padding:35px 0 45px;border-bottom:1px solid var(--line)}.post-card:first-child{padding-top:0}.post-card+.post-card{padding-top:45px}.post-image{display:flex;background:#f6f8f5;aspect-ratio:4/3;align-items:center;justify-content:center;border-radius:3px;overflow:hidden;text-decoration:none}.post-image img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;padding:14px}.post-placeholder{font:64px Georgia,serif;color:#9cac9f}.post-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);letter-spacing:.3px}.post-meta .category,.post-category{color:var(--accent)}.post-title{font-size:30px;line-height:1.5;letter-spacing:-.5px;margin:13px 0 10px;font-weight:750}.post-title a{text-decoration-thickness:1.5px;text-decoration-color:#c1c9c3}.post-excerpt{font-size:15px;line-height:1.95;color:#59615d;margin:0 0 20px}.read-more{font-size:12px;letter-spacing:.4px;text-decoration:none;color:var(--accent)}.site-footer{max-width:1168px;margin:0 auto;padding:28px 36px 40px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.site-footer p{margin:0}.site-footer a{text-decoration:none}.article-shell{max-width:850px;margin:0 auto;padding:64px 36px 90px}.article-header{border-bottom:1px solid var(--line);padding-bottom:32px;margin-bottom:36px}.article-header h1{font-size:39px;line-height:1.45;letter-spacing:-1px;margin:20px 0}.article-header .post-cover,.article-header img{max-height:400px;object-fit:contain;width:100%;margin:24px 0 0}.article-body{font-size:17px;line-height:2;overflow-wrap:anywhere}.article-body h2{font-size:25px;line-height:1.5;margin:44px 0 18px}.article-body h3{font-size:20px;line-height:1.5;margin:30px 0 12px}.article-body p{margin:20px 0}.article-body blockquote{margin:26px 0;padding:3px 24px;border-left:3px solid var(--accent);background:#f6f8f5;color:#526058}.article-body pre{background:#f5f7f5;border:1px solid var(--line);padding:20px;overflow-x:auto;font-size:14px;line-height:1.7;white-space:pre}.article-body :not(pre)>code{background:#eef2ee;padding:3px 5px;font-size:.88em}.article-body img{display:block;margin:28px auto;max-height:680px;object-fit:contain}.article-body table{border-collapse:collapse;display:block;overflow:auto}.article-body th,.article-body td{border:1px solid var(--line);padding:8px 14px}.article-body hr{border:0;border-top:1px solid var(--line);margin:36px 0}.katex-display{overflow-x:auto;overflow-y:hidden;padding:10px 2px}.math-error{color:#9d421e;font-family:monospace;white-space:pre-wrap}.article-nav{border-top:1px solid var(--line);margin-top:50px;padding-top:25px;display:flex;justify-content:space-between;gap:20px;font-size:14px}.empty-state,.no-results{padding:50px 20px;text-align:center;color:var(--muted)}[hidden]{display:none!important}.skip-link{position:absolute;top:-100px;left:20px;background:white;padding:10px;z-index:3}.skip-link:focus{top:10px}@media(min-width:1450px){.site-header{padding-top:48px;padding-bottom:40px}.site-title{font-size:32px}}@media(max-width:760px){.site-header{padding:24px;gap:20px;align-items:flex-start}.site-avatar{width:44px;height:44px}.site-title{font-size:23px}.site-tagline{font-size:13px}.header-links{gap:14px;font-size:12px}.page-shell{padding:35px 24px 55px}.post-card{grid-template-columns:190px 1fr;gap:26px}.post-title{font-size:22px}.post-excerpt{font-size:14px}.page-intro{margin-bottom:20px}.blog-controls{margin-bottom:30px}.article-shell{padding:36px 24px 60px}.article-header h1{font-size:30px}.article-body{font-size:16px}.site-footer{padding:24px}}@media(max-width:520px){.site-header{flex-wrap:wrap}.header-links{margin-left:61px}.post-card{grid-template-columns:1fr;gap:18px;padding:28px 0}.post-card+.post-card{padding-top:30px}.post-image{aspect-ratio:16/9}.post-image img{padding:15px}.post-title{font-size:24px;margin-top:9px}.post-excerpt{margin-bottom:14px}.blog-controls input{width:100%;flex:1;min-width:150px}.site-title{font-size:22px}.page-intro p{font-size:12px}.article-header h1{font-size:28px}}

.page-intro{display:none}.blog-controls{justify-content:space-between;gap:20px}.list-heading{display:flex;align-items:center;gap:12px}.list-heading h2{margin:0;font-size:14px;font-weight:500;letter-spacing:.6px}.list-heading span{color:var(--muted);font-size:11px;padding:4px 8px;border-radius:20px;background:#f0f4ee}.filter-controls{display:flex;gap:10px;align-items:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.site-mark{font:42px Georgia,serif;color:var(--accent);width:48px;text-align:center}.cover-symbol{font:90px Georgia,serif;color:#9aaa9d}.no-cover{background:linear-gradient(135deg,#eef3e9,#f8faf5)}.post-meta>span:first-child{color:var(--accent)}.article-header{margin-top:30px}.back-link{font-size:12px;color:var(--muted);text-decoration:none}.article-deck{font-size:17px;line-height:1.9;color:var(--muted)}.article-author{font-size:12px;color:var(--muted);margin:22px 0 0}.article-cover{margin:35px 0}.article-cover img{display:block;max-height:430px;max-width:100%;margin:auto}.article-nav a{display:grid;gap:8px;flex:1;text-decoration:none}.article-nav a:last-child{text-align:right}.article-nav small{font-size:10px;color:var(--muted)}.math-display{max-width:100%;overflow:auto}.article-body .math-display{margin:28px 0}.article-body .katex{font-size:1.08em}.empty-state{line-height:1.8}@media(max-width:760px){.header-links{gap:12px}.blog-controls input{width:180px}.post-card{grid-template-columns:180px 1fr}.post-title{font-size:23px}}@media(max-width:520px){.filter-controls{width:100%}.search-field{flex:1;min-width:0}.blog-controls input{width:100%;min-width:0}.blog-controls select{min-width:100px}.post-card{grid-template-columns:1fr}.site-header{gap:15px}.header-links{margin-left:61px}.site-title{font-size:22px}.article-shell .site-header{padding:20px}.article-nav{font-size:12px}.article-deck{font-size:15px}}

/* Keep reader-facing labels and navigation as readable as the article text. */
:root{--reading-size:17px}
.article-body,.post-meta,.back-link,.read-more,.article-nav,.article-nav small,.header-links,.site-tagline,.site-footer,.post-excerpt,.list-heading h2,.list-heading span,.blog-controls label,.blog-controls input,.blog-controls select{font-size:var(--reading-size)}
.post-meta{flex-wrap:wrap;line-height:1.8}
.header-links,.site-footer{line-height:1.8}
@media(max-width:760px){:root{--reading-size:16px}}
.site-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.footer-identity{justify-self:start;min-width:0;overflow-wrap:anywhere}
.footer-brand{display:inline-flex;align-items:center;justify-self:end;max-width:100%}
.footer-brand img{display:block;width:158px;height:auto}

/* Consecutive article images form two columns without moving surrounding text. */
.article-body img{max-width:calc((100% - 20px)/2);max-height:360px;height:auto}
.article-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0;align-items:center}
.article-image{display:flex;align-items:center;justify-content:center;min-width:0}
.article-image>a{display:flex;align-items:center;justify-content:center;max-width:100%}
.article-body .article-image img{display:block;width:auto;max-width:100%;max-height:360px;height:auto;margin:0;object-fit:contain}
.article-image:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 20px)/2);justify-self:center}
@media(max-width:520px){.article-gallery{grid-template-columns:1fr;gap:16px}.article-image:last-child:nth-child(odd){width:100%}.article-body img,.article-body .article-image img{max-width:100%;max-height:460px}}
.article-body .math-display{margin:12px 0}
.article-body .math-display .katex-display{margin:0;padding:4px 2px}
.post-summary{min-width:0}
.post-excerpt p{margin:0 0 10px}
.post-excerpt>:last-child{margin-bottom:0}
.post-excerpt blockquote{margin:10px 0;padding-left:14px;border-left:2px solid var(--line)}
.post-excerpt .math-display{margin:8px 0}
.post-excerpt .katex-display{margin:0;padding:4px 2px}
.post-excerpt h1,.post-excerpt h2,.post-excerpt h3,.post-excerpt h4,.post-excerpt h5,.post-excerpt h6{font-size:inherit;line-height:inherit;margin:10px 0;font-weight:600}
.post-excerpt ul,.post-excerpt ol{margin:8px 0;padding-left:1.5em}

/* Keep article neighbours compact, with a stable centered route home. */
.article-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;line-height:1.7}
.article-nav a{min-width:0}
.article-nav a.article-nav-previous,.article-nav a.article-nav-next{grid-row:1;width:100%;max-width:220px}
.article-nav a.article-nav-previous{grid-column:1;justify-self:start;text-align:left}
.article-nav a.article-nav-next{grid-column:3;justify-self:end;text-align:right}
.article-nav-title{display:block;overflow-wrap:anywhere}
.article-nav a.article-nav-home{grid-column:2;grid-row:1;justify-self:center;align-self:center;display:block;text-align:center;white-space:nowrap}
@media(max-width:520px){.article-nav{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:24px}.article-nav a.article-nav-next{grid-column:2}.article-nav a.article-nav-home{grid-column:1/-1;grid-row:2}}
