Merge web/ruled-frame into main
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by oscabriel · committed by oscabriel · parents b635e01, 7331fff · Browse files · 10 files·+202 added−76 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
10 files+202 added−76 removed
- tests:+9 added−1 removed
- other:+193 added−75 removed
Provenance
- Commit
07f14ad- Tree
dec804f- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent 1
b635e01- Parent 2
7331fff
10 files changed+202 added−76 removed
modified:apps/platform/src/auth/pages.ts+15 added-9 removed
44 unmodified lines45 // The web's focus shell, drawn without its code: the sage garden palette's46 // values copied from apps/web/src/styles.css as hex (the paper, ink, rule,47 // muted, input, primary and state roles, light and dark), and its faces named48 // first. No font may load here, so IBM Plex is used where the reader has it49-// installed and the system's faces stand in otherwise.49+// installed and the system's faces stand in otherwise. The frame is the50+// web's: from 640 px a hairline down each edge of the card's container, the51+// page's full height, with the wordmark's bar a box between them under a52+// 16 px gap (DESIGN.md "Rails"); on a phone the bar's rule alone.53 const STYLE = `54 :root{color-scheme:light dark;--paper:#f8f7f4;--ink:#1a1f2e;--card:#ffffff;--surface:#e8e6e1;--muted:#5d6371;--rule:#d6d4cf;--input:#79808f;--primary:#677a6d;--on-primary:#ffffff;--refused:#ae2325;--waiting:#516012;--selection:#0c628c38}55 @media (prefers-color-scheme:dark){:root{--paper:#0a0a0a;--ink:#f5f5f5;--card:#121212;--surface:#1a1a1a;--muted:#a0a0a0;--rule:#2a2a2a;--input:#696969;--primary:#7c9082;--on-primary:#000000;--refused:#ff5451;--waiting:#bad074;--selection:#68bbef38}}56 *{box-sizing:border-box}57 body{margin:0;background-color:var(--paper);color:var(--ink);caret-color:var(--ink);font-family:"IBM Plex Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;text-size-adjust:100%}58 ::selection{background-color:var(--selection);color:var(--ink)}56-.top{display:flex;justify-content:center;padding:48px 16px 0}57-.wordmark{margin:0;font-size:1.75rem;line-height:2.25rem;font-weight:600;letter-spacing:-.02em}58-main{max-width:27rem;margin:0 auto;padding:32px 16px 64px}59-main.document{max-width:44rem;padding-top:48px}59+.frame{display:flex;flex-direction:column;min-height:100dvh;max-width:25rem;margin:0 auto}60+.top{display:flex;align-items:center;height:56px;padding:0 16px;border-bottom:1px solid var(--rule)}61+.wordmark{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;letter-spacing:-.015em}62+main{padding:32px 16px 64px}63+main.document{max-width:44rem;margin:0 auto;padding-top:48px}64+@media (min-width:40em){.frame{border-left:1px solid var(--rule);border-right:1px solid var(--rule)}.top{margin-top:16px;padding:0 32px;border-top:1px solid var(--rule)}main{padding:32px 32px 64px}}65 .card{background-color:var(--card);border:1px solid var(--rule);border-radius:2px;padding:28px 24px}66 .card>:last-child{margin-bottom:0}67 h1{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.015em;margin:0 0 20px;text-wrap:balance;overflow-wrap:anywhere}68 h2{font-size:1.1875rem;line-height:1.6rem;font-weight:600;letter-spacing:-.01em;margin:40px 0 12px}29 unmodified lines98 `;99 100 type Width = "form" | "document";101 97-// A form is the focus shell: the wordmark as text above one card, and no98-// navigation. A document (the platform's `/`) reads as plain prose.102+// A form is the focus shell: the wordmark as text in a bar between the rails,103+// one card under it, and no navigation. A document (the platform's `/`)104+// reads as plain prose.105 const frame = (body: string, width: Width) =>106 width === "document"107 ? `<main class="document">108 ${body}109 </main>`104- : `<header class="top"><p class="wordmark">${escapeHtml(Brand.name)}</p></header>110+ : `<div class="frame"><header class="top"><p class="wordmark">${escapeHtml(Brand.name)}</p></header>111 <main><div class="card">112 ${body}107-</div></main>`;113+</div></main></div>`;114 115 // `body` is HTML already escaped.116 export const page = (title: string, body: string, width: Width = "form") =>117 `<!doctype html>242 unmodified linesmodified:apps/web/src/features/docs/docs-view.tsx+1 added-1 removed
165 unmodified linesExpand all16616716816917017017117217317410 unmodified lines165 unmodified linesExpand all { label: page.title }, ]} /> <div className={`columns:grid columns:grid-cols-[minmax(0,1fr)_var(--column-docs-toc)] columns:gap-x-14 flex flex-col pt-6 pb-16 ${GUTTER}`} className={`columns:grid columns:grid-cols-[minmax(0,var(--measure))_var(--column-docs-toc)] columns:justify-start columns:gap-x-14 flex flex-col pt-6 pb-16 ${GUTTER}`} > <article className="max-w-(--measure) min-w-0" data-doc={page.slug}> <h1 className="text-headline text-balance break-words"> {page.title}10 unmodified linesmodified:apps/web/src/features/landing/landing-page.tsx+43 added-13 removed
12 unmodified lines13 import { MusicBox } from "./music-box/music-box.tsx";14 import { WaysIn } from "./ways-in.tsx";15 import { HEADLINE, HERO_LEDE } from "./words.ts";16 17-const PRIMARY = buttonVariants({ className: "no-underline", size: "lg" });17+/** The page's one main action, a size up from a toolbar's button. */18+const PRIMARY = buttonVariants({19+ className: "text-want h-11 px-6 no-underline",20+ size: "lg",21+});22 23 const Code = ({ children }: { readonly children: ReactNode }) => (24 <code className={ID}>{children}</code>25 );26 27 const MAIN = "main";28 25-/** The lede, with `main` set as the ref it is. */29+/** The headline's two sentences, one line each from `tablet`: the want, then the gate. */30+const Headline = () => {31+ const [first, ...rest] = HEADLINE.split(/(?<=\.)\s+/u);32+33+ return (34+ <>35+ <span className="tablet:block">{first}</span>{" "}36+ <span className="tablet:block">{rest.join(" ")}</span>37+ </>38+ );39+};40+41+/** The lede, with `main` set as the ref it is, in mono at the lede's own size. */42 const Lede = () => {43 const [before, after] = HERO_LEDE.split(MAIN);44 45 return (46 <>47 {before}32- <Code>{MAIN}</Code>48+ <code className="font-mono">{MAIN}</code>49 {after}50 </>51 );52 };53 38-/** A section of the page: its heading first, then a link beside it, then its body. */54+/**55+ * A section of the page under a rule that runs rail to rail: its heading56+ * first, then a link beside it, then its body.57+ */58 const Part = ({59 aside,60 children,61 id,3 unmodified lines65 readonly children: ReactNode;66 readonly id: string;67 readonly title: string;68 }) => (50- <section aria-labelledby={id} className="flex flex-col gap-5">69+ <section70+ aria-labelledby={id}71+ className={`border-rule flex flex-col gap-6 border-t py-12 ${GUTTER}`}72+ >73 <div className="flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1">52- <h2 className="text-title" id={id}>74+ <h2 className="text-headline" id={id}>75 {title}76 </h2>77 {aside}78 </div>70 unmodified lines149 readonly platformUrl: string;150 readonly webUrl: string;151 }) => (152 <main131- className={`flex min-w-0 flex-1 flex-col gap-16 pt-12 pb-20 outline-none ${GUTTER}`}153+ className="flex min-w-0 flex-1 flex-col pb-8 outline-none"154 id="main"155 tabIndex={-1}156 >135- <div className="flex flex-col gap-10">136- <div className="flex max-w-(--measure) flex-col gap-4">137- <h1 className="text-headline text-balance">{HEADLINE}</h1>138- <p className="text-body">157+ {/* The hero: the headline and its lede centred between the rails, the one action under them, then Fig 1 across the frame. */}158+ <div159+ className={`tablet:pt-20 flex flex-col items-center gap-12 pt-12 pb-16 ${GUTTER}`}160+ data-hero=""161+ >162+ <div className="flex flex-col items-center gap-6 text-center">163+ <h1 className="text-display text-balance">164+ <Headline />165+ </h1>166+ <p className="text-lede text-muted-foreground max-w-(--measure-lede) text-pretty">167 <Lede />168 </p>169 </div>142- <div className="flex flex-wrap items-center gap-x-4 gap-y-3">170+ <div className="flex max-w-full flex-col items-center gap-4">171 <AppLink className={PRIMARY} data-action="asks" to={ASKS_PATH}>172 Browse open asks173 </AppLink>174 <div className="max-w-full min-w-0">175 <CommandLine command={installCommand(webUrl)} />176 </div>177 </div>178+ <div className="w-full max-w-(--container-figure)">150- <MusicBox />179+ <MusicBox />180+ </div>181 </div>182 183 <Part id="gate" title="The gate">184 <GateDrawing platformUrl={platformUrl} />23 unmodified linesmodified:apps/web/src/features/shared/shell/app-shell.tsx+37 added-15 removed
25 unmodified lines26 </div>27 );28 29 /**30- * The article first, so it is read first; from `columns` the tree stands to its left. Below `columns` the index31- * shows no tree under itself: the index already lists every page.30+ * The article first, so it is read first; from `columns` the tree stands to31+ * its left, parted by a rule the article's full height. Below `columns` the32+ * index shows no tree under itself: the index already lists every page.33 */34 const DocsFrame = ({ children }: { readonly children: ReactNode }) => {35 const index = useLocation({36 select: ({ pathname }) => pathname.replace(/\/$/u, "") === docsPath(),37 });38 39 return (39- <div className="columns:grid columns:grid-cols-[var(--column-docs-nav)_minmax(0,1fr)] max-w-site mx-auto flex w-full flex-1 flex-col">40- <div className="columns:col-start-2 columns:row-start-1 flex min-w-0 flex-col">40+ <div className="columns:grid columns:grid-cols-[var(--column-docs-nav)_minmax(0,1fr)] flex w-full flex-1 flex-col">41+ <div42+ className={cn(43+ "columns:col-start-2 columns:row-start-1 border-rule flex min-w-0 flex-col",44+ index ? undefined : "columns:border-l"45+ )}46+ >47 {children}48 </div>49 <div50 className={cn(11 unmodified lines62 63 const FRAMES = {64 docs: DocsFrame,65 focus: ({ children }: { readonly children: ReactNode }) => (60- <div className="max-w-focus mx-auto flex w-full flex-1 flex-col pb-16">61- {children}62- </div>66+ <div className="flex w-full flex-1 flex-col pb-16">{children}</div>67 ),68 project: ProjectContainer,69 site: ({ children }: { readonly children: ReactNode }) => (66- <div className="max-w-site mx-auto flex w-full flex-1 flex-col">67- {children}68- </div>70+ <div className="flex w-full flex-1 flex-col">{children}</div>71 ),72 } as const satisfies Record<73 ShellName,74 (props: { readonly children: ReactNode }) => ReactNode12 unmodified lines87 } as const satisfies Record<ShellName, string>;88 89 const FOOTED: ReadonlySet<ShellName> = new Set(["docs", "site"]);90 91+/**92+ * The rails: from `tablet`, a hairline down each edge of the container, the93+ * page's full height, with the top bar's box, the frame and the footer94+ * between them (DESIGN.md "Rails"). The site and the docs are ruled at the95+ * site's container, a focused page at its card's; a project is full-bleed.96+ */97+const RAILS = {98+ docs: "max-w-site border-rule tablet:border-x mx-auto w-full",99+ focus: "max-w-focus border-rule tablet:border-x mx-auto w-full",100+ project: "",101+ site: "max-w-site border-rule tablet:border-x mx-auto w-full",102+} as const satisfies Record<ShellName, string>;103+104 const NO_READS: ShellReads = {};105 106 export const AppShell = ({107 children,39 unmodified lines147 <ShellNameContext value={shell}>148 <KeysProvider openDialog={openDialog}>149 <SkipLink />150 <div136- className={`flex min-h-dvh flex-col ${SHELL_GUTTERS[shell]}`}137- data-shell={shell}151+ className={cn(152+ "flex min-h-dvh flex-col",153+ shell === "project" ? "" : "tablet:px-(--frame-inset)"154+ )}155 >156+ <div157+ className={`flex flex-1 flex-col ${SHELL_GUTTERS[shell]} ${RAILS[shell]}`}158+ data-shell={shell}159+ >139- <TopBar shell={shell} />140- <Frame>{children}</Frame>141- {FOOTED.has(shell) ? <Footer /> : null}160+ <TopBar shell={shell} />161+ <Frame>{children}</Frame>162+ {FOOTED.has(shell) ? <Footer /> : null}163+ </div>164 </div>165 {hydrated && LazyOverlays !== undefined ? (166 <Suspense fallback={null}>167 <LazyOverlays onClose={close} overlay={overlay} />8 unmodified linesmodified:apps/web/src/features/shared/shell/footer.tsx+18 added-9 removed
20 unmodified lines21 const LINK =22 "text-muted-foreground hover:text-foreground no-underline transition-colors duration-[120ms]";23 24 /**25- * The site's and the docs' foot: plain links, then the brand's domain as one26- * line of display type sized to the container (`cqi`), so it fills the27- * width at every size without wrapping. Upper case is the style's, so the28- * text stays the brand's own (the maintainer's overrides, 5).25+ * The site's and the docs' foot, between the rails: a hairline across them,26+ * plain links, then the brand's domain as a watermark: one line of display27+ * type in the ink at a tenth of its strength, centred and sized to fill the28+ * content's width exactly (`cqi`), standing on the page's bottom edge. Upper29+ * case is the style's, so the text stays the brand's own (the maintainer's30+ * overrides, 5).31+ *32+ * The size is the content width over the line's width per em: the33+ * upper-cased domain sets 8.243 em wide in Plex Sans at 600 with -0.04em34+ * tracking (measured in headless Chromium on 2026-10-14; measure again if35+ * the domain changes). The line box is 0.9 em and ends 0.075 em under the36+ * baseline, which is all the room the caps keep from the edge.37 */38 export const Footer = () => (31- <footer className="border-rule mt-16 border-t" data-footer="">32- <div33- className={`max-w-site @container mx-auto flex flex-col gap-8 pt-6 pb-4 ${GUTTER}`}34- >39+ <footer40+ className="border-rule mt-auto overflow-hidden border-t"41+ data-footer=""42+ >43+ <div className={`@container flex w-full flex-col gap-10 pt-6 ${GUTTER}`}>44 <ul className="text-ui flex flex-wrap gap-x-5 gap-y-2">45 {LINKS.map(({ label, to }) => (46 <li key={to}>47 <AppLink className={LINK} to={to}>2 unmodified lines50 </li>51 ))}52 </ul>53 <p45- className="text-foreground text-[length:11.4cqi] leading-[0.9] font-semibold tracking-[-0.04em] whitespace-nowrap uppercase"54+ className="text-foreground/10 text-center text-[length:12.131cqi] leading-[0.9] font-semibold tracking-[-0.04em] whitespace-nowrap uppercase select-none"55 data-domain=""56 >57 {Brand.domain}58 </p>3 unmodified linesmodified:apps/web/src/features/shared/shell/top-bar.tsx+17 added-12 removed
104 unmodified lines105 106 const BAR = "flex h-(--top-bar) min-w-0 items-center gap-4";107 108 /**109- * Framed in the site and the docs (inside the container, its hairline too),110- * full-bleed in a project, and the wordmark alone in a focused page.109+ * A box between the rails: a hairline under it everywhere, and from110+ * `tablet` a hairline over it and a gap above, so the rails show past its111+ * top. Its height is the bar's, borders included, so what sticks under it112+ * reads `--stick-bar` as before.113 */114+const FRAMED = "border-rule tablet:mt-(--frame-gap) tablet:border-t border-b";115+116+/**117+ * Framed in the site, the docs and a focused page (a box between the118+ * shell's rails), full-bleed in a project, and the wordmark alone in a119+ * focused page.120+ */121 export const TopBar = ({ shell }: { readonly shell: ShellName }) => {122 if (shell === "focus") {123 return (115- <header116- className={`max-w-focus mx-auto w-full ${GUTTER} ${BAR}`}117- data-top-bar="focus"118- >124+ <header className={`${FRAMED} ${GUTTER} ${BAR}`} data-top-bar="focus">125 <Wordmark />126 </header>127 );128 }13 unmodified lines142 >143 {inside}144 </header>145 ) : (140- <header className="bg-background sticky top-0 z-30" data-top-bar="framed">141- <div142- className={`border-rule max-w-site mx-auto border-b ${GUTTER} ${BAR}`}143- >144- {inside}145- </div>146+ <header147+ className={`bg-background sticky top-0 z-30 ${FRAMED} ${GUTTER} ${BAR}`}148+ data-top-bar="framed"149+ >150+ {inside}151 </header>152 );153 };modified:apps/web/src/styles.css+28 added-2 removed
368 unmodified lines369 whether or not a utility reads it: `max-w-site`, `max-w-project` and370 `max-w-focus` read the containers, and a column or the measure is read371 as `w-(--column-about)`, `max-w-(--measure)` or `max-w-(--measure-page)`.372 373- site a centred 1360 px container with 32 px gutters373+ site a centred 1760 px container with 32 px gutters, ruled: a374+ hairline runs down each edge the page's full height from `tablet`,375+ the top bar is a box between them, and every section's rule runs376+ rail to rail377 project fluid to 1600 px with 28 px gutters; the about column (340 px)378 on Overview and the file tree (280 px) on Code are its only379 side columns380 docs the site's container: a 240 px nav tree, the article at the5 unmodified lines386 docs article's cap, so one measure serves every page's prose)387 measure-page388 a project page's head, facts, toolbar and document body stop389 at 56rem (Workspace), wide enough for a table beside its prose390+ measure-lede391+ the landing's lede stops at 40rem under its headline392+ container-figure393+ the landing's figure stops at 76rem, centred, so the drawing394+ keeps its detail in a wide frame395+ frame-inset396+ the room between the viewport and the rails from `tablet`397+ (24 px), and the gap over the top bar's box (16 px)398 399 From `columns` (1100 px) a side column stands beside its main column,400 and below it stacks under it; from `nav` (900 px) the top bar's links401 are shown, and below it they fold into a menu.7 unmodified lines409 down by the height they are drawn at (`--project-head`), so what410 sticks there clears them411 */412 @theme static {402- --container-site: 85rem;413+ --container-site: 110rem;414 --container-project: 100rem;415 --container-focus: 25rem;416 --column-about: 21.25rem;417 --column-tree: 17.5rem;3 unmodified lines421 --gutter-site: 2rem;422 --gutter-project: 1.75rem;423 --measure: 72ch;424 --measure-page: 56rem;425+ --measure-lede: 40rem;426+ --container-figure: 76rem;427+ --frame-inset: 1.5rem;428+ --frame-gap: 1rem;429 --top-bar: 3.5rem;430 --toolbar: 2.5rem;431 --tabs: 2.75rem;432 --stick-bar: calc(var(--top-bar) - 1px);12 unmodified lines445 The type scale, by role: a fixed rem scale, nothing fluid, and nothing446 under 13 px. Mono is only for what a terminal prints or takes; its447 three lines are inline (the token's own), a transcript448 (`leading-terminal`) and code (`leading-code`, Pierre's 20 px).449+450+ Display and lede are the landing's alone: the one headline that451+ persuades, set at 500 so Plex's plain letters carry it, and the line452+ under it. Display is the one size that scales with the viewport, between453+ 40 and 76 px, so two lines fit a phone and fill the frame.454 */455+ --text-display: clamp(2.5rem, 1.25rem + 3.5vw, 4.75rem);456+ --text-display--line-height: 1.02;457+ --text-display--letter-spacing: -0.035em;458+ --text-display--font-weight: 500;459+ --text-lede: 1.1875rem;460+ --text-lede--line-height: 1.75rem;461 --text-headline: 1.5rem;462 --text-headline--line-height: 2rem;463 --text-headline--letter-spacing: -0.015em;464 --text-headline--font-weight: 600;563 unmodified linesmodified:apps/web/test/design-rules.test.tsx+4 added
126 unmodified lines127 const LAYOUT = [128 "container-site",129 "container-project",130 "container-focus",131+ "container-figure",132+ "frame-inset",133+ "frame-gap",134 "column-about",135 "column-tree",136 "column-docs-nav",137 "column-docs-toc",1 unmodified line139 "gutter-site",140 "gutter-project",141 "measure",142 "measure-page",143+ "measure-lede",144 "top-bar",145 "toolbar",146 "tabs",147 ] as const;226 unmodified linesmodified:apps/web/test/tokens.test.ts+5 added-1 removed
686 unmodified lines687 const breakpoints = declarations(blockOf("@theme"));688 689 // Spec 3.1: each shell's container, its side columns, and prose's measure.690 it.each([691- ["container-site", "85rem"],691+ ["container-site", "110rem"],692 ["container-project", "100rem"],693 ["container-focus", "25rem"],694+ ["container-figure", "76rem"],695+ ["frame-inset", "1.5rem"],696+ ["frame-gap", "1rem"],697 ["column-about", "21.25rem"],698 ["column-tree", "17.5rem"],699 ["column-docs-nav", "15rem"],700 ["column-docs-toc", "13.75rem"],701 ["gutter-site", "2rem"],702 ["gutter-project", "1.75rem"],703 ["measure", "72ch"],704+ ["measure-lede", "40rem"],705 ])("names --%s as %s", (token, width) => {706 expect(layout.get(token)).toBe(width);707 });708 5 unmodified linesmodified:DESIGN.md+34 added-14 removed
1 ---2 name: Myr web3-description: Four shells on warm paper. What state a change is in, whose move it is, and the command that runs next.3+description: Four shells on warm paper, three of them ruled. What state a change is in, whose move it is, and the command that runs next.4 colors:5 paper: "#f8f7f4"6 paper-dark: "#0a0a0a"7 ink: "oklch(0.2417 0.0298 269.8827)"41 unmodified lines49 diff-add-sign-dark: "oklch(0.74 0.08 195)"50 diff-del-sign: "oklch(0.51 0.12 345)"51 diff-del-sign-dark: "oklch(0.72 0.1 345)"52 typography:53+ display:54+ fontFamily: "IBM Plex Sans, ui-sans-serif, system-ui, sans-serif"55+ fontSize: "clamp(2.5rem, 1.25rem + 3.5vw, 4.75rem)"56+ fontWeight: 50057+ lineHeight: "1.02"58+ letterSpacing: "-0.035em"59+ lede:60+ fontFamily: "IBM Plex Sans, ui-sans-serif, system-ui, sans-serif"61+ fontSize: "1.1875rem"62+ fontWeight: 40063+ lineHeight: "1.75rem"64 headline:65 fontFamily: "IBM Plex Sans, ui-sans-serif, system-ui, sans-serif"66 fontSize: "1.5rem"67 fontWeight: 60046 unmodified lines114 fontFamily: "IBM Plex Sans, ui-sans-serif, system-ui, sans-serif"115 fontWeight: 600116 letterSpacing: "-0.04em"117 lineHeight: "0.9"118+ fontSize: "12.131cqi"119 rounded:120 none: "0px"121 sm: "1px"122 md: "2px"4 unmodified lines127 gutter-tablet: "20px"128 gutter-site: "2rem"129 gutter-project: "1.75rem"130 region: "32px"119- container-site: "85rem"131+ container-site: "110rem"132+ container-figure: "76rem"133+ frame-inset: "1.5rem"134+ frame-gap: "1rem"135 container-project: "100rem"136 container-focus: "25rem"137 column-about: "21.25rem"138 column-tree: "17.5rem"1 unmodified line140 column-docs-toc: "13.75rem"141 column-filters: "15rem"142 measure: "72ch"143 measure-page: "56rem"144+ measure-lede: "40rem"145 top-bar: "3.5rem"146 toolbar: "2.5rem"147 tabs: "2.75rem"148 row-phone: "88px"116 unmodified lines265 ## Overview266 267 **Creative North Star: "Four shells on warm paper"**268 253-The web serves four jobs, and each gets its own frame: a site that explains the platform and lists its projects, a project with one header and its tabs, a docs site, and a focused card for signing in. All four share the top bar's contents, so moving between them never reads as a different app. Every screen still answers three questions in this order: what state is it in, whose move is it, and what runs next. The answer to the last one is a command you can copy, shown once.269+The web serves four jobs, and each gets its own frame: a site that explains the platform and lists its projects, a project with one header and its tabs, a docs site, and a focused card for signing in. All four share the top bar's contents, so moving between them never reads as a different app. Three of them are ruled: two hairlines run down the container's edges the page's full height, the top bar is a box between them under a small gap, and every rule inside runs rail to rail, so the page reads as one sheet pinned to the bench, like the music box's own ruler. A project is full-bleed: its code and diffs want the whole window. Every screen still answers three questions in this order: what state is it in, whose move is it, and what runs next. The answer to the last one is a command you can copy, shown once.270 271 The pages are for operating, with one page that persuades: the landing at `/`, which draws the platform as a music box whose cylinder only its own press can pin, and leads to the open asks. Density is set by a maintainer clearing the inbox on a phone and a contributor reading a refusal beside a terminal: two-line rows (64 px), 14 px metadata, a 13 px floor. Colour means state, and always sits beside a word and a mark, so a page read in grayscale, by a screen reader or in a terminal says the same thing. In a list the colour sits on the mark and the word stays ink. The one colour that is not a state is the sage primary: the page's main action and the focus ring.272 273 Rejected on purpose: the dashboard look (stat tiles, big numbers over small labels, a blue link colour, pill badges, avatar stacks, coloured file icons), its glossy cousin (dark glass, blur, glows, gradients), and the terminal costume (green on black, monospace for everything). Rejected too: a logomark of any kind (crest, gate, doorway); a display serif; a coloured strip on the edge of a card; an eyebrow over a headline; a filled pill or tinted square that carries a state without its word; shadows and glows; `outline: none`; text at 12 px and greys under 4.5:1; avatars and activity sparklines; a command box that ellipsises; a column of code blocks; and spinners and shimmer in content. Monospace appears only where the text is what a terminal prints or takes: commands, refusal transcripts, trailers, SHAs, paths, ids, env keys and code.274 275 **Key Characteristics:**276 261-- Four shells (site, project, docs, focus), each named by its route, with no global rail and no generic right rail.277+- Four shells (site, project, docs, focus), each named by its route, with no global rail and no generic right rail. The site, the docs and a focused page are ruled (the rails); a project is full-bleed.278 - A project has one header and eight tabs, and opens on Overview.279 - State is a mark, then a word, then a colour; red belongs to refusals, violet to sealed things, green to what is on main, olive to waiting, blue to checking. In a row the colour is the mark's; the word is ink, except Refused and Landed.280 - Every action is a command to copy, shown once per screen. The only web controls that change anything are a maintainer's choices, proposing an ask (and asking the platform's agent to draft it), the theme preference, and signing in or out.281 - Light and dark follow the system setting, or its opposite by the reader's choice on `/settings` (ADR 0042).83 unmodified lines365 **Character:** Plex Sans is a grotesque with a typewriter's honesty: engineered, plain, and as readable at 14 px in a dense row as at a headline. Plex Mono is its sibling, so a command in a sentence sits on the same rhythm.366 367 ### Hierarchy368 353-A fixed rem scale, ratio about 1.15 to 1.2; product type does not float with the viewport (the footer's wordmark is the one exception, below). Numbers that can change (counts, times, line numbers, `+n −m`) are tabular. **Nothing is set below 13 px**; `apps/web/test/type-floor.test.ts` refuses the old 12 px and 11 px sizes and any arbitrary size.369+A fixed rem scale, ratio about 1.15 to 1.2; product type does not float with the viewport (the footer's wordmark and the landing's display headline are the two exceptions). Numbers that can change (counts, times, line numbers, `+n −m`) are tabular. **Nothing is set below 13 px**; `apps/web/test/type-floor.test.ts` refuses the old 12 px and 11 px sizes and any arbitrary size.370 371+- **Display** (`text-display`, 500, clamp(2.5rem, 1.25rem + 3.5vw, 4.75rem), line 1.02, -0.035em, balanced): the landing's headline alone, its two sentences one line each from `tablet`. Set at 500, not 600, so Plex's plain letterforms carry it at 76 px without going heavy. It scales with the viewport between 40 and 76 px, the one text besides the footer's wordmark that does.372+- **Lede** (`text-lede`, 400, 1.1875rem/1.75rem, muted): the landing's line under its headline, held to `--measure-lede` (40rem) and centred; `main` in it is mono at the lede's own size.355-- **Headline** (`text-headline`, 600, 1.5rem/2rem, -0.015em, balanced): one page title, or a project's name in its header.373+- **Headline** (`text-headline`, 600, 1.5rem/2rem, -0.015em, balanced): one page title, or a project's name in its header, and the landing's section heads.374 - **Title** (`text-title`, 600, 1.1875rem/1.6rem, -0.01em): a long ask's title, a region head, the answer's outcome hero, a README's headings.375 - **Want** (`text-want`, 1rem/1.5rem): a row's first line at 500, and a want or brief in prose at 400.376 - **Body** (`text-body`, 400, 1rem/1.55rem): prose, held to the measure.377 - **UI** (`text-ui`, 400, 0.875rem/1.3rem; 500 for state words): row metadata, the top bar, tabs, values, buttons, toolbar controls. The most used size.18 unmodified lines396 Every route names exactly one shell in its `staticData` (`shell: "site" | "project" | "docs" | "focus"`), and the root draws the matching frame. The widths are tokens in `styles.css` (`@theme static`), never literals; `design-rules.test.tsx` holds this file's spacing values equal to them.397 398 | Shell | Routes | Container | Header | Side columns |399 | --- | --- | --- | --- | --- |382-| `site` | `/`, `/explore`, `/asks`, `/install`, `/privacy`, `/terms` | centred, `--container-site` (1360 px), `--gutter-site` (32 px) | framed top bar | only the filters on `/asks` (`--column-filters`, 240 px), left of the list |400+| `site` | `/`, `/explore`, `/asks`, `/install`, `/privacy`, `/terms` | centred, ruled, `--container-site` (1760 px), `--gutter-site` (32 px) | framed top bar | only the filters on `/asks` (`--column-filters`, 240 px), left of the list |401 | `project` | `/:owner/:project/**`, `/inbox`, `/settings`, `/people/:handle` | fluid to `--container-project` (1600 px), `--gutter-project` (28 px) | full-bleed top bar, then the page header | only the about column on Overview (`--column-about`, 340 px) and the file tree on Code (`--column-tree`, 280 px) |384-| `docs` | `/docs/**` | centred, `--container-site` (1360 px) | the site's top bar | nav tree `--column-docs-nav` (240 px), the article at `--measure` (72ch), "on this page" `--column-docs-toc` (220 px) |385-| `focus` | sign-in, MCP consent, new project, new proposal | a centred card, `--container-focus` (400 px) | the wordmark only | none |402+| `docs` | `/docs/**` | centred, ruled, `--container-site` (1760 px) | the site's top bar | nav tree `--column-docs-nav` (240 px), parted from the article by a rule its full height; the article at `--measure` (72ch) with "on this page" (`--column-docs-toc`, 220 px) beside it, hugging it, the rest of the frame paper |403+| `focus` | sign-in, MCP consent, new project, new proposal | a centred, ruled card, `--container-focus` (400 px) | the wordmark only, in the framed bar | none |404 405 A shell sets its gutter once, on its frame, and every bar and page inside it reads it: 16 px on a phone, 20 px from `tablet`, and from `shell` (1120 px) `--gutter-site` in the site, the docs and a focused page, or `--gutter-project` in a project.406 407+**Rails.** The site, the docs and a focused page are ruled: from `tablet`, the container stands `--frame-inset` (24 px) in from the viewport and carries a hairline down each edge, the page's full height (`RAILS` in `app-shell.tsx`), and the top bar is a box between them, `--frame-gap` (16 px) under the viewport's top, with a hairline over and under it. Everything inside (the frame, a section's rule, the footer's rule) runs rail to rail, and the gutter sits inside the rails, so content stands 32 px in from them. Below `tablet` the rails and the gap go: the bar keeps its rule underneath, and the page takes the phone's 16 px gutter. The top bar's height stays `--top-bar`, borders included, so what sticks under it reads `--stick-bar` unchanged, and when the bar sticks it sits flush at the top. The platform's own pages draw the same frame at the card's width, in their inline style. A project has no rails.408+409 From `columns` (1100 px, `--breakpoint-columns`) a side column stands beside its main column; below it, every side column stacks under its main column. From `nav` (900 px, `--breakpoint-nav`) the top bar shows its links; below it they fold into a menu. Phone width (360 px) is a first-class layout: nothing scrolls sideways.410 411 **The four rules (ADR 0041):**412 26 unmodified lines439 ## Components440 441 ### Top bar442 423-- **Character:** the same contents in every shell: the wordmark (linking `/`), Explore, Asks, Docs, Install, search, Keys (a keyboard icon that opens the keys dialog, the `?` key's pointer twin) and the account (handle and inbox count, or Sign in). Framed in the site and docs shells (inside the container, a hairline under it), full-bleed in the project shell; the focus shell shows the wordmark alone.443+- **Character:** the same contents in every shell: the wordmark (linking `/`), Explore, Asks, Docs, Install, search, Keys (a keyboard icon that opens the keys dialog, the `?` key's pointer twin) and the account (handle and inbox count, or Sign in). Framed in the site and docs shells (a box between the rails: a hairline under it, and from `tablet` a hairline over it under a 16 px gap), full-bleed in the project shell; the focus shell shows the wordmark alone in the same box.444 - **Current item:** ink at 500 with `aria-current="page"`; the others muted. Never a coloured bar.445 - **Below 900 px:** the links and Keys fold into a menu (a sheet), the wordmark and the account stay.446 447 ### Footer448 449 - **Where:** the site and docs shells; the project and focus shells have none.430-- **Shape:** a hairline above, a row of plain links (Docs, Install, Privacy, Terms), then **the brand's domain in upper case** across the container's full width as one line of display text in the UI sans: read from `@repo/brand` (`Brand.domain`), upper-cased with CSS, never typed (`brand:check` fails on the name outside `packages/brand`). It is sized to the container with container query units so the line fills the width without wrapping, at 600 with -0.04em tracking and a 0.9 line, in ink. It is the one type that scales with its box. No mark beside it.450+- **Shape:** a hairline above, rail to rail, a row of plain links (Docs, Install, Settings, Privacy, Terms), then **the brand's domain in upper case** as a watermark: one line of display text in the UI sans, read from `@repo/brand` (`Brand.domain`), upper-cased with CSS, never typed (`brand:check` fails on the name outside `packages/brand`). It is drawn in the ink at a tenth of its strength (`text-foreground/10`), centred, and sized with container query units to fill the content's width exactly, at 600 with -0.04em tracking and a 0.9 line, standing whole on the page's bottom edge (the 0.9 line leaves 0.075em under the baseline, and nothing else), so the page ends in the name. It is the one type that scales with its box. No mark beside it. The size (12.131cqi) is the width over the line's measured width per em, noted in `footer.tsx`; measure again if the domain changes.451 452 ### Project header and tabs453 454 - **Header:** the name (`owner / project`, the owner muted, both in the UI sans at Headline size), the posture (`PostureBadge`), the description (the README's first sentence), a facts row in UI type, muted (open asks, last landing, latest tag, licence if known, deciders), and three actions at the right: **Watch** (a popover: what already follows the project, this page and its events, plus `myr status --project` for your own claims and answers; the CLI has no watch command), **Clone** (a popover: the `git clone` URL, `myr claim <ask> --project`, and that forks come with a claim), **Contribute** (a popover: take an ask, propose an ask, read the policy). It never changes between tabs.125 unmodified lines580 581 ### The landing582 583 - **Where:** `/`, in the site shell (ADR 0041 amends ADR 0030's bare page). A reader who carries a session is sent to `/inbox`.564-- **Hero:** one primary action (the open asks) and the install command, then Fig 1, the music box (`features/landing/music-box`): an isometric drawing in inline SVG, in the page's own inks, of a cylinder music box under an open glass lid with the gate along its front. The cylinder is `main`; the glass is everything public, a frosted panel a layer; the lit comb tooth that plays sour is an ask, its section of the comb the territory; a clip on the ruler is the claim; a strip of pins is an answer, carried along a rail under seven bridges, one per stage, cheapest first. A first answer is refused at the shape stage and drops into that stage's tray with a printed slip; a second passes every stage, the held-back stage's sealed box ringing one bell, and the press, the only thing that writes the cylinder, turns it over onto the cylinder while a paper tape prints its credit. The card is a plain card with Fig 1 and a title in its top corners, the hint and a live readout in its bottom corners, and a legend under it that names each part by its word in `GLOSSARY.md`. State colours appear only on a stage's flag, the held-back bell, the stray pin the shape stage refused, and the landed pin and tooth, each beside the readout's word. The server draws the still picture (the refused answer in its tray, the second landed); in the browser one loop plays the story from a pure model of time (`model.ts`), stops off screen, and under `prefers-reduced-motion` moves only when a click or a key asks it to, straight to the next moment. The camera and solids are ported from the anatomy skill's kit (`music-box/iso.ts`, with its MIT notice).565-- **Below:** the seven stages in words, one column each, with a refused and a landed output beneath them, the four words, landings as they happen, and every way in (linking `/install`), each a heading over a hairline rather than a card. Its evidence is real output, set in mono as a terminal prints it. "Landing now" lists the latest landings and refused answers across public projects, the latest first and at most six, from `recentLandings`, the platform's one bounded read of them (at most 20, kept in D1 as they happen, never a replay of a project's events). Each row is a mark, the project over the ask's want (a landing with no ask shows its short SHA), linking the landed commit or the refused ask, and when. A refusal names its tag and its area, never a held-back check's name, a suite, a lane, a path or a log.584+- **Hero:** centred between the rails: the headline at Display, its two sentences one line each, the lede under it at Lede in muted, held to `--measure-lede`; then the page's one primary action (the open asks), a size up (44 px), over the install command; then Fig 1, the music box, held to `--container-figure` (76rem) and centred, so the drawing keeps its detail in the wide frame (`features/landing/music-box`): an isometric drawing in inline SVG, in the page's own inks, of a cylinder music box under an open glass lid with the gate along its front. The cylinder is `main`; the glass is everything public, a frosted panel a layer; the lit comb tooth that plays sour is an ask, its section of the comb the territory; a clip on the ruler is the claim; a strip of pins is an answer, carried along a rail under seven bridges, one per stage, cheapest first. A first answer is refused at the shape stage and drops into that stage's tray with a printed slip; a second passes every stage, the held-back stage's sealed box ringing one bell, and the press, the only thing that writes the cylinder, turns it over onto the cylinder while a paper tape prints its credit. The card is a plain card with Fig 1 and a title in its top corners, the hint and a live readout in its bottom corners, and a legend under it that names each part by its word in `GLOSSARY.md`. State colours appear only on a stage's flag, the held-back bell, the stray pin the shape stage refused, and the landed pin and tooth, each beside the readout's word. The server draws the still picture (the refused answer in its tray, the second landed); in the browser one loop plays the story from a pure model of time (`model.ts`), stops off screen, and under `prefers-reduced-motion` moves only when a click or a key asks it to, straight to the next moment. The camera and solids are ported from the anatomy skill's kit (`music-box/iso.ts`, with its MIT notice).585+- **Below:** the seven stages in words, one column each, with a refused and a landed output beneath them, the four words, landings as they happen, and every way in (linking `/install`), each a section under a rule that runs rail to rail, its head at Headline, rather than a card. Its evidence is real output, set in mono as a terminal prints it. "Landing now" lists the latest landings and refused answers across public projects, the latest first and at most six, from `recentLandings`, the platform's one bounded read of them (at most 20, kept in D1 as they happen, never a replay of a project's events). Each row is a mark, the project over the ask's want (a landing with no ask shows its short SHA), linking the landed commit or the refused ask, and when. A refusal names its tag and its area, never a held-back check's name, a suite, a lane, a path or a log.586 587 ### Install588 589 - **Where:** `/install`, in the site shell; the old `/agents` is a 301 to it, and `/agents.md`, `/llms.txt` and `/llms-full.txt` keep answering.9 unmodified lines599 - **The control:** two radios in a fieldset, each a plain bordered row with the choice, then the theme it gives, muted, at the right. The server cannot see the system, so it names no theme until the page is up.600 601 ### The platform's own pages602 583-Sign-in (with the MCP consent), sign-up, the Google handle page, the code, add-email and reset pages, the problem page and the platform's `/` load nothing (no script, no web font), so they carry the sage garden palette as hex literals in their inline style, copied from `apps/web/src/styles.css` for both schemes: paper, card, ink, surface, muted, rule, the 3:1 control border, primary with its on-primary text, refused only for a refusal, and waiting for the marked "Warning" line in the loopback case; `color-scheme: light dark`. Their faces are named as the web's are, IBM Plex Sans then the system sans at 16 px and IBM Plex Mono then the system mono, so Plex shows only where the reader has it installed. This is the one place the type is not the web's, kept by design and awaiting the maintainer's sign-off: loading Plex would mean a `font-src` in the pages' policy and about 60 KB of font inlined in every page the Worker sends. Every page but `/` is the focus shell: the wordmark as text from `@repo/brand` above one card with a hairline border and a 2 px radius, no edge accent, no navigation and no eyebrow, its h1 first. The consent names the client, its publisher when known, and the host that receives access; on sign-in and sign-up it also lists what the client may do as the person, and says it never sees the password. The platform's `/` keeps a plain document frame.603+Sign-in (with the MCP consent), sign-up, the Google handle page, the code, add-email and reset pages, the problem page and the platform's `/` load nothing (no script, no web font), so they carry the sage garden palette as hex literals in their inline style, copied from `apps/web/src/styles.css` for both schemes: paper, card, ink, surface, muted, rule, the 3:1 control border, primary with its on-primary text, refused only for a refusal, and waiting for the marked "Warning" line in the loopback case; `color-scheme: light dark`. Their faces are named as the web's are, IBM Plex Sans then the system sans at 16 px and IBM Plex Mono then the system mono, so Plex shows only where the reader has it installed. This is the one place the type is not the web's, kept by design and awaiting the maintainer's sign-off: loading Plex would mean a `font-src` in the pages' policy and about 60 KB of font inlined in every page the Worker sends. Every page but `/` is the focus shell: the rails at the card's width (25rem) from 640 px, the wordmark as text from `@repo/brand` in the framed bar, then one card with a hairline border and a 2 px radius, no edge accent, no navigation and no eyebrow, its h1 first. The consent names the client, its publisher when known, and the host that receives access; on sign-in and sign-up it also lists what the client may do as the person, and says it never sees the password. The platform's `/` keeps a plain document frame.604 605 ### shadcn606 607 shadcn 4.21.2, style `base-lyra` on Base UI, in `src/components/ui/` (generated, restyled to the tokens). The pages use its button, badge, table, textarea, tooltip, dialog and sheet, select, combobox, popover and skeleton. Overlays load after hydration in their own chunk.33 unmodified lines