/* A personal desk: tactile objects around the writing, quiet paper beneath it.
   System typography, coral ink, and brief gestures outside article prose. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #5b5b57;
  --rule: #e1e1db;
  --rule-strong: #121212;
  --signal: #c4351a;
  --blue: #2858a4;
  --green: #326244;
  --code: #f4f4f1;
  --desk-night: 0;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --margin-col: 180px;
  --gutter: 32px;
  --content-start: calc(var(--margin-col) + var(--gutter));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #121212;
    --ink: #f0efea;
    --muted: #a6a6a0;
    --rule: #2f2f2d;
    --rule-strong: #f0efea;
    --signal: #ff7a5a;
    --blue: #91b6f2;
    --green: #9bc4a6;
    --code: #1c1c1b;
    --desk-night: 1;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #121212;
  --ink: #f0efea;
  --muted: #a6a6a0;
  --rule: #2f2f2d;
  --rule-strong: #f0efea;
  --signal: #ff7a5a;
  --blue: #91b6f2;
  --green: #9bc4a6;
  --code: #1c1c1b;
  --desk-night: 1;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--paper); }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--signal); }
a:focus-visible, select:focus-visible, [tabindex='0']:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
  border-radius: 2px;
}
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; text-wrap: pretty; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.75rem, 6.5vw, 4.5rem); line-height: 1.08; letter-spacing: -.04em; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }
svg { flex-shrink: 0; }
img, video { max-width: 100%; height: auto; }
section[id], h2[id] { scroll-margin-top: 2rem; }
.notebook-shell { max-width: 1180px; margin-inline: auto; padding: 0 48px; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 10px 18px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; color: var(--paper); }

.site-header { display: flex; align-items: center; gap: 24px; padding: 22px 0 18px; border-bottom: 1px solid var(--rule-strong); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding-block: 6px; }
.wordmark > span { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.avatar { display: block; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.wordmark .avatar { width: 48px; height: 48px; }
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a { font: 400 .875rem var(--sans); text-decoration: none; padding-block: 12px; }
.site-header nav a[aria-current], .wordmark[aria-current] > span { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .6em; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .6em; }
/* Native icon radios retain keyboard use and the System / Light / Dark choice. */
.theme-control { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.theme-control legend, .theme-control label span, .theme-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.theme-control input { opacity: 0; }
.theme-control label { display: grid; place-items: center; width: 36px; height: 40px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.theme-control svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-control label:hover { color: var(--ink); }
.theme-control input:checked + label { color: var(--signal); border-color: currentColor; }
.theme-control input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }

.eyebrow { font: .8125rem/1.6 var(--mono); color: var(--signal); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; padding: 64px 0 60px; }
.intro h1 { margin: 18px 0 24px; font: 750 clamp(3.25rem, 6.8vw, 5rem)/1 var(--sans); letter-spacing: -.055em; }
.intro-lead { font: 1.35rem/1.5 var(--serif); max-width: 30em; }
.intro-aside { color: var(--muted); font: .875rem/1.6 var(--sans); margin-top: 20px; max-width: 26em; }
.desk-vignette { width: 100%; min-width: 0; }
.desk-scene { position: relative; }
.desk-still-life { display: block; width: 100%; height: auto; filter: brightness(calc(1 - var(--desk-night) * .15)) saturate(calc(1 - var(--desk-night) * .12)) hue-rotate(calc(var(--desk-night) * 8deg)); }
.desk-mug { position: absolute; left: 63%; top: 56%; width: 33%; height: 36%; }
.desk-mug summary { display: block; width: 100%; height: 100%; cursor: pointer; list-style: none; border-radius: 40%; }
.desk-mug summary::-webkit-details-marker { display: none; }
.desk-mug[open] { z-index: 2; }
.mug-note { position: absolute; bottom: 100%; right: 0; width: min(260px, 82vw); padding: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 5px 18px #0002; font: .875rem/1.6 var(--sans); }
.mug-note a { display: inline-block; margin-top: 8px; padding-block: 4px; }
.desk-terminal { position: absolute; left: 57%; top: 16%; width: 25%; height: 25%; padding: 0; border: 0; border-radius: 15%; background: transparent; cursor: pointer; transform: rotate(10deg); }
.desk-mug summary:focus-visible, .desk-terminal:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.desk-terminal-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desk-mug-lettering, .desk-steam, .desk-screen-glow, .desk-book-spine, .desk-terminal-reply { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.desk-mug-lettering { fill: #24180f; font: 600 28px var(--serif); }
.desk-steam { opacity: 0; fill: none; stroke: var(--muted); stroke-width: 6; stroke-linecap: round; }
.desk-screen-glow { opacity: var(--desk-night); }
.desk-book-spine { fill: #e8e8d8; font: 20px var(--serif); }
.desk-print { position: absolute; left: 0; bottom: 1%; width: 37%; padding: 3px; border: 4px solid #80583d; border-right-color: #4b3022; border-bottom-color: #573a29; border-radius: 2px; background: #fff; color: #242424; box-shadow: 3px 4px 0 #35251c, 5px 9px 9px #0004; transform: perspective(600px) rotateY(8deg); text-align: center; text-decoration: none; }
.desk-print::before { content: ""; position: absolute; z-index: -1; right: -19px; bottom: -5px; width: 18px; height: 60%; background: #4b3022; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.desk-print img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.desk-print span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.4em; margin-top: 3px; font: .5625rem/1.2 var(--sans); overflow: hidden; overflow-wrap: anywhere; }
.desk-print:hover span, .desk-print:focus-visible span { text-decoration: underline; }
.desk-reading-note { margin-top: 26px; color: var(--muted); font: .8125rem/1.5 var(--sans); text-align: right; }

/* Writing owns the wide column; the objects are ordinary, labelled section links. */
.desk-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; border-top: 1px solid var(--rule-strong); padding-top: 32px; }
.desk-writing, .desk-shelves { min-width: 0; }
.desk-shelves { border-left: 1px solid var(--rule); padding-left: 36px; }
.desk-shelf + .desk-shelf { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.desk-section-link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; }
.desk-section-link img { display: block; width: 104px; height: auto; }
.desk-section-link span { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.desk-section-link:focus-visible span { text-decoration-color: currentColor; }
.desk-shelf--explorations { --signal: var(--blue); }
.desk-shelf--reads { --signal: var(--green); }
.desk-shelf .section-intro { font: 1rem/1.55 var(--serif); }
.desk-shelf .related-list { margin-top: 12px; }
.desk-shelf .related-list li { padding: 10px 0; }
.desk-shelf .related-list h3 { font-size: 1.0625rem; }

.notebook-section { display: grid; grid-template-columns: var(--margin-col) minmax(0, 1fr); gap: var(--gutter); padding: 28px 0 56px; border-top: 1px solid var(--rule-strong); }
.archive-year { font: 400 2.6rem/1 var(--serif); letter-spacing: -.04em; color: var(--muted); }
.section-content { min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.small-link, .text-link { font: 500 .875rem var(--sans); }
.small-link { white-space: nowrap; }
.section-intro { color: var(--muted); margin-top: 8px; font: 1rem/1.6 var(--serif); }

/* One entry pattern for featured, archive and related lists. */
.entry-list, .related-list, .book-list { list-style: none; margin: 0; padding: 0; }
.entry-list { margin-top: 22px; }
.entry { padding: 24px 0; border-top: 1px solid var(--rule); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 10px; font: .8125rem/1.6 var(--sans); color: var(--muted); }
.entry-kind { color: var(--signal); }
.entry h3 a, .related-list h3 a, .exploration-list h2 a { text-decoration: none; }
.entry h3 { font-size: 1.8rem; }
.entry h3 a:hover, .related-list h3 a:hover, .exploration-list h2 a:hover { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; }
.entry p, .related-list p { font: 1.0625rem/1.6 var(--serif); color: var(--muted); margin-top: 10px; max-width: 38em; }
.entry--featured h3 { font-size: 2.2rem; line-height: 1.08; }
.entry .text-link { display: inline-block; margin-top: 12px; justify-self: start; }
.entry-list--archive .entry h3 { font-size: 1.6rem; }
.entry-list--archive .entry:first-child { border-top: 0; padding-top: 4px; }

.related-list { margin-top: 20px; }
.related-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
.related-list h3 { font-size: 1.3rem; }
.exploration-list { max-width: 780px; margin: 0 0 56px; }
.exploration-list h2 { font-size: 1.6rem; }
.book-list { margin-top: 18px; }
.book-list li { padding: 10px 0; border-top: 1px solid var(--rule); }
.book-list a { font: 1.0625rem/1.4 var(--serif); text-decoration: none; }
.book-list a:hover { text-decoration: underline; color: var(--ink); }
.book-author { display: block; color: var(--muted); font: .75rem/1.6 var(--sans); margin-top: 4px; }
.personal-note { color: var(--muted); font: .9375rem/1.6 var(--serif); margin: 32px 0 48px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0 40px; border-top: 1px solid var(--rule-strong); }
.footer-name { font-weight: 700; text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font: .8125rem/1.5 var(--sans); }
.social-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding-block: 5px; text-decoration: none; }
.social-links svg { box-sizing: content-box; padding: 6px; border: 1px solid var(--rule); border-radius: 50%; background: var(--code); color: var(--ink); }
.social-links a:hover span, .social-links a:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }
.social-links a:hover svg, .social-links a:focus-visible svg { color: var(--signal); border-color: currentColor; }
.intro-copy .social-links { margin-top: 24px; }

.page-intro { max-width: 860px; padding: 72px 0 56px; }
.page-intro h1 { margin: 16px 0 22px; }
.page-intro .intro-lead { color: var(--muted); }
.page-title { display: flex; align-items: center; gap: 24px; max-width: 780px; margin: 16px 0 22px; }
.page-title h1 { flex: 1; min-width: 0; margin: 0; }
.page-object { flex: 0 0 auto; width: 128px; height: auto; }
.page-object--notebook, .page-object--books, .page-object--terminal { position: relative; display: block; }
.page-object > img { display: block; width: 100%; }
.notebook-pen { position: absolute; left: 24%; top: 27%; width: 44%; height: 49%; transform: rotate(-46deg); }
.notebook-pen svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(1px 2px 1px #0005); }
.desk-scene > .notebook-pen { left: 33%; top: 50%; width: 15%; height: 30%; transform: rotate(-45deg); }
.pen-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pen-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.pen-nib { transform: translateY(-9px); }
.pen-toggle[aria-pressed="true"] + svg .pen-nib { transform: translateY(0); }
.pen-toggle[aria-pressed="true"] + svg .pen-clicker { transform: translateY(6px); }
/* Layers reuse the original artwork, with the complete image as the static fallback. */
.page-object .books-top { position: absolute; inset: 0; opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 40%, 91.5% 41.25%, 63.14% 70.83%, 13.56% 49.58%, 0 49.58%); }
.terminal-reply { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.empty-workbench { max-width: 780px; border-top: 1px solid var(--rule); padding: 32px 0 56px; }
.empty-workbench h2 { margin-bottom: 16px; }
.empty-workbench p { color: var(--muted); margin-bottom: 16px; max-width: 42em; }

.notebook-article { max-width: 700px; margin-inline: auto; }
.article-header { padding: 40px 0 36px; }
.back-link { display: inline-block; font: .8125rem var(--mono); padding-block: 8px; margin-bottom: 28px; }
.breadcrumbs { font: .8125rem/1.7 var(--sans); color: var(--muted); margin-bottom: 40px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: '/'; color: var(--muted); }
.breadcrumbs a { text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.article-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px; font: .75rem var(--mono); color: var(--muted); }
.article-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; }
.article-deck { font: 1.3rem/1.5 var(--serif); color: var(--muted); margin-top: 22px; max-width: 34em; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: .8125rem/1.7 var(--sans); color: var(--muted); margin-top: 22px; }
.byline-author { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.byline-author .avatar { width: 28px; height: 28px; }
.byline-author:hover { text-decoration: underline; }
.writing-status { color: var(--muted); font: .8125rem/1.7 var(--mono); border-left: 3px solid var(--signal); padding-left: 12px; margin-top: 20px; }
.exploration-link { margin-top: 22px; }

.prose { min-width: 0; font: 1.25rem/1.8 var(--serif); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.5em; }
.prose p { margin-block: 1.4em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; margin-top: 2em; }
.prose h4 { font-size: 1.1rem; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .7em; }
.prose figure { margin: 0 0 2em; }
.prose figure img { width: 100%; display: block; }
.prose img:not(.emoji), .prose video { display: block; margin-inline: auto; }
.prose .emoji { width: 1em; height: 1em; vertical-align: -.1em; }
.prose iframe { display: block; max-width: 100%; border: 0; }
.prose iframe[src*='youtube'] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose figcaption { color: var(--muted); font: .75rem/1.7 var(--mono); margin-top: 10px; }
.prose blockquote { border-left: 3px solid var(--signal); padding: 2px 0 2px 22px; margin: 2em 0; font-style: italic; color: var(--muted); }
.prose blockquote p { margin: .5em 0; }
.prose code { font: .82em/1.7 var(--mono); background: var(--code); padding: .15em .3em; border-radius: 2px; }
.prose div.highlight { overflow-x: auto; background: var(--code); border: 1px solid var(--rule); border-radius: 2px; }
.prose pre { font: .8125rem/1.8 var(--mono); margin: 0; padding: 20px; tab-size: 2; }
.prose pre code { font: inherit; padding: 0; background: none; border-radius: 0; }
.prose .rouge-table { width: auto; border: 0; margin: 0; }
.prose .rouge-table td { border: 0; padding: 0; }
.prose .rouge-table pre { padding: 0; }
.prose pre.lineno { padding-right: 18px; color: var(--muted); user-select: none; }
.prose .rouge-code { min-width: 0; }
.prose table:not(.rouge-table) { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 12px; text-align: left; }
.prose .highlight .c, .prose .highlight .c1, .prose .highlight .cm { color: var(--muted); font-style: italic; }
.prose .highlight .k, .prose .highlight .kd, .prose .highlight .kn, .prose .highlight .o { color: var(--signal); }
.prose .highlight .s, .prose .highlight .s1, .prose .highlight .s2, .prose .highlight .na,
.prose .highlight .nf, .prose .highlight .nc, .prose .highlight .mi { font-weight: 600; }
.article-end { margin: 48px 0 56px; border-top: 1px solid var(--rule); padding-top: 24px; }
.article-end p { font: italic 1.125rem var(--serif); margin: 0 0 10px; }
.article-end .article-note { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.related-reading { display: block; max-width: 700px; margin-inline: auto; }

@media (max-width: 1000px) {
  :root { --margin-col: 130px; --gutter: 28px; }
  .notebook-shell { padding-inline: 32px; }
  .site-header { flex-wrap: wrap; gap: 8px 20px; }
  .desk-content { gap: 32px; }
  .desk-shelves { padding-left: 28px; }
}
@media (max-width: 760px) {
  .site-header nav { order: 3; width: 100%; margin-left: 0; }
  .wordmark { flex: 1; min-width: 0; }
  .theme-control { margin-left: auto; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px 32px; }
  .intro h1 { font-size: clamp(1.875rem, 9vw, 4.5rem); }
  .intro-lead { max-width: 34em; }
  .desk-vignette { max-width: 400px; justify-self: center; }
  .desk-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .desk-shelves { border-left: 0; padding: 28px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .desk-shelf + .desk-shelf { margin: 0; border: 0; padding: 0; }
  .notebook-section { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
  .notebook-shell { padding-inline: 20px; }
  .site-header { gap: 8px 12px; padding-block: 14px 8px; }
  .site-header nav { gap: 4px 22px; }
  .wordmark { gap: 10px; }
  .wordmark > span { font-size: 1rem; line-height: 1.4; }
  .wordmark .avatar { width: 38px; height: 38px; }
  .theme-control { gap: 0; }
  .theme-control label { width: 30px; }
  .social-links { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); }
  .intro-lead { font-size: 1.25rem; }
  .desk-vignette { max-width: 304px; }
  .desk-content { padding-top: 24px; }
  .desk-shelves { grid-template-columns: minmax(0, 1fr); }
  .desk-shelf + .desk-shelf { padding-top: 24px; border-top: 1px solid var(--rule); }
  .desk-section-link { flex-direction: row; align-items: center; gap: 18px; }
  .desk-section-link img { width: 80px; }
  .notebook-section { padding-block: 22px 40px; }
  h2 { font-size: 1.6rem; }
  .archive-year { font-size: 2.4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .entry h3, .entry--featured h3 { font-size: 1.65rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-intro { padding: 44px 0 36px; }
  .page-title { gap: 16px; }
  .page-title h1 { font-size: clamp(2.25rem, 9vw, 2.75rem); }
  .page-object { width: 76px; }
  .article-header { padding-top: 24px; }
  .breadcrumbs { margin-bottom: 28px; }
  .article-deck { font-size: 1.1875rem; }
  .prose { font-size: 1.125rem; }
  .prose pre { font-size: .75rem; padding: 14px; }
  .prose blockquote { padding-left: 16px; }
  .article-end { margin-block: 34px; }
}
@media (max-width: 360px) {
  .page-title { gap: 12px; }
  .page-title h1 { font-size: 2rem; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .desk-section-link img { transition: transform 180ms ease-out; }
  .desk-section-link:focus-visible img { transform: translateY(-4px) rotate(-4deg); }

  .pen-clicker, .pen-nib { transition: transform 100ms ease-out; }
  .page-object--notebook.has-arrived { animation: notebook-settle 360ms ease-out; }
  .page-object--books.has-arrived .books-base { animation: book-base 380ms; }
  .page-object--books.has-arrived .books-top { animation: book-settle 380ms ease-out; }
  .page-object--terminal.has-arrived .terminal-reply { animation: terminal-ready 380ms ease-out; }
  .desk-mug:focus-within + .desk-steam { animation: coffee-steam 400ms ease-out; }
  .notebook-article .prose img.image-pending { opacity: 0; }
  .notebook-article .prose img.image-arrived { animation: image-fade 320ms ease-out; }

  .site-header nav a:not([aria-current]),
  .entry-list--archive h3 a, .exploration-list h2 a,
  .reading-page .prose .reading-book-title {
    background-image: linear-gradient(var(--signal), var(--signal));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 1px;
    transition: background-size 180ms ease-out;
  }
  .site-header nav a:not([aria-current]):is(:hover, :focus-visible),
  .entry-list--archive h3 a:is(:hover, :focus-visible),
  .exploration-list h2 a:is(:hover, :focus-visible),
  .reading-page .prose .reading-book-title:is(:hover, :focus-visible) {
    text-decoration: none;
    background-size: 100% 1px;
  }
  .theme-control[data-interacted] #theme-light:checked + label svg { animation: sun-turn 320ms ease-out; }
  .theme-control[data-interacted] #theme-dark:checked + label svg { animation: moon-rock 360ms ease-out; }
  .rss-link:is(:hover, :focus-visible) .rss-near { animation: rss-broadcast 260ms ease-out; }
  .rss-link:is(:hover, :focus-visible) .rss-far { animation: rss-broadcast 260ms 80ms ease-out backwards; }
}
@keyframes image-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes notebook-settle {
  from { transform: translateY(-4px) rotate(-3deg); }
  to { transform: none; }
}
@keyframes book-base {
  from, to { clip-path: polygon(0 49.58%, 13.56% 49.58%, 63.14% 70.83%, 91.5% 41.25%, 100% 40%, 100% 100%, 0 100%); }
}
@keyframes book-settle {
  from { opacity: 1; transform: translateY(-5px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes terminal-ready {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes coffee-steam {
  0% { opacity: 0; transform: translateY(8px); }
  35% { opacity: .45; }
  100% { opacity: 0; transform: translateY(-16px); }
}
@keyframes sun-turn {
  from { transform: rotate(-45deg); }
  to { transform: none; }
}
@keyframes moon-rock {
  0% { transform: rotate(-18deg); }
  65% { transform: rotate(5deg); }
  100% { transform: none; }
}
@keyframes rss-broadcast {
  from { opacity: .2; }
  to { opacity: 1; }
}
@media (hover: hover) {
  .desk-section-link:hover span { text-decoration-color: currentColor; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .desk-section-link:hover img { transform: translateY(-4px) rotate(-4deg); }
  .desk-mug:hover + .desk-steam { animation: coffee-steam 400ms ease-out; }
}
@media (forced-colors: active) {
  .theme-control input:checked + label { border-color: Highlight; }
  .site-header nav a:not([aria-current]):is(:hover, :focus-visible),
  .entry-list--archive h3 a:is(:hover, :focus-visible),
  .exploration-list h2 a:is(:hover, :focus-visible),
  .reading-page .prose .reading-book-title:is(:hover, :focus-visible) { text-decoration: underline; }
}
.print-signature { display: none; }
@media print {
  :root, :root[data-theme] { color-scheme: light; --paper: white; --ink: black; --muted: #444; --signal: #222; --rule: #bbb; --rule-strong: #444; --code: #f5f5f5; }
  .notebook-shell { max-width: none; padding: 0; }
  .site-header nav, .theme-control, .site-footer, .back-link, .breadcrumbs, .related-reading, .article-end, .page-object { display: none; }
  .desk-mug, .desk-terminal, .desk-terminal-reply { display: none; }
  .print-signature { display: block; margin-top: 12pt; padding-top: 6pt; border-top: 1px solid #bbb; break-before: avoid; break-inside: avoid; font: italic 10pt/1.5 var(--serif); }
  .print-signature a { margin-left: 1em; font-style: normal; overflow-wrap: anywhere; }
  .article-header { margin-left: 0; }
  .article-grid { display: block; }
  .prose div.highlight { overflow: visible; }
  .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
