@usableapp/cardds 0.7.158 → 0.7.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  > For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
4
4
 
5
+ ## 0.7.160 — 2026-10-28
6
+
7
+ A head that leads with a stamp or an avatar, laid for a phone's width; Chrome and Safari set the same lines.
8
+
9
+ Components: all
10
+
11
+ ### Changed
12
+ - **A `Head` with a lead** (Lh 2026-10-28, the home feed on a narrow phone). Before → after: lead | title over meta | CTAs, three columns centred, the meta wrapping in a thin column → everything at the TOP; the lead at the left; the title with its CTAs (`IconBtn`, `Btn sm`, `End`) on its first line; the meta on a line of its own under both, full width. No meta: the title and its CTAs stand in the middle of the lead. FeedCard's led head the same.
13
+ - **One or two round `IconBtn`s** at a led head's end stay in the top-right corner and the title's later lines run under them. In that case the title is cut at `--head-title-lines` by height, whole lines, without "…".
14
+ - **A `Row` in a `LinkBlock`** with a lead and a meta (the place under a map): the same shape. Rows in a list are untouched.
15
+ - **Line heights are whole px** in every browser: each type style, each rule that sets a leading and the leading knobs round down to a whole pixel (`round(down, calc(ratio * 1em), 1px)`), the line box Safari before 27 draws. Chrome's lines may be up to 1px shorter; a page 1–5px shorter. `body` keeps an inherited ratio.
16
+ - **Rule:** every `--lh-*` token and leading knob (`--chip-sm-line`, `--chip-xs-line`, `--tile-badge-line`, `--post-letter-hand-leading`, `--post-desk-leading`) is a unitless ratio, never a length — a length drops the whole `font:`. Check a theme that set one in px.
17
+
18
+ ## 0.7.159 — 2026-10-28
19
+
20
+ A pick and a search on ONE line in a sheet step: a `Field` folds into a button and opens out of it, a `BtnGroup look="choice"` can be as wide as its words, and a `CtaPack` holds them both outside a `Page`.
21
+
22
+ Components: Field, BtnGroup, CtaPack, SheetStep
23
+
24
+ ### Added
25
+ - **`Field fold`** (timebank, Lh 2026-10-28: the place step lost a line to a full-width search field). `fold="ค้นหาสถานที่"` = the words of the button the field stands as; its `icon` leads them. A tap opens the field out of the button (the cursor in it, the keyboard up, inside the same tap); Escape, or leaving it empty, asks to fold it back. Controlled like an input: `open` + `onOpenChange`, or `defaultOpen`. In a `CtaPack` the button stands at the line's end, square with the icon alone when the words have no room (the words stay its spoken name), and the open field covers the whole line. Rows of offers under it (`Rows`) are the app's, as before. One line only (ignored with `rows`). Before → after: `<Field action={search}/>` on its own line → `<CtaPack><BtnGroup look="choice" form …/><Field fold="…" icon="search" open={open} onOpenChange={setOpen} action={search}/></CtaPack>`.
26
+ - **`BtnGroup look="choice" form`** — each word as wide as it is, the frame as wide as them all (centred alone in a step, the line's first piece in a `CtaPack`). Before → after: `form` was the icon frame's only; a choice always filled its width.
27
+ - **`CtaPack` outside a `Page`** — the line of controls (each its own width, wrapping) now works anywhere, a `SheetStep` included. Knob `--cta-pack-gap`. In a Page nothing moves.
28
+
29
+ ### Changed
30
+ - **`SheetStep`'s Enter**: Enter in a field whose own `onKeyDown` called `preventDefault()` (a search) no longer also presses the step's button, and a button with `aria-expanded` (a folded Field's) is never taken for the step's button.
31
+
5
32
  ## 0.7.158 — 2026-10-28
6
33
 
7
34
  The home-feed cards without hand CSS: wrap buttons, a small Btn, words cut at N lines, a picture beside words, a pressed and a highlighted Bubble, a reply-to quote, a send-out on a button, a link block, a still map's media corner, a stamp place at a lead's size.
package/css/actions.css CHANGED
@@ -59,7 +59,7 @@
59
59
  margin: 0; text-align: start;
60
60
  border-radius: var(--appbar-who-radius, var(--r-chip));
61
61
  }
62
- .appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--lh-caption); } /* clipped lines: room for Thai marks */
62
+ .appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: round(down, calc(var(--lh-caption) * 1em), 1px); } /* clipped lines: room for Thai marks */
63
63
  .appbar__title { font: var(--type-label); }
