Lumen
A dark ink-blue page lit like a drawing board: blurred cones of light over an engineering grid, opaque cards with a lit top edge and a pointer spotlight, small-caps labels, and a floating nav with a lamp over the current section.
Paste this into an agent to rebuild the whole page from scratch.
Build a one-page personal site for an engineer who writes, in a dark-first style where depth comes from light rather than blur or drop shadows: opaque ink-blue surfaces, a `1px` lit top edge on every card, a soft spotlight that follows the pointer, and blurred cones of light falling over an engineering grid. It should read like a set of technical drawing sheets under studio lamps, with a real daylight theme rather than an inverted one. The page runs a home hero, post shelves, a writing shelf, an article treatment, projects, short stories, an about block, a pattern library with a working specimen, a closing row of panels and a footer.
Centre everything in a wrap of `min(1200px, 100% - 2 * gutter)` with the gutter at `clamp(16px, 4vw, 40px)`. Float the nav as a fixed bar `16px` from the top, `min(1040px, 100% - 24px)` wide, `16px` radius, opaque, holding a `32px` gradient monogram tile and name on the left, six text links at `44px` height, and a `44px` theme toggle. Sections take `clamp(56px, 8vw, 104px)` of vertical padding and alternate between the ground colour and a deeper sunk colour bounded by hairlines. Each section head is a small-caps index line (a `28px` by `2px` glowing dash, a two-digit number, a slash, the section name) above an h2, with an optional arrow link on the right from `760px`. Card grids use `repeat(auto-fill, minmax(min(100%, 300px), 1fr))` with a `20px` gap; the wider variant uses `420px` and the four-up variant `250px`. A feature card spans the full row and, from `900px`, splits into an image column and a text column at `1.25fr 1fr`.
Use system fonts only: `-apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif` for headings, body and labels, and `ui-monospace, "SF Mono", Menlo, Consolas, monospace` for chips, counts, figures and code. The display headline is `clamp(2.5rem, 5.4vw, 4.5rem)`, weight 680, tracking `-0.035em`, line height `1.02`, filled with a vertical gradient clipped to the text (white to `#a9c4e6` in the dark theme, `#0d1826` to `#2a3f54` in the light one). Section titles are `clamp(1.75rem, 3.2vw, 2.5rem)` at weight 650 and `-0.02em`. Body is `1rem` at `1.6`, the lede `1.1875rem`, card titles `1.25rem`. **Labels are the chrome voice**: `font-variant-caps: all-small-caps` at `1.0625rem`, weight 600, tracking `0.08em`, with slashes at 55% opacity between parts. Mono chips are `0.8125rem` in a `7px`-radius box.
Dark is the default. Ground `#0a1019`, deep ground and image wells `#060a11`, surface `#0e1622`, raised surface `#131d2c`; hairlines are `rgb(150 185 230 / 0.11)` and `0.22` for the strong one. Text is `#eff4fb` for headings, `#bcc8d9` for body and `#8e9fb5` for dim labels; the accent is sky `#8ab8f2`, the lamp colour `#e6f0fc`, and one warm amber `#e8b86a` is reserved for notices and Updated badges. Primary buttons are filled `#e6f0fc` with dark text and a soft blue glow beneath; secondary buttons are raised surface with a strong hairline. The light theme is daylight: ground `#edf1f6`, white surfaces with a pure white top edge and soft downward shadows such as `0 18px 36px -20px rgb(20 40 70 / 0.28)`, text `#0d1826` and `#33445a`, accent `#2c5a90`, and the brand slate `#2a3f54` to `#364f6a` as the button fill and lamp colour, with amber darkened to `#8a5a0b`. Store the choice under one `localStorage` key inside try/catch, apply it before first paint, and let the page work with storage blocked.
Two devices carry the design. First, **one lit material for every surface**: an opaque card with a `14px` radius and hairline border whose `::before` is a `1px` strip painted with `radial-gradient(38% 1px at var(--pointer-x, 28%) 0, rgb(215 232 255 / 0.75), transparent)`, and whose `::after` is a `460px` radial spotlight at about 13% alpha centred on `--pointer-x` and `--pointer-y`, at opacity 0 until hover or focus-within and fading over `220ms`. A single `pointermove` listener writes the two coordinates onto the nearest lit surface; never transition the coordinates, only the opacity, and skip the listener when the device cannot hover. Linked cards also lift `2px`. Second, **the stage**: the hero fills `min(100svh, 940px)` over a radial wash from `#142238` to the ground, with a grid drawn from four `1px` gradients at `28px` and `140px` pitch in 7% alpha lines, masked by a radial ellipse so it fades at the edges. Over it sits a second, brighter copy of the grid at 30% alpha, masked to a `240px` circle at the pointer so the lines light up only inside the pool of light. Behind the copy, three beams (tall trapezoids clipped with `polygon(46% 0, 54% 0, 100% 100%, 0 100%)`, a 20% alpha gradient fading to nothing, the whole layer blurred `22px`) hang from above the top edge at different positions, widths and angles. The hero is a `1.08fr 0.92fr` split from `940px`: a ruler of five ticks with the last one lit, a small-caps sheet label, the display headline, the lede, a three-tile stat strip and three buttons on the left, and a portrait in a lit frame with `10px` of matting and a two-part small-caps caption on the right.
Listings are image cards throughout. Each image sits in a 3:2 well on the deep ground with a `20px` grid and `object-fit: contain`, so nothing is ever cropped; banner art uses a `2.381 / 1` well. A post with no image gets generated art: a mono keyword such as `useEffect()` centred in the well under a small blurred cone with a `2px` lamp bar at its top. Below the well come a small-caps label of collection and date, the title as a link stretched over the whole card, a paragraph, and mono chips. Stat strips are joined tiles: a grid with `gap: 1px` whose container paints the hairline colour, each tile painting the surface, figures at `1.75rem` with tabular numerals. The writing shelf adds pill filters `44px` tall, with a mono count in each and a lit gradient plus an inset `2px` lamp line on the pressed one, then a full-width series card and a panel of tag chips. The article treatment opens on a compact stage with one wide beam, a breadcrumb, a medium display title, meta row and a framed banner; its body is `1.125rem` at `1.75` with children capped at `35rem` and figures widening to `820px`, h2s under a hairline with a lit hot spot, dash-marked list items, quotes as panels with a `2px` accent left edge (amber for callouts), a sticky `250px` contents rail from `1100px` that becomes a disclosure below it, and a `3px` glowing reading bar across the top while the article is on screen.
After the article, open projects and the pattern library on their own compact stages, each aimed differently: projects with three beams raking in from the top left at `-30deg` to `-62deg`, the pattern library with three narrow vertical downlights at 22%, 50% and 78%. Projects show a feature card carrying a stat strip, then repository cards. A consulting band follows: a full-width strip on the deep ground with a lit top edge, a radial glow from the top centre, one sentence at `clamp(1.375rem, 2.6vw, 1.875rem)` and a button. The stories section adds an amber-edged notice and dimmed cards for unpublished parts. About is a grid of numbered principle cards each holding a `1.375rem` quote, four capability cards of label, sentence and chips, and a small framed photo beside three text panels. The pattern library explains itself in a three-cell hairline block with a full-width note, then offers a search field, category pills, a count line with a sort select, and cards whose wells hold small drawings made of rounded bars in spotlight tints with one lit in the accent. Finish with a tabbed specimen (Preview, CSS, Prompt) whose preview runs a hairline stat strip on a gridded well, including a second strip whose tiles filter the list below, then three closing panels of pitch, project links and contact links, and a four-column footer with a newsletter field.
Motion is quiet. Controls ease over `180ms` with `cubic-bezier(0.2, 0.7, 0.2, 1)`. On first load the lights come up once: each beam scales in from `scaleY(0.2)` and opacity 0 over `520ms`, staggered by `140ms`, the grid fades in over `700ms`, and the hero copy and portrait rise `14px` over `480ms` in `60ms` steps, all with a backwards fill so everything is visible if the animation never runs. After that the beams sway `2.5deg` either side of their angle over 16, 21 and 26 seconds, alternating. **The nav has a lamp**: a `2px` bar on the top edge of the nav at 62% of the item's width, with a trapezoid of light falling on the item beneath it. It sits over the item for the section being read (take the last tracked section whose top has passed 40% of the viewport height), glides to a hovered or focused item and back over `300ms` with `cubic-bezier(0.3, 1.35, 0.5, 1)`, and the article lights its parent, Writing.
Keep the light restrained: spotlights stay under 15% alpha and beams under 20% in the dark theme, surfaces stay opaque with no backdrop blur, and colour stays in the blue band with amber as the only exception. A glowing border, a coloured card or a second accent would break it. Below `940px` the hero stacks; below `860px` the nav links collapse into a sheet under a menu button, where the current item gets a lit gradient row and a small-caps You are here tag; grids fall to one column, the three-way block and pager stack, and a stat strip inside a card turns into rows. Nothing may scroll sideways at `400px`. Under `prefers-reduced-motion` remove every animation, cut transitions to nothing, turn off smooth scrolling, and render the hero in its final lit state.
One self-contained file: markup, styles and scripts together.
Loading the page source…
The whole Lumen system on one page: the lights-up home hero and its post shelves, then the writing shelf, the article treatment with its contents rail, projects, the I, AI stories, the about cards and the pattern library with a working stat-strip specimen. Depth comes from light instead of blur or shadow, and the light theme is a real daylight mode rather than an inversion.
Sections, top to bottom
- Lights-up home hero
- Start here: three posts
- AI & Machine Learning cards
- Digital Garden cards with generated art
- AI Experiments tiles
- Writing shelf with collection filter, series card and tags
- Article treatment: header stage and banner
- Article body with contents rail
- Projects stage with raking beams
- Featured project: UI Pattern Library
- Open source cards
- Consulting band
- I, AI short stories
- Principles
- Capabilities
- Beyond code
- Pattern library stage with three downlights
- Every pattern, three ways
- Pattern library with search, category pills and sort
- Working specimen: hairline stat strip in tabbed panes
- Let’s build panels
- Footer
- Type
- System sans: -apple-system, BlinkMacSystemFont, Segoe UI (headings, body, small-caps labels) · System mono: ui-monospace, SF Mono, Menlo (code, chips, figures)
- Themes
- light+dark
- Palette
#060a11#0a1019#0e1622#131d2c#364f6a#8ab8f2#e6f0fc#e8b86a#edf1f6#ffffff