Skip to content
Myr

styles.css

This file

Path

apps/web/src/styles.css

1,027 lines · 33.6 KiB · CSS

Last changed by

Merge web/ruled-frame into mainoscabrielbefore adoption07f14ad

History of this file

Take it

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 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 the381           measure, a 220 px "on this page"382  focus    one 400 px card383  filters  the asks board's filters (240 px), the one side column in the384           site, left of the list385  measure  prose stops at 72ch (DESIGN.md allows 72 to 80ch; 72 is the386           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)398399  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.402403  top-bar  the top bar's height (56 px), and the toolbar's (40 px) under404           it; what sticks under them reads `--stick-bar` or405           `--stick-toolbar`, each overlapping the hairline above it406  tabs     a project's tab strip (44 px), under its header; the header407           and tabs stick under the top bar together, and inside a408           project's frame `--stick-bar` and `--stick-toolbar` are moved409           down by the height they are drawn at (`--project-head`), so what410           sticks there clears them411*/412@theme static {413  --container-site: 110rem;414  --container-project: 100rem;415  --container-focus: 25rem;416  --column-about: 21.25rem;417  --column-tree: 17.5rem;418  --column-docs-nav: 15rem;419  --column-docs-toc: 13.75rem;420  --column-filters: 15rem;421  --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);433  --stick-toolbar: calc(var(--top-bar) + var(--toolbar) - 1px);434}435436@theme inline {437  --font-sans:438    "IBM Plex Sans Variable", "IBM Plex Sans Fallback", ui-sans-serif,439    system-ui, -apple-system, "Segoe UI", sans-serif;440  --font-mono:441    "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SFMono-Regular",442    "Cascadia Mono", Menlo, monospace;443444  /*445    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).449450    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;465  --text-title: 1.1875rem;466  --text-title--line-height: 1.6rem;467  --text-title--letter-spacing: -0.01em;468  --text-title--font-weight: 600;469  --text-want: 1rem;470  --text-want--line-height: 1.5rem;471  --text-body: 1rem;472  --text-body--line-height: 1.55rem;473  --text-ui: 0.875rem;474  --text-ui--line-height: 1.3rem;475  --text-label: 0.8125rem;476  --text-label--line-height: 1.15rem;477  --text-label--font-weight: 500;478  --text-mono: 0.8125rem;479  --text-mono--line-height: 1.25rem;480  --leading-terminal: 1.5rem;481  --leading-code: 20px;482483  /* The earlier scale, which pages written before the one above still use. */484  --text-xs: 0.75rem;485  --text-xs--line-height: 1.1rem;486  --text-sm: 0.875rem;487  --text-sm--line-height: 1.35rem;488  --text-base: 1rem;489  --text-base--line-height: 1.55rem;490  --text-lg: 1.1875rem;491  --text-lg--line-height: 1.65rem;492  --text-xl: 1.4375rem;493  --text-xl--line-height: 1.9rem;494  --text-2xl: 1.75rem;495  --text-2xl--line-height: 2.2rem;496497  --color-background: var(--background);498  --color-foreground: var(--foreground);499  --color-surface: var(--surface);500  --color-surface-2: var(--surface-2);501  --color-rule: var(--rule);502  --color-rule-strong: var(--rule-strong);503  --color-landed: var(--landed);504  --color-checking: var(--checking);505  --color-waiting: var(--waiting);506  --color-refused: var(--refused);507  --color-sealed: var(--sealed);508  --color-skeleton: var(--skeleton);509  --color-diff-add-sign: var(--diff-add-sign);510  --color-diff-add-bg: var(--diff-add-bg);511  --color-diff-add-emphasis: var(--diff-add-emphasis);512  --color-diff-del-sign: var(--diff-del-sign);513  --color-diff-del-bg: var(--diff-del-bg);514  --color-diff-del-emphasis: var(--diff-del-emphasis);515  --color-muted: var(--surface);516  --color-muted-foreground: var(--muted-foreground);517518  --color-card: var(--card);519  --color-card-foreground: var(--card-foreground);520  --color-popover: var(--popover);521  --color-popover-foreground: var(--popover-foreground);522  --color-primary: var(--primary);523  --color-primary-foreground: var(--primary-foreground);524  --color-secondary: var(--secondary);525  --color-secondary-foreground: var(--secondary-foreground);526  --color-accent: var(--accent);527  --color-accent-foreground: var(--accent-foreground);528  --color-destructive: var(--destructive);529  --color-border: var(--border);530  --color-input: var(--input);531  --color-ring: var(--ring);532533  --radius-sm: calc(var(--radius) * 0.5);534  --radius-md: var(--radius);535  --radius-lg: calc(var(--radius) * 2);536  --radius-xl: calc(var(--radius) * 3);537538  /* A landing's mark settles once, like a stamp. */539  --animate-stamp: stamp 420ms cubic-bezier(0.16, 1, 0.3, 1) 1 both;540541  @keyframes stamp {542    from {543      opacity: 0;544      transform: scale(1.35);545    }546    to {547      opacity: 1;548      transform: scale(1);549    }550  }551}552553/*554  What each theme choice on /settings gives, before React can see the555  system (ADR 0042): the head script names the system's scheme in556  data-system, and these name the resolution the same way the component557  does once it runs. Where the script never ran, nothing is named.558*/559:root[data-system="light"] [data-system-resolves="same"]::after,560:root[data-system="dark"] [data-system-resolves="opposite"]::after {561  content: "Light";562}563564:root[data-system="dark"] [data-system-resolves="same"]::after,565:root[data-system="light"] [data-system-resolves="opposite"]::after {566  content: "Dark";567}568569@layer base {570  * {571    @apply border-border outline-ring/50;572  }573574  html {575    -webkit-text-size-adjust: 100%;576    scrollbar-color: var(--rule) transparent;577    text-rendering: optimizeLegibility;578  }579580  body {581    @apply bg-background text-foreground font-sans antialiased;582    caret-color: var(--checking);583  }584585  /* On a phone a decision's choices are a bar fixed at the foot of the586     screen (decision/choices.tsx): main keeps room for the bar's own height587     at its foot, so the page's last lines scroll clear of it. */588  @media (width < 40rem) {589    main:has([data-choices-bar]) {590      padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));591    }592  }593594  ::selection {595    background: color-mix(in oklch, var(--checking) 22%, transparent);596    color: var(--foreground);597  }598599  a {600    text-underline-offset: 0.2em;601    text-decoration-thickness: 1px;602  }603604  :focus-visible {605    outline: 2px solid var(--ring);606    outline-offset: 2px;607  }608609  /* Code shows what was typed: `=>` stays two characters. */610  code,611  kbd,612  samp,613  pre {614    font-feature-settings:615      "calt" 0,616      "liga" 0;617  }618619  time,620  td,621  th {622    font-variant-numeric: tabular-nums;623  }624625  /*626    Pierre draws code inside shadow roots: `diffs-container` (@pierre/diffs)627    and `file-tree-container` (@pierre/trees). Each reads these variables628    from its host, so setting them here maps both onto the tokens above,629    and both follow the resolved theme with them. Nothing outside630    them reaches in: the `code` rule above stops at the shadow root, so the631    ligatures are switched off again here.632  */633  diffs-container {634    /* Pierre's host says `light dark`, which follows the system; this rule,635       from outside the shadow root, wins, so its `light-dark()` colours take636       the page's resolved theme (ADR 0042). */637    color-scheme: inherit;638639    /* Metrics: the mono token on Pierre's 20 px line. */640    --diffs-font-family: var(--font-mono);641    --diffs-font-size: 0.8125rem;642    --diffs-line-height: 20px;643    --diffs-font-features: "calt" 0, "liga" 0;644    --diffs-tab-size: 2;645    --diffs-header-font-family: var(--font-sans);646647    /* The ground: code sits on the paper, gutter and all. */648    --diffs-background: var(--background);649    --diffs-foreground: var(--foreground);650    --diffs-bg-context-override: var(--background);651    --diffs-bg-context-gutter-override: var(--background);652    --diffs-bg-separator-override: var(--surface);653    --diffs-fg-number-override: var(--muted);654    /* Pierre mixes a few percent of this into a hovered line, which lands655       on the surface's tone in both schemes. */656    --diffs-bg-hover-override: var(--foreground);657    /* The viewer's own selection, checking's hue, as text selection is;658       Pierre mixes it into the line at about a fifth. */659    --diffs-bg-selection-override: var(--checking);660    --diffs-bg-selection-number-override: var(--checking);661662    /* The token theme (features/code/pierre.ts) reads these. */663    --diffs-token-keyword: var(--syntax-keyword);664    --diffs-token-function: var(--syntax-function);665    --diffs-token-parameter: var(--syntax-parameter);666    --diffs-token-string: var(--syntax-string);667    --diffs-token-string-expression: var(--syntax-string);668    --diffs-token-constant: var(--syntax-constant);669    --diffs-token-comment: var(--syntax-comment);670    --diffs-token-punctuation: var(--syntax-punctuation);671    --diffs-token-link: var(--syntax-link);672673    /* A diff's lines, in its own tints. Pierre mixes a changed line's674       background (and its number's) from the sign colour, as --diff-add-bg675       says, so the line backgrounds take no override of their own: Pierre676       also draws a deletion's bar in dashes of that background and the677       sign, and an override set to the sign would make the bar solid, so a678       deletion would differ from an addition by colour alone. */679    --diffs-addition-color-override: var(--diff-add-sign);680    --diffs-bg-addition-emphasis-override: var(--diff-add-emphasis);681    --diffs-deletion-color-override: var(--diff-del-sign);682    --diffs-bg-deletion-emphasis-override: var(--diff-del-emphasis);683    --diffs-modified-color-override: var(--muted);684  }685686  file-tree-container {687    /* As for a diff: the page's resolved theme, not the system's. */688    color-scheme: inherit;689690    /* A tree is read like a list, in the UI's own face and size. */691    --trees-font-family-override: var(--font-sans);692    --trees-font-size-override: 0.875rem;693    --trees-bg-override: var(--background);694    --trees-bg-muted-override: var(--surface);695    --trees-fg-override: var(--foreground);696    --trees-fg-muted-override: var(--muted);697    --trees-input-bg-override: var(--background);698    --trees-border-color-override: var(--input);699    --trees-border-radius-override: var(--radius);700    --trees-accent-override: var(--foreground);701    --trees-focus-ring-color-override: var(--ring);702    --trees-selected-bg-override: var(--surface);703    --trees-selected-fg-override: var(--foreground);704    /* One colour for every file's icon: a file's kind is not a state. */705    --trees-file-icon-color: var(--muted);706    /* A commit's changes, in the diff's tints; a change in place is muted. */707    --trees-status-added-override: var(--diff-add-sign);708    --trees-status-deleted-override: var(--diff-del-sign);709    --trees-status-modified-override: var(--muted);710    --trees-status-renamed-override: var(--muted);711    --trees-status-untracked-override: var(--muted);712    --trees-status-ignored-override: var(--muted);713    --trees-git-added-color-override: var(--diff-add-sign);714    --trees-git-deleted-color-override: var(--diff-del-sign);715    --trees-git-modified-color-override: var(--muted);716    --trees-git-renamed-color-override: var(--muted);717    --trees-git-untracked-color-override: var(--muted);718    --trees-git-ignored-color-override: var(--muted);719  }720721  @media (prefers-reduced-motion: reduce) {722    *,723    ::before,724    ::after {725      animation-duration: 0.01ms !important;726      animation-iteration-count: 1 !important;727      transition-duration: 0.01ms !important;728    }729  }730}731732/*733  Rendered Markdown (a README, a `.md` file) in the page's colours: the734  typography plugin's palette, every role mapped to a token, so one set of735  classes serves both schemes (features/markdown/markdown.tsx).736*/737@utility prose-tokens {738  --tw-prose-body: var(--foreground);739  --tw-prose-headings: var(--foreground);740  --tw-prose-lead: var(--muted);741  --tw-prose-links: var(--foreground);742  --tw-prose-bold: var(--foreground);743  --tw-prose-counters: var(--muted);744  --tw-prose-bullets: var(--muted);745  --tw-prose-hr: var(--rule);746  --tw-prose-quotes: var(--muted);747  --tw-prose-quote-borders: var(--rule);748  --tw-prose-captions: var(--muted);749  --tw-prose-kbd: var(--foreground);750  --tw-prose-kbd-shadows: var(--rule);751  --tw-prose-code: var(--foreground);752  --tw-prose-pre-code: var(--foreground);753  --tw-prose-pre-bg: var(--surface);754  --tw-prose-th-borders: var(--input);755  --tw-prose-td-borders: var(--rule);756}757758/*759  The landing's music box (features/landing/music-box): an isometric drawing760  in the page's own inks. Every fill and stroke reads one of these tokens,761  each a mix of the card and the ink, so both schemes come from the page's762  palette. Sides take four tones by how they meet the light, tops the763  lightest; lines run from the ink (hi) down to a groove (faint). State764  colours appear only on a stage's flag, the held-back bell, the landed pin765  and tooth, and the stray pin, each beside the readout's word for it.766*/767.mbx {768  --mbx-paper: var(--card);769  --mbx-top: var(--card);770  --mbx-shade-0: color-mix(in oklab, var(--card) 84%, var(--foreground));771  --mbx-shade-1: color-mix(in oklab, var(--card) 88.5%, var(--foreground));772  --mbx-shade-2: color-mix(in oklab, var(--card) 92.5%, var(--foreground));773  --mbx-shade-3: color-mix(in oklab, var(--card) 96%, var(--foreground));774  --mbx-lit-top: var(--card);775  --mbx-lit-shade: color-mix(in oklab, var(--card) 93%, var(--foreground));776  --mbx-hi: color-mix(in oklab, var(--foreground) 88%, var(--card));777  --mbx-mid: color-mix(in oklab, var(--foreground) 50%, var(--card));778  --mbx-lo: color-mix(in oklab, var(--foreground) 30%, var(--card));779  --mbx-faint: color-mix(in oklab, var(--foreground) 16%, var(--card));780  --mbx-lit: var(--foreground);781  --mbx-glass: color-mix(in oklab, var(--foreground) 5%, transparent);782  --mbx-dot: var(--foreground);783784  @variant dark {785    --mbx-top: color-mix(in oklab, var(--card) 88%, white);786    --mbx-shade-0: color-mix(in oklab, var(--card) 82%, black);787    --mbx-shade-1: color-mix(in oklab, var(--card) 91%, black);788    --mbx-shade-2: var(--card);789    --mbx-shade-3: color-mix(in oklab, var(--card) 94%, white);790    --mbx-lit-top: color-mix(in oklab, var(--card) 80%, white);791    --mbx-lit-shade: color-mix(in oklab, var(--card) 90%, white);792    --mbx-hi: color-mix(in oklab, var(--foreground) 80%, var(--card));793    --mbx-mid: color-mix(in oklab, var(--foreground) 44%, var(--card));794    --mbx-lo: color-mix(in oklab, var(--foreground) 26%, var(--card));795    --mbx-faint: color-mix(in oklab, var(--foreground) 15%, var(--card));796    --mbx-glass: color-mix(in oklab, var(--foreground) 6%, transparent);797  }798}799800.mbx-svg {801  display: block;802  width: 100%;803  height: auto;804  overflow: visible;805}806807.mbx-svg path,808.mbx-svg circle {809  vector-effect: non-scaling-stroke;810}811812.mbx-fill {813  fill: var(--mbx-paper);814}815816.mbx-shade,817.mbx-top {818  stroke: none;819}820821.mbx-shade[data-shade="0"] {822  fill: var(--mbx-shade-0);823}824825.mbx-shade[data-shade="1"] {826  fill: var(--mbx-shade-1);827}828829.mbx-shade[data-shade="2"] {830  fill: var(--mbx-shade-2);831}832833.mbx-shade[data-shade="3"] {834  fill: var(--mbx-shade-3);835}836837.mbx-top {838  fill: var(--mbx-top);839}840841.mbx-solid[data-flat] > :is(.mbx-shade, .mbx-top) {842  display: none;843}844845.mbx-solid[data-glass] > :is(.mbx-fill, .mbx-shade, .mbx-top) {846  fill: var(--mbx-glass);847}848849.mbx-solid[data-lit] > .mbx-top,850[data-state="ask"] .mbx-top {851  fill: var(--mbx-lit-top);852}853854.mbx-solid[data-lit] > .mbx-shade,855[data-state="ask"] .mbx-shade {856  fill: var(--mbx-lit-shade);857}858859.mbx-line {860  fill: none;861  stroke: var(--mbx-lo);862  stroke-width: 0.6px;863  stroke-linecap: round;864  stroke-linejoin: round;865}866867.mbx-line[data-tone="hi"] {868  stroke: var(--mbx-hi);869}870871.mbx-line[data-tone="mid"] {872  stroke: var(--mbx-mid);873}874875.mbx-line[data-tone="faint"] {876  stroke: var(--mbx-faint);877}878879.mbx-line[data-tone="lit"],880.mbx-solid[data-lit] > .mbx-edge,881[data-state="ask"] .mbx-edge {882  stroke: var(--mbx-lit);883  stroke-width: 1px;884}885886.mbx-dots circle {887  fill: var(--mbx-dot);888  opacity: 0.45;889}890891.mbx-dots[data-tone="lo"] circle {892  opacity: 0.24;893}894895.mbx-pins path,896.mbx-pin {897  fill: none;898  stroke: var(--mbx-hi);899  stroke-width: 1.3px;900  stroke-linecap: round;901}902903.mbx-pins [data-alpha="0"] {904  opacity: 0.2;905}906907.mbx-pins [data-alpha="1"] {908  opacity: 0.45;909}910911.mbx-pins [data-alpha="2"] {912  opacity: 0.7;913}914915.mbx-pin[data-part="sour"] {916  stroke: var(--mbx-lit);917  stroke-width: 1.6px;918}919920/* A state's colour, beside the readout's word for it, eased in as the stage reports it. */921.mbx [data-flag] path,922.mbx [data-part="bell"] path,923.mbx [data-part="tooth"] path {924  transition:925    fill 160ms ease-out,926    stroke 160ms ease-out;927}928929.mbx [data-state="landed"] :is(.mbx-fill, .mbx-shade, .mbx-top),930.mbx [data-state="refused"] :is(.mbx-fill, .mbx-shade, .mbx-top),931.mbx [data-state="sealed"] :is(.mbx-fill, .mbx-shade, .mbx-top),932.mbx [data-state="checking"] :is(.mbx-fill, .mbx-shade, .mbx-top) {933  fill: var(--mbx-state);934}935936.mbx [data-state] .mbx-edge {937  stroke: var(--mbx-state, var(--mbx-mid));938}939940.mbx [data-state="landed"],941.mbx-pin[data-state="landed"] {942  --mbx-state: var(--landed);943  stroke: var(--landed);944}945946.mbx [data-state="refused"] {947  --mbx-state: var(--refused);948}949950.mbx [data-state="sealed"] {951  --mbx-state: var(--sealed);952}953954.mbx [data-state="checking"] {955  --mbx-state: var(--checking);956}957958.mbx [data-state="idle"] {959  --mbx-state: var(--mbx-mid);960}961962.mbx [data-state="ask"] {963  --mbx-state: var(--mbx-lit);964}965966/* The stray pin the shape stage refused, beside the readout's OutOfScope. */967.mbx [data-fault] .mbx-line[data-tone="lit"] {968  stroke: var(--refused);969}970971.mbx-stage {972  cursor: pointer;973  touch-action: pan-y;974}975976.mbx-swatch {977  display: inline-block;978  width: 16px;979  height: 10px;980  margin-inline-end: 0.5rem;981  overflow: visible;982  vertical-align: 0;983}984985/* On a phone the bench's margins go, so the machine is drawn larger. */986@media (width < 40rem) {987  .mbx-stage .mbx-svg {988    width: 130%;989    margin-inline: -15%;990  }991}992993.mbx-swatch path {994  fill: var(--card);995  stroke: var(--mbx-mid);996  stroke-width: 1px;997  stroke-linejoin: round;998  vector-effect: non-scaling-stroke;999}10001001.mbx-swatch[data-mark="lit"] path {1002  stroke: var(--mbx-lit);1003}10041005.mbx-swatch[data-mark="landed"] path:first-child {1006  fill: var(--landed);1007  stroke: var(--landed);1008}10091010.mbx-swatch[data-mark="refused"] path:first-child {1011  fill: var(--refused);1012  stroke: var(--refused);1013}10141015.mbx-swatch[data-mark="sealed"] path:first-child {1016  fill: var(--sealed);1017  stroke: var(--sealed);1018}10191020.mbx-swatch[data-mark="glass"] path:first-child {1021  fill: var(--mbx-glass);1022}10231024.mbx-swatch .mbx-swatch-crease {1025  fill: none;1026  stroke: var(--mbx-lo);1027}