Soft Depth
A matte slate page where cards, plates and a deck of five keycaps are raised out of one continuous ground and stats, chips, inputs and image wells are pressed into it, with a 1.5px edge on every control and a raised key that glides along the dock.
Paste this into an agent to rebuild the whole page from scratch.
Build a personal site as one long page in soft UI done accessibly: a single continuous matte slate ground where every piece is either raised out of it (cards, plates, keys, buttons) or pressed into it (stat wells, chips, inputs, quotes, tab panes). There is no glass, no blur and no gradient. Two things make it work. **All depth is one pair of shadows from an implied top-left light**, and a pressed surface is the same pair turned inset. **Every control also carries a real `1.5px` edge** that reaches 3:1 against both the ground and the well, so shadow is never the only cue. Keep depth to three levels (raised, flat, pressed) and never stack a raised piece on a raised piece on a raised piece.
Center content in a wrap of `min(1200px, 100% - 2 * gutter)` with a gutter of `clamp(16px, 4vw, 40px)`, and give the main element `112px` of top padding to clear a fixed dock. Sections stack with `clamp(40px, 7vw, 88px)` of block padding. Each opens with a head row (flex, wrapping, aligned to the bottom): a small uppercase label, an `h2`, one sentence, and an optional button pushed to the right. Card grids are `repeat(3, minmax(0, 1fr))` with a gap of `clamp(20px, 2.4vw, 32px)`, plus a four-column variant. Radii are `26px` for cards, `30px` for large plates and basins, `16px` for wells and `14px` for controls; chips and the theme switch are full pills.
Use system fonts only, no webfonts. Headings, navigation, labels and controls use a rounded stack, `ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif`, at weight 800 for headings and 600 to 700 for controls, with `line-height: 1.12` and `letter-spacing: -0.015em`. Reading text uses `-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif` at `17px` and `1.6`. Code and debossed keywords use `ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace`. The hero title is `clamp(40px, 5.6vw, 76px)`, section headings `clamp(30px, 3.6vw, 46px)`, card titles `22px`, card text `16px`. Labels are the only small type: `13px`, weight 700, uppercase, `0.09em` tracking.
Define everything as tokens. Light theme: ground `#e3e8ee`, raised `#e9edf2`, well `#d8dee6`, ink `#16202b`, body text `#2c3847`, muted `#4a5868`, edge `#66778b`, hairline `rgba(54, 79, 106, 0.16)`, accent `#364f6a` (hover `#2a3f54`, white text on it) and a copper state colour `#9a4a12`. The light is `rgba(255, 255, 255, 0.92)` and the shade `rgba(98, 116, 139, 0.44)`. The shadow recipes are: **raised** `-7px -7px 16px` light plus `9px 9px 22px` shade; **raised small** `-3px -3px 8px` light plus `4px 4px 10px` shade; **lifted** (the dock and hovered cards) `-9px -9px 20px` light plus `14px 14px 30px` shade; **well** `inset 3px 3px 7px` shade plus `inset -3px -3px 7px` light; **pressed** `inset 2px 2px 5px` shade plus `inset -2px -2px 5px` light. Dark mode is its own surface, not an inversion: ground `#1c232c`, raised `#222a35`, well `#151b22`, ink `#edf1f6`, body `#c9d2dc`, muted `#a3b0bf`, edge `#7f90a5`, accent `#94b6da` with `#101820` text, copper `#e5a56b`, light `rgba(255, 255, 255, 0.055)`, shade `rgba(0, 0, 0, 0.6)`. White highlights vanish on a dark ground, so in dark mode shorten the highlight to `-6px -6px 14px` and add a lit upper rim, `inset 0 1px 0 rgba(255, 255, 255, 0.07)`, to every raised recipe. Set the theme on the root element from a stored choice or `prefers-color-scheme`, reading and writing storage inside try/catch. The switch is a `68px` by `44px` pressed pill with a `33px` raised knob that slides `24px` in `200ms`.
The dock is fixed `16px` from the top, `min(1080px, 100% - 2 * gutter)` wide, a raised bar with a `24px` radius and the lifted shadow. It holds a `40px` accent square with the initials and the name, then the links inside a pressed track (well colour, `18px` radius, `5px` padding), then the theme switch. The links are `44px` tall at `16px`, weight 600. Behind them a single raised key, absolutely positioned with the edge border, a `13px` radius and a `14px` by `3px` copper marker at its bottom centre, glides to whichever link is hovered or focused and back to the current one, animating `transform` and `width` over `260ms` with `cubic-bezier(0.3, 1.35, 0.5, 1)`; the current link is the section in view and is also weight 800. Buttons are at least `48px` tall with `10px 22px` padding, the edge border and the raised-small shadow; hover takes the raised shadow and `translateY(-1px)`, active takes the pressed shadow, the well colour and `translateY(1px)`, all over `140ms cubic-bezier(0.3, 0.7, 0.4, 1)`. The primary button is a solid accent fill, never a same-colour pillow. A segmented control is a pressed track whose selected segment is raised, bordered, weight 800 and led by an `8px` copper dot. Chips are pressed pills; inputs are wells with the edge border, at least `50px` tall.
The hero is a grid of `minmax(0, 1.05fr) minmax(0, 0.95fr)`: a copper label, the title, a lede at `clamp(18px, 1.6vw, 21px)`, three stat wells (figure `28px`, weight 800, tabular numerals, a label under it), and a button row. The portrait sits in a soft frame, a raised bezel with `14px` padding around a pressed well; paint the well's inset shadow on an `::after` layer so it sits above the picture, and always use `object-fit: contain` so images are matted by the well, never cropped. A raised pill tag with a `9px` copper lamp overlaps the frame's lower left. Under the hero put a deck of five keycaps, one per section: a pressed basin with `repeat(5, minmax(0, 1fr))`, `18px` gap and padding, each key a raised tile with a `20px` radius, the edge border, a `30px` accent icon, a `20px` name and a short count. Cards are raised with `12px` padding: a 3:2 image well, then a label and date row, the title, the text, and chips pinned to the bottom; hover lifts `3px` with the lifted shadow and active presses in. A post with no picture gets its keyword debossed into the well: mono, weight 800, `clamp(22px, 2.8vw, 32px)`, coloured `color-mix(in srgb, edge 45%, well)` with a text shadow of `-1.5px -1.5px 1px` dark and `1.5px 1.5px 1px` light.
After the hero come three featured cards, a six-card AI grid, a four-up writing row mixing pictures and debossed keywords, and a four-up experiments row. The projects section is a frame holding a shelf of three wells with `52px` of bottom padding, and a lifted plate `min(620px, 100%)` wide resting on its corner with `margin-top: -40px`, carrying the title and a segmented jump nav; below it a featured plate splits `0.9fr 1.1fr` between copy with stat wells and a picture well. The archive is a segmented filter with counts over a card grid and a status line that states what is shown. The stories section pairs a plate with a pressed notice, then five cards of which the two unpublished ones are **empty dashed wells** (well colour, `1.5px dashed` edge, inset shadow): not yet made, so not yet raised. Principles are numbered raised tiles in `repeat(auto-fit, minmax(240px, 1fr))` at `20px`, weight 700, with copper counters; capabilities are rows of `0.8fr 1.2fr` inside one plate, split by hairlines, with pressed chips. The article sets prose directly on the ground at `18px` and `1.72` in a `35rem` measure, with figures in raised frames up to `820px`, quotes as wells labelled Quoted, the opening callout as a raised card with a `5px` copper left edge, inline code pressed in, a two-column contents plate whose current entry is raised, and a `5px` accent reading bar across the top. The pattern library has a search well, a category filter, a sort select, cards whose wells hold small SVG specimens drawn in accent, edge and copper, and an empty state in a basin; the pattern detail is a frame with a tab list over a pressed pane, and the live preview inside keeps flat white tiles and hairline borders so it reads as a specimen. Close with a plate band of `minmax(0, 1fr) auto` and a footer plate of `1.2fr 0.8fr 0.8fr 1.4fr` with a newsletter field.
Motion is small and physical. Once per visit the hero pieces rise out of the surface: `440ms cubic-bezier(0.25, 1.2, 0.5, 1)` from `opacity: 0`, `translateY(10px) scale(0.985)` and no shadow, staggered `70ms`, finished in under `900ms`, with a backwards fill only so content is visible if the animation never runs; remember the visit in session storage inside try/catch. After that the keycaps are tapped in a slow wave: an `8s` loop in which each key dips `2px` into the pressed shadow for about 5% of the cycle, staggered `220ms` from a `2.4s` start, paused on hover. Below `1040px` the card grids go to two columns, the deck to three and the footer to two. Below `900px` the dock becomes a disclosure: a Menu button opens the links as a column, the raised key is hidden, and the current link is a raised row with a `4px` copper left edge. Below `760px` everything is one column, the deck is two columns, the shelf keeps only its first picture and frame padding drops to `10px`; nothing scrolls sideways at `400px`. Under `prefers-reduced-motion` switch off every animation, cut transitions to `0.01ms` and drop smooth scrolling. Do not add colour fills to separate cards, do not soften the edges until controls disappear, and do not let any state rest on shadow alone: current, pressed and selected always add a border, a heavier weight and the copper marker.
One self-contained file: markup, styles and scripts together.
Loading the page source…
The whole site on one page: the home hero with its keycap deck and card rows, then the projects shelf with a plate resting on its corner, the filterable archive, the story cards with empty dashed wells for unpublished parts, principles and capabilities, the article treatment and the pattern library with a live tabbed specimen. What sets it apart is restraint: three depth levels from one top-left light, system rounded type, solid primary buttons, and state that is never carried by shadow alone.
Sections, top to bottom
- Home hero with stat wells, framed portrait and keycap deck
- Start here: three featured posts
- AI & Machine Learning cards
- Digital Garden row with debossed keywords
- AI Experiments row
- Projects: picture shelf with a resting plate and jump nav
- Featured project plate: UI Pattern Library
- Writing: the archive with a collection filter
- AI: I, AI story plate
- I, AI story cards with pending dashed wells
- About: principles as numbered tiles
- About: capabilities plate
- Article treatment: head, contents plate, prose, quotes and share basin
- Patterns: searchable library with specimen cards
- Pattern detail: tabbed preview, source and prompt panes
- Work with me band
- Footer with newsletter field
- Type
- ui-rounded / SF Pro Rounded system stack (headings, navigation, controls) · System sans stack (body) · ui-monospace system stack (code, debossed keywords)
- Themes
- light+dark
- Palette
#e3e8ee#e9edf2#d8dee6#16202b#364f6a#66778b#9a4a12#1c232c#222a35#94b6da#e5a56b