1@import "tailwindcss";2@import "shadcn/tailwind.css";34/* `prose` for rendered Markdown (a README, an ask's brief); its `dark:`5 variant is the attribute below, like every other one here. */6@plugin "@tailwindcss/typography";78/*9 The web's tokens (DESIGN.md names each one and when to use it).1011 The palette is the maintainer's "sage garden" (2026-10-12): warm paper,12 navy ink, a sage primary for the one main action and the focus ring, and13 soft sage fills for shadcn's secondary and accent. Its values sit on the14 web's own token names, so no component changed its classes: shadcn's15 `muted` is the web's --surface, its `border` the web's --rule, its16 `muted-foreground` the web's --muted, its `destructive` the web's17 --refused. Not taken from it: --spacing (it rescales every utility),18 --font-serif (no serif), its shadows (the web is flat) and its 0.35rem19 radius (shapes stay square, which colour and type do not touch).2021 Nudged, in lightness alone, where a pasted value failed a pair that22 test/tokens.test.ts holds: --muted 0.551 to 0.5 (4.5:1 on the surface),23 --primary 0.6333 to 0.56 in light (white on it at 4.5:1), --refused24 0.5624 to 0.49 in light and 0.6368 to 0.68 in dark (5:1 on the pressed25 surface), --rule 0.9251 to 0.87 in light (the paste's border equals its26 muted, so a hairline vanished on the surface; now 1.19:1 there and27 1.38:1 on paper). --surface-2, --input and --skeleton are new steps in the28 palette's own hues, measured the same way.2930 Colour carries state and nothing else, always beside a word and a mark:3132 --landed the change is on main33 --checking the gate is running a stage now34 --waiting passed or paused, waiting on a person or a parent ask35 --refused a refusal; the one rubric colour36 --sealed held-back checks, layers and sealed evidence37 --muted not reached, not needed, secondary text3839 No colour is orange, amber or brown (no hue from 40 to 100 above chroma40 0.02): waiting is olive (hue 120), 35 degrees from landed's green.41 Checking sits at hue 238, 30 degrees from the ink's blue cast, so code42 drawn in ink never reads as a running stage. Everything else is neutral:43 controls are ruled in --input, placeholders in --skeleton, code is drawn44 in the low-chroma --syntax-* colours, and a diff's added and removed45 lines in teal and rose (--diff-*), a family of their own, so a deletion46 never reads as a refusal or an addition as a landing.4748 Light and dark follow the system setting, or its opposite by the reader's49 choice on /settings (ADR 0042). One inline script in the head50 (features/shared/theme.ts) reads the choice from localStorage, never a51 cookie, and sets data-theme="light" or "dark" on <html> before first52 paint. The `dark` variant reads that attribute, and the media query53 stands in only where no attribute is set (the script never ran). The dark54 palette is written once, under the variant, so `data-theme="light"` on a55 dark system draws the light palette and nothing else ever sets a colour56 by the system's scheme. color-scheme follows the resolved theme, so the57 browser's own controls and scrollbars match it.58*/59@custom-variant dark {60 &:where([data-theme="dark"], [data-theme="dark"] *) {61 @slot;62 }6364 @media (prefers-color-scheme: dark) {65 &:where(:root:not([data-theme]), :root:not([data-theme]) *) {66 @slot;67 }68 }69}7071/*72 The faces: IBM Plex Sans (variable, 100 to 700) for the UI and IBM Plex73 Mono for what a terminal prints, both from fontsource, latin and74 latin-ext only, with fontsource's own unicode ranges (copied from each75 package's unicode.json, so this file stays the one place a face is76 declared; check them when the packages move), so a page fetches77 the latin file alone unless it sets an accented letter. Mono comes at the78 three weights the UI sets it in (400, 500, 600).7980 Until a face arrives (font-display: swap), text is drawn in a local face81 scaled to its metrics, so the swap moves nothing: Arial (or its metric82 twin Liberation Sans) for Plex Sans, Courier New (or Liberation Mono) for83 Plex Mono. Measured in headless Chromium on 2026-10-12 from the latin84 files at 400, with canvas measureText over a 240-character English85 sample at 1000 px: Plex Sans sets 100.41% as wide as Liberation Sans,86 ascent 1.025 em and descent 0.275 em; Plex Mono sets 99.98% as wide as87 Liberation Mono, ascent 1.025 em and descent 0.275 em. Each override is88 the face's metric over its size-adjust.89*/90@font-face {91 font-family: "IBM Plex Sans Fallback";92 src:93 local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");94 size-adjust: 100.41%;95 ascent-override: 102.08%;96 descent-override: 27.39%;97 line-gap-override: 0%;98}99100@font-face {101 font-family: "IBM Plex Mono Fallback";102 src:103 local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"),104 local("Cousine");105 size-adjust: 99.98%;106 ascent-override: 102.52%;107 descent-override: 27.5%;108 line-gap-override: 0%;109}110111@font-face {112 font-family: "IBM Plex Sans Variable";113 font-style: normal;114 font-weight: 100 700;115 font-display: swap;116 src: url("@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-wght-normal.woff2")117 format("woff2-variations");118 unicode-range:119 U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,120 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,121 U+2215, U+FEFF, U+FFFD;122}123124@font-face {125 font-family: "IBM Plex Sans Variable";126 font-style: normal;127 font-weight: 100 700;128 font-display: swap;129 src: url("@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-ext-wght-normal.woff2")130 format("woff2-variations");131 unicode-range:132 U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,133 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,134 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;135}136137@font-face {138 font-family: "IBM Plex Mono";139 font-style: normal;140 font-weight: 400;141 font-display: swap;142 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2")143 format("woff2");144 unicode-range:145 U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,146 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,147 U+2215, U+FEFF, U+FFFD;148}149150@font-face {151 font-family: "IBM Plex Mono";152 font-style: normal;153 font-weight: 400;154 font-display: swap;155 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-ext-400-normal.woff2")156 format("woff2");157 unicode-range:158 U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,159 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,160 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;161}162163@font-face {164 font-family: "IBM Plex Mono";165 font-style: normal;166 font-weight: 500;167 font-display: swap;168 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2")169 format("woff2");170 unicode-range:171 U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,172 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,173 U+2215, U+FEFF, U+FFFD;174}175176@font-face {177 font-family: "IBM Plex Mono";178 font-style: normal;179 font-weight: 500;180 font-display: swap;181 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-ext-500-normal.woff2")182 format("woff2");183 unicode-range:184 U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,185 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,186 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;187}188189@font-face {190 font-family: "IBM Plex Mono";191 font-style: normal;192 font-weight: 600;193 font-display: swap;194 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2")195 format("woff2");196 unicode-range:197 U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,198 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,199 U+2215, U+FEFF, U+FFFD;200}201202@font-face {203 font-family: "IBM Plex Mono";204 font-style: normal;205 font-weight: 600;206 font-display: swap;207 src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-ext-600-normal.woff2")208 format("woff2");209 unicode-range:210 U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,211 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,212 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;213}214215:root {216 color-scheme: light;217218 /* Paper, ink and rules. The paper is hex: the theme-color meta and the219 manifest repeat it (src/features/shared/theme.ts, held by a test). */220 --background: #f8f7f4;221 --foreground: oklch(0.2417 0.0298 269.8827);222 --surface: oklch(0.9251 0.0071 88.645);223 /* One step past the surface, for a selected thing under the pointer only224 (DESIGN.md "Pressed Surface"); every state role keeps 5:1 on it. */225 --surface-2: oklch(0.91 0.0071 88.645);226 --muted: oklch(0.5 0.0234 264.3637);227 --rule: oklch(0.87 0.0071 88.645);228 --rule-strong: var(--foreground);229230 /* State roles: text-safe on paper, on surface and on surface-2 (at least 5:1). */231 --landed: oklch(0.46 0.11 155);232 --checking: oklch(0.47 0.1 238);233 --waiting: oklch(0.46 0.1 120);234 --refused: oklch(0.49 0.1743 26.1433);235 --sealed: oklch(0.46 0.13 305);236237 /* A control's border at 3:1 on paper (WCAG 2.2 SC 1.4.11), and the238 stroke of a placeholder that holds a row's place. */239 --input: oklch(0.6 0.0234 264.3637);240 --skeleton: oklch(0.82 0.0071 88.645);241242 /* Code: ink carries keywords, names and calls; strings lean teal and243 constants plum, both too grey to be mistaken for a state. Each keeps244 4.5:1 on a changed word's tint as well as on the paper. */245 --syntax-keyword: var(--foreground);246 --syntax-function: var(--foreground);247 --syntax-parameter: var(--foreground);248 --syntax-string: oklch(0.42 0.035 200);249 --syntax-constant: oklch(0.42 0.035 340);250 /* A step darker than muted: a changed word's tint sits under these, and251 they keep 4.5:1 on it too. */252 --syntax-comment: oklch(0.42 0.012 258);253 --syntax-punctuation: oklch(0.42 0.012 258);254 --syntax-link: var(--syntax-string);255256 /* A diff's lines. The sign colour draws the + and -, the bars and a257 changed line's number; the line's tint is that colour mixed into the258 paper as Pierre mixes it (12% here, 20% in the dark), so a server's259 plain-text diff can match the drawing; emphasis marks the changed260 words. */261 --diff-add-sign: oklch(0.51 0.09 195);262 --diff-add-bg: color-mix(in lab, var(--background) 88%, var(--diff-add-sign));263 --diff-add-emphasis: color-mix(264 in oklab,265 var(--diff-add-sign) 18%,266 transparent267 );268 --diff-del-sign: oklch(0.51 0.12 345);269 --diff-del-bg: color-mix(in lab, var(--background) 88%, var(--diff-del-sign));270 --diff-del-emphasis: color-mix(271 in oklab,272 var(--diff-del-sign) 18%,273 transparent274 );275276 /* shadcn's names, mapped onto the roles above. */277 --card: oklch(1 0 0);278 --card-foreground: var(--foreground);279 --popover: oklch(1 0 0);280 --popover-foreground: var(--foreground);281 --primary: oklch(0.56 0.0309 154.9039);282 --primary-foreground: oklch(1 0 0);283 --secondary: oklch(0.8596 0.0291 119.9919);284 --secondary-foreground: var(--foreground);285 --muted-foreground: var(--muted);286 --accent: oklch(0.8242 0.0221 136.6092);287 --accent-foreground: var(--foreground);288 --destructive: var(--refused);289 --border: var(--rule);290 --ring: var(--primary);291 --radius: 0.125rem;292}293294:root {295 @variant dark {296 color-scheme: dark;297298 --background: #0a0a0a;299 --foreground: oklch(0.9702 0 0);300 --surface: oklch(0.2178 0 0);301 --surface-2: oklch(0.245 0 0);302 --muted: oklch(0.7058 0 0);303 --rule: oklch(0.285 0 0);304305 --landed: oklch(0.78 0.13 155);306 --checking: oklch(0.76 0.11 238);307 --waiting: oklch(0.82 0.12 120);308 --refused: oklch(0.68 0.2078 25.3313);309 --sealed: oklch(0.76 0.11 305);310311 --input: oklch(0.52 0 0);312 --skeleton: oklch(0.36 0 0);313314 --syntax-string: oklch(0.8 0.035 200);315 --syntax-constant: oklch(0.82 0.035 340);316 --syntax-comment: var(--muted);317 --syntax-punctuation: var(--muted);318319 --diff-add-sign: oklch(0.74 0.08 195);320 --diff-add-bg: color-mix(321 in lab,322 var(--background) 80%,323 var(--diff-add-sign)324 );325 --diff-add-emphasis: color-mix(326 in oklab,327 var(--diff-add-sign) 26%,328 transparent329 );330 --diff-del-sign: oklch(0.72 0.1 345);331 --diff-del-bg: color-mix(332 in lab,333 var(--background) 80%,334 var(--diff-del-sign)335 );336 --diff-del-emphasis: color-mix(337 in oklab,338 var(--diff-del-sign) 26%,339 transparent340 );341342 --card: oklch(0.1822 0 0);343 --popover: oklch(0.1822 0 0);344 --primary: oklch(0.6333 0.0309 154.9039);345 --primary-foreground: oklch(0 0 0);346 --secondary: oklch(0.2178 0 0);347 --accent: oklch(0.3709 0.0248 153.9823);348 }349}350351/*352 The widths a page changes at, by name: a phone below `tablet`; from353 `diffsplit` a diff may go side by side; from `nav` the top bar shows its354 links; from `columns` a side column stands beside its main column; from355 `shell` (1120 px, so the 110% zoom of a 1280 frame keeps it) a page takes356 its widest gutter and its wide-only tools.357*/358@theme {359 --breakpoint-tablet: 40rem;360 --breakpoint-diffsplit: 48rem;361 --breakpoint-nav: 56.25rem;362 --breakpoint-columns: 68.75rem;363 --breakpoint-shell: 70rem;364}365366/*367 The four shells' widths (DESIGN.md "Shells"), so a page names a width by368 its job and never as a literal. Static, so each is a variable on :root369 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)`.372373 site a centred 1360 px container with 32 px gutters374 project fluid to 1600 px with 28 px gutters; the about column (340 px)375 on Overview and the file tree (280 px) on Code are its only376 side columns377 docs the site's container: a 240 px nav tree, the article at the378 measure, a 220 px "on this page"379 focus one 400 px card380 filters the asks board's filters (240 px), the one side column in the381 site, left of the list382 measure prose stops at 72ch (DESIGN.md allows 72 to 80ch; 72 is the383 docs article's cap, so one measure serves every page's prose)384 measure-page385 a project page's head, facts, toolbar and document body stop386 at 56rem (Workspace), wide enough for a table beside its prose387388 From `columns` (1100 px) a side column stands beside its main column,389 and below it stacks under it; from `nav` (900 px) the top bar's links390 are shown, and below it they fold into a menu.391392 top-bar the top bar's height (56 px), and the toolbar's (40 px) under393 it; what sticks under them reads `--stick-bar` or394 `--stick-toolbar`, each overlapping the hairline above it395 tabs a project's tab strip (44 px), under its header; the header396 and tabs stick under the top bar together, and inside a397 project's frame `--stick-bar` and `--stick-toolbar` are moved398 down by the height they are drawn at (`--project-head`), so what399 sticks there clears them400*/401@theme static {402 --container-site: 85rem;403 --container-project: 100rem;404 --container-focus: 25rem;405 --column-about: 21.25rem;406 --column-tree: 17.5rem;407 --column-docs-nav: 15rem;408 --column-docs-toc: 13.75rem;409 --column-filters: 15rem;410 --gutter-site: 2rem;411 --gutter-project: 1.75rem;412 --measure: 72ch;413 --measure-page: 56rem;414 --top-bar: 3.5rem;415 --toolbar: 2.5rem;416 --tabs: 2.75rem;417 --stick-bar: calc(var(--top-bar) - 1px);418 --stick-toolbar: calc(var(--top-bar) + var(--toolbar) - 1px);419}420421@theme inline {422 --font-sans:423 "IBM Plex Sans Variable", "IBM Plex Sans Fallback", ui-sans-serif,424 system-ui, -apple-system, "Segoe UI", sans-serif;425 --font-mono:426 "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SFMono-Regular",427 "Cascadia Mono", Menlo, monospace;428429 /*430 The type scale, by role: a fixed rem scale, nothing fluid, and nothing431 under 13 px. Mono is only for what a terminal prints or takes; its432 three lines are inline (the token's own), a transcript433 (`leading-terminal`) and code (`leading-code`, Pierre's 20 px).434 */435 --text-headline: 1.5rem;436 --text-headline--line-height: 2rem;437 --text-headline--letter-spacing: -0.015em;438 --text-headline--font-weight: 600;439 --text-title: 1.1875rem;440 --text-title--line-height: 1.6rem;441 --text-title--letter-spacing: -0.01em;442 --text-title--font-weight: 600;443 --text-want: 1rem;444 --text-want--line-height: 1.5rem;445 --text-body: 1rem;446 --text-body--line-height: 1.55rem;447 --text-ui: 0.875rem;448 --text-ui--line-height: 1.3rem;449 --text-label: 0.8125rem;450 --text-label--line-height: 1.15rem;451 --text-label--font-weight: 500;452 --text-mono: 0.8125rem;453 --text-mono--line-height: 1.25rem;454 --leading-terminal: 1.5rem;455 --leading-code: 20px;456457 /* The earlier scale, which pages written before the one above still use. */458 --text-xs: 0.75rem;459 --text-xs--line-height: 1.1rem;460 --text-sm: 0.875rem;461 --text-sm--line-height: 1.35rem;462 --text-base: 1rem;463 --text-base--line-height: 1.55rem;464 --text-lg: 1.1875rem;465 --text-lg--line-height: 1.65rem;466 --text-xl: 1.4375rem;467 --text-xl--line-height: 1.9rem;468 --text-2xl: 1.75rem;469 --text-2xl--line-height: 2.2rem;470471 --color-background: var(--background);472 --color-foreground: var(--foreground);473 --color-surface: var(--surface);474 --color-surface-2: var(--surface-2);475 --color-rule: var(--rule);476 --color-rule-strong: var(--rule-strong);477 --color-landed: var(--landed);478 --color-checking: var(--checking);479 --color-waiting: var(--waiting);480 --color-refused: var(--refused);481 --color-sealed: var(--sealed);482 --color-skeleton: var(--skeleton);483 --color-diff-add-sign: var(--diff-add-sign);484 --color-diff-add-bg: var(--diff-add-bg);485 --color-diff-add-emphasis: var(--diff-add-emphasis);486 --color-diff-del-sign: var(--diff-del-sign);487 --color-diff-del-bg: var(--diff-del-bg);488 --color-diff-del-emphasis: var(--diff-del-emphasis);489 --color-muted: var(--surface);490 --color-muted-foreground: var(--muted-foreground);491492 --color-card: var(--card);493 --color-card-foreground: var(--card-foreground);494 --color-popover: var(--popover);495 --color-popover-foreground: var(--popover-foreground);496 --color-primary: var(--primary);497 --color-primary-foreground: var(--primary-foreground);498 --color-secondary: var(--secondary);499 --color-secondary-foreground: var(--secondary-foreground);500 --color-accent: var(--accent);501 --color-accent-foreground: var(--accent-foreground);502 --color-destructive: var(--destructive);503 --color-border: var(--border);504 --color-input: var(--input);505 --color-ring: var(--ring);506507 --radius-sm: calc(var(--radius) * 0.5);508 --radius-md: var(--radius);509 --radius-lg: calc(var(--radius) * 2);510 --radius-xl: calc(var(--radius) * 3);511512 /* A landing's mark settles once, like a stamp. */513 --animate-stamp: stamp 420ms cubic-bezier(0.16, 1, 0.3, 1) 1 both;514515 @keyframes stamp {516 from {517 opacity: 0;518 transform: scale(1.35);519 }520 to {521 opacity: 1;522 transform: scale(1);523 }524 }525}526527/*528 What each theme choice on /settings gives, before React can see the529 system (ADR 0042): the head script names the system's scheme in530 data-system, and these name the resolution the same way the component531 does once it runs. Where the script never ran, nothing is named.532*/533:root[data-system="light"] [data-system-resolves="same"]::after,534:root[data-system="dark"] [data-system-resolves="opposite"]::after {535 content: "Light";536}537538:root[data-system="dark"] [data-system-resolves="same"]::after,539:root[data-system="light"] [data-system-resolves="opposite"]::after {540 content: "Dark";541}542543@layer base {544 * {545 @apply border-border outline-ring/50;546 }547548 html {549 -webkit-text-size-adjust: 100%;550 scrollbar-color: var(--rule) transparent;551 text-rendering: optimizeLegibility;552 }553554 body {555 @apply bg-background text-foreground font-sans antialiased;556 caret-color: var(--checking);557 }558559 /* On a phone a decision's choices are a bar fixed at the foot of the560 screen (decision/choices.tsx): main keeps room for the bar's own height561 at its foot, so the page's last lines scroll clear of it. */562 @media (width < 40rem) {563 main:has([data-choices-bar]) {564 padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));565 }566 }567568 ::selection {569 background: color-mix(in oklch, var(--checking) 22%, transparent);570 color: var(--foreground);571 }572573 a {574 text-underline-offset: 0.2em;575 text-decoration-thickness: 1px;576 }577578 :focus-visible {579 outline: 2px solid var(--ring);580 outline-offset: 2px;581 }582583 /* Code shows what was typed: `=>` stays two characters. */584 code,585 kbd,586 samp,587 pre {588 font-feature-settings:589 "calt" 0,590 "liga" 0;591 }592593 time,594 td,595 th {596 font-variant-numeric: tabular-nums;597 }598599 /*600 Pierre draws code inside shadow roots: `diffs-container` (@pierre/diffs)601 and `file-tree-container` (@pierre/trees). Each reads these variables602 from its host, so setting them here maps both onto the tokens above,603 and both follow the resolved theme with them. Nothing outside604 them reaches in: the `code` rule above stops at the shadow root, so the605 ligatures are switched off again here.606 */607 diffs-container {608 /* Pierre's host says `light dark`, which follows the system; this rule,609 from outside the shadow root, wins, so its `light-dark()` colours take610 the page's resolved theme (ADR 0042). */611 color-scheme: inherit;612613 /* Metrics: the mono token on Pierre's 20 px line. */614 --diffs-font-family: var(--font-mono);615 --diffs-font-size: 0.8125rem;616 --diffs-line-height: 20px;617 --diffs-font-features: "calt" 0, "liga" 0;618 --diffs-tab-size: 2;619 --diffs-header-font-family: var(--font-sans);620621 /* The ground: code sits on the paper, gutter and all. */622 --diffs-background: var(--background);623 --diffs-foreground: var(--foreground);624 --diffs-bg-context-override: var(--background);625 --diffs-bg-context-gutter-override: var(--background);626 --diffs-bg-separator-override: var(--surface);627 --diffs-fg-number-override: var(--muted);628 /* Pierre mixes a few percent of this into a hovered line, which lands629 on the surface's tone in both schemes. */630 --diffs-bg-hover-override: var(--foreground);631 /* The viewer's own selection, checking's hue, as text selection is;632 Pierre mixes it into the line at about a fifth. */633 --diffs-bg-selection-override: var(--checking);634 --diffs-bg-selection-number-override: var(--checking);635636 /* The token theme (features/code/pierre.ts) reads these. */637 --diffs-token-keyword: var(--syntax-keyword);638 --diffs-token-function: var(--syntax-function);639 --diffs-token-parameter: var(--syntax-parameter);640 --diffs-token-string: var(--syntax-string);641 --diffs-token-string-expression: var(--syntax-string);642 --diffs-token-constant: var(--syntax-constant);643 --diffs-token-comment: var(--syntax-comment);644 --diffs-token-punctuation: var(--syntax-punctuation);645 --diffs-token-link: var(--syntax-link);646647 /* A diff's lines, in its own tints. Pierre mixes a changed line's648 background (and its number's) from the sign colour, as --diff-add-bg649 says, so the line backgrounds take no override of their own: Pierre650 also draws a deletion's bar in dashes of that background and the651 sign, and an override set to the sign would make the bar solid, so a652 deletion would differ from an addition by colour alone. */653 --diffs-addition-color-override: var(--diff-add-sign);654 --diffs-bg-addition-emphasis-override: var(--diff-add-emphasis);655 --diffs-deletion-color-override: var(--diff-del-sign);656 --diffs-bg-deletion-emphasis-override: var(--diff-del-emphasis);657 --diffs-modified-color-override: var(--muted);658 }659660 file-tree-container {661 /* As for a diff: the page's resolved theme, not the system's. */662 color-scheme: inherit;663664 /* A tree is read like a list, in the UI's own face and size. */665 --trees-font-family-override: var(--font-sans);666 --trees-font-size-override: 0.875rem;667 --trees-bg-override: var(--background);668 --trees-bg-muted-override: var(--surface);669 --trees-fg-override: var(--foreground);670 --trees-fg-muted-override: var(--muted);671 --trees-input-bg-override: var(--background);672 --trees-border-color-override: var(--input);673 --trees-border-radius-override: var(--radius);674 --trees-accent-override: var(--foreground);675 --trees-focus-ring-color-override: var(--ring);676 --trees-selected-bg-override: var(--surface);677 --trees-selected-fg-override: var(--foreground);678 /* One colour for every file's icon: a file's kind is not a state. */679 --trees-file-icon-color: var(--muted);680 /* A commit's changes, in the diff's tints; a change in place is muted. */681 --trees-status-added-override: var(--diff-add-sign);682 --trees-status-deleted-override: var(--diff-del-sign);683 --trees-status-modified-override: var(--muted);684 --trees-status-renamed-override: var(--muted);685 --trees-status-untracked-override: var(--muted);686 --trees-status-ignored-override: var(--muted);687 --trees-git-added-color-override: var(--diff-add-sign);688 --trees-git-deleted-color-override: var(--diff-del-sign);689 --trees-git-modified-color-override: var(--muted);690 --trees-git-renamed-color-override: var(--muted);691 --trees-git-untracked-color-override: var(--muted);692 --trees-git-ignored-color-override: var(--muted);693 }694695 @media (prefers-reduced-motion: reduce) {696 *,697 ::before,698 ::after {699 animation-duration: 0.01ms !important;700 animation-iteration-count: 1 !important;701 transition-duration: 0.01ms !important;702 }703 }704}705706/*707 Rendered Markdown (a README, a `.md` file) in the page's colours: the708 typography plugin's palette, every role mapped to a token, so one set of709 classes serves both schemes (features/markdown/markdown.tsx).710*/711@utility prose-tokens {712 --tw-prose-body: var(--foreground);713 --tw-prose-headings: var(--foreground);714 --tw-prose-lead: var(--muted);715 --tw-prose-links: var(--foreground);716 --tw-prose-bold: var(--foreground);717 --tw-prose-counters: var(--muted);718 --tw-prose-bullets: var(--muted);719 --tw-prose-hr: var(--rule);720 --tw-prose-quotes: var(--muted);721 --tw-prose-quote-borders: var(--rule);722 --tw-prose-captions: var(--muted);723 --tw-prose-kbd: var(--foreground);724 --tw-prose-kbd-shadows: var(--rule);725 --tw-prose-code: var(--foreground);726 --tw-prose-pre-code: var(--foreground);727 --tw-prose-pre-bg: var(--surface);728 --tw-prose-th-borders: var(--input);729 --tw-prose-td-borders: var(--rule);730}731732/*733 The landing's music box (features/landing/music-box): an isometric drawing734 in the page's own inks. Every fill and stroke reads one of these tokens,735 each a mix of the card and the ink, so both schemes come from the page's736 palette. Sides take four tones by how they meet the light, tops the737 lightest; lines run from the ink (hi) down to a groove (faint). State738 colours appear only on a stage's flag, the held-back bell, the landed pin739 and tooth, and the stray pin, each beside the readout's word for it.740*/741.mbx {742 --mbx-paper: var(--card);743 --mbx-top: var(--card);744 --mbx-shade-0: color-mix(in oklab, var(--card) 84%, var(--foreground));745 --mbx-shade-1: color-mix(in oklab, var(--card) 88.5%, var(--foreground));746 --mbx-shade-2: color-mix(in oklab, var(--card) 92.5%, var(--foreground));747 --mbx-shade-3: color-mix(in oklab, var(--card) 96%, var(--foreground));748 --mbx-lit-top: var(--card);749 --mbx-lit-shade: color-mix(in oklab, var(--card) 93%, var(--foreground));750 --mbx-hi: color-mix(in oklab, var(--foreground) 88%, var(--card));751 --mbx-mid: color-mix(in oklab, var(--foreground) 50%, var(--card));752 --mbx-lo: color-mix(in oklab, var(--foreground) 30%, var(--card));753 --mbx-faint: color-mix(in oklab, var(--foreground) 16%, var(--card));754 --mbx-lit: var(--foreground);755 --mbx-glass: color-mix(in oklab, var(--foreground) 5%, transparent);756 --mbx-dot: var(--foreground);757758 @variant dark {759 --mbx-top: color-mix(in oklab, var(--card) 88%, white);760 --mbx-shade-0: color-mix(in oklab, var(--card) 82%, black);761 --mbx-shade-1: color-mix(in oklab, var(--card) 91%, black);762 --mbx-shade-2: var(--card);763 --mbx-shade-3: color-mix(in oklab, var(--card) 94%, white);764 --mbx-lit-top: color-mix(in oklab, var(--card) 80%, white);765 --mbx-lit-shade: color-mix(in oklab, var(--card) 90%, white);766 --mbx-hi: color-mix(in oklab, var(--foreground) 80%, var(--card));767 --mbx-mid: color-mix(in oklab, var(--foreground) 44%, var(--card));768 --mbx-lo: color-mix(in oklab, var(--foreground) 26%, var(--card));769 --mbx-faint: color-mix(in oklab, var(--foreground) 15%, var(--card));770 --mbx-glass: color-mix(in oklab, var(--foreground) 6%, transparent);771 }772}773774.mbx-svg {775 display: block;776 width: 100%;777 height: auto;778 overflow: visible;779}780781.mbx-svg path,782.mbx-svg circle {783 vector-effect: non-scaling-stroke;784}785786.mbx-fill {787 fill: var(--mbx-paper);788}789790.mbx-shade,791.mbx-top {792 stroke: none;793}794795.mbx-shade[data-shade="0"] {796 fill: var(--mbx-shade-0);797}798799.mbx-shade[data-shade="1"] {800 fill: var(--mbx-shade-1);801}802803.mbx-shade[data-shade="2"] {804 fill: var(--mbx-shade-2);805}806807.mbx-shade[data-shade="3"] {808 fill: var(--mbx-shade-3);809}810811.mbx-top {812 fill: var(--mbx-top);813}814815.mbx-solid[data-flat] > :is(.mbx-shade, .mbx-top) {816 display: none;817}818819.mbx-solid[data-glass] > :is(.mbx-fill, .mbx-shade, .mbx-top) {820 fill: var(--mbx-glass);821}822823.mbx-solid[data-lit] > .mbx-top,824[data-state="ask"] .mbx-top {825 fill: var(--mbx-lit-top);826}827828.mbx-solid[data-lit] > .mbx-shade,829[data-state="ask"] .mbx-shade {830 fill: var(--mbx-lit-shade);831}832833.mbx-line {834 fill: none;835 stroke: var(--mbx-lo);836 stroke-width: 0.6px;837 stroke-linecap: round;838 stroke-linejoin: round;839}840841.mbx-line[data-tone="hi"] {842 stroke: var(--mbx-hi);843}844845.mbx-line[data-tone="mid"] {846 stroke: var(--mbx-mid);847}848849.mbx-line[data-tone="faint"] {850 stroke: var(--mbx-faint);851}852853.mbx-line[data-tone="lit"],854.mbx-solid[data-lit] > .mbx-edge,855[data-state="ask"] .mbx-edge {856 stroke: var(--mbx-lit);857 stroke-width: 1px;858}859860.mbx-dots circle {861 fill: var(--mbx-dot);862 opacity: 0.45;863}864865.mbx-dots[data-tone="lo"] circle {866 opacity: 0.24;867}868869.mbx-pins path,870.mbx-pin {871 fill: none;872 stroke: var(--mbx-hi);873 stroke-width: 1.3px;874 stroke-linecap: round;875}876877.mbx-pins [data-alpha="0"] {878 opacity: 0.2;879}880881.mbx-pins [data-alpha="1"] {882 opacity: 0.45;883}884885.mbx-pins [data-alpha="2"] {886 opacity: 0.7;887}888889.mbx-pin[data-part="sour"] {890 stroke: var(--mbx-lit);891 stroke-width: 1.6px;892}893894/* A state's colour, beside the readout's word for it, eased in as the stage reports it. */895.mbx [data-flag] path,896.mbx [data-part="bell"] path,897.mbx [data-part="tooth"] path {898 transition:899 fill 160ms ease-out,900 stroke 160ms ease-out;901}902903.mbx [data-state="landed"] :is(.mbx-fill, .mbx-shade, .mbx-top),904.mbx [data-state="refused"] :is(.mbx-fill, .mbx-shade, .mbx-top),905.mbx [data-state="sealed"] :is(.mbx-fill, .mbx-shade, .mbx-top),906.mbx [data-state="checking"] :is(.mbx-fill, .mbx-shade, .mbx-top) {907 fill: var(--mbx-state);908}909910.mbx [data-state] .mbx-edge {911 stroke: var(--mbx-state, var(--mbx-mid));912}913914.mbx [data-state="landed"],915.mbx-pin[data-state="landed"] {916 --mbx-state: var(--landed);917 stroke: var(--landed);918}919920.mbx [data-state="refused"] {921 --mbx-state: var(--refused);922}923924.mbx [data-state="sealed"] {925 --mbx-state: var(--sealed);926}927928.mbx [data-state="checking"] {929 --mbx-state: var(--checking);930}931932.mbx [data-state="idle"] {933 --mbx-state: var(--mbx-mid);934}935936.mbx [data-state="ask"] {937 --mbx-state: var(--mbx-lit);938}939940/* The stray pin the shape stage refused, beside the readout's OutOfScope. */941.mbx [data-fault] .mbx-line[data-tone="lit"] {942 stroke: var(--refused);943}944945.mbx-stage {946 cursor: pointer;947 touch-action: pan-y;948}949950.mbx-swatch {951 display: inline-block;952 width: 16px;953 height: 10px;954 margin-inline-end: 0.5rem;955 overflow: visible;956 vertical-align: 0;957}958959/* On a phone the bench's margins go, so the machine is drawn larger. */960@media (width < 40rem) {961 .mbx-stage .mbx-svg {962 width: 130%;963 margin-inline: -15%;964 }965}966967.mbx-swatch path {968 fill: var(--card);969 stroke: var(--mbx-mid);970 stroke-width: 1px;971 stroke-linejoin: round;972 vector-effect: non-scaling-stroke;973}974975.mbx-swatch[data-mark="lit"] path {976 stroke: var(--mbx-lit);977}978979.mbx-swatch[data-mark="landed"] path:first-child {980 fill: var(--landed);981 stroke: var(--landed);982}983984.mbx-swatch[data-mark="refused"] path:first-child {985 fill: var(--refused);986 stroke: var(--refused);987}988989.mbx-swatch[data-mark="sealed"] path:first-child {990 fill: var(--sealed);991 stroke: var(--sealed);992}993994.mbx-swatch[data-mark="glass"] path:first-child {995 fill: var(--mbx-glass);996}997998.mbx-swatch .mbx-swatch-crease {999 fill: none;1000 stroke: var(--mbx-lo);1001}