@font-face { font-family: Satoshi; src: url('/fonts/Satoshi-Variable.woff2') format('woff2'); font-style: normal; font-weight: 300 900; font-display: swap; }
@font-face { font-family: Satoshi; src: url('/fonts/Satoshi-VariableItalic.woff2') format('woff2'); font-style: italic; font-weight: 300 900; font-display: swap; }
:root { color-scheme: light dark; --paper: #f7f7f2; --ink: #242d26; --muted: #697064; --faint: #919589; --line: #d9ddd2; --accent: #405d43; --soft: #ecede5; --cover: #354b38; --cover-ink: #e9ecd7; --sans: Satoshi, 'Hiragino Sans GB', '冬青黑体简体中文', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Noto Sans Mono CJK SC', 'Sarasa Mono SC', 'Hiragino Sans GB', 'PingFang SC', 'Microsoft YaHei', monospace; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
::selection { background: #d8e1c9; color: #243326; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button, input { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1.3em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.8vw, 4.6rem); letter-spacing: -.03em; }
h2 { font-size: 2rem; letter-spacing: -.02em; }
h3 { font-size: 1.75rem; letter-spacing: -.015em; }
.site-shell { width: min(1120px, calc(100% - 112px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 108px; border-bottom: 1px solid var(--line); gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 27px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { flex-shrink: 0; color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 13px; }
.site-header nav a { padding: 12px 0; position: relative; color: var(--muted); transition: color .18s ease; }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
.eyebrow { font-family: var(--sans); font-size: 10px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.arrow { display: inline-block; font-family: var(--sans); font-size: 18px; font-weight: 400; transition: transform .2s ease; }
a:hover > .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; gap: 24px; align-items: center; font-size: 12px; line-height: 1.5; font-family: var(--sans); padding: 8px 0; }
.text-link:hover { color: var(--accent); }
.quiet { color: var(--muted); }
.home-intro { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 80px; padding: 72px 0 76px; }
.home-intro .eyebrow { margin: 0 0 25px; }
.home-intro h1 { font-size: clamp(3.5rem, 6.8vw, 5.65rem); line-height: .99; letter-spacing: -.035em; }
.home-intro h1 span { color: var(--accent); }
.intro-note { max-width: 315px; padding-bottom: 5px; }
.intro-note > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.featured { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; gap: 76px; align-items: center; }
.feature-cover { background: var(--cover); color: var(--cover-ink); min-height: 334px; padding: 28px 34px 25px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: background .25s ease; }
.feature-cover::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; border-left: 1px solid #ffffff19; }
.feature-cover::after { display: none; content: ''; width: 190px; height: 190px; border: 1px solid #e9ecd733; border-radius: 50%; position: absolute; top: 78px; right: -98px; }
.feature-cover:hover { background: #3d563e; }
.cover-top, .cover-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.cover-top { border-bottom: 1px solid #e9ecd74d; padding-bottom: 14px; }
.cover-title { font-family: var(--sans); font-size: 80px; letter-spacing: -.035em; line-height: 1; margin-top: 16px; }
.cover-title > span { display: block; font-family: var(--sans); font-size: 20px; letter-spacing: .42em; margin-top: 12px; font-weight: 400; }
.cover-bottom { margin-top: 32px; font-size: 8px; letter-spacing: .09em; }
.feature-copy { max-width: 330px; padding: 12px 0; }
.feature-copy .eyebrow { margin-bottom: 22px; }
.feature-copy h2 { font-size: 45px; letter-spacing: -.025em; margin: 0 0 19px; }
.feature-copy > p:not(.eyebrow):not(.feature-meta) { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.feature-meta { font-size: 10px; color: var(--muted); margin-bottom: 20px; }
.feature-meta > span, .article-meta > span { padding: 0 10px; color: var(--faint); }
.home-favorites, .home-entries { margin-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 27px; }
.section-heading > .eyebrow { margin: 0; font-size: 9px; }
.favorite-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.favorite { display: grid; grid-template-columns: 1fr 20px; align-items: start; gap: 18px; padding: 28px 0 31px; border-top: 1px solid var(--line); }
.folio { font-size: 10px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.favorite h3 { margin-bottom: 11px; transition: color .2s; }
.favorite p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; max-width: 270px; }
.favorite > .arrow { margin-top: 3px; color: var(--muted); }
.favorite:hover h3 { color: var(--accent); }
.entry-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list li > a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 75px 18px; align-items: baseline; gap: 24px; padding: 23px 0; }
.entry-list time { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-title { font-family: var(--sans); font-size: 24px; line-height: 1.3; letter-spacing: -.012em; overflow-wrap: anywhere; }
.entry-list a:hover .entry-title { color: var(--accent); }
.entry-category { font-size: 10px; color: var(--muted); }
.entry-list .arrow { font-size: 16px; color: var(--muted); }
.simple-heading { padding: 76px 0 52px; }
.simple-heading .eyebrow { margin-bottom: 27px; }
.simple-heading > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 25px 0 0; max-width: 430px; }
.simple-heading > .text-link { margin-top: 28px; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 46px; font-size: 12px; }
.archive-filters a { padding: 0 0 16px; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.archive-filters a[aria-current], .archive-filters a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.year-group { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 32px; margin-top: 42px; }
.year-group > h2 { font-size: 23px; padding-top: 24px; }
.year-group .entry-list li > a { grid-template-columns: 103px minmax(0, 1fr) 67px 18px; gap: 20px; }
.lists-page .favorite-grid { margin-top: 8px; }
.lists-page .favorite { padding-top: 35px; padding-bottom: 40px; }
.article-heading { padding: 73px 0 50px; max-width: 900px; }
.article-heading .eyebrow { margin-bottom: 30px; }
.article-heading .eyebrow > span { padding: 0 12px; color: var(--faint); }
.article-heading h1 { max-width: 890px; font-size: clamp(2.7rem, 5.5vw, 4.5rem); overflow-wrap: anywhere; }
.article-meta { font-family: var(--sans); font-size: 11px; color: var(--muted); margin: 26px 0 0; }
.article-layout { display: grid; grid-template-columns: 180px minmax(0, 660px); column-gap: 75px; border-top: 1px solid var(--line); padding-top: 48px; }
.article-toc nav { position: sticky; top: 40px; max-height: calc(100vh - 80px); overflow: auto; padding-right: 16px; scrollbar-width: thin; }
.article-toc .eyebrow { margin: 0 0 20px; font-size: 9px; }
.article-toc ol, .mobile-toc ol { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 11px; }
.article-toc a { font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.6; display: block; }
.article-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose { font-family: var(--sans); font-size: 21px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.prose-cjk { font-family: var(--sans); font-size: 17px; line-height: 2.1; letter-spacing: .015em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { scroll-margin-top: 40px; }
.prose h2 { margin: 2.1em 0 .8em; font-size: 32px; }
.prose h3 { margin: 1.8em 0 .8em; font-size: 25px; }
.prose h4 { margin: 1.5em 0 .7em; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.5em; }
.prose li { padding-left: .2em; margin-bottom: .6em; }
.prose li::marker { color: var(--muted); }
.prose li ul, .prose li ol { margin: .5em 0; }
.prose blockquote { margin: 1.6em 0; border-left: 2px solid var(--accent); padding-left: 25px; color: var(--muted); }
.prose strong { font-weight: 600; }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .78em; background: var(--soft); padding: .16em .35em; }
.prose pre { padding: 20px; overflow-x: auto; background: var(--soft); font-size: 14px; }
/* markdown.css loads after this file; keep code blocks on the CJK-aware mono stack. */
.prose pre code { background: none; padding: 0; font-size: inherit; font-family: var(--mono) !important; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.5em 0 2em; font-family: var(--sans); font-size: 12px; line-height: 1.6; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); min-width: 90px; vertical-align: top; }
.prose th { font-weight: 500; border-top: 1px solid var(--line); }
.prose td:first-child { min-width: 140px; }
.end-mark { margin-top: 60px; padding-top: 30px; color: var(--accent); }
.end-mark .brand-mark { width: 35px; height: 35px; opacity: .7; }
.mobile-toc { display: none; }
.more-entries { margin-top: 90px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; max-width: 930px; }
.about-mark { padding-top: 4px; }
.about-mark .brand-mark { width: 190px; height: 190px; }
.about-prose { font-size: 24px; line-height: 1.55; }
.about-prose p:last-child { margin-top: 35px; font-family: var(--sans); font-size: 12px; }
.about-return { margin-top: 24px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 100px; padding: 32px 0 35px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 22px; }
.footer-brand { font-family: var(--sans); font-size: 23px; letter-spacing: -.015em; }
.footer-brand > span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0; color: var(--muted); margin-top: 5px; }
.footer-links { display: flex; align-items: center; gap: 25px; padding-top: 3px; font-size: 11px; }
.footer-links form { margin: 0; }
.footer-links button { border: 0; background: none; color: var(--muted); padding: 4px 0; font-size: inherit; }
.footer-links button:hover, .footer-links > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.colophon { font-size: 9px; letter-spacing: .03em; color: var(--muted); grid-column: 1 / -1; }
.empty-state { padding: 25px 0; }
.preview-note { font: 11px var(--sans); color: var(--muted); margin-top: 16px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 10; font-size: 14px; }
.skip-link:focus { top: 12px; }
/* The front door shares the same type and spacing as the notebook. */
.login-page .site-shell { min-height: 100svh; display: flex; flex-direction: column; }
.login-page .site-header { border-bottom: 0; }
.private-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.login-main { flex: 1; display: grid; place-items: center; padding: 50px 0 100px; }
.login-card { width: min(100%, 370px); }
.login-card .eyebrow { margin: 0 0 25px; }
.login-card h1 { font-size: 62px; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.login-card h1 > span { color: var(--accent); }
.login-intro { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 295px; margin-bottom: 38px; }
.login-form label { display: block; font-size: 11px; margin-bottom: 10px; }
.login-form input[type=password] { border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; width: 100%; min-height: 51px; padding: 12px 15px; outline-offset: 3px; }
.login-form input[aria-invalid=true] { border-color: #996550; }
.login-form button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 51px; padding: 12px 16px; margin-top: 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-size: 12px; transition: background .18s; }
.login-form button:hover { background: var(--accent); border-color: var(--accent); }
.login-error { font-size: 12px; line-height: 1.6; color: #8b4536; margin-top: 14px; margin-bottom: 0; }
.login-note { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 18px; }
.login-footer { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
@media (min-width: 1500px) { .site-shell { max-width: 1180px; } .home-intro { padding-top: 90px; padding-bottom: 90px; } .feature-cover { min-height: 350px; } }
@media (max-width: 1000px) {
 .site-shell { width: calc(100% - 72px); }
 .home-intro { gap: 45px; grid-template-columns: 1.35fr 1fr; }
 .home-intro h1 { font-size: clamp(3.25rem, 7.5vw, 5rem); }
 .featured { gap: 42px; }
 .feature-cover { padding: 25px 28px; min-height: 310px; }
 .cover-title { font-size: 68px; }
 .favorite-grid { column-gap: 40px; }
 .favorite { gap: 12px; grid-template-columns: 1fr 16px; }
 .favorite h3 { font-size: 25px; }
 .article-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 45px; }
 .year-group { grid-template-columns: 68px minmax(0, 1fr); gap: 24px; }
 .year-group .entry-list li > a { grid-template-columns: 95px minmax(0, 1fr) 18px; gap: 16px; }
 .year-group .entry-category { display: none; }
}
@media (max-width: 700px) {
 .site-shell { width: calc(100% - 44px); }
 .site-header { min-height: 88px; gap: 16px; }
 .wordmark { font-size: 23px; gap: 6px; }
 .wordmark .brand-mark { width: 27px; height: 27px; }
 .site-header nav { gap: 20px; font-size: 11px; }
 .home-intro { display: block; padding: 52px 0 43px; }
 .home-intro .eyebrow { font-size: 9px; margin-bottom: 22px; }
 .home-intro h1 { font-size: clamp(3.6rem, 11vw, 4.9rem); }
 .intro-note { margin-top: 26px; max-width: 330px; padding: 0; }
 .intro-note > p { font-size: 13px; margin-bottom: 10px; }
 .featured { grid-template-columns: 1fr; gap: 29px; padding: 22px 0 32px; }
 .feature-cover { min-height: 300px; padding: 24px 29px; }
 .cover-title { font-size: 78px; }
 .feature-copy { max-width: 420px; padding: 0; }
 .feature-copy .eyebrow { font-size: 9px; margin-bottom: 14px; }
 .feature-copy h2 { font-size: 38px; margin-bottom: 13px; }
 .feature-copy > p:not(.eyebrow):not(.feature-meta) { font-size: 13px; margin-bottom: 18px; }
 .feature-meta { margin-bottom: 8px; }
 .home-favorites, .home-entries { margin-top: 48px; }
 .section-heading { gap: 18px; margin-bottom: 20px; }
 .section-heading h2 { font-size: 27px; }
 .section-heading > .eyebrow { display: none; }
 .section-heading .text-link { white-space: nowrap; font-size: 10px; gap: 12px; }
 .favorite-grid { grid-template-columns: 1fr; }
 .favorite { grid-template-columns: 1fr 18px; padding: 25px 0; gap: 15px; }
 .favorite h3 { font-size: 28px; }
 .favorite p { max-width: 280px; }
 .entry-list li > a, .year-group .entry-list li > a { grid-template-columns: minmax(0, 1fr) 18px; row-gap: 7px; padding: 19px 0; }
 .entry-list time { grid-column: 1; font-size: 9px; }
 .entry-title { grid-column: 1; font-size: 23px; }
 .entry-list .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
 .entry-category { display: none; }
 .simple-heading { padding: 50px 0 36px; }
 .simple-heading h1 { font-size: clamp(2.7rem, 9.5vw, 3.5rem); }
 .simple-heading > p:not(.eyebrow) { font-size: 13px; }
 .archive-filters { gap: 26px; margin-bottom: 25px; font-size: 11px; }
 .year-group { display: block; margin-top: 30px; }
 .year-group > h2 { padding: 0 0 19px; font-size: 22px; }
 .article-heading { padding: 49px 0 30px; }
 .article-heading .eyebrow { font-size: 9px; margin-bottom: 25px; }
 .article-heading h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
 .article-meta { font-size: 10px; margin-top: 23px; }
 .article-layout { display: block; padding-top: 30px; }
 .article-toc, .article-margin { display: none; }
 .mobile-toc { display: block; border-top: 1px solid var(--line); font-size: 12px; }
 .mobile-toc summary { cursor: pointer; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; }
 .mobile-toc summary::-webkit-details-marker { display: none; }
 .mobile-toc[open] summary > span { transform: rotate(45deg); }
 .mobile-toc ol { padding: 0 0 18px; }
 .mobile-toc a { display: block; padding: 6px 0; color: var(--muted); }
 .prose { font-size: 20px; line-height: 1.7; }
 .prose-cjk { font-size: 16px; line-height: 2; }
 .prose h2 { font-size: 28px; margin-top: 1.8em; }
 .prose h3 { font-size: 23px; }
 .prose li { margin-bottom: .75em; }
 .more-entries { margin-top: 60px; }
 .about-layout { display: block; }
 .about-mark { margin: 0 0 30px; }
 .about-mark .brand-mark { width: 100px; height: 100px; }
 .about-prose { font-size: 23px; line-height: 1.6; }
 .site-footer { margin-top: 65px; grid-template-columns: 1fr; padding-top: 28px; gap: 25px; }
 .footer-links { gap: 25px; }
 .login-main { padding: 40px 0 75px; }
 .login-card h1 { font-size: 57px; }
 .login-card { max-width: 340px; }
 .login-page .private-label { font-size: 8px; }
}
@media (max-width: 360px) { .site-shell { width: calc(100% - 36px); } .wordmark { font-size: 21px; } .site-header nav { gap: 15px; font-size: 10px; } .wordmark .brand-mark { width: 24px; height: 24px; } .home-intro h1 { font-size: 3.3rem; } }
@media (prefers-color-scheme: dark) {
 :root { --paper: #1b211c; --ink: #e5e8da; --muted: #a3ad9b; --faint: #808d7b; --line: #394337; --accent: #bccda8; --soft: #283127; --cover: #3d523c; --cover-ink: #edf0dc; }
 .feature-cover:hover { background: #455e42; }
 .login-error { color: #e6aa95; }
 .login-form input[aria-invalid=true] { border-color: #b58877; }
 .login-form button:hover { color: #1b211c; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { :root { --paper: white; --ink: black; --muted: #444; --line: #bbb; --accent: black; } .site-shell { width: 100%; } .site-header nav, .site-footer, .article-toc, .mobile-toc, .more-entries, .skip-link { display: none; } .article-layout { display: block; } .article-heading { padding: 25px 0; } .prose { font-size: 12pt; } .prose h2, .prose h3 { break-after: avoid; } .prose p, .prose li { orphans: 3; widows: 3; } }

/* A small personal journal: content comes before the masthead. */
.home-intro { padding: 56px 0 48px; gap: 80px; align-items: center; }
.home-intro h1 { font-size: clamp(2.7rem, 4.3vw, 3.6rem); letter-spacing: -.03em; line-height: 1.1; }
.intro-byline { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.intro-byline span { margin-left: 16px; font-size: 11px; }
.intro-note { max-width: 295px; padding: 0; }
.intro-note > p { margin: 0; font-size: 13px; }
.home-favorites, .home-entries { margin-top: 60px; }
.site-footer { margin-top: 80px; }
@media (max-width: 700px) { .home-intro { padding: 38px 0 34px; } .home-intro h1 { font-size: 43px; } .intro-note { margin-top: 22px; max-width: 320px; } .home-favorites, .home-entries { margin-top: 42px; } .site-footer { margin-top: 60px; } }