64
64
  .appbar__sub { font: var(--type-caption); color: var(--on-surface-muted); }
65
65
  /* the bar's trailing controls (one or two: a labelled switch chip, a wallet button — home,
@@ -78,7 +78,7 @@
78
78
  display: grid;
79
79
  place-items: center;
80
80
  font-size: var(--fs-lg);
81
- line-height: var(--lh-solid);
81
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
82
82
  }
83
83
  .icon-btn--invert { background: var(--icon-btn-invert-bg, var(--accent)); color: var(--icon-btn-invert-ink, var(--on-accent)); border-color: transparent; }
84
84
  .icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
@@ -159,7 +159,7 @@
159
159
  /* sm (Btn sm, Lh 2026-10-28): one small tap tall (the touch floor, 44), the small words, closer sides — a worded move at a card head's end */
160
160
  .btn--sm { min-height: var(--btn-sm-size, var(--form-tap-sm)); padding-block: var(--sp-1); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
161
161
  /* xl: the one giant call to action in a tinted card ("Taxi!") */
162
- .btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / var(--lh-solid) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
162
+ .btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
163
163
  /* disabled keeps the slot — a control that vanishes moves everything else,
164
164
  and a pager whose "previous" disappeared on page one would shift the bar
165
165
  under the thumb on every page */
@@ -184,6 +184,26 @@
184
184
  /* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
185
185
  no frame, no padding; the DIM press answer (below) */
186
186
  .link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
187
+ /* a Row in a link block with a lead and a meta (Lh 2026-10-28, the place under a map): laid as a led Head is (parts.css) — everything at the TOP,
188
+ the lead at the left as tall as the row, the title with the end (and an arrow) at the right of its first line, the meta on a line of its own
189
+ UNDER BOTH. The Words box gives way (display: contents) so its title and meta stand in the row's grid; the gaps are margins, the four spare
190
+ columns of no width hold the ends. Only here: a list's rows are untouched.
191
+ <a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__title">…</span><span class="words__meta">…</span></span><span class="end">…</span><svg class="icon"/></div></a> */
192
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) {
193
+ display: grid;
194
+ grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
195
+ grid-template-rows: minmax(min-content, 0);
196
+ grid-auto-rows: auto;
197
+ column-gap: 0;
198
+ row-gap: var(--words-gap, var(--sp-0));
199
+ align-items: start;
200
+ align-content: start;
201
+ }
202
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .lead { grid-column: 1; grid-row: 1 / 3; margin-inline-end: var(--row-gap, var(--sp-3)); }
203
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words { display: contents; }
204
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title { grid-column: 2; grid-row: 1; }
205
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__meta { grid-column: 2 / -1; grid-row: 2; }
206
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > :nth-child(n + 3) { grid-row: 1; margin-inline-start: var(--row-gap, var(--sp-3)); }
187
207
  /* a row of buttons sharing the width (twin CTAs inside a card) */
188
208
  .btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
189
209
  /* round (BtnRow round, Lh 2026-10-24): a few round IconBtns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
@@ -236,9 +256,9 @@
236
256
  .dot--info { background: var(--signal-info); }
237
257
  /* --sm: a small LABEL (a name on a note, a tag in a tight head) — low and tight; never a tap target */
238
258
  /* one height wherever it stands (Lh 2026-10-21): the body's line, so a head that cuts its words with an ellipsis keeps the Thai marks over them, and a foot's or a middle's chip reads the same */
239
- .chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: var(--chip-sm-line, var(--lh-body)); }
259
+ .chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: round(down, calc(var(--chip-sm-line, var(--lh-body)) * 1em), 1px); }
240
260
  /* --xs: the smallest label — a count in a card's status row (👥 12), smaller than --sm; the icon follows its words (Lh 2026-10-24); never a tap target */
241
- .chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: var(--chip-xs-line, var(--lh-tight)); }
261
+ .chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: round(down, calc(var(--chip-xs-line, var(--lh-tight)) * 1em), 1px); }
242
262
  .chip--xs > .icon { width: var(--chip-xs-icon-size, 1em); height: var(--chip-xs-icon-size, 1em); }
