@usableapp/cardds 0.7.159 → 0.7.161

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,30 @@
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.161 — 2026-10-28
6
+
7
+ A led line's title runs under ANY end, not only round buttons; an End's arrow is drawn at its words' size and centred on the title's first line.
8
+
9
+ Components: Head, Words, Row, LinkBlock, End
10
+
11
+ ### Changed
12
+ - **The title's later lines run under an `End` and a `Btn sm`** (timebank, Lh 2026-10-28: "ให้ cardds ไหลลงใต้ End ด้วย"). Before → after: in a led `Head` (a `Lead`, `Avatar` or `AvatarStack` first, then `Words` with a title and a meta) only one or two round `IconBtn`s let the title wrap under them; an `End` of words or a `Btn sm` kept a narrow title column → any one to four ends stand in the top-right corner and the title's lines past them run the full width. The same for a `Row` in a `LinkBlock` (the place under a map). Rows in a list are untouched. `Words` draws an unseen, inert copy of the ends at the title's start to keep their room; the real ends stay after the title in reading order. Nothing to change in a screen.
13
+ - **An `End` of words with an icon** (a link's arrow, `<End caption="Google Maps"/><Icon name="arrow-up-right"/>`): the icon is drawn at the words' size (`--icon-xs`), about their x-height, its stroke as heavy as their stem. New knob `--end-icon-size`. An End with a value keeps its icon as it was.
14
+ - **In a led head or that LinkBlock row, an End of words and its icon are centred on the title's first line**, not at the head's top. A round `IconBtn` and a `Btn sm` (taller than a line) keep the top.
15
+
16
+ ## 0.7.160 — 2026-10-28
17
+
18
+ A head that leads with a stamp or an avatar, laid for a phone's width; Chrome and Safari set the same lines.
19
+
20
+ Components: all
21
+
22
+ ### Changed
23
+ - **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.
24
+ - **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 "…".
25
+ - **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.
26
+ - **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.
27
+ - **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.
28
+
5
29
  ## 0.7.159 — 2026-10-28
6
30
 
7
31
  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`.
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,37 @@
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)); }
207
+ /* …and the title's later lines run UNDER the end and the arrow at full width, round the Words' room for them (parts.css "the ends in the corner") */
208
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title { grid-column: 2 / -1; }
209
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title > .words__room { display: flex; gap: var(--row-gap, var(--sp-3)); padding-inline-start: var(--row-gap, var(--sp-3)); }
210
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(3) { grid-column: 3; }
211
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(4) { grid-column: 4; }
212
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(5) { grid-column: 5; }
213
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(6) { grid-column: 6; }
214
+ /* …and an End of words with its arrow stands centred in the title's FIRST line (title type's leading), as in a led Head (parts.css) */
215
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) { --_line-h: round(down, calc(var(--lh-title) * var(--fs-title)), 1px); }
216
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)), .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) { margin-block-start: calc((var(--_line-h) - round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px)) / 2); }
217
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)) + .icon, .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) + .icon { --icon-margin: calc((var(--_line-h) - var(--end-icon-size, var(--icon-xs))) / 2) 0; }
187
218
  /* a row of buttons sharing the width (twin CTAs inside a card) */
188
219
  .btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
189
220
  /* 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 +267,9 @@
236
267
  .dot--info { background: var(--signal-info); }
237
268
  /* --sm: a small LABEL (a name on a note, a tag in a tight head) — low and tight; never a tap target */
238
269
  /* 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)); }
270
+ .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
271
  /* --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)); }
272
+ .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
273
  .chip--xs > .icon { width: var(--chip-xs-icon-size, 1em); height: var(--chip-xs-icon-size, 1em); }
243
274
  /* 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
275
  .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 */
@@ -535,7 +566,7 @@
535
566
 
536
567
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
537
568
  /* 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 */
538
- .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; }
569
+ .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; }
539
570
  /* …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 */
540
571
  .head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
541
572
  .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) */
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,
@@ -95,7 +95,7 @@
95
95
  display: grid;
96
96
  place-items: center;
97
97
  font-size: var(--add-row-plus-font-size, var(--fs-md));
98
- line-height: var(--lh-solid);
98
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
99
99
  }
100
100
  .add-row__plus .icon { --icon-size: var(--icon-xs); }
101
101
 
@@ -143,7 +143,7 @@
143
143
  margin: 0;
144
144
  padding: var(--message-bar-input-pad-y, var(--sp-2)) var(--message-bar-input-pad-x, var(--sp-4));
145
145
  border: 0;
146
- 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 */
147
147
  white-space: pre-wrap;
148
148
  overflow-wrap: anywhere;
149
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
@@ -31,13 +31,29 @@
31
31
  .row > .words { min-width: 0; }
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
+ /* the ends' room (Lh 2026-10-28): an unseen, inert copy of the ends of the line (Words renders it at the start of its title when the line hands
35
+ it them: a led Head with a meta, a LinkBlock's Row), floated at the title's first line's end so its later lines run under the real ends.
36
+ Nothing until a line lays its ends in the corner (parts.css head, actions.css link block) */
37
+ .words__room {
38
+ display: none; float: right; align-items: flex-start; width: max-content; visibility: hidden; -webkit-user-select: none; user-select: none;
39
+ margin-block-end: min(0rem, calc(0.5em - 0.5lh)); /* the ends may reach into the next line's leading (empty), never its letters: an arrow a hair taller than a line keeps one line short, not two */
40
+ letter-spacing: normal; /* a heading's tracking (.t-h2) is inherited and no type class of the ends resets it: the copy would come out narrower than the ends */
41
+ }
34
42
  .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); }
43
+ .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
36
44
  .row--done > .words > .words__title { color: var(--card-muted); }
37
45
 
38
46
  /* ---- end: the value over its caption, right-aligned at the end of a line ---- */
39
47
  .end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
40
48
  .row > .end { flex: none; }
49
+ /* an End of words with an icon after it or in it (a link's arrow: "Google Maps ↗"; Lh 2026-10-28): the two read as one. The icon is drawn at the
50
+ words' size (--icon-xs, the caption's), so its drawing is about as tall as their x-height and its stroke as heavy as their stem (at the default
51
+ bases: arrow 7.1 px tall, stroke 1.4 px; caption x-height 7.7 px, stem 1.5 px). Equal margins make it the caption's line box tall, so it
52
+ stands centred on the words whether the line centres its parts (a Row) or tops them (a led Head). An End with a value keeps the icon as it is. */
53
+ .end:not(:has(> .t-title)) + .icon, .end > .icon {
54
+ --icon-size: var(--end-icon-size, var(--icon-xs));
55
+ --icon-margin: calc((round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px) - var(--end-icon-size, var(--icon-xs))) / 2) 0;
56
+ }
41
57
 
42
58
  /* ---- head: the first row of a card, a sheet and a stack sheet. A lead, the Words, chips, an end, as its direct children.
43
59
  <div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn icon-btn--sm">…</button></div>
@@ -109,7 +125,7 @@
109
125
  text-align: center;
110
126
  }
111
127
  .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 */
128
+ .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
129
  .head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
114
130
  .head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
115
131
 
@@ -153,23 +169,60 @@
153
169
  }
154
170
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
155
171
 
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> */
172
+ /* 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
173
+ 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.
174
+ 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`)
175
+ 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
176
+ 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)
177
+ stands in the MIDDLE of the lead. The title is cut at
178
+ --head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
179
+ 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).
180
+ 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.
181
+ <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
182
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
163
183
  display: grid;
