@brignano/design 0.9.0 → 0.10.1

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/DECISIONS.md CHANGED
@@ -458,6 +458,7 @@ checks the first phone screen and the page length in CI.
458
458
  ## ADR-0011 — Product pages start from a brief, and each looks like itself
459
459
 
460
460
  **Status:** accepted · 2026-11-02
461
+ **Superseded in part by:** ADR-0017 (the three identity choices, and cobalt actions on a product page)
461
462
 
462
463
  ### Context
463
464
 
@@ -712,3 +713,51 @@ for cobalt.
712
713
  are for cobalt. Success and attention have no filled control, so they get
713
714
  no fill tokens until something needs one.
714
715
 
716
+ ---
717
+
718
+ ## ADR-0017 — A product page is built from what the product does
719
+
720
+ **Status:** accepted · 2026-11-13 · #153
721
+ **Supersedes in part:** ADR-0011 ("each looks like itself": the mark, layout and frame choices, and "actions stay cobalt on every product")
722
+
723
+ ### Context
724
+
725
+ ADR-0011 gave each product a mark, a hero layout and a proof frame. On the
726
+ live sites that came to an 8% tint and whether the picture sat left or right.
727
+ Driftwood, Guidebook and Sites still shared a header, a ground, a headline
728
+ type, a status pill, a cobalt button in the same two places, a rounded stage
729
+ and a band order, so switching between them read as one site with the words
730
+ swapped. Anthony chose a direction from the wireframe
731
+ (`previews/wireframes/product-identity.html`) and accepted the proposal
732
+ (`proposals/product-identity.md`) the same day.
733
+
734
+ ### Decision
735
+
736
+ - **Five choices replace three.** Each product picks a ground, a voice for
737
+ its thesis, a shape, a composition, and one piece of its own interface used
738
+ on the page itself. No two products pick the same value for any of them.
739
+ DESIGN.md §13 keeps the register.
740
+ - **The primary button leaves cobalt on a product page.** It fills with the
741
+ product's mark, or with ink. Inside the apps, buttons and links stay cobalt
742
+ (ADR-0004, ADR-0014 unchanged).
743
+ - **A product's look lives in its own repo**, written in tokens, with its
744
+ choices in `BRIEF.md`. This package ships the tokens, the shared parts of
745
+ `product-page.css` and the register, not a preset per product.
746
+ - **Driftwood is rebuilt first**, then Guidebook, then Sites.
747
+ - **A product page follows the visitor's theme** unless its look is a theme:
748
+ Driftwood pins dark; Guidebook and Sites define their ground in both.
749
+ - **No typeface per product for now.** Weight, size and mono carry the voice.
750
+ Revisit if the three still read alike once built.
751
+
752
+ ### Consequences
753
+
754
+ - "One hue, one meaning" now has a second scoped exception on product pages:
755
+ the mark may fill the one primary action and wash the page ground. It still
756
+ never colours a link, text or a state, and never appears as a fill in an app.
757
+ - The mark needs fill, label and surface tokens per product hue, each held to
758
+ contrast in both themes by `npm run check`.
759
+ - `product-page.css` stops being the look. The brief, show then tell, one
760
+ primary action, the word budgets, `fold.mjs` and the stranger test stay.
761
+ - Three pages differ, so a change to the shared rules is checked on three
762
+ layouts. The `A|B` stamp in the footer is the one family resemblance.
763
+
package/DESIGN.md CHANGED
@@ -95,8 +95,29 @@ and `.rule` draw in it; the name beside the glyph stays `--ink`. With no
95
95
  attribute the mark is the family amber, so personal tools share it. A product
96
96
  gets its own hue when it gets a product page, not before.
97
97
 
98
- The contract is `--mark`'s: a graphic only. Buttons and links stay cobalt on
99
- every product, so "you can act on this" looks the same everywhere.
98
+ The contract is `--mark`'s: a graphic only. Buttons and links stay cobalt in
99
+ every app, so "you can act on this" looks the same everywhere a person works.
100
+
101
+ ### On a product page, the mark may fill and wash
102
+
103
+ A product's marketing page (§13) is the one place a mark is more than a
104
+ graphic (ADR-0017). There, and only there, it may do two more things:
105
+
106
+ - **Fill the one primary button**: `--mark-fill` under a white `--on-mark`
107
+ label, stepping darker to `--mark-fill-hover` and `--mark-fill-pressed`.
108
+ - **Wash the page ground**: `--mark-surface`, a faint opaque tint that
109
+ `--ink`, `--ink-soft` and links in `--i-ink` all read on.
110
+
111
+ `data-mark` points all four at the product's, as it does `--mark-current`;
112
+ with no attribute they are the family amber. The fill is its own step, the
113
+ way `--i` sits beside `--i-ink`: in light it is the mark (amber is deepened
114
+ to carry the label), in dark it is the mark's hue as light as a white label
115
+ allows. Never fill or wash with
116
+ `--mark-teal` and its siblings directly: in dark they are pale, for drawing.
117
+
118
+ This is a scoped exception to "identity is not a fill", as the stage behind a
119
+ hero proof was (ADR-0011). It never reaches an app, a link, text or a state,
120
+ and the focus ring stays `--i-ink`.
100
121
 