243
263
  /* soft: the accent washed into the chip's ground, no edge — a status to see, quieter than on (was the inbox Ribbon, Lh 2026-10-21) */
244
264
  .chip--soft { background: var(--chip-soft-bg, var(--accent-wash)); color: var(--chip-soft-ink, var(--card-ink)); border-color: transparent; } /* the wash on the chip's own paper, opaque (--accent-wash): see-through, a dark tone came through under the light side's ink */
@@ -324,6 +344,10 @@
324
344
  background: var(--btngroup-choice-on-bg, var(--accent));
325
345
  color: var(--btngroup-choice-on-ink, var(--on-accent));
326
346
  }
347
+ /* --form (Lh 2026-10-28): each word as wide as it is, the frame as wide as them all, in the middle of a grid column (a step) as a
348
+ `.btn--form`; in a .cta-pack it is just the line's first piece */
349
+ .segment--choice.segment--form { justify-self: center; max-width: 100%; }
350
+ .segment--choice.segment--form > .segment__item { flex: 0 1 auto; white-space: nowrap; padding-inline: var(--btngroup-choice-form-pad-x, var(--sp-4)); }
327
351
  .segment--choice > .segment__item:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
328
352
 
329
353
  /* ---- bottom CTA pack: the screen's bottom (Screen `bottom`) ----
@@ -531,7 +555,7 @@
531
555
 
532
556
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
533
557
  /* a head's ChipRow takes a line of its own under the title: at most two lines of chips, a chip's words cut with an ellipsis */
534
- .head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (var(--fs-sm) * var(--chip-sm-line, var(--lh-body)) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
558
+ .head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (round(down, calc(var(--fs-sm) * var(--chip-sm-line, var(--lh-body))), 1px) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
535
559
  /* …beside a date that leads the head (card.css) they stand in the date's row, every chip in sight: the meeting place may take a line of its own */
536
560
  .head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
537
561
  .head > .chip-row > .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
package/css/base.css CHANGED
@@ -29,6 +29,7 @@ body {
29
29
  background: var(--surface);
30
30
  color: var(--card-ink);
31
31
  font: var(--type-body);
32
+ line-height: var(--lh-body); /* the INHERITED leading stays a ratio: the --type-* styles round theirs to whole px for their own size (tokens.css), a length here would reach every child at any size */
32
33
  -webkit-font-smoothing: antialiased;
33
34
  }
34
35
 
@@ -177,7 +178,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
177
178
  .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
178
179
  .t-label { font: var(--type-label); }
179
180
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
180
- .t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: var(--lh-h1-caption); } /* an h1's caption, over it or under it (Words meta) */
181
+ .t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: round(down, calc(var(--lh-h1-caption) * 1em), 1px); } /* an h1's caption, over it or under it (Words meta) */
181
182
  .t-caption:has(+ .t-h1) { display: inline-flex; } /* a caption over an h1 is a span in its div's line: inline, its wrapped lines stood on the div's body leading (33px).
182
183
  As a box it keeps its own leading inside; an inline-flex stands on that line by its FIRST line (an inline-block's would be its last), so a caption
183
184
  that wraps starts where a one-line one does and its next line goes down, the h1 with it (Lh 2026-10-25) */
@@ -229,13 +230,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
229
230
  .page > .t-body { color: var(--page-body-ink, var(--on-surface)); max-width: 34ch; } /* full ink: a sentence is read, muted is for meta (Lh 2026-09-22 — the words on the base were grey and hard to read) */
230
231
  /* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
231
232
  (the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
232
- .page .cta-pack {
233
+ /* a cta-pack: controls on one line, each its own width, wrapping — under a Page's words, or in a sheet step (a pick beside a folded
234
+ Field, Lh 2026-10-28). It is the box an open .field-fold covers (forms.css), so it is positioned */
235
+ .cta-pack {
236
+ position: relative;
233
237
  display: flex;
234
238
  align-items: start; /* buttons keep their own height, never the row's */
235
- gap: var(--sp-2);
236
- margin-top: var(--sp-2);
239
+ gap: var(--cta-pack-gap, var(--sp-2));
237
240
  flex-wrap: wrap;
238
241
  }
242
+ .page .cta-pack { margin-top: var(--sp-2); }
239
243
 
240
244
  /* ---- empty state: on-surface, centered, optional CTA below ---- */