164
- grid-template-columns: auto minmax(0, 1fr);
165
- grid-auto-columns: auto;
166
- align-items: center;
184
+ grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
185
+ grid-template-rows: minmax(min-content, 0);
186
+ grid-auto-rows: auto;
187
+ column-gap: 0;
188
+ align-items: start;
189
+ align-content: start;
167
190
  }
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; }
191
+ .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)); }
192
+ .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; }
193
+ /* the ends in the corner (Lh 2026-10-28: round buttons first; the same day any end, an End's words, a Btn sm): with a meta, whatever follows the
194
+ title stands in the top-right corner OVER the title's column, and the title's lines wrap round it as round a float — a line past the ends'
195
+ height runs the full width under them; the meta runs under all. The room is the Words' own .words__room (above): an unseen, inert copy of
196
+ the ends that the component renders at the start of the title, floated, so it is exactly as wide and as tall as the ends whatever they say.
197
+ The DOM order is untouched: the title is read first, the copy by nobody. No meta: no room, the centred line (below). The ends take the four
198
+ spare columns in order, so the title can span them.
199
+ <h2 class="words__title"><span class="words__room" aria-hidden="true" inert>…copies…</span>A long title</h2> */
200
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > .words__title {
201
+ grid-column: 2 / -1;
202
+ /* 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
203
+ --head-title-lines by its height (whole lines, no "…") */
204
+ display: flow-root;
205
+ max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
206
+ }
207
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > .words__title > .words__room { display: flex; gap: var(--head-col-gap, var(--sp-3)); padding-inline-start: var(--head-col-gap, var(--sp-3)); }
208
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(4) { grid-column: 3; }
209
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(5) { grid-column: 4; }
210
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(6) { grid-column: 5; }
211
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(7) { grid-column: 6; }
212
+ /* an End of words on the title's FIRST line (Lh 2026-10-28): the ends stand at the top, so an End's caption and its icon are centred in the
213
+ first line of the title (its leading, rounded as the type rounds it), not at the head's top. Its copy in the room moves with it, so the room
214
+ stays as tall as the ends and the second line still runs the full width. A round IconBtn or a Btn sm is taller than a line: it keeps the top.
215
+ --_line-h: the title's line, from its level's tokens (h2, or h1 / display when the Words says so) */
216
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) { --_line-h: round(down, calc(var(--lh-h2) * var(--fs-h2)), 1px); }
217
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .words__title.t-h1) { --_line-h: round(down, calc(var(--lh-h1) * var(--fs-h1)), 1px); }
218
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .words__title.t-display) { --_line-h: round(down, calc(var(--lh-display) * var(--fs-display)), 1px); }
219
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .end:not(:has(> .t-title)), .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .words__title > .words__room > .end:not(:has(> .t-title)) { margin-block-start: calc((var(--_line-h) - round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px)) / 2); }
220
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .end:not(:has(> .t-title)) + .icon, .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .words__title > .words__room > .end:not(:has(> .t-title)) + .icon { --icon-margin: calc((var(--_line-h) - var(--end-icon-size, var(--icon-xs))) / 2) 0; }
221
+ /* 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) */
222
+ .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; }
223
+ .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
224
  .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;
