/* Paper by day, ink by night. The stored preference is applied in the head. */
:root{color-scheme:light}
.notebook-tools{display:flex;align-items:center;gap:16px;min-width:0}
.notebook-theme .notebook-utility form{display:flex;align-items:center;height:44px;margin:0;padding:0;box-sizing:border-box}
.notebook-theme .notebook-utility input[type="search"]{height:42px;min-height:0;margin:0;padding:0 4px;border:0;border-radius:0;line-height:normal;box-sizing:border-box;align-self:center}
.notebook-theme .notebook-utility form button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:42px;min-height:0;margin:0;padding:0;line-height:1;box-sizing:border-box}
.notebook-theme .color-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:78px;min-height:44px;padding:4px 10px;border:1px solid var(--line);border-radius:3px 6px 3px 5px;background:transparent;color:var(--ink);font:16px/1.5 var(--hand);white-space:nowrap;cursor:pointer}
.notebook-theme .color-toggle:hover{border-color:var(--accent);color:var(--accent)}
.notebook-theme .color-toggle[hidden]{display:none}
html[data-color-mode=dark]{color-scheme:dark;--paper:#1c2421;--sheet:#232e28;--ink:#e4e4d6;--muted:#b4bdad;--line:#455147;--accent:#f0a18b;--sage:#2e3c32}
html[data-color-mode=dark] .notebook-theme{background-image:radial-gradient(#b9c7a51a .65px,transparent .65px)}
html[data-color-mode=dark] .notebook-theme ::selection{background:#736039;color:#fff7df}
html[data-color-mode=dark] .intro-sketch{color:#afc8b1}
html[data-color-mode=dark] .notebook-theme .excerpt .note,
html[data-color-mode=dark] .notebook-profile p{color:var(--muted)}
html[data-color-mode=dark] .notebook-profile{border-color:var(--line);background-image:repeating-linear-gradient(0deg,transparent,transparent 32px,#c6d4ae09 32px,#c6d4ae09 33px)}
html[data-color-mode=dark] .notebook-profile a{border-color:#697b61}
html[data-color-mode=dark] .notebook-profile:before{background:#a08c5973}
html[data-color-mode=dark] .manual-title{border-color:#79836d;outline-color:#626e59}
html[data-color-mode=dark] .notebook-utility form,
html[data-color-mode=dark] .notebook-theme input,
html[data-color-mode=dark] .notebook-theme textarea{border-color:#65735e}
html[data-color-mode=dark] .notebook-theme blockquote{border-left-color:#90a582}
html[data-color-mode=dark] .notebook-theme pre{background:#141c18;color:#e4e4d6}
html[data-color-mode=dark] .notebook-theme .article-content code{background:#141c18;color:#edc9a8}
html[data-color-mode=dark] .notebook-theme .article-content pre code{background:transparent;color:inherit}
html[data-color-mode=dark] .notebook-theme .article-content th,
html[data-color-mode=dark] .notebook-theme .article-content td{background:var(--sheet);border-color:var(--line);color:var(--ink)}
html[data-color-mode=dark] .notebook-theme .comment,
html[data-color-mode=dark] .notebook-theme .comment-body,
html[data-color-mode=dark] .notebook-theme .comment-content,
html[data-color-mode=dark] .notebook-theme .comt-box,
html[data-color-mode=dark] .notebook-theme .comt-ctrl{background:var(--sheet);border-color:var(--line);color:var(--ink)}
html[data-color-mode=dark] .notebook-theme input::placeholder,
html[data-color-mode=dark] .notebook-theme textarea::placeholder{color:var(--muted);opacity:1}
html[data-color-mode=dark] .rss-dialog::backdrop{background:#080e0bd9}
@media(max-width:680px){.notebook-tools{gap:8px}.notebook-theme .color-toggle{min-width:66px;padding:4px 7px;font-size:14px}.notebook-utility{flex-wrap:wrap}.notebook-tools{margin-left:auto}}
/* Live-site refinements: readable metadata and restrained featured notes. */
.notebook-theme .excerpt .muted{font-size:13px}
.notebook-theme .sticky{margin:20px 0 6px;padding:18px 0;background:transparent;border:0;border-bottom:1px solid var(--line);box-shadow:none;color:var(--ink)}
.notebook-theme .sticky .title{margin:0 0 12px;padding:0;border:0;font:22px/1.6 var(--hand)}
.notebook-theme .sticky .title small{margin-left:12px;font-size:13px;color:var(--muted)}
.notebook-theme .sticky ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:0;padding:0;list-style:none}
.notebook-theme .sticky .item{float:none;min-width:0;width:auto;height:auto;margin:0;padding:0;border:0;background:none}
.notebook-theme .sticky .item a{display:flex;align-items:baseline;gap:12px;min-width:0;height:auto;margin:0;padding:8px 3px;background:none;overflow-wrap:anywhere;color:var(--ink)}
.notebook-theme .sticky .item a:hover{color:var(--accent)}
.notebook-theme .sticky .item h3{flex:1;min-width:0;height:auto;overflow:visible;white-space:normal;overflow-wrap:anywhere;margin:0;padding:0;font:18px/1.7 var(--hand);color:inherit}
.notebook-theme .sticky .item .featured-mark{flex-shrink:0;margin:0;padding:0 4px;border:1px solid var(--accent);background:transparent;color:var(--accent);font:14px/1.5 var(--hand);transform:rotate(-4deg)}
@media(max-width:680px){
 .notebook-utility>span{display:none}
 .notebook-utility{flex-wrap:nowrap;padding:10px 0}
 .notebook-tools{width:100%;justify-content:space-between;margin:0;gap:14px}
 .notebook-theme .notebook-utility form{flex:1;min-width:0;max-width:230px}
 .notebook-theme .notebook-utility input[type="search"]{width:100%;min-width:0;flex:1}
 .notebook-intro .intro-sketch{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:12px;max-width:300px;width:100%;padding:12px 4px;transform:none}
 .intro-sketch .sketch-label{grid-column:1 / -1;transform:none}
 .intro-sketch svg{grid-column:1;grid-row:2;width:100%;max-height:175px}
 .intro-sketch .manual-title{position:static;grid-column:2;grid-row:2;justify-self:end;transform:none;font-size:18px;padding:10px 6px;letter-spacing:3px}
 .intro-sketch .sketch-caption{grid-column:1 / -1;grid-row:3;padding:0 0 0 42px;margin:0;font-size:13px;min-height:36px;display:flex;align-items:center;justify-content:center}
 .intro-sketch .manual-seal{left:4px;bottom:10px;transform:rotate(-4deg)}
 .notebook-theme .sticky ul{grid-template-columns:1fr;gap:0}
}
@media print{html[data-color-mode=dark]{color-scheme:light;--paper:#fff;--sheet:#fff;--ink:#000;--muted:#444;--line:#ccc;--accent:#732b20;--sage:#eee}}