241
245
  .empty-state {
package/css/card.css CHANGED
@@ -312,7 +312,7 @@
312
312
  .card-feed { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--card-feed-gap, var(--card-gap-rest)); }
313
313
  .feed-card { row-gap: 0; }
314
314
  .feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
315
- .feed-card__lead { display: grid; align-self: center; } /* a Stamp here is the small one, 48 × 60 (stamp.css) */
315
+ .feed-card__lead { display: grid; } /* placed by the head's align-items: top with a caption, middle without (parts.css) */ /* a Stamp here is the small one, 48 × 60 (stamp.css) */
316
316
  .card-feed__end { text-align: center; }
317
317
  .feed-card__more { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
318
318
  .feed-card--small > .feed-card__more { grid-template-rows: 0fr; }
package/css/choice.css CHANGED
@@ -109,7 +109,7 @@
109
109
  color: var(--day-rest-ink, var(--card-muted)); /* an unpicked day at rest: the muted words of the ground it stands on (an opacity faded it under AA) */
110
110
  }
111
111
  .day__name { font: var(--day-name-font, var(--type-caption)); }
112
- .day__num { font: var(--fw-bold) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
112
+ .day__num { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
113
113
  /* today: a light tone, no louder than a rest; the selected pill below wins when it is both (it comes after and weighs more) */
114
114
  .day--today { background: var(--day-today-bg, var(--ink-tint)); color: var(--day-today-ink, var(--card-ink)); }
115
115
  .day[aria-selected="true"] { background: var(--day-selected-bg, var(--accent)); color: var(--day-selected-ink, var(--on-accent)); }
@@ -128,7 +128,7 @@
128
128
  display: grid;
129
129
  place-items: center;
130
130
  border-radius: 50%;
131
- font: var(--fw-medium) var(--fs-title) / var(--lh-solid) var(--font-ui);
131
+ font: var(--fw-medium) var(--fs-title) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-ui);
132
132
  font-variant-numeric: tabular-nums;
133
133
  grid-column-start: var(--start, auto); /* --start on the 1st: weekday column 1–7 */
134
134
  }
@@ -287,7 +287,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
287
287
  padding: 0;
288
288
  background: transparent;
289
289
  color: inherit;
290
- font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / var(--lh-h2) var(--font-display));
290
+ font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--font-display));
291
291
  letter-spacing: var(--track-h2);
292
292
  outline: none;
293
293
  }
package/css/forms.css CHANGED
@@ -23,7 +23,7 @@
23
23
  .field select,
24
24
  .field textarea,