225
+ grid-column: 2 / -1; grid-row: 2;
173
226
  overflow-wrap: anywhere;
174
227
  display: -webkit-box;
175
228
  -webkit-box-orient: vertical;
@@ -179,7 +232,7 @@
179
232
  padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
180
233
  margin-block: -0.2em -0.15em;
181
234
  }
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; }
235
+ .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
236
 
184
237
  /* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
185
238
  :is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
@@ -272,7 +325,8 @@
272
325
 
273
326
  /* in a feed card */
274
327
  .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 */
328
+ .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 */
329
+ .feed-card > .head:has(> :is(.lead, .feed-card__lead)):not(:has(> .t-caption)) { align-items: center; }
276
330
 
277
331
  /* ---- 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
332
  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
package/css/stamp.css CHANGED
@@ -85,8 +85,8 @@
85
85
  /* the words on the picture's foot: a small line, then the big name — one line each (clipped sideways only: Thai tone marks stand above the line box) */
86
86
  .stamp__cap { position: absolute; inset-inline: 5cqw; bottom: 3.5cqw; display: grid; gap: 0.4cqw; }
87
87
  .stamp__words, .stamp__name { display: block; min-width: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
88
- .stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / var(--lh-title) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
89
- .stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / var(--lh-display) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
88
+ .stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / round(down, calc(var(--lh-title) * 1em), 1px) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
89
+ .stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / round(down, calc(var(--lh-display) * 1em), 1px) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
90
90
  /* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
91
91
  /* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
92
92
  The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
package/css/sticky.css CHANGED
@@ -428,7 +428,7 @@
428
428
  border-block-end: var(--rule-w) dotted currentColor;
429
429
  font: inherit;
430
430
  }
431
- .sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: var(--lh-caption); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
431
+ .sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: round(down, calc(var(--lh-caption) * 1em), 1px); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
432
432
  .sticky-heading__caption { font: var(--sticky-heading-caption-font, var(--type-caption)); color: var(--sticky-heading-caption-ink, var(--card-muted)); white-space: nowrap; } /* the muted words of what it stands on: a note, or the screen */
433
433
  /* on a note: across the top of its paper, and the note's words start under it */
434
434
  .sticky__stuck > .sticky-heading { position: absolute; inset: var(--sp-2) var(--sp-4) auto; }
@@ -72,5 +72,6 @@
72
72
  layer: --z-under-2 … --z-over-3 fade: --off --fade-faint … --fade-most
73
73
  type: per kind (display h1 h2 title body label caption stat) --face-<kind> --fw-<kind> --fs-<kind> --lh-<kind> --track-<kind>; --lh-h1-caption;
74
74
  the scales --fw-regular --fw-medium --fw-semibold --fw-strong --fw-bold --fw-heavy --fw-black
75
- --lh-mark --lh-band --lh-badge --lh-solid --lh-tight --lh-field --lh-hand --lh-ruled --track-loose --track-caps */
75
+ --lh-mark --lh-band --lh-badge --lh-solid --lh-tight --lh-field --lh-hand --lh-ruled --track-loose --track-caps
76
+ every --lh-* (and every leading knob) is a unitless ratio, never a length: 1.25, not 28px (docs/reference.md "type") */
76
77
  }
