/* Shared with the small notebook section on the academic homepage. */
/* The highlighter stroke that sweeps under links on hover and marks the section being read. */
:root { --marker: linear-gradient(transparent 52%, #e2cdf0 52%, #f2d9c5 94%, transparent 94%); }
.blog-eyebrow { margin: 0; color: var(--subtle, #6b6174); font: 600 11px/1.6 var(--font-note); letter-spacing: .17em; }
.home-blog { margin-top: 8px; }
.home-blog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.home-blog-heading h2 { margin: 0; font: 550 var(--section-title-size)/1.22 var(--font-heading); letter-spacing: 0; }
.home-blog-heading > a { font-family: var(--font-note); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.home-blog-intro { margin: 8px 0 14px; color: #66707a; font-family: var(--font-note); }
.home-blog-entry { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 14px; position: relative; padding: 10px 16px; border: 1px solid #e7e0ef; border-radius: 6px; background: linear-gradient(115deg, #f5f1fa, #fbf8f4); text-decoration: none; transition: border-color .2s, transform .2s; }
.home-blog-entry:hover { border-color: #b9a8ce; transform: translateY(-2px); }
.home-blog-entry > span { color: #766987; font-family: var(--font-note); font-size: .78rem; }
.home-blog-entry strong { color: #493466; font-family: var(--font-heading); font-size: .95rem; font-weight: 600; }
.home-blog-entry strong span { float: right; }
.home-blog-entry + .home-blog-entry { margin-top: 7px; }

.blog-site {
  /* Body text stays near 7:1 and the smallest labels above 6:1 on the paper background. */
  --ink: #211b28; --text: #26202d; --muted: #463e50; --subtle: #564d61;
  --violet: #573878; --violet-soft: #8565a0; --line: #d8cce1;
  --sans: var(--font-heading);
  --klee: var(--font-note);
  /* Klee One is too thin at small sizes, so interface text uses its 600 weight;
     prose and the large handwritten note reset to 400. */
  margin: 0; color: var(--ink); background: #f6f3f7; font: 600 15px/1.65 var(--klee); -webkit-font-smoothing: antialiased;
}
.blog-site *, .blog-site *::before, .blog-site *::after { box-sizing: border-box; }
.blog-site::before, .blog-site::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.blog-site::before { background: radial-gradient(70vw 48vw at -8% -12%, #e6d9f266, transparent 62%), radial-gradient(60vw 44vw at 108% 108%, #f6e3d266, transparent 60%); }
.blog-site::after { opacity: .55; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .48 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.blog-site [hidden] { display: none !important; }
.blog-site a { color: inherit; text-decoration: none; }
.blog-site button, .blog-site input { font: inherit; }
.blog-site button { cursor: pointer; }
.blog-site button, .blog-site a, .blog-site input { -webkit-tap-highlight-color: transparent; }
.blog-site :focus-visible { outline: 2px solid #82629c; outline-offset: 5px; }
.blog-site ::selection { color: #352146; background: #e3d6ee; }
.blog-site h1, .blog-site h2, .blog-site h3, .blog-site p { margin-top: 0; }
.blog-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.blog-skip { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 20; }
.blog-skip:focus { top: 12px; }
.blog-header { height: 88px; }
.blog-nav { width: min(1380px, calc(100% - 28px)); height: 100%; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.blog-brand { font-family: var(--sans); font-size: 20px; font-weight: 650; letter-spacing: -.8px; }
.brand-dot { color: #9675b0; font-size: 30px; }
.blog-nav-links { display: flex; align-items: center; gap: 35px; font-size: 13px; }
.blog-nav-links a { color: var(--muted); position: relative; padding: 7px 0; }
.blog-nav-links a[aria-current] { color: var(--ink); }
.blog-nav-links a[aria-current]::after { content: ""; position: absolute; width: 4px; height: 4px; bottom: -2px; left: calc(50% - 2px); border-radius: 50%; background: #88689f; }
.blog-nav-links a:hover { color: var(--violet); }
/* Same page width as the homepage. */
.blog-main { width: min(1380px, calc(100% - 28px)); margin: 0 auto; }
.blog-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; padding: 44px 40px 44px 64px; position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; border: 1px solid #e3dce8; background: #eee8f1; }
.hero-landscape { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 84% 16%, #fff4dc 0%, #fff4dc00 34%), radial-gradient(ellipse 58% 85% at 70% 58%, #9a82bf9c 0%, #9a82bf00 72%), radial-gradient(ellipse at 78% 100%, #7f64a8d0 0%, #a58fc400 58%), radial-gradient(ellipse at 6% 100%, #cdbde0 0%, #cdbde000 45%), linear-gradient(115deg, #f1edf6 18%, #e2d6ea 56%, #ecdcde 100%); }
.hero-landscape::before, .hero-landscape::after { content: ""; position: absolute; width: 1000px; height: 420px; border-radius: 50%; transform: rotate(-22deg); translate: calc(var(--tilt-x, 0) * 12px) calc(var(--tilt-y, 0) * 8px); }
.hero-landscape::before { left: 30%; top: 67%; background: linear-gradient(170deg, #b09ac733, #8c72ad9e); box-shadow: 0 -1px #ffffff50, 0 -35px 0 0 #f9f6fb14, 0 -36px #ffffff40, 0 -76px 0 0 #e3d8ed10, 0 -77px #ffffff45; }
.hero-landscape::after { left: 51%; top: 58%; background: linear-gradient(170deg, #f5ede280, #9f82b35e); box-shadow: 0 -1px #ffffff80; translate: calc(var(--tilt-x, 0) * 22px) calc(var(--tilt-y, 0) * 12px); }
.landscape-orbit { position: absolute; border: 1px solid #fdfbffb0; width: 560px; height: 560px; border-radius: 50%; left: 55%; top: -190px; translate: calc(var(--tilt-x, 0) * -16px) calc(var(--tilt-y, 0) * -10px); }
.orbit-two { width: 690px; height: 690px; left: 49%; top: -255px; }
.orbit-three { width: 820px; height: 820px; left: 43%; top: -320px; }
.landscape-sun { position: absolute; width: 90px; height: 90px; top: 16px; right: 80px; border-radius: 50%; background: linear-gradient(160deg, #fffdf4e6, #fff4dc40); box-shadow: 0 0 90px #ffe9c270, 0 0 0 14px #fffaf018; translate: calc(var(--tilt-x, 0) * 30px) calc(var(--tilt-y, 0) * 18px); }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-copy h1 { font-family: var(--sans); font-weight: 550; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.15; letter-spacing: -1.3px; margin: 0 0 18px; white-space: nowrap; }
.hero-copy h1 em { font-style: normal; font-weight: inherit; color: #816497; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-copy h1 em, .blog-site .year-label { background: linear-gradient(115deg, #5b3f7a 10%, #9a6f9f 55%, #c49a5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-star { position: absolute; left: var(--x); top: var(--y); width: var(--s, 9px); aspect-ratio: 1; background: #fffaf2; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: .85; }
.hero-cloud { min-width: 0; aspect-ratio: 440 / 360; position: relative; translate: calc(var(--tilt-x, 0) * -8px) calc(var(--tilt-y, 0) * -6px); }
.hero-cloud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-cloud text { transition: opacity .4s, fill .4s, translate .7s cubic-bezier(.2, .8, .2, 1), scale .3s; transform-box: fill-box; transform-origin: center; }
.hero-cloud .cloud-major { cursor: pointer; }
.hero-cloud .cloud-major:hover { scale: 1.1; }
.hero-cloud .cloud-dust { pointer-events: none; opacity: .78; }
.hero-cloud .cloud-backing { opacity: .72; filter: blur(1.2px) drop-shadow(0 14px 22px #5b3f7a1f); pointer-events: none; }
.hero-cloud .cloud-marks { fill: #6a4a88; stroke: none; pointer-events: none; }
.hero-cloud .cloud-marks .glint { fill: #fffaf2; }
.hero-cloud .cloud-marks .cup { fill: none; stroke: #9a6f9f; stroke-width: 1.6; stroke-linejoin: round; }
.hero-cloud .cloud-marks .spine { fill: none; stroke: #b59ac8; stroke-width: 1.5; stroke-dasharray: 2 4; }
.hero-cloud svg:has(.cloud-major:hover) text:not(:hover) { opacity: .32; }
.hero-cloud .cloud-major:hover { fill: #3b2352 !important; }
.hero-description { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 0; max-width: 34em; }
.writing-section { padding: 42px 0 45px; scroll-margin-top: 24px; }
.archive-tools { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 26px; padding: 7px 18px 7px 7px; border: 1px solid #dfd3e8; border-radius: 999px; background: #fffffff0; box-shadow: 0 12px 30px -20px #4a326455; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter { border: 1px solid transparent; background: none; border-radius: 6px; padding: 7px 13px; color: var(--muted); font-size: 12px !important; }
.tag-filter:hover { color: var(--violet); background: #efe7f5; }
.tag-filter.active { color: #fff; background: linear-gradient(120deg, #5f4081, #7f5a92); border-color: transparent; box-shadow: 0 6px 16px -8px #57387899; }
.search-box { display: flex; gap: 9px; align-items: center; color: var(--subtle); border-bottom: 1px solid transparent; padding: 6px 0; width: 178px; flex-shrink: 0; }
.search-box svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: var(--subtle); }
.year-group { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 45px; padding-top: 32px; }
.year-label { font-family: var(--font-prose); font-style: italic; font-weight: 400; color: var(--violet); font-size: 36px; line-height: 1; letter-spacing: -.5px; margin: 4px 0 0; }
.year-label > span { display: block; font: normal 600 11px var(--klee); color: var(--subtle); margin-top: 12px; letter-spacing: .04em; }
.year-entries { min-width: 0; position: relative; padding-left: 29px; border-left: 1px solid var(--line); }
.blog-entry { position: relative; padding: 22px 26px 24px; margin-bottom: 18px; border: 1px solid #e0d4e9; border-radius: 14px; background: linear-gradient(135deg, #fffffff5, #fffbf7f0); box-shadow: 0 1px 0 #ffffff inset, 0 14px 32px -18px #4a326447; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s; }
.blog-entry:hover { transform: translateY(-3px); border-color: #c9b3da; box-shadow: 0 1px 0 #ffffff inset, 0 22px 44px -22px #6a4a8859; }
.blog-entry::before { content: ""; position: absolute; width: 17px; height: 17px; background: linear-gradient(135deg, #7e5d9f, #c48bb0); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); left: -38px; top: 24px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.blog-entry:hover::before { transform: rotate(90deg) scale(1.35); }

.entry-topline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 11px; color: var(--subtle); letter-spacing: .035em; }
.entry-reading { color: var(--subtle); }
.entry-reading::before { content: "·"; margin-right: 14px; }
.blog-entry h3 { font: 550 24px/1.4 var(--sans); letter-spacing: -.3px; margin: 11px 0 4px; }
.blog-entry h3 a { display: flex; justify-content: space-between; align-items: start; gap: 25px; }
.entry-arrow { font: 24px/1.5 var(--sans); color: var(--violet-soft); transition: color .2s, transform .2s; }
.blog-entry h3 a:hover { color: var(--violet); }
.entry-title > span, .post-toc a, .prose a, .back-link, .mark-text, .blog-nav-links a, .back-top, .home-blog-heading > a { background: var(--marker) no-repeat 0 0 / 0 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color .3s, text-decoration-color .3s, background-size .6s cubic-bezier(.2, .8, .2, 1); }
.blog-entry h3 a:hover .entry-title > span, .post-toc a:hover, .prose a:hover, .back-link:hover, .post-pagination a:hover .mark-text, .blog-nav-links a:hover, .back-top:hover, .home-blog-heading > a:hover { background-size: 100% 100%; }
/* Nav links carry vertical padding for their hit area; keep the stroke on the text itself. */
.blog-nav-links a { background-origin: content-box; background-clip: content-box; }
.back-top:hover { color: var(--violet) !important; }
.blog-entry h3 a:hover .entry-arrow { color: var(--violet); transform: translate(3px, -3px); }
.entry-excerpt { max-width: calc(100% - 56px); color: var(--muted); font-size: 13.5px; line-height: 1.85; margin-bottom: 0; }
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 4px; letter-spacing: 0; }
.entry-tags span { padding: 2px 8px; border-radius: 4px; background: #ebe1f3; box-shadow: inset 0 0 0 1px #ddcce9; color: var(--violet); font-size: 11px; }
.no-results { text-align: center; padding: 65px 15px; color: var(--muted); }
.no-results > span { font-size: 32px; }
.no-results h3 { font: 500 28px var(--sans); margin: 12px 0; }
.no-results p { font-size: 13px; }
.no-results button { border: 0; border-bottom: 1px solid #b8a6c5; background: transparent; color: var(--violet); padding: 5px; font-size: 12px; }
.blog-footer { width: min(1380px, calc(100% - 28px)); margin: 0 auto; padding: 27px 0 31px; background: linear-gradient(90deg, transparent, #c6afd8 20%, #e0c6ae 80%, transparent) top / 100% 1px no-repeat; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.blog-footer p { color: var(--subtle); font: 600 14px var(--klee); margin: 0; }
.blog-footer p::before { content: "\2726"; margin-right: 10px; color: var(--violet-soft); }
.back-top { color: var(--subtle) !important; font-size: 11px; white-space: nowrap; }
/* The homepage borrows the notebook footer; give it the Blog tokens it would otherwise lack. */
.home-footer { --subtle: #564d61; --violet: #573878; --violet-soft: #8565a0; }
.home-footer .back-top { font-family: var(--klee); text-decoration: none; }

/* Article typography, intentionally spacious enough for technical writing. */
.post-shell { display: grid; grid-template-columns: minmax(250px, 280px) minmax(0, 1fr); gap: 52px; align-items: start; padding-top: 40px; }
.post-shell.without-toc { display: block; max-width: 850px; margin: 0 auto; }
.post-content { min-width: 0; }
.mobile-toc { display: none; }
.post-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 25px; border-bottom: 1px solid var(--line); }
.back-link { font-size: 12px; color: var(--violet) !important; }
.post-header { margin: 0 0 36px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--subtle); }
.post-header h1 { font: 550 clamp(32px, 4.3vw, 50px)/1.18 var(--sans); letter-spacing: -1px; margin: 22px 0 25px; overflow-wrap: anywhere; }
.title-dot { color: #9a6f9f; }
.post-subtitle { max-width: 760px; margin: -8px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.post-byline img { border-radius: 50%; object-fit: cover; margin-right: 2px; }
.byline-rule { height: 16px; width: 1px; background: var(--line); margin: 0 6px; }
.post-tag { padding: 3px 9px; background: #ebe1f3; box-shadow: inset 0 0 0 1px #ddcce9; border-radius: 4px; font-size: 11px; color: var(--violet) !important; }
.post-layout { border-top: 1px solid var(--line); padding: 32px 0 0; }
.prose { min-width: 0; font-family: var(--font-prose); font-size: 18px; font-weight: 400; line-height: 1.25; color: var(--text); overflow-wrap: break-word; }
.without-toc .prose { max-width: 720px; margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.5em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--sans); line-height: 1.25; scroll-margin-top: 30px; }
.prose h1, .prose h2 { font-size: 28px; font-weight: 550; letter-spacing: -.4px; margin: 2em 0 .8em; }
.prose h3 { font-size: 21px; font-weight: 550; margin: 1.8em 0 .7em; }
.prose h4 { font-size: 17px; margin: 1.5em 0 .5em; }
.prose a { color: var(--violet); text-decoration: underline; text-decoration-color: #a487bb; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { color: #4f3364; text-decoration-color: transparent; }
.prose > p.has-initial::first-letter { float: left; margin: .07em .09em 0 0; color: #6a4a88; font: 400 2.95em/.85 var(--font-prose); }
.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 30px auto; border-radius: 8px; box-shadow: 0 14px 40px #4a32640f; }
.prose blockquote { position: relative; margin: 30px 0; padding: 18px 26px 18px 54px; border-radius: 14px; background: linear-gradient(120deg, #ece1f4, #f6ebe2); color: #432f55; }
.prose blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 4px; color: #a88bbf; font: italic 58px/1 var(--font-prose); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.prose li { padding-left: .2em; margin: .4em 0; }
.prose li > p { margin: .5em 0; }
.prose li::marker { color: var(--violet-soft); }
.prose hr { border: 0; margin: 44px 0; overflow: visible; text-align: center; }
.prose hr::after { content: "\2726\2002\2726\2002\2726"; color: #9c7fb4; font-size: 11px; letter-spacing: .5em; }
.prose code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .84em; color: #3d2a52; background: #e9dff1; padding: .15em .35em; border-radius: 3px; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 16px 24px; border: 1px solid #dacde4; background: #fdfcfe; border-radius: 8px; font-size: 13px; line-height: 1.25; tab-size: 4; }
.prose pre code { padding: 0; background: none; border-radius: 0; font-size: inherit; }
.code-block { position: relative; }
.code-block pre { padding-top: 16px; }
@media (hover: hover) { .copy-code { opacity: 0; transition: opacity .2s; } .code-block:hover .copy-code, .copy-code:focus-visible { opacity: 1; } }
@media (hover: none) { .code-block pre { padding-top: 40px; } }
.copy-code { position: absolute; top: 8px; right: 10px; font-size: 11px !important; color: var(--violet); background: #f3edf7; border: 1px solid #d3c3df; border-radius: 4px; padding: 3px 8px; }
.prose .copy-code { font-family: var(--font-note); font-weight: 600; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 28px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.prose th, .prose td { padding: 10px 15px; border-bottom: 1px solid var(--line); }
.prose th { background: #ebe1f3; font-weight: 600; white-space: nowrap; }
.prose .footnote { font-size: 13px; color: var(--muted); }
.prose .post-source { margin-top: 40px; font-size: 12px; }
.prose div.arithmatex { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 6px 0; margin: 24px 0; }
.prose .katex { font-size: 1.05em; }
.prose .katex-display { margin: .6em 0; }
.post-sidebar { position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow-y: auto; scrollbar-width: thin; border-right: 1px solid var(--line); padding: 3px 20px 0 0; }
.post-toc > .blog-eyebrow { color: var(--violet); font-size: 13.5px; font-weight: 700; letter-spacing: .16em; padding-bottom: 12px; background: linear-gradient(90deg, #c6afd8, #e0c6ae 70%, transparent) bottom / 100% 1px no-repeat; }
.post-toc > .blog-eyebrow::before { content: "\2726"; margin-right: 9px; color: var(--violet-soft); letter-spacing: 0; }
.post-toc ul { padding: 0; list-style: none; margin: 16px 0 0; }
.post-toc ul ul { padding-left: 12px; margin-top: 6px; }
.post-toc li { margin: 9px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.post-toc a { display: inline; }
.post-toc a:hover { color: var(--violet); }
.post-toc a.active { color: var(--violet); font-weight: 600; background-size: 100% 100%; }
.post-toc a.active-parent { color: var(--violet); font-weight: 600; }
.end-mark { font-size: 27px; color: #9c7fb4; text-align: center; margin: 37px 0; }
.post-pagination { display: flex; justify-content: space-between; gap: 35px; border-top: 1px solid var(--line); margin: 0 0 70px; padding-top: 25px; }
.post-pagination a { display: grid; gap: 9px; max-width: 47%; }
.post-pagination a > span { color: var(--subtle); font-size: 11px; }
.post-pagination strong { color: var(--violet); font: 500 19px/1.4 var(--sans); }
.post-pagination a:hover strong { color: #4c345d; }

@media (max-width: 900px) {
  .blog-hero { gap: 20px; padding: 32px 24px 32px 36px; }
  .hero-description { font-size: 13px; }
  .year-group { grid-template-columns: 75px minmax(0, 1fr); gap: 22px; }
  .post-shell { display: block; padding-top: 28px; }
  .post-sidebar { display: none; }
  .post-content { max-width: 720px; margin: 0 auto; }
  .mobile-toc { display: block; margin-bottom: 30px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; }
  .mobile-toc summary { color: var(--violet); cursor: pointer; font-size: 12px; font-weight: 600; }
  .mobile-toc .post-toc { max-height: 350px; overflow-y: auto; }
  .prose, .post-header { max-width: 720px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .home-blog-entry { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 9px 13px; }
  .blog-header { height: 74px; }
  .blog-nav, .blog-main { width: calc(100% - 28px); }
  .blog-nav-links { gap: 22px; font-size: 12px; }
  .blog-brand { font-size: 18px; }
  .blog-hero { display: block; min-height: 0; padding: 24px 20px; border-radius: 11px; }
  .hero-cloud { width: 100%; margin: 18px 0 0; }
  .hero-copy h1 { font-size: clamp(28px, 8.4vw, 46px); margin-bottom: 12px; letter-spacing: -.8px; }
  .hero-description { font-size: 13px; line-height: 1.7; }
  .landscape-sun { right: 17px; width: 100px; height: 100px; top: 38px; }
  .landscape-orbit { left: 28%; }
  .orbit-two { left: 9%; }
  .orbit-three { left: -12%; }
  .writing-section { padding: 30px 5px; }
  .archive-tools { flex-wrap: wrap; gap: 15px; padding: 10px 12px; border-radius: 16px; }
  .tag-filter { padding: 6px 10px; }
  .search-box { width: 100%; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 12px; }
  .year-group { display: block; padding-top: 27px; }
  .year-label { display: flex; gap: 12px; align-items: baseline; font-size: 32px; margin: 0 0 23px; }
  .year-label > span { margin: 0; font-size: 10px; }
  .year-entries { margin-left: 4px; padding-left: 21px; }
  .blog-entry { padding: 18px 16px 20px; }
  .blog-entry::before { width: 15px; height: 15px; left: -29px; top: 25px; }
  .blog-entry h3 { font-size: 22px; }
  .blog-entry h3 a { gap: 15px; }
  .entry-excerpt { max-width: none; font-size: 12px; line-height: 1.9; margin-bottom: 0; }
  .entry-topline { font-size: 10px; }
  .entry-tags { gap: 6px; margin-left: 0; }
  .entry-tags span { font-size: 10px; }
  .blog-footer { width: calc(100% - 28px); gap: 12px; padding-top: 22px; }
  .blog-footer p { font-size: 13px; }
  .blog-footer .back-top { font-size: 10px; }
  .post-topline { padding-top: 17px; padding-bottom: 20px; }
  .post-topline .blog-eyebrow { font-size: 10px; }
  .post-header { margin: 0 5px 29px; }
  .post-header h1 { font-size: 34px; letter-spacing: -.6px; }
  .post-subtitle { font-size: 14px; margin-top: -9px; }
  .post-layout { padding-top: 30px; }
  .prose { font-size: 17px; margin: 0 5px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 20px; }
  .prose pre { padding-left: 17px; padding-right: 17px; font-size: 12px; }
  .prose blockquote { padding: 15px 19px 15px 44px; }
  .prose blockquote::before { left: 12px; font-size: 48px; }
  .post-pagination { gap: 20px; margin-bottom: 45px; }
  .post-pagination strong { font-size: 17px; }
}
@media (max-width: 360px) {
  .blog-nav-links { gap: 15px; }
  .blog-footer p { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .blog-site .hero-copy { animation: blog-appear .8s both; }
  .hero-star { animation: twinkle 4.6s ease-in-out var(--d) infinite; }
  .hero-cloud.is-ready text { animation: cloud-in .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 4ms); }
  .hero-cloud.is-ready .cloud-major { animation-delay: calc(var(--i) * 45ms); }
  @keyframes blog-appear { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
  @keyframes twinkle { 0%, 100% { opacity: .25; scale: .6; } 50% { opacity: .95; scale: 1; } }
  @keyframes cloud-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .home-blog-entry, .entry-arrow, .entry-title > span, .post-toc a, .prose a, .back-link, .mark-text, .blog-nav-links a, .back-top, .home-blog-heading > a { transition: none; } }
@media print {
  .blog-header, .blog-footer, .post-topline, .post-sidebar, .mobile-toc, .post-pagination, .copy-code, .stardust, .blog-site::before, .blog-site::after { display: none; }
  .blog-site { background: white; }
  .blog-main { width: 100%; max-width: none; }
  .post-shell { display: block; }
  .prose { font-size: 11pt; }
}
.stardust { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