25
25
  .field--rows {
26
- font: var(--field-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
26
+ font: var(--field-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
27
27
  }
28
28
  .field input,
29
29
  .field select,
@@ -48,6 +48,30 @@
48
48
  /* field with its action inside: date pick, send, go — the button sits flush right */
49
49
  .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
50
50
 
51
+ /* ---- field-fold (Field fold, Lh 2026-10-28): the field folded into a button; opened, it grows out of the button's box to the whole width
52
+ of what it stands in, the button gone under it. Field measures the button (--_fold-w) and, in a .cta-pack, the line it stands on
53
+ (--_fold-y). Folded, the field is there but unseen and inert, so the tap can put the cursor in it inside the finger's own event ---- */
54
+ .field-fold { position: relative; display: grid; justify-items: start; }
55
+ .field-fold > .field {
56
+ position: absolute; inset-block-start: 0; inset-inline-start: 0;
57
+ width: var(--_fold-w, 100%); height: 100%; min-height: 0;
58
+ opacity: 0; pointer-events: none;
59
+ transition: width var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease);
60
+ }
61
+ .field-fold--open > .field { width: 100%; opacity: 1; pointer-events: auto; }
62
+ .field-fold__btn { white-space: nowrap; } /* its words on one line, so Field reads the width they need */
63
+ .field-fold--open > .field-fold__btn { visibility: hidden; }
64
+ /* in a .cta-pack: the button at the line's end; open, the field covers the whole line it stands on, growing leftwards out of the button */
65
+ /* the fold takes the rest of the line, its button at the end and as tall as the line; with no room for the words beside the other
66
+ controls (Field's measure: --tight) the button is the icon alone, square, the words still its spoken name */
67
+ .cta-pack > .field-fold { position: static; flex: 1 1 0; min-width: var(--form-tap); justify-items: end; align-self: stretch; }
68
+ .cta-pack > .field-fold > .field-fold__btn { min-height: var(--form-tap); padding-block: 0; padding-inline: var(--field-fold-pad-x, var(--sp-4)); }
69
+ .cta-pack > .field-fold > .field { inset-block-start: var(--_fold-y, 0); inset-inline: auto 0; height: var(--_fold-h, auto); }
70
+ .field-fold--tight > .field-fold__btn { padding-inline: calc((var(--form-tap) - var(--icon-xs)) / 2); } /* square on the line: a tap wide round its icon */
71
+ .field-fold--tight .field-fold__words { position: absolute; width: var(--px); height: var(--px); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
72
+ .cta-pack:has(> .field-fold--open) > :not(.field-fold) { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-quick); }
73
+ @media (prefers-reduced-motion: reduce) { .field-fold > .field { transition: none; } }
74
+
51
75
  /* colored palettes drop the visible outline elsewhere — fields keep one */
52
76
  [data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
53
77
 
@@ -71,7 +95,7 @@
71
95
  display: grid;
72
96
  place-items: center;
73
97
  font-size: var(--add-row-plus-font-size, var(--fs-md));
74
- line-height: var(--lh-solid);
98
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
75
99
  }
76
100
  .add-row__plus .icon { --icon-size: var(--icon-xs); }
77
101
 
@@ -119,7 +143,7 @@
119
143
  margin: 0;
120
144
  padding: var(--message-bar-input-pad-y, var(--sp-2)) var(--message-bar-input-pad-x, var(--sp-4));
121
145
  border: 0;
122
- font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* the words being typed read as a Field's */
146
+ font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* the words being typed read as a Field's */
123
147
  white-space: pre-wrap;
124
148
  overflow-wrap: anywhere;
125
149
  }
package/css/journey.css CHANGED
@@ -43,21 +43,23 @@
43
43
  /* the label is the badge's own ink, smaller: a badge is a small fill of any colour (a palette paints it yellow), and only its own ink is
44
44
  sure to hold 4.5:1 on it; --dim faded it to 2.4:1 */
45
45
  .tile-badge__label { font: var(--tile-badge-label-font, var(--type-caption)); color: var(--tile-badge-label-ink, inherit); }
46
- .tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
46
+ .tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
47
47
 
48
48
  /* plain: no fill — a date box beside a title (Jun / 18) */
49
49
  .tile-badge--plain { background: transparent; --dark: inherit; color: inherit; padding: 0; min-width: var(--tile-badge-plain-min-w, var(--tap-sm)); }
50
- .tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / var(--lh-solid) var(--font-display); }
50
+ .tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
51
51
 
52
52
  /* stretch: a date in a head (Lh 2026-10-19) — as tall as the title block beside it and no taller (the head stretches it; size
53
53
  containment keeps its own words from adding height). Its height picks the form: short (a one-line title) = two lines, the day name
54
54
  over the number and the month on one line; tall (a two-line title) = three lines, day · number · month. It grows no taller than
55
55
  its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
56
56
  .tile-badge--stretch {
57
- line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property; the cap below reads it too */
57
+ line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property, a ratio here: each line rounds it at its own size (below), and the caps add those lines */
58
58
  align-self: stretch;
59
- min-block-size: calc((var(--fs-caption) + var(--fs-lg)) * var(--tile-badge-line, var(--lh-badge)) + 2 * var(--sp-3)); /* size containment hides the lines from the box, so it asks for the shortest form's height itself: a head whose chips are shorter (one chip) no longer leaves the lines hanging out of the fill */
60
- max-block-size: calc((2 * var(--fs-caption) + var(--fs-lg)) * var(--tile-badge-line, var(--lh-badge)) + 2 * var(--sp-3));
59
+ --_line-caption: round(down, calc(var(--fs-caption) * var(--tile-badge-line, var(--lh-badge))), 1px);
60
+ --_line-value: round(down, calc(var(--fs-lg) * var(--tile-badge-line, var(--lh-badge))), 1px);
61
+ min-block-size: calc(var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3)); /* size containment hides the lines from the box, so it asks for the shortest form's height itself: a head whose chips are shorter (one chip) no longer leaves the lines hanging out of the fill */
62
+ max-block-size: calc(2 * var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3));
61
63
  container-type: size;