package/css/tokens.css CHANGED
@@ -336,14 +336,14 @@
336
336
  onlight shade washed 14% into the surface (tone 2's formula) */
337
337
  :root, [data-palette], [data-mode] {
338
338
  /* each kind's style, from its tokens: set here so a palette or a mode that tunes a kind's weight, size, leading or face reaches .t-<kind> */
339
- --type-display: var(--fw-display) var(--fs-display) / var(--lh-display) var(--face-display);
340
- --type-h1: var(--fw-h1) var(--fs-h1) / var(--lh-h1) var(--face-h1);
341
- --type-h2: var(--fw-h2) var(--fs-h2) / var(--lh-h2) var(--face-h2);
342
- --type-title: var(--fw-title) var(--fs-title) / var(--lh-title) var(--face-title);
343
- --type-body: var(--fw-body) var(--fs-body) / var(--lh-body) var(--face-body);
344
- --type-label: var(--fw-label) var(--fs-label) / var(--lh-label) var(--face-label);
345
- --type-caption: var(--fw-caption) var(--fs-caption) / var(--lh-caption) var(--face-caption);
346
- --type-stat: var(--fw-stat) var(--fs-stat) / var(--lh-stat) var(--face-stat);
339
+ --type-display: var(--fw-display) var(--fs-display) / round(down, calc(var(--lh-display) * 1em), 1px) var(--face-display);
340
+ --type-h1: var(--fw-h1) var(--fs-h1) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--face-h1);
341
+ --type-h2: var(--fw-h2) var(--fs-h2) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--face-h2);
342
+ --type-title: var(--fw-title) var(--fs-title) / round(down, calc(var(--lh-title) * 1em), 1px) var(--face-title);
343
+ --type-body: var(--fw-body) var(--fs-body) / round(down, calc(var(--lh-body) * 1em), 1px) var(--face-body);
344
+ --type-label: var(--fw-label) var(--fs-label) / round(down, calc(var(--lh-label) * 1em), 1px) var(--face-label);
345
+ --type-caption: var(--fw-caption) var(--fs-caption) / round(down, calc(var(--lh-caption) * 1em), 1px) var(--face-caption);
346
+ --type-stat: var(--fw-stat) var(--fs-stat) / round(down, calc(var(--lh-stat) * 1em), 1px) var(--face-stat);
347
347
  /* shadows of paper laid on paper: mixed from the onlight ink, so re-derived where a palette is set */
348
348
  --shadow-paper: 0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--ink-onlight) 16%, transparent); /* a stamp lying on paper: follows its teeth (drop-shadow) */
349
349
  --shadow-lift: 0 var(--sp-0) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 35%, transparent); /* a small disc lifted over a picture */
@@ -5,5 +5,6 @@ export interface LinkBlockProps extends ComponentProps<'a'> {
5
5
  }
6
6
  /** LinkBlock — a link that is neither a card nor a row: a few pieces of a card's content (a still `MapArea` and the `Row` naming the place) as ONE
7
7
  * `<a>`, stacked with the card's gap, in the ink of what holds it, no underline, no frame and no padding of its own; it dims under the finger.
8
- * Name it with `aria-label` when it leaves the app (`target="_blank"`). Nothing that can be pressed goes inside. Knob `--link-block-gap`. */
9
- export declare function LinkBlock({ className, ...rest }: LinkBlockProps): import("react").JSX.Element;
8
+ * Name it with `aria-label` when it leaves the app (`target="_blank"`). Nothing that can be pressed goes inside. Knob `--link-block-gap`.
9
+ * A `Row` in it with a lead and a meta: everything at the top, the title's later lines run under its end (and arrow) at full width, the meta under all. */
10
+ export declare function LinkBlock({ className, children, ...rest }: LinkBlockProps): import("react").JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cx } from '../cx.js';
3
+ import { RowEndRoomCtx } from '../parts/endRoom.js';
3
4
  /** LinkBlock — a link that is neither a card nor a row: a few pieces of a card's content (a still `MapArea` and the `Row` naming the place) as ONE
4
5
  * `<a>`, stacked with the card's gap, in the ink of what holds it, no underline, no frame and no padding of its own; it dims under the finger.
5
- * Name it with `aria-label` when it leaves the app (`target="_blank"`). Nothing that can be pressed goes inside. Knob `--link-block-gap`. */
6
- export function LinkBlock({ className, ...rest }) {
7
- return _jsx("a", { className: cx('link-block', className), ...rest });
6
+ * Name it with `aria-label` when it leaves the app (`target="_blank"`). Nothing that can be pressed goes inside. Knob `--link-block-gap`.
7
+ * A `Row` in it with a lead and a meta: everything at the top, the title's later lines run under its end (and arrow) at full width, the meta under all. */
8
+ export function LinkBlock({ className, children, ...rest }) {
9
+ return _jsx("a", { className: cx('link-block', className), ...rest, children: _jsx(RowEndRoomCtx.Provider, { value: true, children: children }) });
8
10
  }