Hugo Ferris

Available for one new project

Get in touch

Available for one new project

How this site is built

Every page works as plain HTML and CSS, and every change is tested before it goes live.

The stack

The site is written in SvelteKit and TypeScript. Every page but Book a call becomes an HTML file when the site is built, and Cloudflare serves it from its network without running any code. Book a call’s free times change as calls are booked, so a Cloudflare Worker renders it on every visit. UnoCSS generates the styles from the classes the pages use. They’re inlined into each page, so there’s no stylesheet to wait for. The text is set in Inter, a variable font served from the site itself.

What it leaves out

The site sets no cookies, and the only thing it loads from elsewhere is Cloudflare’s Web Analytics beacon, which counts visits without cookies. No framework runs in your browser. Besides the beacon, the only JavaScript is the site’s own: small scripts that each make one feature better where it appears, such as copying the email address or searching Book a call’s list of time zones. Most pages are text and links, which HTML and CSS handle on their own. Leaving the rest out keeps them light, and they still work with JavaScript turned off.

How it’s checked

Every change is tested on a production build of the site before it goes live. On every page, the tests check:

  • Accessibility: axe finds no violation of WCAG 2.2 at level A or AA, or of the AAA rules and best practices it checks, at 390 and 1280 pixels wide.
  • Weight: the start of the HTML, with its styles and headers, down to the end of a phone’s first screen, is about 14 KB as it’s sent, the size of a first round trip, and never more than 15 KB. A whole first visit is about 100 KB, and never more than 105 KB.
  • Screen readers: what they’re given matches a saved, word-for-word record, so any change to it shows up for review.
  • Security: a strict content security policy, and no errors in the console.
  • Metadata: its own title, a description, a canonical address and a link preview.

Larger changes also get a preview of their own, where the tests run again and Lighthouse has to score 100 for performance, accessibility, best practices and SEO on every page, measured as a phone on a slow connection. Once a change is live, the tests run once more on hugoferris.com.

The design system

Colors, type sizes and spacing are each defined in one file, and the CSS utilities offer nothing outside them. A test fails if any text color has less than 7:1 contrast with a background it’s used on, the level WCAG calls AAA. Type comes in eight roles, each a size, a line height and a weight. Sizes are in rem, so they follow your browser’s text size, and body text grows from 17px on a phone to 18px on a laptop. Every margin and gap is one of nine steps, each a multiple of the body size.

For search engines and AI agents

The home page and each case study describe themselves in schema.org structured data, a sitemap lists every page, and llms.txt sums up the site for AI agents. For them, every page also has a copy of its words in plain Markdown, at its address with .md added, and llms-full.txt holds the whole site in one file. The site writes all of these itself, from the pages as they’re served, so they always say what the pages say.

An agent can also ask the site a question. Cloudflare keeps an index of the pages, refreshed daily, and answers a request for /.well-known/search with a question in q by sending back the matching passages in Markdown.

Where it runs

Cloudflare hosts the site, runs its DNS and counts its visits. Book a call reads the free times from a Cloudflare database in the US and keeps the bookings there. Cloudflare also builds and deploys every change from the code on GitHub.