101
122
  ### Colour is a surface, not text
102
123
 
@@ -386,6 +407,10 @@ not just `<html>`.** A dark hero band on a light marketing page is
386
407
  `<section data-theme="dark">`. Give that element its own
387
408
  `background: var(--bg); color: var(--ink)` — backgrounds don't inherit.
388
409
 
410
+ A page may **pin** a theme only when the look is the theme: a product page
411
+ whose identity is an always-dark console sets `data-theme="dark"` on `.pp`
412
+ (§13, ADR-0017). An app never pins; it follows the OS or the person's toggle.
413
+
389
414
  Two consequences for code that touches tokens directly:
390
415
 
391
416
  - **Don't read a token's value with `getPropertyValue`.** It returns the
@@ -491,8 +516,10 @@ back, rewrite the brief, not the page.
491
516
  ### 2. Build the page from it
492
517
 
493
518
  `product-page.css` is the structure; `previews/product-page.html` is the
494
- skeleton (the brief template is at its top) and
495
- `previews/product-page-example.html` is a worked example. Import it after the
519
+ skeleton (the brief template is at its top). Three worked examples, one per
520
+ product, show a look written over it (§3 below): `product-page-example.html`
521
+ (Driftwood), `product-page-guidebook.html` and `product-page-sites.html`, all
522
+ in `previews/`. Import it after the
496
523
  tokens, put `tier-marketing` on `<html>` and `pp` on `<body>`.
497
524
 
