New site design
Disclosure: Drafted with AI assistance, then reviewed and edited.
The old site was l33t. That was the point, at the time: dark, loud, and more gadget than writing. I don’t regret it, but I also don’t want to maintain it. I had to grow up and get an adult site.
This is it.
The old blog isn’t gone
The old blog has its own home at archive.paige.bio — there’s a link in the menu now. Nothing is being deleted; it is just being put somewhere it can sit still. If you followed an old link and landed here, that’s why.
Type and colour
The old site shouted; this one is quiet on purpose. There’s no palette to speak of: one near-black (#111, softer than pure black) on white, and a hairline at ten percent opacity wherever a box would have gone. Type carries the hierarchy — a heavy, tight title, small uppercase labels with wide tracking for dates and meta rows, section headings closed with a single ink rule. Controls are square, text selection inverts to ink, focus is a plain offset outline, and reduced motion is respected. The only colour on the site is a purple gradient across a couple of bookmark words, which is exactly why it works: it’s the exception.
The fonts do most of the work. Inter is a neo-grotesque designed for computer screens — tall x-height, open apertures, and deliberately disambiguated glyphs like 1, l, and I, so it stays readable at 13px in a meta row and still looks clean as a 36px title. I’m loading the 300–700 weights through @fontsource/inter. IBM Plex Mono is IBM’s own monospace: less typewriter, more considered industrial, with a real italic rather than a slanted roman, and enough warmth that a run of URLs doesn’t look like a terminal dump. I load its 300–700 weights and the italics I actually use through @fontsource/ibm-plex-mono. They’re similar in temperament — both neutral, both made for screens — but their rhythms are different enough that your eye separates prose from interface without any colour helping.
Every link is Plex Mono italic. The italic is the affordance; hover adds a one-pixel underline instead of a weight change, because a heavier Inter reflows the line under your cursor. The wordmark is the same pair in miniature: paige upright and bold, .bio light and italic. The label styles carry a :not(:where(svg *)) guard so Mermaid’s SVG <g class="label"> nodes don’t inherit them — diagrams shouldn’t start looking like UI chrome.
Astro and the build
The site is a static Astro 7 build. Tailwind 4 comes in through @tailwindcss/vite; there’s no tailwind.config, just @theme tokens, a small :root design-system layer (--ds-* type scale, spacing, rules, measure), and shared recipes in src/styles/global.css. The typography plugin styles prose, but I lift its 65ch container cap so articles fill the shell while paragraphs keep a readable measure. Prism handles syntax highlighting through markdown.syntaxHighlight: 'prism' — @astrojs/prism isn’t wired as an integration, and Vite needs resolve.noExternal: ['@astrojs/prism'] to keep it from breaking during prerender.
The build is deliberately boring. npm run build runs a prebuild step first, then Astro, and npm run lint is the other check. Content is validated at build time: malformed dates, bad frontmatter, and album metadata mistakes fail the build instead of quietly shipping a broken page. The dev server binds 0.0.0.0:4321 with allowedHosts: true so I can reach it through a proxy while I’m working; production builds don’t care.
Plugins and integrations
The Astro config is small, but each integration earns its place. @astrojs/mdx lets posts mix Markdown with components. @astrojs/sitemap generates the sitemap. astro-icon bundles the full Font Awesome 6 solid, regular, and brand sets — the icon set is intentionally inlined, so I can reach for any FA6 icon without thinking about per-icon imports.
@casoon/astro-structured-data generates the canonical/OG/Twitter meta from schema components, with siteName and locale set once in config. astro-mermaid renders fenced Mermaid diagrams in .md posts; I run it with htmlLabels: false because iOS Safari misrenders Mermaid’s <foreignObject> labels, and I give Sankey diagrams height: 560 so the thinnest arms have room for two-line labels. Mermaid fences don’t work in MDX the same way, so in MDX I use an explicit <pre class="mermaid"> with a template literal and let the client script upgrade it.
A few smaller packages do quiet jobs: astro-navbar handles the responsive nav/menu behaviour, astro-breadcrumbs draws the post breadcrumbs, astro-social-share renders the icon-only share row in the footer, and astro-obfuscate keeps the contact email addresses out of plain HTML (it needed an Astro peer override in package.json). astro-seo is installed but I don’t use its <Seo> component — meta comes from the structured-data components.
Things I had to make
Some parts needed to be mine, not a dependency.
The data table is a plain semantic <table> rendered on the server, with a small client script for sorting, search, and pagination. I built it because the free ZingGrid build puts a watermark on the table unless you pay for a license key. Search filters across all columns and resets to page one; sort, search, and pager share one render path; and on wider screens the widget reserves the height of the tallest full page so short last pages don’t make the controls jump around.
The photo system is a content collection with one folder per album: index.md holds the metadata, and every image in the folder has to be declared in its photos map. A missing file, an undeclared file, or a slug collision fails the build. src/utils/photos.ts reads EXIF with exifr, merges the album data, and hands PhotoGrid a justified flex layout. The lightbox is Fancybox with the Sidebar plugin, so a click gives you the filename, dimensions, file size, EXIF details, and caption; each grid gets its own group name so embeds don’t merge into one giant lightbox. AlbumGallery.astro is the small wrapper I drop into MDX posts when I want a curated slice of an album.
The Web Bluetooth console in the XIAO post talks to the Nordic UART Service: service 6e400001-…, write …0002, notify …0003. It feature-detects navigator.bluetooth, streams received bytes through a TextDecoder because 20-byte notifications can split UTF-8, chunks writes to 20 bytes, and shows a disabled state on browsers that can’t do Web Bluetooth. The client script lives in the .astro component so Astro bundles it — raw <script> in MDX is the wrong place for it.
The bookmark favicons are fetched at build time by scripts/fetch-favicons.mjs. It takes one request per unique bookmark domain, tries Google’s favicon service first and DuckDuckGo second, sniffs the bytes to pick the right extension, and writes the result to public/favicons/. Failures warn and fall back to a globe icon; they never fail the build.
The résumé PDF has its own script, scripts/generate-resume-pdf.mjs. After the site is built, it starts an Astro preview, aborts analytics requests, waits for document.fonts.ready, and prints /resume/ to dist/dl/cv.pdf with Playwright/Chromium using the page’s print CSS and A4 preferCSSPageSize. Playwright doesn’t ship a FreeBSD browser, so the script falls back to a system Chrome path there. CI runs it after every build.
The analytics loader is a tiny component instead of another integration: it renders a data element and a bundled script that initialises @analytics/google-analytics and @microsoft/clarity only when IDs are configured in src/config/site.ts. No GTM, no Yandex, no mystery payload.
Content Security Policy
A static site still gets a real policy. In astro.config.mjs everything starts at default-src 'self', with object-src 'none', form-action 'self', and worker-src 'self', and Astro hashes every inline script and style as it builds, writing those SHA-256 hashes into the policy. strict-dynamic lets a trusted script load its own dependencies, which is what the bundled analytics loader does. There are no per-request nonces to rotate — the policy is generated once, with the pages.
The loader is the only thing that calls outward: connect-src and img-src name just the Google Analytics and Clarity endpoints. script-src has no host allowlist at all — browsers that honour strict-dynamic ignore it, so keeping one would be a fallback that lies about what’s allowed.
One directive can’t travel with the rest: browsers ignore frame-ancestors in a <meta>-delivered CSP, which is how a static Astro build ships it. frame-ancestors 'none' and X-Frame-Options: DENY therefore live in public/_headers, which GitLab Pages serves as real HTTP headers. The header stops the site being framed; the meta policy covers everything else. Same idea as the rest of the design — each mechanism has one job, and nothing is decoration.
Mobile was the real reason
The old layout tolerated a phone. This one is built for one. Gutters step from 16px to 24px to 32px as the screen widens, grids collapse into single columns, and the footer rearranges itself instead of overflowing. The big package tables scroll horizontally and have search and pagination; galleries and their lightbox work with touch; images are sized by the build rather than shipped at full resolution and scaled by the browser. I’ve checked the pages at phone, tablet, and desktop widths specifically for horizontal overflow, because “it looks fine on my monitor” is how you end up with a site that is miserable to read on a train.
The point of it
It’s meant to be a place to write about the T5325, routing tables, and whatever else is on the bench — not a statement of identity expressed in CSS. The l33t version had its moment; the archive will keep it honest. This one just needs to be readable, quick to change, and not fall over in a phone browser.