62
64
  /* size containment hides the words' width from the box, so the component passes their count (--_badge-chars: the value, plus half of the sub that stands beside it)
63
65
  and the box is the wider of a two-digit date and that many digits; the app's knob still wins */
@@ -71,7 +73,7 @@
71
73
  row-gap: 0;
72
74
  padding: var(--sp-3); /* the same room on all four sides; the box's min height and width count it */
73
75
  }
74
- .tile-badge--stretch > * { line-height: inherit; white-space: nowrap; } /* a value never breaks at its dash */
76
+ .tile-badge--stretch > * { line-height: round(down, calc(var(--tile-badge-line, var(--lh-badge)) * 1em), 1px); white-space: nowrap; } /* a value never breaks at its dash */
75
77
  .tile-badge--stretch > :first-child { grid-column: 1 / -1; }
76
78
  @container (min-height: 3.5rem) { /* just under the three lines' own height, the most the badge grows to */
77
79
  .tile-badge--stretch > * { grid-column: 1 / -1; }
package/css/layover.css CHANGED
@@ -364,7 +364,7 @@
364
364
  .count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
365
365
  .count-in__number {
366
366
  position: relative; pointer-events: none;
367
- font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
367
+ font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display);
368
368
  font-variant-numeric: tabular-nums;
369
369
  }
370
370
  .count-in__digit { display: block; }
package/css/media.css CHANGED
@@ -8,7 +8,7 @@
8
8
  .quote { margin: 0; display: grid; gap: var(--quote-gap, var(--sp-3)); }
9
9
  .quote::before {
10
10
  content: "\201C";
11
- font: var(--fw-black) calc(var(--fs-h1) * 3) / var(--lh-mark) var(--font-display);
11
+ font: var(--fw-black) calc(var(--fs-h1) * 3) / round(down, calc(var(--lh-mark) * 1em), 1px) var(--font-display);
12
12
  height: var(--sp-10);
13
13
  opacity: var(--fade-most);
14
14
  }
package/css/numbers.css CHANGED
@@ -34,7 +34,7 @@
34
34
  .ring__value { font: var(--ring-value-font, var(--type-stat)); letter-spacing: var(--track-display); }
35
35
  .ring__label { font: var(--ring-label-font, var(--type-caption)); color: var(--ring-label-ink, var(--card-muted)); }
36
36
  .ring--sm { --_size: var(--avatar-xl); --_w: var(--sp-3); }
37
- .ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / var(--lh-solid) var(--font-display); }
37
+ .ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
38
38
  .ring--xs { --_size: var(--tap-sm); --_w: var(--dot-xs); } /* inline counter (step 3 of 5) */
39
39
  .ring--xs .ring__value { font: var(--type-caption); }
40
40
 
@@ -82,7 +82,7 @@
82
82
  background: var(--ink-tint); /* a number is words: on the 30% rail it fell under 4.5:1 on a mid-dark track; the 12% tint is what every tone holds its ink on */
83
83
  color: var(--card-ink);
84
84
  display: grid; place-items: center; box-sizing: border-box;
85
- font: var(--track-dot-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
85
+ font: var(--track-dot-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
86
86
  width: var(--track-dot-size, 1.877em); height: var(--track-dot-size, 1.877em); /* em, not rem (Lh 2026-10-03, as the SheetSteps' number and the StackSheet's count): the round is cut from ITS OWN
87
87
  number's size — 1.877em of a 17px caption = the 32px of an icon's round; at a larger text it grows with its number, and the pill with it */
88
88
  padding: 0 0 var(--track-dot-lift, 0.1em); /* the room UNDER the number lifts it onto the round's middle: a digit has no descender */
@@ -92,10 +92,10 @@
92
92
 
93
93
  /* ---- band: data card — 2-line label · giant number · footnote ----
94
94
  <article class="card card--band"><span class="band__label">Hours<br>banked</span><span class="band__num">18</span><span class="band__foot">this week</span></article> */
95
- .band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: var(--lh-label); }
95
+ .band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); }
96
96
  .band__num {
97
97
  grid-area: num;
98
- font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display);
98
+ font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display); /* a ratio, not rounded: its <small> unit sets a smaller size and inherits this leading */
99
99
  letter-spacing: var(--track-display);
100
100
  font-variant-numeric: tabular-nums;
101
101
  }
