/* 页边 / Notebook — material, handwriting, layout, components, motion, adaptation. */
:root {
  --paper:#fff; --ink:#292d29; --muted:#646c62; --olive:#3f603f;
  --olive-pale:#edf0e3; --line:#d7dcd3; --code:#f5f7f1; --rust:#9b5335; --blue:#345f87;
  --texture:url('./images/paper-v3.webp'); --texture-size:900px; --grain-opacity:.32;
  --surface-wash:#ffffff88; --mark-filter:none; --mark-blend:multiply;
  --display:'Xiaolai SC','LXGW WenKai',cursive;
  --hand:'Xiaolai SC','LXGW WenKai','Kaiti SC','KaiTi',cursive;
  --serif:var(--hand); --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
  --reading-size:21px; --reading-leading:1.9; --ease:cubic-bezier(.22,1,.36,1);
  color-scheme:light;
}
html[data-theme=dark] {
  --paper:#202a25; --ink:#e9ede7; --muted:#b3beaf; --olive:#bed5ad;
  --olive-pale:#354332; --line:#526351; --code:#24352a; --rust:#f1bd93; --blue:#b2d5eb;
  --texture:url('./images/blackboard-v2.webp'); --texture-size:1280px; --grain-opacity:.64;
  --surface-wash:#202a2526; --mark-filter:invert(.9); --mark-blend:screen;
  color-scheme:dark;
}
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:32px; scrollbar-gutter:stable }
body { margin:0; background:var(--paper); color:var(--ink); font:17px/1.65 var(--hand); -webkit-font-smoothing:antialiased; overflow-wrap:break-word; isolation:isolate }
body:has(dialog[open]) { overflow:hidden }
button,input,select { font:inherit }
a { color:inherit; text-decoration:none }
button { color:inherit; background:none; border:0; cursor:pointer }
button:disabled { cursor:wait }
button,a,input,summary { -webkit-tap-highlight-color:transparent }
:where(a,button,summary,input,select,pre,[tabindex]):focus-visible { outline:2px solid var(--olive); outline-offset:5px; border-radius:3px }
img { max-width:100%; height:auto }
[hidden] { display:none!important }
::selection { background:#d5d9af; color:#282924 }
.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
.skip-link { position:fixed; top:12px; left:12px; z-index:200; padding:12px 18px; background:var(--paper); transform:translateY(-160%) }
.skip-link:focus { transform:none }
.paper-grain { position:fixed; inset:0; z-index:-1; pointer-events:none; background-image:var(--texture); background-size:var(--texture-size); opacity:var(--grain-opacity) }
.icon { display:inline-block; width:25px; height:25px; object-fit:contain; vertical-align:middle; flex:none }
html[data-theme=dark] .icon { filter:invert(.9) }
/* Every floating surface is made from the same paper or slate. */
.mobile-nav,.notebook-dialog,.toast,.back-to-top { background-color:var(--paper); background-image:linear-gradient(var(--surface-wash),var(--surface-wash)),var(--texture); background-size:auto,var(--texture-size) }
.site-header { position:relative; width:calc(100% - 88px); max-width:1200px; min-height:100px; margin:auto; padding:15px 0 20px; display:flex; align-items:center; gap:26px; border-bottom:1px solid var(--ink); z-index:30 }
.site-header:after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:1px; background:var(--ink); opacity:.25; transform:rotate(-.1deg); pointer-events:none }
.signature { display:flex; align-items:center; gap:13px; white-space:nowrap; line-height:1.1 }
.signature>span { font:500 48px/1.1 'Caveat',cursive; letter-spacing:-1.5px }
.signature>.icon { width:37px; height:37px; filter:invert(40%) sepia(18%) saturate(835%) hue-rotate(27deg) brightness(87%) }
html[data-theme=dark] .signature>.icon { filter:invert(.8) sepia(.25) }
.desktop-nav { margin-left:auto; display:flex; gap:24px; align-items:center }
.nav-link { position:relative; isolation:isolate; display:flex; align-items:center; gap:8px; font-size:18px; min-height:44px; padding:8px 5px }
.nav-link:before { content:''; position:absolute; inset:-2px -12px; z-index:-1; background:url('./images/circle.webp') center/100% 100% no-repeat; filter:var(--mark-filter); mix-blend-mode:var(--mark-blend); opacity:0; --ink-turn:0deg; mask-image:conic-gradient(from -90deg,#000 var(--ink-turn),transparent 0deg); transition:--ink-turn .42s var(--ease),opacity .15s; pointer-events:none }
.nav-link.is-current:before,.nav-link:hover:before,.nav-link:focus-visible:before { --ink-turn:360deg; opacity:.8 }
.nav-link.is-current:before { animation:circle-ink .5s var(--ease) both }

.nav-link .icon { width:24px; height:24px; transition:transform .22s var(--ease) }
.nav-link:hover .icon { transform:rotate(-5deg) }
.header-actions { display:flex; align-items:center; gap:5px; margin-left:7px }
.icon-button { width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; padding:9px; border-radius:5px; flex:none; transition:background-color .18s,transform .25s var(--ease) }
.icon-button:hover { background-color:var(--olive-pale); transform:translateY(-1px) }
.icon-button:active { transform:scale(.95) }
.icon-button .icon { width:26px; height:26px }
.theme-toggle .icon { width:23px; height:23px }
.sun-icon { display:none }
html[data-theme=dark] .sun-icon { display:contents }
html[data-theme=dark] .moon-icon { display:none }
.mobile-menu-toggle,.mobile-nav { display:none }
/* Main reading rhythm is straight and aligned; only the marks are imperfect. */
.reading-layout,.index-layout { max-width:1112px; width:calc(100% - 112px); margin:0 auto; display:grid; grid-template-columns:minmax(0,812px) 220px; column-gap:80px; padding-top:60px }
.article-sheet,.post-list { min-width:0 }
.article-header { margin-bottom:42px }
.article-header h1,.index-header h1,.empty-page h1 { font:400 55px/1.4 var(--display); letter-spacing:.4px; margin:0 0 19px; position:relative; width:fit-content; max-width:100%; text-wrap:balance }
.article-header h1.long-title { font-size:43px; line-height:1.55; letter-spacing:0 }
.article-header h1:after,.index-header h1:after { content:''; display:block; position:absolute; left:0; bottom:-18px; width:220px; height:24px; background:url('./images/underline-v3.webp') center/100% auto no-repeat; filter:var(--mark-filter); mix-blend-mode:var(--mark-blend); pointer-events:none; animation:stroke-arrive .6s .1s var(--ease) both }
.article-subtitle { font-size:26px; line-height:1.65; margin:21px 0 19px; color:var(--muted) }
.article-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 13px; font-size:14px; line-height:1.8; color:var(--muted); margin-top:29px }
.article-meta a:hover { color:var(--olive); text-decoration:underline; text-underline-offset:5px }
.prose { font-size:var(--reading-size); line-height:var(--reading-leading); letter-spacing:.08px; line-break:strict }
.prose p { margin:0 0 1.15em }
.prose h2 { font:400 34px/1.6 var(--display); margin:1.4em 0 .45em; padding-top:24px; border-top:1px solid var(--line); position:relative; scroll-margin-top:28px; text-wrap:balance }
.prose h3 { font:400 26px/1.65 var(--display); margin:1.3em 0 .5em; position:relative; scroll-margin-top:28px }
.prose h4,.prose h5,.prose h6 { font-size:1.05em; line-height:1.6; margin:1.3em 0 .5em; position:relative }
.prose strong { font-family:var(--display); font-weight:400 }
.prose em { font-style:normal; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:5px }
.heading-anchor { display:inline-flex; vertical-align:middle; margin-left:8px; opacity:0; transition:opacity .2s }
.heading-anchor .icon { width:20px; height:20px }
.prose :is(h2,h3,h4,h5,h6):hover .heading-anchor,.heading-anchor:focus-visible { opacity:.7 }
.prose a:not(.heading-anchor) { color:var(--olive); text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--olive) 48%,transparent); text-decoration-thickness:1px; text-underline-offset:5px; transition:text-decoration-color .2s }
.prose a:not(.heading-anchor):hover { text-decoration-color:var(--olive); text-decoration-thickness:2px }
.prose ul,.prose ol { padding-left:1.55em; margin:.7em 0 1.2em }
.prose li { padding-left:.2em; margin:.28em 0 }
.prose li::marker { color:var(--olive) }
.prose li p { margin:.2em 0 }
.prose li input[type=checkbox] { accent-color:var(--olive); margin-right:.45em; width:16px; height:16px }
.prose blockquote { margin:1.35em 0; padding:4px 0 4px 24px; border-left:2px solid var(--olive); color:var(--muted) }
.prose blockquote p:last-child { margin:0 }
.prose hr { border:0; border-top:1px solid var(--line); margin:38px 0 }
.prose img:not(.icon) { height:auto; display:block; margin:28px auto; max-width:100% }
.prose figure:not(.code-note) { margin:28px 0 }
.prose figcaption { font-size:14px; color:var(--muted); line-height:1.7; text-align:center }
.prose code:not(pre code) { font: .8em/1.7 var(--mono); background:var(--olive-pale); padding:3px 6px; border-radius:3px; color:var(--rust); overflow-wrap:anywhere; box-decoration-break:clone }
.prose mark:not(.pencil-mark),.search-results mark { background:var(--olive-pale); color:var(--ink); padding:0 .07em; border-radius:2px; box-decoration-break:clone }
.pencil-mark { color:inherit; background:transparent; position:relative; white-space:nowrap; isolation:isolate }
.pencil-mark:after { content:''; position:absolute; inset:-11px -10px; z-index:-1; background:url('./images/circle.webp') center/100% 100% no-repeat; filter:var(--mark-filter); mix-blend-mode:var(--mark-blend); opacity:.88; pointer-events:none }
.pencil-mark p { display:inline; margin:0 }
.prose table { border-collapse:collapse; width:100%; margin:24px 0; font-size:.85em }
.prose th,.prose td { text-align:left; border-bottom:1px solid var(--line); padding:12px 16px; vertical-align:top }
.prose th { font-weight:700; background:color-mix(in srgb,var(--olive-pale) 70%,transparent) }
.table-scroll { overflow-x:auto; scrollbar-width:thin; margin:24px 0; border-top:1px solid var(--line) }
.table-scroll table { margin:0; min-width:480px }
.table-scroll th,.table-scroll td { min-width:110px }
.code-note { margin:20px -9px 30px; border:15px solid transparent; padding:3px 7px 12px; position:relative; isolation:isolate; background:color-mix(in srgb,var(--code) 45%,transparent); min-width:0 }
.code-note:before { content:''; position:absolute; inset:-15px; z-index:-1; border:15px solid transparent; border-image:url('./images/frame-v130.webp') 110 / 18px / 0 stretch; filter:var(--mark-filter); opacity:.85; pointer-events:none }
.code-note figcaption { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:45px; padding:0 2px 6px; border-bottom:1px solid var(--line); text-align:left; font:13px/1.7 var(--mono); color:var(--ink) }
.code-note figcaption>span { display:flex; align-items:center; gap:9px; min-width:0 }
.code-note figcaption>span>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.code-note figcaption .icon { width:21px; height:21px }
.copy-code { margin-right:-7px }
.code-note pre { margin:0; padding:16px 4px 3px; overflow-x:auto; tab-size:4; scrollbar-width:thin; scrollbar-color:var(--line) transparent; font:14px/1.85 var(--mono); color:var(--ink); letter-spacing:0 }
.code-note pre code { font:inherit; white-space:pre; display:block }
.code-note pre .line { display:block; min-width:max-content }
.code-note pre .cl { padding:0 }
.code-note .hl { background:var(--olive-pale) }
.code-note :is(.k,.kd,.kn,.kt,.m,.mi,.mf) { color:var(--rust) }
.code-note :is(.nf,.fm) { color:var(--blue) }
.code-note :is(.s,.s1,.s2,.si) { color:var(--olive) }
.code-note :is(.c,.c1,.cm) { color:var(--muted); font-style:italic }
.prose .code-scroll-hint { display:none; margin:8px 4px 0; font-size:12px; line-height:1.6; color:var(--muted) }
.code-note.has-overflow .code-scroll-hint { display:block }
.hand-note { border-left:2px solid var(--olive); background:color-mix(in srgb,var(--olive-pale) 45%,transparent); margin:28px 0; padding:18px 24px; font-size:.94em }
.hand-note[data-kind=warning] { border-color:var(--rust) }
.note-title { color:var(--olive); display:flex; gap:10px; align-items:center; font-size:22px; font-weight:700; margin-bottom:8px!important }
.hand-note[data-kind=warning] .note-title { color:var(--rust) }
.hand-note p:last-child { margin:0 }
.notebook-details { margin:25px 0; border-block:1px solid var(--line) }
.notebook-details>summary { cursor:pointer; padding:13px 0; color:var(--olive); min-height:48px; list-style:none; display:flex; align-items:center; gap:10px }
.notebook-details>summary::-webkit-details-marker { display:none }
.notebook-details>summary .icon { width:20px; height:20px; transition:transform .2s }
.notebook-details[open]>summary .icon { transform:rotate(180deg) }
.notebook-details>.details-content { padding:4px 0 8px }
.notebook-details .details-content>:last-child { margin-bottom:12px }
.footnotes { color:var(--muted); font-size:.8em; margin-top:45px }
.footnotes hr { margin-bottom:20px }
.footnote-ref { padding:5px 2px }
.footnote-backref { display:inline-flex; min-width:30px; min-height:36px; align-items:center; justify-content:center }
.math-block { overflow-x:auto; overflow-y:hidden; padding:12px 0; margin:25px 0; scrollbar-width:thin }
.math-block .katex-display { margin:0; padding:5px 0; min-width:max-content }
.notebook-math .katex { font-size:1.05em }
.article-ending { display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); font-size:14px; margin:48px 0 28px }
.article-ending .icon { width:17px; height:17px }
.margin-notes { position:sticky; top:35px; align-self:start; margin-top:5px; border-left:1px solid var(--line); padding-left:25px; min-width:0; max-height:calc(100vh - 70px); overflow-y:auto; scrollbar-width:thin }
.margin-heading { display:flex; align-items:center; gap:7px; margin:0 0 26px; font-size:22px; font-weight:700 }
.margin-heading .icon { width:28px; height:28px }
.margin-heading>span { padding-bottom:4px; border-bottom:1px solid var(--ink) }
.margin-notes nav>ol,.margin-notes nav>ul { padding:0; margin:0; list-style:none; counter-reset:chapter }
.margin-notes nav>ol>li,.margin-notes nav>ul>li { counter-increment:chapter; position:relative; padding-left:34px; margin:0 0 22px; font-size:17px; line-height:1.8 }
.margin-notes nav>ol>li:before,.margin-notes nav>ul>li:before { content:counter(chapter); position:absolute; left:-2px; top:0; width:28px; height:29px; text-align:center; font:500 23px/29px 'Caveat',cursive }
.margin-notes nav>ol>li:after,.margin-notes nav>ul>li:after { content:''; position:absolute; left:-2px; top:0; width:28px; height:29px; background:url('./images/circle.webp') center/100% 100% no-repeat; filter:var(--mark-filter); mix-blend-mode:var(--mark-blend); pointer-events:none; opacity:.8 }
.margin-notes nav a { box-decoration-break:clone }
.margin-notes nav a:hover { color:var(--olive) }
.margin-notes nav a.is-active { color:var(--olive); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px }
.margin-notes nav li :is(ol,ul) { list-style:none; padding:8px 0 0; font-size:14px; color:var(--muted) }
.margin-notes nav li li { margin:7px 0 }
.margin-sketch { margin:28px 0 0 }
.margin-sketch img { display:block; width:100%; max-height:200px; object-fit:contain }
.margin-sketch figcaption { font-size:15px; text-align:center; margin-top:10px; color:var(--muted) }
.mobile-toc { display:none }
.article-tags { display:flex; gap:16px; flex-wrap:wrap; font-size:14px; color:var(--olive); margin:30px 0 }
.article-tags a { min-height:35px; display:inline-flex; align-items:center }
.article-tags a:hover { text-decoration:underline; text-underline-offset:5px }
.post-navigation { border-top:1px solid var(--line); padding-top:26px; display:flex; justify-content:space-between; gap:30px; margin-top:35px }
.post-navigation a { display:flex; align-items:center; gap:14px; font-size:16px; max-width:48% }
.post-navigation a:last-child { margin-left:auto; text-align:right }
.post-navigation small { display:block; font-size:13px; color:var(--muted); margin-bottom:6px }
.post-navigation .icon { width:21px; height:21px }
.without-toc { grid-template-columns:minmax(0,812px); justify-content:center }
.index-layout { padding-top:65px }
.index-header { margin-bottom:44px }
.index-header h1 { margin:13px 0 30px; font-size:56px }
.index-header h1.latin-title { font:500 72px/1.15 'Caveat',cursive; letter-spacing:-1px }
.eyebrow { font-size:14px; color:var(--olive); letter-spacing:1px }
.index-header>p:not(.eyebrow) { font-size:18px; color:var(--muted); line-height:1.9; max-width:580px }
.index-count { font-size:14px; color:var(--muted); display:inline-block; margin-top:7px }
.post-list { grid-column:1 }
.post-row { display:flex; gap:28px; align-items:flex-start; padding:28px 0 30px; border-top:1px solid var(--line); position:relative }
.post-row-meta { min-width:84px; padding-top:8px; color:var(--muted); font-size:13px; line-height:1.75 }
.post-row-meta>span { display:block; font-size:12px; margin-top:7px }
.post-row-body { flex:1; min-width:0 }
.post-row h2 { font:400 29px/1.6 var(--display); margin:0 0 8px; text-wrap:balance }
.post-row h2 a { text-decoration:underline; text-decoration-color:transparent; text-underline-offset:7px; text-decoration-thickness:1px; transition:text-decoration-color .25s }
.post-row h2 a:hover,.post-row h2 a:focus-visible { text-decoration-color:var(--olive) }
.post-row-body>p { font-size:17px; line-height:1.9; color:var(--muted); margin:0 0 10px }
.row-tags { display:flex; flex-wrap:wrap; gap:7px 16px; font-size:13px; color:var(--olive) }
.row-tags a:hover { text-decoration:underline }
.post-row-arrow { padding:9px 3px; transition:transform .25s var(--ease) }
.post-row-arrow .icon { width:25px; height:25px }
.index-note { grid-column:2; grid-row:2; padding:26px 0 0 25px; border-left:1px solid var(--line); align-self:start }
.index-note>.margin-heading { font-size:20px; margin-bottom:17px }
.index-topics { list-style:none; margin:0 0 35px; padding:0 }
.index-topics a { display:flex; align-items:center; justify-content:space-between; font-size:16px; padding:12px 0; border-bottom:1px solid var(--line) }
.index-topics a:hover { color:var(--olive) }
.index-topics small { font-size:13px; color:var(--muted) }
.index-note>.personal-note { font-size:22px; line-height:1.8; color:var(--muted); margin:30px 0 20px }
.index-note>a { font-size:14px; color:var(--muted); display:flex; align-items:center; gap:10px }
.index-note>a .icon { width:19px; height:19px }
.list-page { max-width:940px; width:calc(100% - 112px); margin:60px auto 0 }
.list-page .index-header { margin-bottom:44px }
.archive-year { display:grid; grid-template-columns:88px minmax(0,1fr); gap:30px; margin-bottom:40px }
.archive-year>h2 { font:500 40px/1.4 'Caveat',cursive; color:var(--olive); margin:16px 0 0 }
.archive-year>.post-list { grid-column:2 }
.taxonomy-list { list-style:none; padding:0; margin:0 }
.taxonomy-list>li>a { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding:24px 0 }
.topic-name { display:flex; align-items:center; gap:14px; font-size:28px; font-weight:700 }
.taxonomy-list>li>a>span:last-child { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--muted); flex:none }
.pagination { display:flex; align-items:center; justify-content:center; gap:30px; font-size:14px; margin:38px 0 }
.pagination a { display:flex; align-items:center; gap:9px; min-height:44px }
.empty-page { max-width:812px; width:calc(100% - 112px); margin:100px auto 160px }
.empty-page h1 { font-size:48px; margin:20px 0 }
.empty-page>p { color:var(--muted); font-size:18px; line-height:1.9 }
.text-link { display:inline-flex; align-items:center; gap:10px; color:var(--olive); font-size:16px; min-height:44px; margin-top:18px; padding:0 }
.empty-actions { display:flex; gap:28px; flex-wrap:wrap }
.site-footer { max-width:1112px; width:calc(100% - 112px); margin:78px auto 0; padding:22px 0 30px; border-top:1px solid var(--line); display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; font-size:13px; color:var(--muted) }
.site-footer>.footer-motto { margin-left:auto }
.site-footer>a { min-width:40px; min-height:44px; display:inline-flex; align-items:center; justify-content:center }
.site-footer .icon { width:19px; height:19px }
.back-to-top { position:fixed; bottom:22px; right:22px; border:1px solid var(--line); z-index:20 }
.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,10px); border:1px solid var(--olive); color:var(--ink); padding:11px 20px; border-radius:4px; font-size:15px; z-index:100; opacity:0; pointer-events:none; transition:transform .2s var(--ease),opacity .2s; max-width:calc(100% - 36px); text-align:center }
.toast.is-visible { opacity:1; transform:translate(-50%,0) }
.notebook-dialog { padding:27px 30px 20px; width:min(660px,calc(100% - 36px)); max-height:min(82dvh,780px); overflow-y:auto; overscroll-behavior:contain; margin:8vh auto auto; color:var(--ink); border:1px solid var(--line); border-radius:4px; box-shadow:0 14px 65px #14231820 }
.notebook-dialog::backdrop { background:#16261e66; backdrop-filter:blur(3px) }
.notebook-dialog[open] { animation:dialog-arrive .22s var(--ease) }
.dialog-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px }
.dialog-top h2 { font:400 29px/1.5 var(--display); margin:0 }
.search-field { display:flex; align-items:center; gap:12px; border-bottom:0; padding:3px 0 9px; position:relative }
.search-field:before { content:''; position:absolute; height:8px; bottom:-4px; left:0; right:0; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.45; pointer-events:none }
.search-field:after { content:''; position:absolute; height:18px; bottom:-9px; left:0; right:0; background:url('./images/underline-v3.webp') center/100% auto no-repeat; filter:var(--mark-filter); mix-blend-mode:var(--mark-blend); clip-path:inset(0 100% 0 0); transition:clip-path .35s var(--ease); pointer-events:none }
.search-field:focus-within:after { clip-path:inset(0) }
.search-field>.icon { width:23px; height:23px }
.search-field input { width:100%; background:none; border:0; color:var(--ink); font-size:18px; line-height:1.8; min-width:0; caret-color:var(--olive); padding:5px 0 }
.search-field input:focus-visible { outline:0 }
.search-field input::-webkit-search-cancel-button { display:none }
.search-field input::placeholder { color:var(--muted) }
.search-clear { font-size:14px; padding:8px 2px; min-width:44px; min-height:44px; color:var(--olive) }
.search-status { font-size:15px; color:var(--muted); margin:20px 0; line-height:1.8 }
.search-results { padding:0; list-style:none; margin:0 }
.search-results li { border-top:1px solid var(--line); animation:note-result .2s var(--ease) both }
.search-results a { display:block; padding:18px 5px; border-radius:3px }
.search-results a:hover,.search-results a:focus-visible { background-color:color-mix(in srgb,var(--olive-pale) 65%,transparent) }
.search-results h3 { font:400 23px/1.6 var(--display); margin:0 0 8px }
.search-results p { color:var(--muted); font-size:16px; line-height:1.85; margin:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden }
.search-results small { display:block; color:var(--olive); font-size:13px; margin-top:9px }
.search-bottom { margin-top:22px; border-top:1px solid var(--line); padding-top:12px; display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:13px }
.search-bottom kbd { font:inherit }
.search-more,.search-retry { color:var(--olive); min-height:44px; padding:10px 5px; font-size:16px; margin-top:10px; text-decoration:underline; text-underline-offset:5px }
.copy-code.is-copied .icon { animation:check-ink .25s var(--ease) both; filter:invert(40%) sepia(18%) saturate(835%) hue-rotate(27deg) brightness(87%) }
html[data-theme=dark] .copy-code.is-copied .icon { filter:invert(.85) }
/* Native form semantics, with the same licensed hand-drawn icon family. */
.prose input[type=checkbox] { appearance:none; width:21px; height:21px; flex:none; margin:0; border:0; background:transparent center/contain no-repeat; vertical-align:middle; cursor:pointer }
.prose input[type=checkbox] { background-image:url('./icons/square.svg') }
.prose input[type=checkbox]:checked { background-image:url('./icons/square-check.svg') }
.prose input[type=checkbox] { margin-right:.4em; cursor:default }
html[data-theme=dark] .prose input[type=checkbox] { filter:invert(.9) }
@media(forced-colors:active) { .prose input[type=checkbox] { appearance:auto!important; background:none!important; filter:none!important } }
/* Real pen pressure and chalk pigment. Text stays native, selectable and searchable. */
.nav-link,.mobile-nav a { font-family:var(--hand); font-weight:400 }
.margin-heading,.note-title,.topic-name { font-family:var(--display); font-weight:400 }
.written-text { -webkit-box-decoration-break:clone; box-decoration-break:clone }
html[data-theme=dark] .prose input[type=checkbox] {
  -webkit-mask-image:url('./images/chalk-pigment-v1.webp');
  mask-image:url('./images/chalk-pigment-v1.webp');
  mask-mode:luminance; mask-size:440px 440px; mask-repeat:repeat;
}
html[data-theme=dark] .written-text { -webkit-text-stroke:.12px currentColor }
html[data-theme=dark] :is(h1,h2,h3,.margin-heading,.nav-link) .written-text { -webkit-text-stroke:.22px currentColor; mask-size:560px 560px }
.nav-link:before,.margin-notes nav>ol>li:after,.margin-notes nav>ul>li:after,.pencil-mark:after {
  background-image:url('./images/circle-v130.webp'); filter:none; mix-blend-mode:multiply;
}
html[data-theme=dark] .nav-link:before,html[data-theme=dark] .margin-notes nav>ol>li:after,html[data-theme=dark] .margin-notes nav>ul>li:after,html[data-theme=dark] .pencil-mark:after { filter:invert(.9); mix-blend-mode:normal }
.site-header { border-bottom:0 }
.site-header:after { bottom:-4px; height:9px; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.85; transform:none }
.post-row,.prose h2,.post-navigation,.site-footer,.taxonomy-list>li>a,.search-results li,.search-bottom { border-top:0; position:relative }
.post-row:before,.prose h2:before,.post-navigation:before,.site-footer:before,.taxonomy-list>li>a:before,.search-results li:before,.search-bottom:before {
  content:''; position:absolute; left:0; right:0; top:-4px; height:9px;
  background:url('./images/rule-v130.webp') center/100% 100% no-repeat;
  filter:var(--mark-filter); opacity:.38; pointer-events:none;
}
.post-row:nth-child(even):before { transform:scaleX(-1); opacity:.3 }
.prose hr { height:9px; border:0; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.4 }
.index-topics a { border:0; position:relative }
.index-topics a:after,.code-note figcaption:after,.margin-heading>span:after { content:''; position:absolute; left:0; right:0; bottom:-4px; height:8px; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.4; pointer-events:none }
.code-note figcaption,.margin-heading>span { border-bottom:0; position:relative }
.margin-notes,.index-note { border-left:0; position:relative }
.margin-notes { position:sticky }
/* Side edges use the existing scanned frame so long vertical strokes keep their pressure. */
.margin-notes,.index-note { border-left:6px solid transparent; border-image:url('./images/frame-v130.webp') 110 / 0 0 0 6px / 0 stretch }
.prose blockquote,.hand-note { border-left:6px solid transparent; border-image:url('./images/frame-v130.webp') 110 / 0 0 0 6px / 0 stretch }
html[data-theme=dark] .margin-notes,html[data-theme=dark] .index-note,html[data-theme=dark] .prose blockquote,html[data-theme=dark] .hand-note { border-image:none; border-left:0 }
/* Dark strokes need inversion, without filtering their text or background. */
html[data-theme=dark] .margin-notes:before,html[data-theme=dark] .index-note:before,html[data-theme=dark] .prose blockquote:before,html[data-theme=dark] .hand-note:before { content:''; display:block; position:absolute; inset:0 auto 0 0; width:6px; height:auto; border:6px solid transparent; border-image:url('./images/frame-v130.webp') 110 / 0 0 0 6px / 0 stretch; background:none; opacity:.65; filter:invert(.9); pointer-events:none }
.prose blockquote,.hand-note { position:relative }
.notebook-dialog,.mobile-nav { border:0; border-radius:2px; isolation:isolate }
.notebook-dialog:before,.mobile-nav:before { content:''; position:absolute; inset:0; z-index:-1; border:12px solid transparent; border-image:url('./images/frame-v130.webp') 110 / 12px / 0 stretch; filter:var(--mark-filter); opacity:.55; pointer-events:none }
.notebook-details,.mobile-toc { border:0; position:relative }
.notebook-details:before,.notebook-details:after,.mobile-toc:before,.mobile-toc:after { content:''; position:absolute; left:0; right:0; height:8px; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.4; pointer-events:none }
.notebook-details:before,.mobile-toc:before { top:-4px }.notebook-details:after,.mobile-toc:after { bottom:-4px }
.prose th,.prose td { border-bottom:0; position:relative }
.prose th:after,.prose td:after { content:''; position:absolute; inset:auto 0 -4px; height:8px; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:.3; pointer-events:none }

@media(forced-colors:active) { .written-text,.icon { mask-image:none!important; -webkit-mask-image:none!important; -webkit-text-stroke:0!important } }

/* 1.3: a beautifully written notebook, visible before zooming in. */
.site-header { min-height:122px; padding:17px 0 24px; gap:24px }
.signature>span { font-size:54px }
.signature>.icon { width:42px; height:42px; transform:rotate(-9deg) }
.desktop-nav { gap:16px }
.nav-link { min-width:63px; flex-direction:column; gap:4px; padding:5px 9px; font-size:18px; line-height:1.3 }
.nav-link .icon { width:40px; height:40px }
.nav-link:before { inset:-8px -9px; opacity:0 }
.nav-link>span { padding:0 4px; background:url('./images/highlighter-v130.webp') 50% 90%/100% 0% no-repeat; transition:background-size .25s var(--ease) }
.nav-link.is-current>span,.nav-link:hover>span { background-size:100% 55% }
html[data-theme=dark] .nav-link>span { background-image:none }
.icon-button .icon { width:30px; height:30px }
.theme-toggle .icon { width:29px; height:29px }
.site-header:after { height:12px; opacity:.85; background-size:100% 100% }
.reading-layout,.index-layout { column-gap:72px; padding-top:45px }
.article-header { display:flex; flex-direction:column; margin-bottom:37px }
.article-meta { order:-1; margin:0 0 20px; font-size:15px; gap:10px 14px }
.article-meta>a { color:var(--olive); font-weight:700; padding:2px 5px; background:url('./images/highlighter-v130.webp') 50% 85%/100% 45% no-repeat }
html[data-theme=dark] .article-meta>a { background:none }
.article-header h1,.index-header h1,.empty-page h1 { font-family:var(--hand); font-weight:400; font-size:62px; line-height:1.45; letter-spacing:0; text-wrap:balance; margin-bottom:8px }
.article-header h1.long-title { font-size:52px; line-height:1.55; letter-spacing:0 }
.article-header h1:after,.index-header h1:after { display:none }
.title-ink { --marker-length:100%; animation:marker-lay .65s .08s var(--ease) both; padding:0 .04em .05em; background:url('./images/highlighter-v130.webp') 50% 91%/var(--marker-length) .38em no-repeat; -webkit-box-decoration-break:clone; box-decoration-break:clone }
html[data-theme=dark] .title-ink { background:none; color:var(--olive) }
.article-header h1 .written-text,.index-header h1 .written-text { -webkit-text-stroke:.55px currentColor }
html[data-theme=dark] :is(h1,h2,h3,.margin-heading,.nav-link) .written-text { -webkit-text-stroke:.45px currentColor }
.index-header { margin-bottom:46px; max-width:850px }
.index-header h1 { font-size:68px; margin:15px 0 24px }
.index-header>.eyebrow { font-size:18px; letter-spacing:1px; color:var(--muted) }
.index-header>p:not(.eyebrow) { font-size:21px; color:var(--ink); max-width:620px }
.index-count { font-size:17px; color:var(--olive); margin-top:14px }
.post-row h2 { font-family:var(--hand); font-size:31px; font-weight:700; line-height:1.65 }
.post-row { padding:29px 0 32px; gap:24px }
.post-row-meta { font-size:15px; color:var(--olive) }
.post-row-meta>span { font-size:14px; color:var(--muted) }
.post-row-arrow .icon { width:31px; height:31px }
.post-row h2 a { background:url('./images/highlighter-v130.webp') 0 91%/0 .4em no-repeat; text-decoration:none; transition:background-size .3s var(--ease); box-decoration-break:clone }
.post-row h2 a:hover,.post-row h2 a:focus-visible { background-size:100% .4em }
html[data-theme=dark] .post-row h2 a { background:none }
html[data-theme=dark] .post-row h2 a:hover { color:var(--olive) }
.prose h2 { border:0; padding-top:0; font-family:var(--hand); font-weight:700; font-size:34px; margin-top:1.6em; line-height:1.6 }
.prose h2:before { display:none }
.heading-ink { padding:0 .12em .08em 0; background:url('./images/highlighter-v130.webp') 50% 91%/100% .32em no-repeat; box-decoration-break:clone; -webkit-box-decoration-break:clone }
html[data-theme=dark] .heading-ink { background:none; color:var(--olive) }
.prose h3 { font-family:var(--hand); font-weight:700; font-size:27px; color:var(--blue) }
.prose h3 .heading-ink { background:none }
.prose strong { font-family:var(--hand); font-weight:700; color:var(--olive) }
.margin-notes,.index-note { border:0!important; border-image:none!important; padding-left:0 }
.margin-notes:before,.index-note:before { display:none!important }
.margin-heading { font:700 27px/1.6 var(--hand); color:var(--blue); gap:9px; margin-bottom:30px }
.margin-heading>.icon { width:43px; height:43px; transform:rotate(-7deg) }
.margin-heading>span { border:0; padding:0 4px 3px; background:url('./images/highlighter-v130.webp') center 90%/100% .34em no-repeat }
.margin-heading>span:after { display:none }
html[data-theme=dark] .margin-heading>span { background:none }
.margin-notes nav>ol>li,.margin-notes nav>ul>li { padding-left:44px; font-size:19px; margin-bottom:24px }
.margin-notes nav>ol>li:before,.margin-notes nav>ul>li:before { width:34px; height:35px; top:0; left:-1px; font-size:28px; line-height:35px; color:var(--blue) }
.margin-notes nav>ol>li:after,.margin-notes nav>ul>li:after { width:38px; height:36px; top:0; left:-3px }
.margin-notes nav a.is-active { text-decoration:none; color:var(--ink); background:url('./images/highlighter-v130.webp') center 88%/100% .45em no-repeat; padding:2px 0 }
html[data-theme=dark] .margin-notes nav a.is-active { color:var(--olive); background:none; text-decoration:underline; text-decoration-style:wavy; text-decoration-thickness:1px }
.index-note { grid-row:1 / span 2; margin-top:52px; padding-top:0 }
.index-note>.margin-heading { font-size:25px; background:url('./images/highlighter-v130.webp') left bottom/100% 13px no-repeat; padding-bottom:7px }
html[data-theme=dark] .index-note>.margin-heading { background:none }
.index-topics a { font-size:19px; padding:14px 0 }
.index-note>.personal-note { color:var(--blue); font-size:28px; line-height:1.8 }
.code-note { margin:24px -9px 32px; padding:6px 9px 14px; background:color-mix(in srgb,var(--olive-pale) 26%,transparent) }
.code-note:before { opacity:1; border-image-width:18px }
.code-note figcaption { font:17px/1.7 var(--hand); padding:0 2px 9px; min-height:49px }
.code-note figcaption .icon { width:26px; height:26px }
.code-note figcaption>span { gap:12px }
.code-note figcaption>span>span { padding:0 6px; background:url('./images/highlighter-v130.webp') center 90%/100% .4em no-repeat }
html[data-theme=dark] .code-note figcaption>span>span { background:none; color:var(--olive) }
.prose blockquote { padding:10px 22px; font-size:1.04em; color:var(--blue); border-image-width:0 0 0 12px }
.hand-note { padding:22px 24px; border-image-width:0 0 0 12px }
.note-title { font:700 24px/1.6 var(--hand) }
.note-title .icon { width:30px; height:30px }
.pencil-mark:after { inset:-9px -11px; opacity:1 }
.notebook-dialog:before,.mobile-nav:before { border-image-width:17px; opacity:.9 }
.dialog-top h2 { font-family:var(--hand); font-weight:700; font-size:33px }
.search-results h3 { font:700 25px/1.6 var(--hand) }
.mobile-nav .icon { width:31px; height:31px }

/* A pen mark follows deliberate hover/focus; the reading surface stays still. */
.icon-button { position:relative; isolation:isolate }
.icon-button:hover { background-color:transparent }
.icon-button:before { content:''; position:absolute; inset:-1px; z-index:-1; background:url('./images/circle-v130.webp') center/100% 100% no-repeat; filter:var(--mark-filter); opacity:0; --ink-turn:0deg; mask-image:conic-gradient(from -90deg,#000 var(--ink-turn),transparent 0deg); transition:--ink-turn .3s var(--ease),opacity .15s; pointer-events:none }
.icon-button:hover:before,.icon-button:focus-visible:before { opacity:.7; --ink-turn:360deg }
@property --marker-length { syntax:'<percentage>'; inherits:false; initial-value:100% }
@keyframes marker-lay { from{--marker-length:0%} to{--marker-length:100%} }
html[data-theme=dark] .article-header h1:after,html[data-theme=dark] .index-header h1:after { content:''; display:block; position:static; width:60%; max-width:360px; height:13px; margin-top:8px; background:url('./images/rule-v130.webp') center/100% 100% no-repeat; filter:invert(.9); opacity:.75 }
html[data-theme=dark] .code-note:before,html[data-theme=dark] .notebook-dialog:before,html[data-theme=dark] .mobile-nav:before { mask-image:url('./images/chalk-pigment-v1.webp'); mask-mode:luminance; mask-size:440px }
/* 1.3.2: three pens, with deliberate color roles on paper and chalkboard. */
:root {
  --marker-yellow:#f8e5a6; --marker-peach:#fae4d4;
  --pen-blue-filter:brightness(0) saturate(100%) invert(34%) sepia(26%) saturate(1090%) hue-rotate(166deg) brightness(91%) contrast(90%);
  --pen-warm-filter:brightness(0) saturate(100%) invert(35%) sepia(35%) saturate(950%) hue-rotate(337deg) brightness(91%) contrast(90%);
  --pen-green-filter:brightness(0) saturate(100%) invert(40%) sepia(19%) saturate(669%) hue-rotate(69deg) brightness(94%) contrast(89%);
}
html[data-theme=dark] {
  --marker-yellow:#665d35; --marker-peach:#604536;
  --pen-blue-filter:brightness(0) saturate(100%) invert(87%) sepia(14%) saturate(620%) hue-rotate(169deg) brightness(95%) contrast(91%);
  --pen-warm-filter:brightness(0) saturate(100%) invert(80%) sepia(28%) saturate(540%) hue-rotate(335deg) brightness(100%) contrast(89%);
  --pen-green-filter:brightness(0) saturate(100%) invert(85%) sepia(16%) saturate(460%) hue-rotate(47deg) brightness(98%) contrast(87%);
}
.signature { color:var(--blue) }
.signature>.icon,html[data-theme=dark] .signature>.icon { filter:var(--pen-warm-filter) }
.site-header:after { filter:var(--pen-blue-filter); opacity:.6 }
.nav-link,.mobile-nav>a { color:var(--blue) }
.nav-link .icon,.mobile-nav>a .icon { filter:var(--pen-blue-filter) }
html[data-theme=dark] .nav-link .icon,html[data-theme=dark] .mobile-nav>a .icon { filter:var(--pen-blue-filter) }
.nav-link.is-current,.nav-link:hover,.mobile-nav>a[aria-current=page] { color:var(--rust) }
.nav-link.is-current .icon,.nav-link:hover .icon,.mobile-nav>a[aria-current=page] .icon,
html[data-theme=dark] .nav-link.is-current .icon,html[data-theme=dark] .nav-link:hover .icon,html[data-theme=dark] .mobile-nav>a[aria-current=page] .icon { filter:var(--pen-warm-filter) }
.nav-link:before,html[data-theme=dark] .nav-link:before { filter:var(--pen-warm-filter) }
.nav-link>span { position:relative; isolation:isolate; background:none }
.nav-link>span:after { content:''; position:absolute; z-index:-1; inset:45% -3px -1px; background:var(--marker-yellow); mask:url('./images/highlighter-v130.webp') center/100% 100% no-repeat; transform:scaleX(0); transform-origin:left; transition:transform .25s var(--ease) }
.nav-link.is-current>span:after,.nav-link:hover>span:after { transform:scaleX(1) }
html[data-theme=dark] .nav-link>span:after { display:none }
.title-ink,html[data-theme=dark] .title-ink { color:var(--blue) }
html[data-theme=dark] .article-header h1:after,html[data-theme=dark] .index-header h1:after { filter:var(--pen-warm-filter); opacity:.9 }
.article-meta>a,.index-count { position:relative; isolation:isolate; color:var(--rust); background:none }
.article-meta>a:before,.index-count:before { content:''; position:absolute; z-index:-1; inset:50% -3px -1px; background:var(--marker-yellow); mask:url('./images/highlighter-v130.webp') center/100% 100% no-repeat; pointer-events:none }
html[data-theme=dark] .article-meta>a:before,html[data-theme=dark] .index-count:before { display:none }
.post-row h2,.search-results h3,.dialog-top h2 { color:var(--blue) }
.post-row h2 a:hover,.post-row h2 a:focus-visible,html[data-theme=dark] .post-row h2 a:hover { color:var(--rust) }
.post-row-meta time,.archive-year>h2 { color:var(--rust) }
.post-row-meta>span { color:var(--olive) }
.post-row-arrow .icon,html[data-theme=dark] .post-row-arrow .icon { filter:var(--pen-warm-filter) }
.margin-heading { color:var(--olive) }
.margin-heading>.icon,html[data-theme=dark] .margin-heading>.icon { filter:var(--pen-green-filter) }
.margin-notes nav>ol>li:before,.margin-notes nav>ul>li:before { color:var(--rust) }
.margin-notes nav>ol>li:after,.margin-notes nav>ul>li:after,
html[data-theme=dark] .margin-notes nav>ol>li:after,html[data-theme=dark] .margin-notes nav>ul>li:after { filter:var(--pen-warm-filter) }
.index-topics a { color:var(--blue) }
.index-topics a:hover,.index-note>.personal-note { color:var(--rust) }
.index-topics a:after { filter:var(--pen-green-filter); opacity:.45 }
.prose h2 .heading-ink,html[data-theme=dark] .prose h2 .heading-ink { color:var(--rust); background:none }
.prose h3 .heading-ink,html[data-theme=dark] .prose h3 .heading-ink { color:var(--blue) }
.prose strong { color:var(--rust) }
.prose a:not(.heading-anchor) { color:var(--blue); text-decoration-color:color-mix(in srgb,var(--blue) 50%,transparent) }
.prose a:not(.heading-anchor):hover { text-decoration-color:var(--blue) }
.prose mark:not(.pencil-mark),.search-results mark { background:var(--marker-peach); color:var(--ink) }
.code-note { background:color-mix(in srgb,var(--blue) 3%,transparent) }
.code-note:before { filter:var(--pen-blue-filter); opacity:.82 }
.code-note figcaption>span { color:var(--rust) }
.code-note figcaption>span>.icon,html[data-theme=dark] .code-note figcaption>span>.icon { filter:var(--pen-warm-filter) }
.code-note figcaption>span>span { background:none; position:relative; isolation:isolate }
.code-note figcaption>span>span:before { content:''; position:absolute; z-index:-1; inset:50% 0 0; background:var(--marker-peach); mask:url('./images/highlighter-v130.webp') center/100% 100% no-repeat }
html[data-theme=dark] .code-note figcaption>span>span { color:var(--rust) }
html[data-theme=dark] .code-note figcaption>span>span:before { display:none }
.code-note figcaption:after { filter:var(--pen-blue-filter); opacity:.35 }
.hand-note[data-kind=warning] .note-title { color:var(--rust) }
::selection { background:#f2d58e; color:#26364a }
@media(forced-colors:active) {
  .icon,.nav-link:before { filter:none!important }
  .nav-link>span:after,.article-meta>a:before,.index-count:before,.code-note figcaption>span>span:before { display:none }
  .title-ink,.prose .heading-ink { color:CanvasText!important }
}

/* Reserve chalk masks for display lettering. Per-run masks throughout prose
   created hundreds of paint surfaces when changing material on long pages. */
html[data-theme=dark] :is(h1,h2,h3,.signature,.margin-heading,.nav-link) .written-text {
  mask-image:linear-gradient(#ffffff78,#ffffff78),url('./images/chalk-pigment-v2.webp');
  mask-mode:alpha,luminance; mask-size:auto,540px 540px; mask-repeat:repeat; mask-composite:add;
}
html[data-theme=dark] .icon {
  mask-image:linear-gradient(#ffffff75,#ffffff75),url('./images/chalk-pigment-v2.webp');
  mask-mode:alpha,luminance; mask-size:auto,580px 580px; mask-composite:add; mask-repeat:repeat;
}

/* One-shot drawing feedback, never a moving reading surface. */
@property --ink-turn { syntax:'<angle>'; inherits:false; initial-value:0deg }
@keyframes circle-ink { from{--ink-turn:0deg} to{--ink-turn:360deg} }
@keyframes stroke-arrive { from{clip-path:inset(0 100% 0 0)} to{clip-path:inset(0)} }
@keyframes check-ink { from{clip-path:inset(0 100% 0 0)} to{clip-path:inset(0)} }
@keyframes dialog-arrive { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes note-result { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@media(min-width:1500px) { .reading-layout,.index-layout{max-width:1180px;grid-template-columns:minmax(0,850px) 230px;gap:100px}.without-toc{grid-template-columns:minmax(0,850px)} }
@media(max-width:1199px) { .reading-layout,.index-layout{grid-template-columns:minmax(0,1fr) 195px;gap:42px}.without-toc{grid-template-columns:minmax(0,812px)}.margin-notes{padding-left:20px}.desktop-nav{gap:16px}.nav-link{font-size:17px;gap:6px}.site-header{gap:18px}.signature span{font-size:44px} }
@media(max-width:980px) {
  .site-header{width:calc(100% - 64px);gap:17px}.signature span{font-size:40px}.signature>.icon{width:30px;height:30px}.signature{gap:8px}.desktop-nav{gap:12px}.nav-link{font-size:16px;gap:5px}.nav-link .icon{width:21px;height:21px}.header-actions{gap:0;margin-left:0}
  .reading-layout,.index-layout{display:block;max-width:760px;width:100%;padding:46px 32px 0}.margin-notes,.index-note{display:none}.article-header h1{font-size:49px}.article-header h1.long-title{font-size:39px}.article-header{margin-bottom:34px}
  .mobile-toc{display:block;border:0;margin:0 0 28px;font-size:16px;color:var(--olive)}.mobile-toc summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 0}.mobile-toc summary::-webkit-details-marker{display:none}.mobile-toc summary .icon{width:20px;height:20px;transition:transform .2s}.mobile-toc[open] summary .icon{transform:rotate(180deg)}.mobile-toc nav{padding-bottom:12px}.mobile-toc :is(ol,ul){padding-left:23px;line-height:1.8;margin:5px 0}.mobile-toc nav a{display:block;padding:8px 0}.mobile-toc[open] nav{animation:note-result .2s var(--ease) both}
  .site-footer{max-width:696px;width:calc(100% - 64px);margin-top:60px}.list-page{width:calc(100% - 88px);margin-top:45px}.empty-page{width:calc(100% - 88px);margin:75px auto 125px}
}
@media(max-width:720px) {
  .desktop-nav{display:none}.mobile-menu-toggle{display:inline-flex}.header-actions{margin-left:auto}.mobile-nav:not([hidden]){position:absolute;display:flex;flex-direction:column;top:calc(100% + 5px);left:0;right:0;padding:12px 15px 16px;border:0;box-shadow:0 12px 26px #14231812;gap:3px;animation:note-result .2s var(--ease) both}.mobile-nav>a{display:flex;align-items:center;gap:14px;padding:12px 7px;font-size:18px;min-height:48px}.mobile-nav>a[aria-current=page]{color:var(--olive);text-decoration:underline;text-underline-offset:6px}.mobile-nav>a:hover{background-color:var(--olive-pale)}
}
@media(max-width:620px) {
  :root{--reading-size:19px}
  .site-header{min-height:80px;width:calc(100% - 40px);gap:8px;padding:12px 0 15px}.signature span{font-size:37px;letter-spacing:-1px}.signature>.icon{width:26px;height:26px}.signature{gap:7px}.header-actions .icon{width:23px;height:23px}.theme-toggle .icon{width:21px;height:21px}
  .reading-layout,.index-layout{padding:34px 25px 0}.article-header h1{font-size:37px;line-height:1.5;letter-spacing:0}.article-header h1.long-title{font-size:30px;line-height:1.6}.article-header h1:after,.index-header h1:after{width:185px;height:20px;bottom:-16px}.article-subtitle{font-size:23px;margin:20px 0 14px}.article-meta{font-size:13px;gap:4px 9px;margin-top:22px}.article-header{margin-bottom:26px}
  .prose{letter-spacing:0}.prose h2{font-size:28px;line-height:1.65;padding-top:20px}.prose h3{font-size:23px}.heading-anchor{display:none}.prose blockquote{padding-left:17px}.prose :is(th,td){padding:10px 12px}.prose figcaption{font-size:13px}.pencil-mark{white-space:normal;background:var(--olive-pale);box-decoration-break:clone;padding:1px 2px}.pencil-mark:after{display:none}
  .code-note{margin:16px -7px 26px;border-width:10px;padding:3px 3px 10px}.code-note:before{inset:-10px;border-width:10px;border-image-width:14px}.code-note figcaption{font-size:12px;padding:0 2px 5px}.code-note figcaption .icon{width:19px;height:19px}.code-note pre{font-size:13px;line-height:1.85;padding:13px 2px 2px}.copy-code{margin-right:-5px}.hand-note{padding:16px 18px}.note-title{font-size:21px}.footnote-backref{min-width:44px;min-height:44px}
  .article-tags{gap:8px 15px}.post-navigation{gap:20px}.post-navigation a{font-size:14px;gap:8px;max-width:49%;line-height:1.75}.post-navigation small{font-size:12px}.post-navigation .icon{width:18px;height:18px}
  .index-header{margin-bottom:30px}.index-header h1{font-size:38px;margin:14px 0 27px}.index-header h1.latin-title{font-size:52px}.index-header>p:not(.eyebrow){font-size:17px}.eyebrow{font-size:13px;letter-spacing:.5px}.index-count{font-size:13px}
  .post-row{display:block;padding:22px 0}.post-row-meta{display:flex;align-items:center;gap:12px;padding:0;margin-bottom:7px;font-size:12px}.post-row-meta>span{margin:0;font-size:12px}.post-row h2{font-size:25px;line-height:1.65}.post-row-body>p{font-size:16px}.post-row-arrow{display:none}.row-tags{font-size:13px;gap:6px 13px}
  .list-page{width:calc(100% - 50px);margin-top:34px}.archive-year{display:block;margin-bottom:30px}.archive-year>h2{font-size:35px;margin:0 0 14px}.topic-name{font-size:25px;gap:10px}.taxonomy-list>li>a>span:last-child{font-size:13px}.taxonomy-list>li>a>span:last-child .icon{width:20px;height:20px}.pagination{gap:22px;font-size:13px}
  .empty-page{width:calc(100% - 50px);margin:60px auto 110px}.empty-page h1{font-size:34px}.empty-page>p{font-size:17px}.site-footer{width:calc(100% - 50px);margin-top:52px;gap:5px 17px;font-size:12px;padding:18px 0 24px}.site-footer>.footer-motto{margin-left:0}.back-to-top{right:12px;bottom:14px}
  .notebook-dialog{padding:20px 20px 16px;margin-top:5dvh;max-height:88dvh;width:calc(100% - 28px)}.dialog-top{margin-bottom:16px}.dialog-top h2{font-size:27px}.search-field{gap:9px}.search-field input{font-size:16px}.search-results h3{font-size:22px}.search-results p{font-size:15px}.search-bottom{display:none}.search-status{font-size:14px}.toast{font-size:14px;bottom:20px}
}
@media(max-width:350px) { .site-header{width:calc(100% - 30px)}.signature span{font-size:31px}.signature>.icon{width:23px;height:23px}.signature{gap:5px}.reading-layout,.index-layout{padding-inline:20px}.list-page,.site-footer,.empty-page{width:calc(100% - 40px)}.article-header h1{font-size:33px}.article-header h1.long-title{font-size:28px}.index-header h1{font-size:41px} }
@media(max-width:1000px){.desktop-nav{gap:8px}.nav-link{min-width:53px;padding:5px}.nav-link .icon{width:29px;height:29px}.signature>span{font-size:44px}.signature>.icon{width:35px;height:35px}.site-header{gap:16px}.index-header h1{font-size:58px}}
@media(max-width:720px){.site-header{min-height:88px;padding:14px 0 19px}.signature>span{font-size:40px}.signature>.icon{width:29px;height:29px}.article-meta{font-size:14px;margin-bottom:17px}.article-header{margin-bottom:27px}.article-header h1{font-size:41px}.article-header h1.long-title{font-size:34px;line-height:1.6}.index-header h1{font-size:47px}.index-header>p:not(.eyebrow){font-size:19px}.post-row h2{font-size:27px}.prose h2{font-size:29px}.prose h3{font-size:24px}.reading-layout,.index-layout{padding-top:30px}.dialog-top h2{font-size:28px}.title-ink{background-size:100% .31em}.code-note figcaption{font-size:15px}}
@media(max-width:360px){.signature>span{font-size:34px}.signature>.icon{width:25px;height:25px}.signature{gap:6px}.header-actions{gap:0}.article-header h1.long-title{font-size:30px}.index-header h1{font-size:40px}.icon-button .icon{width:27px;height:27px}.article-meta{gap:8px}.dialog-top h2{font-size:25px}}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.nav-link:before{--ink-turn:360deg}::view-transition-old(root),::view-transition-new(root){animation:none!important} }
html[data-motion=reduce],html[data-motion=reduce] *,html[data-motion=reduce] *:before,html[data-motion=reduce] *:after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
html[data-motion=reduce] .nav-link:before { --ink-turn:360deg }
html[data-motion=reduce]::view-transition-old(root),html[data-motion=reduce]::view-transition-new(root) { animation:none!important }
@media print {
  .written-text,.icon { mask-image:none!important; -webkit-mask-image:none!important; -webkit-text-stroke:0!important }
  .site-header,.margin-notes,.mobile-toc,.site-footer,.back-to-top,.notebook-dialog,.paper-grain,.article-tags,.post-navigation,.heading-anchor,.toast{display:none!important}
  :root,html[data-theme=dark]{--paper:#fff;--ink:#000;--muted:#444;--olive:#333;--line:#bbb;--rust:#333;--blue:#333;--code:#fff;--olive-pale:#eee;--marker-yellow:transparent;--marker-peach:transparent;color-scheme:light}body{background:#fff;color:#000}.reading-layout{display:block;width:100%;max-width:100%;margin:0;padding:0}.article-header h1{font-size:30px}.article-header h1:after,.pencil-mark:after{display:none}.article-subtitle{font-size:21px}.prose{font-size:11pt;line-height:1.7}.prose h2{font-size:19pt;break-after:avoid}.prose h3{font-size:15pt;break-after:avoid}.code-note{break-inside:avoid;border:1px solid #aaa;margin:15px 0;padding:10px}.code-note:before,.copy-code,.code-scroll-hint{display:none}.code-note pre{white-space:pre-wrap;font-size:9pt}.code-note pre code{white-space:pre-wrap;overflow-wrap:anywhere}.code-note pre .line{min-width:0}.prose a{color:inherit}.table-scroll{overflow:visible}.table-scroll table{min-width:0}.notebook-details:not([open]){display:none}
}