498
525
  ```css
@@ -544,28 +571,57 @@ When a page is over, cut sentences, don't shrink type.
544
571
  ### 3. Make it look like this product
545
572
 
546
573
  Shared structure is what makes a page fast to build; shared looks is what made
547
- Driftwood, Guidebook and Sites read as one page with the words swapped. Each
548
- product makes three choices, and **no two products make all three the same**:
574
+ Driftwood, Guidebook and Sites read as one page with the words swapped
575
+ (ADR-0017). `product-page.css` is the structure and a **starting point** for
576
+ the look: the parts every page needs are marked *shared*, and the header,
577
+ hero, stage, bands and footer are a layout a product overrides in its own
578
+ stylesheet.
579
+
580
+ Each product makes **five choices**, writes them under **Look** in its
581
+ `BRIEF.md`, and **no two products pick the same value for any of them**:
582
+
583
+ | Choice | What it is |
584
+ |---|---|
585
+ | **Ground** | the page's own surface: `--bg`, `--card`, the mark's wash (`data-ground="mark"`), or a pinned dark theme |
586
+ | **Voice** | how the thesis is set: weight, size and face (Geist or Plex Mono; no third typeface) |
587
+ | **Shape** | the corners on the button and every surface: square, the system radii, or pills |
588
+ | **Composition** | where the product sits on the first screen: beside the words, behind them, over them, leaning in from the edge |
589
+ | **The page does the thing** | one piece of the product's own interface used on the page itself, not only pictured |
590
+
591
+ The register, so the next product can see what is taken:
592
+
593
+ | | Ground | Voice | Shape | Composition | The page does the thing |
594
+ |---|---|---|---|---|---|
595
+ | **Driftwood** (teal) | always dark | Plex Mono 600 | square | the system map is the background | a diff and a status line |
596
+ | **Guidebook** (violet) | bright, `--card` | Geist 800, as large as the screen allows | pill | the product annotates the page | a coach mark and a step counter |
597
+ | **Sites** (magenta) | the mark's wash | Geist 500 | soft and round | the phone leans in from the edge | a message and its reply |
598
+
599
+ The attributes `product-page.css` gives every page:
549
600
 
550
601
  - **A mark** (`data-mark` on `.pp` or on `<html>`, the same attribute its app
551
- uses, §3: `teal`, `violet` or `magenta`; tokens
552
- `--mark-teal` and so on). It inks the product's glyph (an inline SVG in
553
- `currentColor`), the hero rule above the thesis, the **stage** (a faint field
554
- behind the hero proof), the clip's current step and the how-it-works
555
- numerals. Like `--mark` (§3), it is never a button, link, text or state: the
556
- actions stay cobalt on every product, so "you can click this" means the same
557
- thing everywhere.
602
+ uses, §3: `teal`, `violet` or `magenta`). It inks the product's glyph (an
603
+ inline SVG in `currentColor`), the hero rule above the thesis, the
604
+ **stage** (a faint field behind the hero proof), the clip's current step and
605
+ the how-it-works numerals, and it **fills the one primary button**
606
+ (`--mark-fill` under `--on-mark`, §3). It is never a link, text or state,
607
+ and the focus ring stays `--i-ink`.
608
+ - **An ink button** (`data-button="ink"` on `.pp`) when the mark is better
609
+ kept for the picture. A page with no `data-mark` is ink too.
610
+ - **A mark ground** (`data-ground="mark"` on `.pp`): the page washes in
611
+ `--mark-surface`.
612
+ - **A pinned theme** (`data-theme` on `.pp`, §11), only when the look *is* a
613
+ theme. Otherwise the page follows the visitor, and the product's own
614
+ stylesheet defines its ground for both.
558
615
  - **A hero layout** (`data-layout` on `.pp-hero`): `split` (the default, proof
559
- on the right), `mirror` (proof on the left, for a picture that should be
560
- read first) or `stage` (centred words and actions, the proof full width
561
- under them, for a wide picture such as a map). Phones stack all three the same.
562
- - **A frame for the proof** that matches where the product lives: bare, a
563
- phone (`.pp-device`) for something used on a phone, or a browser window
564
- (`.pp-browser`, with `.pp-browser-bar` and `.pp-browser-url`) for an
565
- extension or web app.
566
-
567
- Then the voice: the thesis, the signature band and the close are written for
568
- this product's reader, not copied from the last page.
616
+ on the right), `mirror` (proof on the left) or `stage` (centred words and
617
+ actions, the proof full width under them). Phones stack all three the same.
618
+ - **A frame for the proof**: bare, a phone (`.pp-device`) or a browser window
619
+ (`.pp-browser`, with `.pp-browser-bar` and `.pp-browser-url`).
620
+
621
+ A product's look lives in its own repo, in tokens, over this file: no hex, no
622
+ preset in this package. Inside the product's app nothing changes: actions stay
623
+ cobalt (ADR-0014). Then the words: the thesis, the signature band and the
624
+ close are written for this product's reader, not copied from the last page.
569
625
 
570
626
  ### Compare
571
627
 
package/README.md CHANGED
@@ -10,7 +10,7 @@ The shared design system for every brignano surface — `brignano.io`, `life`,
10
10
  | [`tokens.css`](./tokens.css) | Single source of truth for colour, type, space, shape, motion. |
11
11
  | [`tokens.chart.css`](./tokens.chart.css) | Validated categorical palette for data viz. |
12
12
  | [`components.css`](./components.css) | Shared controls and patterns as plain CSS in `@layer brignano.components`: one import, any framework. DESIGN.md §14; catalog in `proposals/component-layer.md`; preview in `previews/components.html`. |
13
- | [`product-page.css`](./product-page.css) | The structure of a product's marketing page, built from a five-line brief: thesis and proof on the first phone screen, one signature band, how it works, closing ask; a product mark, hero layout and proof frame so each product looks like itself. DESIGN.md §13; skeleton in `previews/product-page.html`, worked example in `previews/product-page-example.html`, first-screen check in `scripts/fold.mjs`. |
13
+ | [`product-page.css`](./product-page.css) | The structure of a product's marketing page, built from a five-line brief: thesis and proof on the first phone screen, one signature band, how it works, closing ask. The shared parts every page needs, and a starting point for the look each product writes over it: its mark fills the primary button, and five choices keep any two products from looking alike (ADR-0017). DESIGN.md §13; skeleton in `previews/product-page.html`, one worked example per product in `previews/product-page-example.html` (Driftwood), `product-page-guidebook.html` and `product-page-sites.html`, first-screen check in `scripts/fold.mjs`. |
14
14
  | [`templates/`](./templates) | Page templates built on `components.css`: `article.css` (posts and docs), `changelog.css`, `legal.css`, `error.css` (404, 500, offline), `settings.css`, and a transactional email (`email.html` + `email.txt`, filled from the tokens by `scripts/email-tokens.mjs`). Import as `@brignano/design/templates/<name>.css`. |
15
15
  | [`icons/`](./icons) | One curated outline icon set (Lucide, ISC; `icons/LICENSE`) on a 24px grid in `currentColor`. Size with `.icon-sm`, `.icon`, `.icon-lg` from `components.css`; browse and copy in `previews/icons.html`. Paste the markup inline (`@brignano/design/icons/<name>.svg`); through `<img>` an icon can't take the text colour. |
16
16
  | [`previews/`](./previews) | Live swatches. Open one in a browser to see the tokens render. |
@@ -91,14 +91,18 @@ something actually looks different.
91
91
 
92
92
  ## Releasing
93
93
 
94
- The tag is the trigger. `.github/workflows/publish.yml` publishes to npm on any
95
- `v*` tag, after checking the tag agrees with `package.json` — npm versions are
96
- immutable, so a mismatch is caught before it's permanent.
94
+ Releases are cut by Anthony, never by an agent on its own. The tag is the
95
+ version: nothing bumps `package.json`, which stays at whatever it last said.
97
96
 
98
- ```sh
99
- npm version minor # bumps package.json, commits, tags
100
- git push --follow-tags
101
- ```
97
+ 1. Write the notes in `releases/v<version>.md` and merge them to `main`. They
98
+ become the GitHub release body word for word.
99
+ 2. Run the **Release** workflow (`.github/workflows/release.yml`) with the
100
+ version (no leading `v`). It checks the tag, release and npm version don't
101
+ exist yet, creates the release, and dispatches `publish.yml`, which sets the
102
+ version from the tag and publishes.
103
+ 3. Check the Publish run, then `npm view @brignano/design version`.
104
+
105
+ AGENTS.md has the same steps for agents.
102
106
 
103
107
  Publishing is done by CI, never from a laptop. There is no npm token anywhere in
104
108
  this repo and there should never be one — the runner exchanges its OIDC identity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brignano/design",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/product-page.css CHANGED
@@ -27,18 +27,49 @@
27
27
  * .pp-footer brand and links, then the legal line: © year, owner, and
28
28
  * the product's Privacy and Terms links if it has them
29
29
  *
30
- * Each product looks like itself (ADR-0011), with three choices on the page:
30
+ * Each product looks like itself (ADR-0017). This file is two things:
31
31
  *
32
- * data-mark on .pp teal | violet | magenta: the product's mark, which
33
- * inks its glyph, the hero rule, the stage behind the
34
- * proof and the step numerals. Never a button or text.
32
+ * SHARED what every page needs and nobody should rewrite: the skip
33
+ * link, .pp-wrap, the status, the buttons, the clip's Pause
34
+ * control and captions, the form and its states, .pp-done,
35
+ * the prices and the legal line. Sections marked "shared".
36
+ * STARTING the header, hero, stage, bands, story, close and footer
37
+ * POINT layout. They work as they are, and a product overrides them
38
+ * in its own stylesheet, after this one, to build its look.
39
+ * Sections marked "starting point".
40
+ *
41
+ * A product's look is five choices, written under "Look" in its BRIEF.md,
42
+ * and no two products pick the same value for any of them (DESIGN.md §13
43
+ * keeps the register): a ground, a voice for the thesis, a shape, a
44
+ * composition, and one piece of its own interface used on the page itself.
45
+ * This file gives the attributes that are common to all of them:
46
+ *
47
+ * data-mark on .pp teal | violet | magenta: the product's mark. It
48
+ * inks the glyph, the hero rule, the stage behind
49
+ * the proof and the step numerals, and FILLS the one
50
+ * primary button (--mark-fill under --on-mark).
51
+ * Never a link, text or state.
52
+ * data-button="ink" the primary button fills with ink instead of the
53
+ * mark. A page with no data-mark is ink too.
54
+ * data-ground="mark" the page ground is the mark's wash (--mark-surface)
55
+ * instead of --bg.
56
+ * data-theme on .pp pins a theme when the look IS a theme (a console
57
+ * that is always dark). Otherwise leave it off: the
58
+ * page follows the visitor.
35
59
  * data-layout on .pp-hero split (default) | mirror (proof on the left) |
36
- * stage (centred words and actions, the proof full width under them)
60
+ * stage (centred words and actions, the proof full
61
+ * width under them)
37
62
  * the proof's frame bare, .pp-device (a phone) or .pp-browser (a window)
38
63
  *
39
- * The skeleton is previews/product-page.html, and a worked example is
40
- * previews/product-page-example.html: copy one, keep the order, replace the
41
- * words and pictures. scripts/fold.mjs checks the first phone screen.
64
+ * Links, the focus ring and secondary buttons stay as they are on every
65
+ * page; inside the product's app, actions stay cobalt (ADR-0014).
66
+ *
67
+ * The skeleton is previews/product-page.html. Three worked examples, one
68
+ * per product, show what a look written over this file is like:
69
+ * previews/product-page-example.html (Driftwood), product-page-guidebook.html
70
+ * and product-page-sites.html. Copy the skeleton, keep the order, replace
71
+ * the words and pictures, then write the product's own look over it.
72
+ * scripts/fold.mjs checks the first phone screen.
42
73
  * Rules (DESIGN.md §13):
43
74
  *
44
75
  * - One primary action per page (.pp-button). Everything else is secondary.
@@ -60,6 +91,12 @@
60
91
  is the field behind the hero proof, a faint wash of the mark. */
61
92
  --pp-mark: var(--ink);
62
93
  --pp-stage: color-mix(in srgb, var(--pp-mark) 8%, transparent);
94
+ /* The primary button's fill (ADR-0017): ink until data-mark picks a mark.
95
+ Ink steps toward the ground on hover and press, in both themes. */
96
+ --pp-fill: var(--ink);
97
+ --pp-fill-hover: var(--n-800);
98
+ --pp-fill-pressed: var(--n-700);
99
+ --pp-on-fill: var(--card);
63
100
  background: var(--bg);
64
101
  color: var(--ink);
65
102
  font: var(--text-base) / 1.6 var(--sans);
@@ -68,7 +105,24 @@
68
105
  }
69
106
  /* data-mark on .pp or on an ancestor (<html data-mark="teal">, the same
70
107
  attribute the app uses) picks the mark; tokens.css resolves it. */
71
- .pp[data-mark], [data-mark] .pp { --pp-mark: var(--mark-current); }
108
+ .pp[data-mark], [data-mark] .pp {
109
+ --pp-mark: var(--mark-current);
110
+ --pp-fill: var(--mark-fill);
111
+ --pp-fill-hover: var(--mark-fill-hover);
112
+ --pp-fill-pressed: var(--mark-fill-pressed);
113
+ --pp-on-fill: var(--on-mark);
114
+ }
115
+ /* data-button="ink" keeps the button ink on a marked page. Declared after
116
+ the rule above, at the same specificity, so it wins. */
117
+ .pp[data-button="ink"], [data-button="ink"] .pp {
118
+ --pp-fill: var(--ink);
119
+ --pp-fill-hover: var(--n-800);
120
+ --pp-fill-pressed: var(--n-700);
121
+ --pp-on-fill: var(--card);
122
+ }
123
+ /* data-ground="mark" washes the whole page in the mark (--mark-surface is
124
+ opaque, and --ink, --ink-soft and --i-ink all read on it). */
125
+ .pp[data-ground="mark"] { background: var(--mark-surface); }
72
126
  /* On <body>, drop the browser's 8px margin so the sticky header and every band
73
127
  run to the screen edges. On a wrapper, the body is the site's business. */
74
128
  body.pp { margin: 0; }
@@ -77,12 +131,12 @@ body.pp { margin: 0; }
77
131
  /* The content column every band lines up on. */
78
132
  .pp-wrap { max-width: var(--pp-width); margin: 0 auto; padding: 0 var(--pp-gutter); }
79
133
 
80
- /* ── Skip link ─────────────────────────────────────────────────────────── */
134
+ /* ── Skip link · shared ────────────────────────────────────────────────── */
81
135
  .pp-skip { position: absolute; left: var(--s4); top: -100px; z-index: var(--z-float); padding: var(--s2) var(--s3);
82
136
  background: var(--card); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
83
137
  .pp-skip:focus { top: var(--s3); }
84
138
 
85
- /* ── Header ────────────────────────────────────────────────────────────── */
139
+ /* ── Header · starting point ───────────────────────────────────────────── */
86
140
  .pp-header {
87
141
  position: sticky; top: 0; z-index: var(--z-sticky);
88
142
  background: var(--surface-sticky); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
@@ -106,8 +160,13 @@ body.pp { margin: 0; }
106
160
  .pp-nav + .pp-header-actions so it outranks the margin-left: 0 above. */
107
161
  @media (max-width: 860px) { .pp-nav { display: none; } .pp-nav + .pp-header-actions { margin-left: auto; } }
108
162
  @media (max-width: 480px) { .pp-header .pp-status { display: none; } }
163
+ /* On a touch screen every link in the header and footer is a 44px target
164
+ (DESIGN.md §10), like .pp-button below; a mouse keeps the tighter rows. */
165
+ @media (pointer: coarse) {
166
+ .pp-header .pp-brand, .pp-nav a, .pp-footer .pp-brand, .pp-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
167
+ }
109
168
 
110
- /* ── Status ────────────────────────────────────────────────────────────
169
+ /* ── Status · shared ───────────────────────────────────────────────────
111
170
  Where the product stands, as a word with a dot: "Pilot open", "In
112
171
  development", "Closed beta". The dot takes a state hue only when the state
113
172
  asks something of the reader (DESIGN.md §3): open = success (you can join),
@@ -122,18 +181,19 @@ body.pp { margin: 0; }
122
181
  .pp-status[data-state="open"]::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-surface); }
123
182
  .pp-status[data-state="soon"]::before { background: var(--attention); box-shadow: 0 0 0 3px var(--attention-surface); }
124
183
 
125
- /* ── Buttons ───────────────────────────────────────────────────────────
126
- .pp-button is the page's one primary action. .is-secondary is everything
127
- else. Works on <a> and <button>. */
184
+ /* ── Buttons · shared ──────────────────────────────────────────────────
185
+ .pp-button is the page's one primary action, filled with the product's
186
+ mark (or ink, see .pp above). .is-secondary is everything else. Works on
187
+ <a> and <button>. The focus ring stays --i-ink on every page. */
128
188
  .pp-button {
129
189
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); box-sizing: border-box;
130
190
  font: 600 var(--text-base) / 1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
131
- padding: 13px 22px; border-radius: 8px; border: 1px solid var(--i);
132
- background: var(--i); color: var(--on-i);
191
+ padding: 13px 22px; border-radius: 8px; border: 1px solid var(--pp-fill);
192
+ background: var(--pp-fill); color: var(--pp-on-fill);
133
193
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
134
194
  }
135
- .pp-button:hover { background: var(--i-hover); border-color: var(--i-hover); color: var(--on-i); }
136
- .pp-button:active { background: var(--i-pressed); border-color: var(--i-pressed); }
195
+ .pp-button:hover { background: var(--pp-fill-hover); border-color: var(--pp-fill-hover); color: var(--pp-on-fill); }
196
+ .pp-button:active { background: var(--pp-fill-pressed); border-color: var(--pp-fill-pressed); }
137
197
  .pp-button.is-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); font-weight: var(--weight-medium); }
138
198
  .pp-button.is-secondary:hover { background: var(--surface-hover); color: var(--ink); }
139
199
  .pp-button.is-secondary:active { background: var(--surface-active); }
@@ -147,7 +207,7 @@ body.pp { margin: 0; }
147
207
  .pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0; }
148
208
  .pp-note { margin: var(--s3) 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
149
209
 
150
- /* ── Hero ──────────────────────────────────────────────────────────────
210
+ /* ── Hero · starting point ─────────────────────────────────────────────
151
211
  Split into .pp-hero-head (status, thesis), the proof (.pp-media), and
152
212
  .pp-hero-body (subhead, actions, note). On a phone they stack in that
153
213
  order, so the proof is on the first screen; from 960px the head and body
@@ -241,7 +301,7 @@ body.pp { margin: 0; }
241
301
  }
242
302
  .pp-browser > :not(.pp-browser-bar) { display: block; width: 100%; height: auto; }
243
303
 
244
- /* ── Proof media: a clip, a phone frame, the steps it shows ───────────────
304
+ /* ── Proof media: a clip, a phone frame, the steps it shows · shared ──────
245
305
  The proof slot holds an <img> or a <video>, bare or in a .pp-device phone
246
306
  frame, and optionally a row of .pp-steps naming what the clip shows.
247
307
 
@@ -266,7 +326,7 @@ body.pp { margin: 0; }
266
326
  and lights the step the clip is on. Without the script, or with reduced
267
327
  motion, the poster stands still, so the poster is the finished state. */
268
328
  .pp-media > img, .pp-media > video {
269
- display: block; width: 100%; height: auto; background: var(--card);
329
+ display: block; box-sizing: border-box; width: 100%; height: auto; background: var(--card);
270
330
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
271
331
  }
272
332
 
@@ -316,7 +376,7 @@ body.pp { margin: 0; }
316
376
  .pp-play[hidden] { display: none; }
317
377
  @media (pointer: coarse) { .pp-play { min-height: 44px; } }
318
378
 
319
- /* ── Bands: what you get, how it works ─────────────────────────────────
379
+ /* ── Bands: what you get, how it works · starting point ────────────────
320
380
  A band is a hairline, a short title that is a sentence, and a grid. */
321
381
  .pp-band { padding: var(--s8) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
322
382
  @media (max-width: 560px) { .pp-band { padding: var(--s7) 0; } }
@@ -365,7 +425,7 @@ body.pp { margin: 0; }
365
425
  .pp-how p { margin: 0; color: var(--ink-soft); }
366
426
  .pp-band .pp-figure { margin-top: var(--s6); }
367
427
 
368
- /* ── Story ─────────────────────────────────────────────────────────────
428
+ /* ── Story · starting point ────────────────────────────────────────────
369
429
  Optional, and at most one chapter on a product page (the longer argument
370
430
  belongs in the docs). An <ol> of chapters. Each opens on a hairline with "01 / Label" in mono,
371
431
  then a headline that is a sentence, then a short body and an optional
@@ -400,7 +460,7 @@ body.pp { margin: 0; }
400
460
  padding: var(--s5); font: var(--text-sm) / 1.7 var(--mono); }
401
461
  .pp-terminal code { font: inherit; }
402
462
 
403
- /* ── Close ─────────────────────────────────────────────────────────────
463
+ /* ── Close · starting point ────────────────────────────────────────────
404
464
  The primary action once more, with the room a form needs. */
405
465
  .pp-close { padding: var(--s8) 0 var(--s9); border-top: 1px solid var(--line); scroll-margin-top: 64px; }
406
466
  .pp-close > .pp-wrap { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@@ -410,7 +470,7 @@ body.pp { margin: 0; }
410
470
  .pp-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--s6); }
411
471
  @media (max-width: 560px) { .pp-panel { padding: var(--s5) var(--s4); } }
412
472
 
413
- /* ── Form ──────────────────────────────────────────────────────────────
473
+ /* ── Form · shared ─────────────────────────────────────────────────────
414
474
  The short form a close panel may need: a few .pp-field, then the primary
415
475
  action in .pp-actions, then a .pp-note for the privacy line (or, after a
416
476
  failed send, the error). Mark the optional fields with .pp-optional inside
@@ -453,7 +513,7 @@ body.pp { margin: 0; }
453
513
  .pp-done p { margin: 0; color: var(--ink-soft); }
454
514
  .pp-done:focus { outline: none; }
455
515
  .pp-done:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 4px; border-radius: var(--radius-sm); }
456
- /* ── Price ─────────────────────────────────────────────────────────────
516
+ /* ── Price · shared ────────────────────────────────────────────────────
457
517
  Two to four ways to pay, as a <dl>: one <div> per option, the price as <dt>,
458
518
  one line of condition as <dd>. Ruled like .pp-points, narrower so three fit
459
519
  in the close band's left column. It goes under the close's subhead (or in a
@@ -466,7 +526,7 @@ body.pp { margin: 0; }
466
526
  .pp-price dd { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
467
527
  .pp-price dd a { color: var(--i-ink); }
468
528
 
469
- /* ── Footer ────────────────────────────────────────────────────────────── */
529
+ /* ── Footer · starting point; the legal line is shared ─────────────────── */
470
530
  .pp-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); color: var(--ink-soft); font-size: var(--text-sm); }
471
531
  .pp-footer > .pp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
472
532
  .pp-footer p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
package/tailwind.css CHANGED
@@ -75,6 +75,11 @@
75
75
 
76
76
  --color-mark: var(--mark);
77
77
  --color-mark-ink: var(--mark-ink);
78
+ --color-mark-fill: var(--mark-fill);
79
+ --color-mark-fill-hover: var(--mark-fill-hover);
80
+ --color-mark-fill-pressed: var(--mark-fill-pressed);
81
+ --color-mark-surface: var(--mark-surface);
82
+ --color-on-mark: var(--on-mark);
78
83
 
79
84
  --font-sans: var(--sans);
80
85
  --font-mono: var(--mono);
package/tokens.css CHANGED
@@ -287,14 +287,56 @@
287
287
  Each product's marketing page picks one, so Driftwood, Guidebook and
288
288
  Sites don't read as the same page with the words swapped (ADR-0011).
289
289
  Same contract as --mark: it inks the product's graphics (its glyph,
290
- the hero rule, the proof's stage, step numerals), never a button,
291
- link, text or state. Hues sit away from cobalt (act), forest
290
+ the hero rule, the proof's stage, step numerals), never a link, text
291
+ or state. On a product page only, it may also fill the primary button
292
+ and wash the ground, through the -fill and -surface steps below
293
+ (ADR-0017). Hues sit away from cobalt (act), forest
292
294
  (success), amber (attention) and rust (danger). All ≥ 3:1 on --bg and
293
295
  --card in both themes. product-page.css maps one onto --pp-mark via
294
296
  data-mark on .pp. */
295
297
  --mark-teal: light-dark(#0e7c86, #4cc0cb);
296
298
  --mark-violet: light-dark(#7148c9, #a990f2);
297
299
  --mark-magenta: light-dark(#b1366f, #ea7fb0);
300
+ /* ── A mark as a fill and a ground — product pages only (ADR-0017) ────
301
+ On a product's marketing page, and nowhere else, the mark may fill the
302
+ one primary button and wash the page ground. Never in an app, never a
303
+ link, text or a state. The mark tokens above don't move: like --i beside
304
+ --i-ink and --danger-fill beside --danger, the fill is its own step.
305
+
306
+ -fill the button, under a white --on-mark label in both themes.
307
+ In light it IS the mark (amber is deepened to carry the
308
+ label); in dark it sits at the mark's hue, as light as a
309
+ white label allows (4.5:1), the method ADR-0015 used
310
+ for cobalt.
311
+ -fill-hover, -fill-pressed step darker in both themes.
312
+ -surface the page ground: a faint, opaque tint at the mark's hue
313
+ that --ink, --ink-soft and --i-ink all read on.
314
+
315
+ Labels, light / dark: fill hover pressed
316
+ amber (the family) 4.60 / 4.61 6.09 / 5.65 7.63 / 6.92
317
+ teal 4.95 / 4.56 6.70 / 5.60 8.31 / 6.90
318
+ violet 6.05 / 4.57 8.23 / 5.68 10.24 / 6.94
319
+ magenta 5.79 / 4.57 7.83 / 5.61 9.71 / 6.91
320
+
321
+ Use the unprefixed four: `data-mark` points them at a product's, as it
322
+ does --mark-current. With no attribute they are the family amber. */
323
+ --mark-fill: light-dark(#a66707, #a06a05);
324
+ --mark-fill-hover: light-dark(#8c5602, #8e5d03);
325
+ --mark-fill-pressed: light-dark(#784903, #7c5102);
326
+ --mark-surface: light-dark(#fce7d3, #241807);
327
+ --mark-teal-fill: light-dark(#0e7c86, #19828a);
328
+ --mark-teal-fill-hover: light-dark(#03666f, #07737b);
329
+ --mark-teal-fill-pressed: light-dark(#01575e, #05646b);
330
+ --mark-teal-surface: light-dark(#d1f3f6, #021f22);
331
+ --mark-violet-fill: light-dark(#7148c9, #855cdf);
332
+ --mark-violet-fill-hover: light-dark(#5e31b1, #774ccd);
333
+ --mark-violet-fill-pressed: light-dark(#511ea1, #6a3dbe);
334
+ --mark-violet-surface: light-dark(#ebe8ff, #1c1729);
335
+ --mark-magenta-fill: light-dark(#b1366f, #c24986);
336
+ --mark-magenta-fill-hover: light-dark(#991d5b, #b23977);
337
+ --mark-magenta-fill-pressed: light-dark(#88024d, #a1296a);
338
+ --mark-magenta-surface: light-dark(#ffe3ec, #27141c);
339
+ --on-mark: light-dark(#ffffff, #ffffff);
298
340
  /* The mark in force here (ADR-0014): the family amber until `data-mark`
299
341
  on an ancestor, usually <html>, names a product's. A brand glyph and
300
342
  .rule draw in this, so a product's colour follows it from its marketing
@@ -451,15 +493,28 @@
451
493
 
452
494
  /* ── A product's mark, wherever the product is ──────────────────────────
453
495
  One attribute per product: <html data-mark="teal">. Works on any element,
454
- so a page that shows two products can mark each one's section. */
496
+ so a page that shows two products can mark each one's section. It also
497
+ points the product-page fill and ground (ADR-0017) at the product's. */
455
498
  [data-mark='teal'] {
456
499
  --mark-current: var(--mark-teal);
500
+ --mark-fill: var(--mark-teal-fill);
501
+ --mark-fill-hover: var(--mark-teal-fill-hover);
502
+ --mark-fill-pressed: var(--mark-teal-fill-pressed);
503
+ --mark-surface: var(--mark-teal-surface);
457
504
  }
458
505
  [data-mark='violet'] {
459
506
  --mark-current: var(--mark-violet);
507
+ --mark-fill: var(--mark-violet-fill);
508
+ --mark-fill-hover: var(--mark-violet-fill-hover);
509
+ --mark-fill-pressed: var(--mark-violet-fill-pressed);
510
+ --mark-surface: var(--mark-violet-surface);
460
511
  }
461
512
  [data-mark='magenta'] {
462
513
  --mark-current: var(--mark-magenta);
514
+ --mark-fill: var(--mark-magenta-fill);
515
+ --mark-fill-hover: var(--mark-magenta-fill-hover);
516
+ --mark-fill-pressed: var(--mark-magenta-fill-pressed);
517
+ --mark-surface: var(--mark-magenta-surface);
463
518
  }
464
519
 
465
520
  ::selection {