package/css/parts.css CHANGED
@@ -32,7 +32,7 @@
32
32
  .words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
33
33
  .words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
34
34
  .words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
35
- .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
35
+ .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
36
36
  .row--done > .words > .words__title { color: var(--card-muted); }
37
37
 
38
38
  /* ---- end: the value over its caption, right-aligned at the end of a line ---- */
@@ -109,7 +109,7 @@
109
109
  text-align: center;
110
110
  }
111
111
  .head--centre > .words__title { grid-area: 2 / 2; }
112
- .head--centre > .words__meta { grid-area: 3 / 2; line-height: calc(var(--lh-body) * var(--fs-base)); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
112
+ .head--centre > .words__meta { grid-area: 3 / 2; line-height: round(down, calc(var(--lh-body) * var(--fs-base)), 1px); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
113
113
  .head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
114
114
  .head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
115
115
 
@@ -153,23 +153,56 @@
153
153
  }
154
154
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
155
155
 
156
- /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
157
- `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
158
- at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
159
- the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
160
- A head with no lead before its title is untouched.
161
- <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
156
+ /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card; re-laid for a phone's width the same day): a `Head` whose
157
+ first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. Everything stands at the TOP.
158
+ Two columns: the lead at the left, as tall as the head; at its right the title, with whatever follows it (an `End`, an `IconBtn`, a `Btn sm`)
159
+ together at the right of the title's first line, and the meta on a line of its own UNDER BOTH, as wide as the title and the ends together, so
160
+ a long meta never wraps in a thin column. No end: the title takes the line. No meta: no second line, no gap, and the one line (title and ends)
161
+ stands in the MIDDLE of the lead. The title is cut at
162
+ --head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
163
+ The gaps are margins, not column-gap: the head keeps four spare columns of no width for its ends, so the meta can run to the last (2 / -1).
164
+ The first row is minmax(min-content, 0): a lead taller than title + meta gives its extra room to the meta's row, never between the two lines.
165
+ <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn">…</button></div> */
162
166
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
163
167
  display: grid;
164
- grid-template-columns: auto minmax(0, 1fr);
165
- grid-auto-columns: auto;
166
- align-items: center;
168
+ grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
169
+ grid-template-rows: minmax(min-content, 0);
170
+ grid-auto-rows: auto;
171
+ column-gap: 0;
172
+ align-items: start;
173
+ align-content: start;
167
174
  }
168
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
169
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
170
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
175
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1; margin-inline-end: var(--head-col-gap, var(--sp-3)); }
176
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title) + .words__meta) > :first-child { grid-row: 1 / 3; }
177
+ /* round buttons at the end (one or two IconBtn of one size, with a meta; Lh 2026-10-28): they stand fixed in the top-right corner OVER the title's
178
+ column, and the title's lines wrap round them as round a float — a line past the buttons' height runs the full width under them; the meta runs
179
+ under all. The room is an empty float at the start of the title, as wide as the buttons and their gaps, as tall as one. An End or a Btn (words
180
+ of no known width), and a head with no meta (centred, below), keep the two-cell line. The DOM order is untouched: the title is read first. */
181
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) {
182
+ --_head-end: var(--icon-btn-size, var(--tap));
183
+ --_head-ends: 1;
184
+ }
185
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn--sm):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-end: var(--icon-btn-sm-size, var(--tap-sm)); }
186
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn ~ .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-ends: 2; }
187
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; margin-inline-start: 0; }
188
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn:has(~ .icon-btn) { margin-inline-end: calc(var(--_head-end) + var(--head-col-gap, var(--sp-3))); }
189
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title {
190
+ /* WebKit draws a float inside the -webkit-box line clamp as a box of its own ABOVE the words, so this title is a plain block: cut at
191
+ --head-title-lines by its height (whole lines, no "…") */
192
+ display: flow-root;
193
+ max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
194
+ }
195
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title::before {
196
+ content: "";
197
+ float: right;
198
+ width: calc(var(--_head-ends) * (var(--_head-end) + var(--head-col-gap, var(--sp-3))));
199
+ height: var(--_head-end);
200
+ }
201
+ /* no meta: one line beside the lead, the title and the ends centred to it, the title still at the left (Lh 2026-10-28) */
202
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)):not(:has(> .words__meta)) { align-items: center; }
203
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; }
171
204
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
172
- grid-column: 2; grid-row: 2; align-self: start;
205
+ grid-column: 2 / -1; grid-row: 2;
173
206
  overflow-wrap: anywhere;
174
207
  display: -webkit-box;
175
208
  -webkit-box-orient: vertical;
@@ -179,7 +212,7 @@
179
212
  padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
180
213
  margin-block: -0.2em -0.15em;
181
214
  }
182
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
215
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1; margin-inline-start: var(--head-col-gap, var(--sp-3)); }
183
216
 
184
217
  /* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
185
218
  :is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
@@ -272,7 +305,8 @@
272
305
 
273
306
  /* in a feed card */
274
307
  .feed-card > .head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: var(--feed-card-head-h, var(--tap)); }
275
- .feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); } /* a Lead's own row of the head: parts.css */
308
+ .feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(min-content, 0); align-items: start; align-content: start; } /* a Lead's own row of the head: parts.css. Led, it stands at the TOP, as a led Head does (above), and with no caption in the MIDDLE of the lead (below); the first row as the led Head's, so a tall lead's extra room goes under the caption, not between the lines */
309
+ .feed-card > .head:has(> :is(.lead, .feed-card__lead)):not(:has(> .t-caption)) { align-items: center; }
276
310
 
277
311
  /* ---- body: the content row, under the head and over the foot. What the member reads or fills in; in a sheet, a stack sheet
278
312
  and a modal the one part that scrolls. A grid column from the top, the card's rhythm inside.
package/css/post.css CHANGED
@@ -141,7 +141,7 @@
141
141
  gap: var(--sp-3);
142
142
  font: var(--post-letter-hand-font, var(--type-h2));
143
143
  font-size: var(--post-letter-hand-font-size, var(--fs-lg));
144
- line-height: var(--post-letter-hand-leading, var(--lh-hand));
144
+ line-height: round(down, calc(var(--post-letter-hand-leading, var(--lh-hand)) * 1em), 1px);
145
145
  }
146
146
  .post-letter__message > p { margin: 0; }
147
147
  .post-letter__sign { align-self: flex-end; }
@@ -214,8 +214,8 @@
214
214
  background: transparent;
215
215
  color: inherit;
216
216
  font: var(--post-desk-hand-font, var(--type-h2));
217
- line-height: calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled)));
218
- --_line: calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled)));
217
+ line-height: var(--_line);
218
+ --_line: round(down, calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled))), 1px);
219
219
  /* the ruled lines: one under every line of writing */
220
220
  background-image: linear-gradient(to bottom, transparent calc(100% - var(--border-w)), var(--_rule) 0);
221
221
  background-size: 100% var(--_line);
package/css/sheet.css CHANGED
@@ -520,7 +520,7 @@
520
520
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
521
521
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
522
522
  padding-bottom: var(--sheet-step-num-lift, 0.1em); /* the room UNDER the number lifts it onto the disc's middle: a digit has no descender, so a centred line box sets it low */
523
- border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
523
+ border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
524
524
  background: var(--sheet-step-num-bg, var(--card-bg)); color: var(--sheet-step-num-ink, inherit);
525
525
  }
526
526
  .sheet-step__summary { color: var(--sheet-step-summary-ink, var(--card-muted)); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
package/css/stack.css CHANGED
@@ -75,7 +75,7 @@
75
75
  stack deliberately runs a second line under the next card. */
76
76
  .sheet-stack > .card > .head :is(h1, h2, h3) {
77
77
  font-size: var(--fs-h1);
78
- line-height: var(--lh-solid);
78
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
79
79
  letter-spacing: var(--track-h2);
80
80
  margin-right: auto; /* pins the icon cluster right */
81
81
  display: block;
@@ -304,7 +304,7 @@
304
304
  padding: 0 var(--stack-sheet-count-pad-x, 0.25em) var(--stack-sheet-count-lift, 0.1em); /* "99+" keeps its room at every text size;
305
305
  the room UNDER the number lifts it onto the circle's middle: a digit has no descender, so a centred line box sets it low (Lh 2026-10-01) */
306
306
  font: var(--type-caption);
307
- line-height: var(--lh-solid);
307
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
308
308
  pointer-events: none;
309
309
  }
310
310
  /* a tab not chosen is the icon alone — no ring, no ground (Lh 2026-09-23: "the circle around is not pretty"); the chosen one turns