/* Documentation site styling. * * A plain asset, copied through the build untouched — which is also how any other CSS, * image or font in a source directory reaches the output. */ :root { --ink: #1c1f24; --muted: #5b6472; --rule: #dfe3e8; --accent: #0b5fa5; --surface: #f6f8fa; --measure: 42rem; } @media (prefers-color-scheme: dark) { :root { --ink: #dee3ea; --muted: #9aa4b2; --rule: #2b3138; --accent: #79b8ff; --surface: #171a1f; } body { background: #0f1216; } } * { box-sizing: border-box; } body { margin: 0; color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } header.site { border-bottom: 1px solid var(--rule); padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: baseline; } header.site .site-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; } header.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; } header.site nav a { color: var(--muted); text-decoration: none; } header.site nav a:hover { color: var(--accent); } main { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.5rem 5rem; } h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -0.02em; } h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; letter-spacing: -0.01em; } h3 { font-size: 1.1rem; margin: 2rem 0 .5rem; } p.page-date, p.lede { color: var(--muted); } p.lede { font-size: 1.1rem; margin-top: 0; } a { color: var(--accent); } code { font: 0.875em/1.5 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; background: var(--surface); padding: .1em .35em; border-radius: 3px; } /* Code blocks are dark in both colour schemes, matching the syntect theme named in orgo.toml. One generated stylesheet cannot follow prefers-color-scheme, so the page commits to the theme's palette instead of leaving highlighted code unreadable in one of the two. */ pre { background: #2b303b; color: #c0c5ce; border: 1px solid #1f232b; border-radius: 6px; padding: .9rem 1rem; overflow-x: auto; } pre code { background: none; padding: 0; } blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--rule); color: var(--muted); } table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; display: block; overflow-x: auto; } th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--rule); } th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; } /* Table of contents, emitted from page.toc */ nav.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: .75rem 1.25rem 1rem; margin: 1.5rem 0 2.5rem; } nav.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: .25rem 0 .5rem; color: var(--muted); } nav.toc ul { margin: 0; padding-left: 1.1rem; } nav.toc li { margin: .15rem 0; } ul.post-list { list-style: none; padding: 0; } ul.post-list > li { padding: 1rem 0; border-bottom: 1px solid var(--rule); } ul.post-list a { font-weight: 600; font-size: 1.05rem; } p.excerpt { margin: .35rem 0 .2rem; color: var(--muted); } span.reading-time { font-size: .85rem; color: var(--muted); } footer.site { border-top: 1px solid var(--rule); padding: 1.5rem; color: var(--muted); font-size: .9rem; text-align: center; } .tag { font-size: .75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .1em .6em; color: var(--muted); }