@hraness/design-kit 0.36.4 → 0.36.5

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/ARTICLE_COPY.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The article components (`MarketingArticle`, `ArticleIndex`, and the static `renderArticleHtml` functions) give every Hraness host the same article shape. This guide says what goes in each part and which posts a host may publish. `STYLE.md` still owns voice and conventions, and `MARKETING_COPY.md` owns the product-page slots.
4
4
 
5
+ Article and index pages use the host's product header, with the same brand mark, home link, navigation, and final appearance control as its homepage. Place that header before and outside the main landmark; the article's own title header remains inside the article. Breadcrumbs and feed links belong in the reading column. Run `inspectMarketingHeader` from `@hraness/design-kit/browser` against every rendered public route so a missing header cannot pass a layout check.
6
+
5
7
  A reader arrives with one question. The title names it, the dek answers it in one sentence, and the body shows the evidence.
6
8
 
7
9
  ## Parts of an article
@@ -46,6 +46,8 @@ Editorial marketing uses the Nebula Sans display role at weight 550 with a fluid
46
46
 
47
47
  A sticky `.hraness-marketing-header` or `.hraness-marketing-header-surface` publishes `--hraness-sticky-offset` on `html` and on `.hraness-marketing-page`. The token height is the fallback; `StickyOffsetSync` from `@hraness/design-kit/react` or `syncStickyOffset` from `@hraness/design-kit/browser` replaces it with the measured header border box when the chrome wraps. Attach the site header as a direct child of the page, then put the main landmark immediately after it:
48
48
 
49
+ The default synchronizer updates `html` and every enclosing marketing page or preset scope. This prevents a preset's fallback height from masking the live measurement in article headings or sticky contents lists. An explicit `target` remains scoped to that target. Teardown restores prior inline values. Use the measured variable for document scroll padding instead of a fixed pixel or rem value; public-route inspection can set `stickyOffset: true` after hydration to verify the measurement reaches `main`.
50
+
49
51
  ```tsx
50
52
  import { MarketingMain, MarketingPage, MarketingSiteHeader, StickyOffsetSync } from "@hraness/design-kit/react";
51
53
 
package/README.md CHANGED
@@ -11,7 +11,7 @@ Pin a GitHub release tag:
11
11
  ```json
12
12
  {
13
13
  "dependencies": {
14
- "@hraness/design-kit": "github:hraness/design-kit#v0.36.4",
14
+ "@hraness/design-kit": "github:hraness/design-kit#v0.36.5",
15
15
  "@hraness/ui": "github:hraness/ui#v0.5.17"
16
16
  }
17
17
  }
@@ -23,6 +23,22 @@ Pin a GitHub release tag:
23
23
  installation so the framework-neutral root and syntax highlighter can be used
24
24
  on their own. React 18 or 19 and React DOM 18 or 19 are also peer dependencies.
25
25
 
26
+ ### Consistent navigation on every public page
27
+
28
+ Version 0.36.5 adds `inspectMarketingHeader` to the browser entry. Public-route checks now have a shared way to require a branded header before `main`, compare its home link and mark with the homepage, and verify visible layout and the final appearance control. Use the same product header on articles, documentation, and normal status pages.
29
+
30
+ ```ts
31
+ import { inspectMarketingHeader } from "@hraness/design-kit/browser";
32
+
33
+ const header = await page.evaluate(inspectMarketingHeader, {
34
+ brandLabel: "Relay home",
35
+ brandMark: "/marks/relay.svg",
36
+ });
37
+ assert.deepEqual(header.problems, []);
38
+ ```
39
+
40
+ The inspector is read-only and returns serializable evidence. Set `measure: false` only for unrendered DOM unit tests; fixed-theme pages may explicitly set `appearance: "omitted"`. Set `stickyOffset: true` after hydration to check live header clearance. The default sticky synchronizer now publishes the measured height to the document and enclosing preset scopes, so local fallback heights cannot mask it. Run the inspector on every public route at phone and desktop widths. Missing-header and missing-layout examples fail the shared browser tests.
41
+
26
42
  ### System appearance before JavaScript
27
43
 
28
44
  Version 0.36.4 keeps the document’s system appearance when the final compiled stylesheet loads after the palette foundation. Explicit light and dark documents and nested examples keep their selected appearance.
@@ -795,7 +811,7 @@ bun run browser:install
795
811
  bun run check
796
812
  ```
797
813
 
798
- The stable dependency pair for this release is `@hraness/ui` `v0.5.17` with `@hraness/design-kit` `v0.36.4`. Version 0.31.0 keeps the `limits` beat and beats marked `social: false` out of the social kit and adds `socialPost` for social wording that stands without a caveat. Version 0.30.3 refreshes the portfolio snapshot so related-product cards use each product's own spelling, such as GhostGet and TextButler. Version 0.30.2 keeps the narrow and stacked install-tab layout when another package compiles the same atoms into a later cascade layer. Version 0.30.1 keeps every PlatformInstall tab name whole in columns down to 200px by stacking each mark above its name, using a container query on the component. Version 0.30.0 adds `site-shell.css`, which keeps short-page footers at the viewport bottom. Version 0.29.3 preserves readable selected install tabs in forced colors. Version 0.29.2 keeps all three PlatformInstall tabs visible at 320 to 360px and draws each platform mark once per component. Version 0.29.1 keeps marketing action labels readable in forced colors. Version 0.29.0 adds `PlatformInstall`, one install block for every CLI site: a tab per operating system with its mark, the install command with a Copy button that announces the result, optional alternative commands such as npm or Homebrew, and a note for platforms without a native build. After hydration it selects the visitor's operating system; without JavaScript every command shows. It also adds `PlatformIcon` (Apple, Tux, and Windows marks in `currentColor`) and a `PlatformBadges` "Runs on" row, plus `platformLabel`, `platformMark`, `detectPlatform`, and `matchDetectedPlatform` at the package root. See [Install commands for each platform](#install-commands-for-each-platform). No existing export changes. Version 0.28.0 adds the launch kit. `@hraness/design-kit/mockups` draws labelled illustrations of chat, feeds, inboxes, articles, terminals, browsers, desktop windows, menu bars, and phones in server-safe plain React with no StyleX or React Aria, styled by `@hraness/design-kit/mockups.css`; each renders as one image with a text description and no headings. `@hraness/design-kit/mockups/client` adds `ModeShowcase`, `FitToWidth`, and `StepThrough`. `@hraness/design-kit/launch`, with no React, holds the `LaunchBeat`, `LaunchFacts`, and `SocialKit` shapes with `resolveLaunchBeats`, `buildSocialKit`, and `assertLaunchKit`. `@hraness/design-kit/testing` gives product repositories `blogConformance`, `renderMatrix`, `assertNoHeadings`, `assertRoleImgWithLabel`, and `assertFakeHandles`. The React entries add `ArticleFigure`, `ArticleVideo` with `articleVideoJsonLd`, `ArticleTable`, `ArticleBarChart`, `ComparisonTable`, `LaunchBeats`, and `SocialKitPanel`, and `MarketingProofFrame` takes `chrome` (`window`, `browser` with `url`, or `terminal`). [ARTICLE_COPY.md](ARTICLE_COPY.md) now writes "Introducing a product" as beats; the admission rules are unchanged. No existing export changes. Version 0.27.0 adds explicit Rust, TOML, YAML, Lean, and TLA+ code highlighting, including nested comments and multiline strings. The existing highlighter API and stylesheet remain the shared entry points; unsupported languages still render as escaped text. Version 0.26.0 adds `MarketingNotice` and the raw `.hraness-marketing-notice` class: one status or alert line (`info`, `success`, or `error`) that sits on the content edge of the page column instead of spanning the window. Errors are announced as alerts and other tones as status. Signed-in account pages that render inside `MarketingSiteHeader` should compose `MarketingMain`, `MarketingNotice`, `MarketingStatStrip`, and `MarketingSection` so every block shares the header's measure and gutter, rather than hand-rolled full-bleed banners and nested cards. Version 0.25.0 moves bordered foil surfaces off the spectrum: `.hraness-foil` and `[data-emphasis="primary"]` actions keep their flat surface fill under one theme-aware monochrome edge — black on light, white on dark, overridable through the new `--hraness-foil-edge` token — while the metallic spectrum stays on wordmarks and marks. The foil material contract advances to version 3: `surfaceImage` and `surfaceBackgroundClip` are replaced by `surfaceFill`, `edge`, `edgeDark`, and `edgeColor`. Reinstall any vendored marketing snapshot from the 0.25.0 commit. Version 0.24.0 joins a marketing footer directly followed by the shared `@hraness/site-footer` network footer into one band: the product row's bottom space collapses to a compact gap and the network row's content follows the marketing measure and gutter through `--hraness-site-footer-measure`, so product links and the organization row share one column instead of reading as two stacked bars. Mount the network footer directly after `MarketingSiteFooter`; no prop or markup change is needed inside either landmark. Version 0.23.0 moves marketing pages to the Quiet direction described in [DESIGN.md](DESIGN.md). `ProductHero` no longer renders a backdrop, `HeroBackdrop` renders nothing, and `attachHeroLight` is an inert disposer; their names and props stay so existing code compiles and are marked deprecated. The `cells`, `weave`, `contour`, and `mesh` patterns render as `none`, and marketing fields and Lantern walls paint the flat palette background. Both marketing presets use Nebula Sans for display headings (editorial at weight 550); Instrument Serif stays vendored for explicit opt-in only. Hero eyebrows are plain labels, the accent band loses its grid, and cards and header chrome use hairline edges instead of lifted shadows. On phones `MarketingSiteHeader` keeps the brand, primary action, and appearance menu on one row and moves the links to a second row that scrolls sideways, with 44px targets. To migrate, delete `backdrop` artwork, `HeroBackdrop`, `attachHeroLight`, pattern values, and product CSS that recreated textures or serif headings, then reinstall any vendored marketing snapshot from the 0.23.0 commit. Version 0.22.2 restores the canonical roughday mark — the rain-cloud artwork pinned by the portfolio registry — after the mark slot briefly carried a stray illustration. Version 0.22.1 completes the icon library with the roughday inline chip family (65 admitted assets, no pending members). Version 0.22.0 adds the `./icons` surface: 62 vetted single-ink assets across ten sets — a shared illustration family, product illustration families, and the product marks, each admitted through a measured gate (single ink, bounded aspect, coverage, stroke, paths, bytes) and per-set family coherence, distributed as a typed registry module (`hranessIcons`, `hranessIcon`, `hranessIconMarkup`, `hranessIconsForSet`) and as canonical `./icons/<set>/<slug>.svg` files for image consumers. See [ICONS.md](ICONS.md). Version 0.21.1 accepts status-page `routes` straight from a sitemap: long titles are shortened for the "Did you mean" line and unusable entries are dropped instead of failing the render. Version 0.21.0 replaces the 404 and route-error pages with one shared status page: the product's main action, a "Did you mean" link to the closest known page, at most three next links with one-line descriptions, an optional line for AI agents, and a glyph drawn as dots that gather, move away from the pointer, and settle. `RouteNotFoundPage`, `RouteErrorPage`, and `GlobalErrorDocument` render it; `renderStatusPageHtml` and `attachStatusPage` bring the same page to static sites; `status-page.css` ships in `styles.css` and `compiler-foundation.css`. The default copy changes to "We can’t find that page". See [STATUS_PAGES.md](STATUS_PAGES.md). Version 0.20.0 gives `ThemeMenuButton` the Lantern material: under `data-hraness-material="lantern"` its trigger is raised at rest and inset while pressed, and its menu uses the material plane, lift and warm selection, with no new props. Sites can delete their local Lantern CSS for the appearance menu. It also adds `formatRelativeTime` at the package root and a hydration-safe `RelativeTime` component in `@hraness/design-kit/react`. Version 0.19.0 redraws related-product cards as the hraness.com project cards: each shows the product's mark, its name, and its one-line `role` at reading size, and no longer renders the `relationship` sentence (the prop stays accepted and is deprecated). `MarketingRelatedProduct` and the static `ArticleRelatedLink` take a `mark`, and every `@hraness/design-kit/portfolio` product and `relatedFor()` item now carries its portfolio mark as an inert `data:image/svg+xml` URL. Related-tier and proof headings move to the new `--hraness-marketing-h3-size` token, so the editorial display face never renders below 1.75rem. `typography.css` gains per-level heading tokens (`--hraness-type-h1-font` through `--hraness-type-h4-font`, the matching `-weight` tokens, `--hraness-type-subheading-font`, and `--hraness-type-display-min`). h3 and h4 in `.hraness-prose` and publication articles now use the text face, and the h2 floor rises to 1.75rem. Version 0.18.3 adds the Sponge and Wordcell runtime relations to Oh to the `@hraness/design-kit/portfolio` snapshot, so related-product cards on all three sites can link them. Version 0.18.2 refreshes the `@hraness/design-kit/portfolio` snapshot from the registry: the public ghostget.com entry, updated Gobstopper and xcb naming and descriptions, and the current sibling-product relations for related-product cards. Version 0.18.1 adds the Perplexity mark and a dependency-free `@hraness/design-kit/provider-marks` leaf entry (`providerMark`, `providerMarks`, `providerMarkFallback`, `providerMarkGlyphDataUri`, `providerMarkArtDataUri`, `providerMarkOnAccent`, `providerMarkMonogram`) so packages such as `@hraness/ui` can consume the registry without pulling the marketing surface. Version 0.18.0 adds the shared provider-mark registry: `providerMarks`, `providerMark()` alias resolution, `ProviderMark`/`ProviderMarkChip` accent-tinted tile components on both React entry points, vendored agent and vendor artwork from LobeHub icons 1.95.1 plus documented Crush and Aider marks, monogram fallbacks for uncovered names, and data-URI helpers for CSS-mask consumers. See `vendor/provider-marks/UPSTREAM.md` for asset provenance. Version 0.17.2 carries the canonical portfolio messaging record per product (`names`, `category`, `tagline`, `short`, `meta`, `medium`, `long`, and hero copy) in the `/portfolio` snapshot. Version 0.17.1 lets Next.js apps that compile dependencies with Babel build the article layer: its link check no longer uses a Unicode property escape that Babel cannot rewrite, and it rejects the same control characters and whitespace as before. Version 0.17.0 adds the article layer: server-safe `MarketingArticle`, byline, provenance, sources, callout, related-product, and index components, a matching static HTML renderer for sites without React, long-form article styles in `plain-publication.css`, and the `ArticleAdmission` rubric with `assertArticleAdmissions()`. It also adds `@hraness/design-kit/portfolio`, a snapshot of public product names, one-liners, links, and relations for related-product cards and "How X uses Y" posts. See [ARTICLE_COPY.md](ARTICLE_COPY.md). Version 0.16.4 keeps native appearance-menu labels usable inside keyboard-focusable page landmarks, including mouse and touch selection. Version 0.16.3 keeps decorative hero backgrounds hidden in forced colors and reduced transparency when other packages load their styles afterward. Version 0.16.2 preserves palette hues in translucent headers, material surfaces, and decorative highlights. Version 0.16.1 keeps plain reading pages and nested compiled surfaces in their selected palette, including system appearance without JavaScript. Version 0.16.0 adds a shared bounded hero light, product-owned backdrop slots, five Lantern patterns, palette-derived soft surfaces, and responsive typography across marketing and reading layouts. Static sites can use the palette bridge for system appearance before JavaScript. See [HERO_FIELDS.md](HERO_FIELDS.md), [LANTERN_MATERIAL.md](LANTERN_MATERIAL.md), and [MARKETING_PRESET.md](MARKETING_PRESET.md). Version 0.15.0 lets `MarketingRelated` present labeled tiers of sibling products: a `groups` collection renders each tier under its own heading with an accessible card-row label, while the flat `items` shape stays available for a single group. Version 0.14.0 adds `MarketingRelated`, a collection section that presents sibling products as linked cards, each framed by its relationship to the featured product. Version 0.13.0 publishes `--hraness-sticky-offset` from sticky marketing chrome, gives `MarketingMain` and the next sticky sibling a clearance contract, stretches marketing card rows to the tallest item with a reserved two-line meta block, and clips per-card art wells so a logo surface cannot paint through the gutter. Version 0.12.0 replaces pointer-driven gradient rotation with a steady material and a moving light: the spectrum and its 115deg direction stay fixed while `--hraness-foil-x`/`--hraness-foil-y` highlights travel across each lockup, and marketing footers can opt into the same icon-plus-wordmark foil as the site header with `brandMark`. Version 0.11.1 preserves visible metallic marks when another package repeats a generic hidden atom in a later CSS layer. React consumers load `components.css` or `styles.css`; the raw marketing entry supports authored HTML hooks. Version 0.11 adds server-rendered `FoilMark` artwork and metallic text with subtle rainbow reflections, including a shared header mark seam and original-artwork fallbacks. Version 0.10.1 adds conservative server syntax defaults, includes their styles in the narrow marketing entry, and pins the icon dependency to preserve fresh Linux installs. Version 0.10 adds the shared foil contract: `.hraness-foil` surfaces and `.hraness-foil-text` wordmarks render a pointer-following metallic spectrum from the `--hraness-foil-*` custom properties, applied by default to marketing header brands and primary actions. The `attachFoil` browser export drives the bounded `x`/`y`/`angle` inputs with damped easing, reduced-motion and forced-color fallbacks, and no style injection; the same spectrum feeds `@hraness/site-footer` signup controls. Dark appearances use a deeper palette so the sheen stays visible. Version 0.8 removes Jelly's optional API, stylesheet, vendor runtime and theme-provider side effect. Migrate direct Jelly surfaces to native shared primitives before upgrading. Lantern now uses softer directional depth and shaded faces; the marketing preset adds individually shaded static cells, theme-aware terminal colors and window chrome. Code blocks retain source lines and follow the active palette. Paper preferences, semantic palettes, and compiler identity stay stable. Compiler adopters must regenerate their finalized stylesheet with the new package manifest.
814
+ The stable dependency pair for this release is `@hraness/ui` `v0.5.17` with `@hraness/design-kit` `v0.36.5`. Version 0.31.0 keeps the `limits` beat and beats marked `social: false` out of the social kit and adds `socialPost` for social wording that stands without a caveat. Version 0.30.3 refreshes the portfolio snapshot so related-product cards use each product's own spelling, such as GhostGet and TextButler. Version 0.30.2 keeps the narrow and stacked install-tab layout when another package compiles the same atoms into a later cascade layer. Version 0.30.1 keeps every PlatformInstall tab name whole in columns down to 200px by stacking each mark above its name, using a container query on the component. Version 0.30.0 adds `site-shell.css`, which keeps short-page footers at the viewport bottom. Version 0.29.3 preserves readable selected install tabs in forced colors. Version 0.29.2 keeps all three PlatformInstall tabs visible at 320 to 360px and draws each platform mark once per component. Version 0.29.1 keeps marketing action labels readable in forced colors. Version 0.29.0 adds `PlatformInstall`, one install block for every CLI site: a tab per operating system with its mark, the install command with a Copy button that announces the result, optional alternative commands such as npm or Homebrew, and a note for platforms without a native build. After hydration it selects the visitor's operating system; without JavaScript every command shows. It also adds `PlatformIcon` (Apple, Tux, and Windows marks in `currentColor`) and a `PlatformBadges` "Runs on" row, plus `platformLabel`, `platformMark`, `detectPlatform`, and `matchDetectedPlatform` at the package root. See [Install commands for each platform](#install-commands-for-each-platform). No existing export changes. Version 0.28.0 adds the launch kit. `@hraness/design-kit/mockups` draws labelled illustrations of chat, feeds, inboxes, articles, terminals, browsers, desktop windows, menu bars, and phones in server-safe plain React with no StyleX or React Aria, styled by `@hraness/design-kit/mockups.css`; each renders as one image with a text description and no headings. `@hraness/design-kit/mockups/client` adds `ModeShowcase`, `FitToWidth`, and `StepThrough`. `@hraness/design-kit/launch`, with no React, holds the `LaunchBeat`, `LaunchFacts`, and `SocialKit` shapes with `resolveLaunchBeats`, `buildSocialKit`, and `assertLaunchKit`. `@hraness/design-kit/testing` gives product repositories `blogConformance`, `renderMatrix`, `assertNoHeadings`, `assertRoleImgWithLabel`, and `assertFakeHandles`. The React entries add `ArticleFigure`, `ArticleVideo` with `articleVideoJsonLd`, `ArticleTable`, `ArticleBarChart`, `ComparisonTable`, `LaunchBeats`, and `SocialKitPanel`, and `MarketingProofFrame` takes `chrome` (`window`, `browser` with `url`, or `terminal`). [ARTICLE_COPY.md](ARTICLE_COPY.md) now writes "Introducing a product" as beats; the admission rules are unchanged. No existing export changes. Version 0.27.0 adds explicit Rust, TOML, YAML, Lean, and TLA+ code highlighting, including nested comments and multiline strings. The existing highlighter API and stylesheet remain the shared entry points; unsupported languages still render as escaped text. Version 0.26.0 adds `MarketingNotice` and the raw `.hraness-marketing-notice` class: one status or alert line (`info`, `success`, or `error`) that sits on the content edge of the page column instead of spanning the window. Errors are announced as alerts and other tones as status. Signed-in account pages that render inside `MarketingSiteHeader` should compose `MarketingMain`, `MarketingNotice`, `MarketingStatStrip`, and `MarketingSection` so every block shares the header's measure and gutter, rather than hand-rolled full-bleed banners and nested cards. Version 0.25.0 moves bordered foil surfaces off the spectrum: `.hraness-foil` and `[data-emphasis="primary"]` actions keep their flat surface fill under one theme-aware monochrome edge — black on light, white on dark, overridable through the new `--hraness-foil-edge` token — while the metallic spectrum stays on wordmarks and marks. The foil material contract advances to version 3: `surfaceImage` and `surfaceBackgroundClip` are replaced by `surfaceFill`, `edge`, `edgeDark`, and `edgeColor`. Reinstall any vendored marketing snapshot from the 0.25.0 commit. Version 0.24.0 joins a marketing footer directly followed by the shared `@hraness/site-footer` network footer into one band: the product row's bottom space collapses to a compact gap and the network row's content follows the marketing measure and gutter through `--hraness-site-footer-measure`, so product links and the organization row share one column instead of reading as two stacked bars. Mount the network footer directly after `MarketingSiteFooter`; no prop or markup change is needed inside either landmark. Version 0.23.0 moves marketing pages to the Quiet direction described in [DESIGN.md](DESIGN.md). `ProductHero` no longer renders a backdrop, `HeroBackdrop` renders nothing, and `attachHeroLight` is an inert disposer; their names and props stay so existing code compiles and are marked deprecated. The `cells`, `weave`, `contour`, and `mesh` patterns render as `none`, and marketing fields and Lantern walls paint the flat palette background. Both marketing presets use Nebula Sans for display headings (editorial at weight 550); Instrument Serif stays vendored for explicit opt-in only. Hero eyebrows are plain labels, the accent band loses its grid, and cards and header chrome use hairline edges instead of lifted shadows. On phones `MarketingSiteHeader` keeps the brand, primary action, and appearance menu on one row and moves the links to a second row that scrolls sideways, with 44px targets. To migrate, delete `backdrop` artwork, `HeroBackdrop`, `attachHeroLight`, pattern values, and product CSS that recreated textures or serif headings, then reinstall any vendored marketing snapshot from the 0.23.0 commit. Version 0.22.2 restores the canonical roughday mark — the rain-cloud artwork pinned by the portfolio registry — after the mark slot briefly carried a stray illustration. Version 0.22.1 completes the icon library with the roughday inline chip family (65 admitted assets, no pending members). Version 0.22.0 adds the `./icons` surface: 62 vetted single-ink assets across ten sets — a shared illustration family, product illustration families, and the product marks, each admitted through a measured gate (single ink, bounded aspect, coverage, stroke, paths, bytes) and per-set family coherence, distributed as a typed registry module (`hranessIcons`, `hranessIcon`, `hranessIconMarkup`, `hranessIconsForSet`) and as canonical `./icons/<set>/<slug>.svg` files for image consumers. See [ICONS.md](ICONS.md). Version 0.21.1 accepts status-page `routes` straight from a sitemap: long titles are shortened for the "Did you mean" line and unusable entries are dropped instead of failing the render. Version 0.21.0 replaces the 404 and route-error pages with one shared status page: the product's main action, a "Did you mean" link to the closest known page, at most three next links with one-line descriptions, an optional line for AI agents, and a glyph drawn as dots that gather, move away from the pointer, and settle. `RouteNotFoundPage`, `RouteErrorPage`, and `GlobalErrorDocument` render it; `renderStatusPageHtml` and `attachStatusPage` bring the same page to static sites; `status-page.css` ships in `styles.css` and `compiler-foundation.css`. The default copy changes to "We can’t find that page". See [STATUS_PAGES.md](STATUS_PAGES.md). Version 0.20.0 gives `ThemeMenuButton` the Lantern material: under `data-hraness-material="lantern"` its trigger is raised at rest and inset while pressed, and its menu uses the material plane, lift and warm selection, with no new props. Sites can delete their local Lantern CSS for the appearance menu. It also adds `formatRelativeTime` at the package root and a hydration-safe `RelativeTime` component in `@hraness/design-kit/react`. Version 0.19.0 redraws related-product cards as the hraness.com project cards: each shows the product's mark, its name, and its one-line `role` at reading size, and no longer renders the `relationship` sentence (the prop stays accepted and is deprecated). `MarketingRelatedProduct` and the static `ArticleRelatedLink` take a `mark`, and every `@hraness/design-kit/portfolio` product and `relatedFor()` item now carries its portfolio mark as an inert `data:image/svg+xml` URL. Related-tier and proof headings move to the new `--hraness-marketing-h3-size` token, so the editorial display face never renders below 1.75rem. `typography.css` gains per-level heading tokens (`--hraness-type-h1-font` through `--hraness-type-h4-font`, the matching `-weight` tokens, `--hraness-type-subheading-font`, and `--hraness-type-display-min`). h3 and h4 in `.hraness-prose` and publication articles now use the text face, and the h2 floor rises to 1.75rem. Version 0.18.3 adds the Sponge and Wordcell runtime relations to Oh to the `@hraness/design-kit/portfolio` snapshot, so related-product cards on all three sites can link them. Version 0.18.2 refreshes the `@hraness/design-kit/portfolio` snapshot from the registry: the public ghostget.com entry, updated Gobstopper and xcb naming and descriptions, and the current sibling-product relations for related-product cards. Version 0.18.1 adds the Perplexity mark and a dependency-free `@hraness/design-kit/provider-marks` leaf entry (`providerMark`, `providerMarks`, `providerMarkFallback`, `providerMarkGlyphDataUri`, `providerMarkArtDataUri`, `providerMarkOnAccent`, `providerMarkMonogram`) so packages such as `@hraness/ui` can consume the registry without pulling the marketing surface. Version 0.18.0 adds the shared provider-mark registry: `providerMarks`, `providerMark()` alias resolution, `ProviderMark`/`ProviderMarkChip` accent-tinted tile components on both React entry points, vendored agent and vendor artwork from LobeHub icons 1.95.1 plus documented Crush and Aider marks, monogram fallbacks for uncovered names, and data-URI helpers for CSS-mask consumers. See `vendor/provider-marks/UPSTREAM.md` for asset provenance. Version 0.17.2 carries the canonical portfolio messaging record per product (`names`, `category`, `tagline`, `short`, `meta`, `medium`, `long`, and hero copy) in the `/portfolio` snapshot. Version 0.17.1 lets Next.js apps that compile dependencies with Babel build the article layer: its link check no longer uses a Unicode property escape that Babel cannot rewrite, and it rejects the same control characters and whitespace as before. Version 0.17.0 adds the article layer: server-safe `MarketingArticle`, byline, provenance, sources, callout, related-product, and index components, a matching static HTML renderer for sites without React, long-form article styles in `plain-publication.css`, and the `ArticleAdmission` rubric with `assertArticleAdmissions()`. It also adds `@hraness/design-kit/portfolio`, a snapshot of public product names, one-liners, links, and relations for related-product cards and "How X uses Y" posts. See [ARTICLE_COPY.md](ARTICLE_COPY.md). Version 0.16.4 keeps native appearance-menu labels usable inside keyboard-focusable page landmarks, including mouse and touch selection. Version 0.16.3 keeps decorative hero backgrounds hidden in forced colors and reduced transparency when other packages load their styles afterward. Version 0.16.2 preserves palette hues in translucent headers, material surfaces, and decorative highlights. Version 0.16.1 keeps plain reading pages and nested compiled surfaces in their selected palette, including system appearance without JavaScript. Version 0.16.0 adds a shared bounded hero light, product-owned backdrop slots, five Lantern patterns, palette-derived soft surfaces, and responsive typography across marketing and reading layouts. Static sites can use the palette bridge for system appearance before JavaScript. See [HERO_FIELDS.md](HERO_FIELDS.md), [LANTERN_MATERIAL.md](LANTERN_MATERIAL.md), and [MARKETING_PRESET.md](MARKETING_PRESET.md). Version 0.15.0 lets `MarketingRelated` present labeled tiers of sibling products: a `groups` collection renders each tier under its own heading with an accessible card-row label, while the flat `items` shape stays available for a single group. Version 0.14.0 adds `MarketingRelated`, a collection section that presents sibling products as linked cards, each framed by its relationship to the featured product. Version 0.13.0 publishes `--hraness-sticky-offset` from sticky marketing chrome, gives `MarketingMain` and the next sticky sibling a clearance contract, stretches marketing card rows to the tallest item with a reserved two-line meta block, and clips per-card art wells so a logo surface cannot paint through the gutter. Version 0.12.0 replaces pointer-driven gradient rotation with a steady material and a moving light: the spectrum and its 115deg direction stay fixed while `--hraness-foil-x`/`--hraness-foil-y` highlights travel across each lockup, and marketing footers can opt into the same icon-plus-wordmark foil as the site header with `brandMark`. Version 0.11.1 preserves visible metallic marks when another package repeats a generic hidden atom in a later CSS layer. React consumers load `components.css` or `styles.css`; the raw marketing entry supports authored HTML hooks. Version 0.11 adds server-rendered `FoilMark` artwork and metallic text with subtle rainbow reflections, including a shared header mark seam and original-artwork fallbacks. Version 0.10.1 adds conservative server syntax defaults, includes their styles in the narrow marketing entry, and pins the icon dependency to preserve fresh Linux installs. Version 0.10 adds the shared foil contract: `.hraness-foil` surfaces and `.hraness-foil-text` wordmarks render a pointer-following metallic spectrum from the `--hraness-foil-*` custom properties, applied by default to marketing header brands and primary actions. The `attachFoil` browser export drives the bounded `x`/`y`/`angle` inputs with damped easing, reduced-motion and forced-color fallbacks, and no style injection; the same spectrum feeds `@hraness/site-footer` signup controls. Dark appearances use a deeper palette so the sheen stays visible. Version 0.8 removes Jelly's optional API, stylesheet, vendor runtime and theme-provider side effect. Migrate direct Jelly surfaces to native shared primitives before upgrading. Lantern now uses softer directional depth and shaded faces; the marketing preset adds individually shaded static cells, theme-aware terminal colors and window chrome. Code blocks retain source lines and follow the active palette. Paper preferences, semantic palettes, and compiler identity stay stable. Compiler adopters must regenerate their finalized stylesheet with the new package manifest.
799
815
 
800
816
  The complete check runs linting, typechecking, production builds, an installed-package smoke test, deterministic examples, property tests, server rendering, vendor-integrity checks, and headless Chromium regressions. The browser gate verifies responsive shell ownership, extracted AnimatedRailStage, Fader, layout-surface, and playback-transport delivery, reduced-motion stage fallback, Fader keyboard and focus behavior, forced-color behavior, keyboard-operable appearance, browser-chrome synchronization across opposing device and saved preferences, global-error static metadata and runtime lifecycle, accessible title and copy, deterministic procedural layers, viewport containment, and the absence of the excluded canvas effect. Provision the pinned Chromium with `bun run browser:install`. An explicit `CHROMIUM_EXECUTABLE_PATH` must resolve to a provisioned Chrome for Testing; the browser gate rejects installed auto-updating Chrome.
801
817
 
@@ -1529,6 +1529,112 @@ function attachFoil(root) {
1529
1529
  function attachHeroLight(root) {
1530
1530
  return () => {};
1531
1531
  }
1532
+ // src/browser/marketing-header.ts
1533
+ function inspectMarketingHeader(options = {}, document = globalThis.document) {
1534
+ const problems = [];
1535
+ const headers = document.querySelectorAll('header[data-hraness-marketing="header"], header.hraness-marketing-header, header.hraness-marketing-header-surface');
1536
+ const appearances = document.querySelectorAll("[data-hraness-appearance-menu]");
1537
+ const mains = document.querySelectorAll("main");
1538
+ const header = headers[0];
1539
+ if (headers.length !== 1)
1540
+ problems.push(`Expected one product header; found ${headers.length}.`);
1541
+ if (mains.length !== 1)
1542
+ problems.push(`Expected one main landmark; found ${mains.length}.`);
1543
+ const appearanceCount = options.appearance === "omitted" ? 0 : 1;
1544
+ if (appearances.length !== appearanceCount)
1545
+ problems.push(`Expected ${appearanceCount} appearance controls; found ${appearances.length}.`);
1546
+ const brand = header?.querySelector("a.hraness-marketing-header__brand");
1547
+ const mark = brand?.querySelector(".hraness-foil-mark");
1548
+ const image = mark?.querySelector("img");
1549
+ const brandHref = brand?.getAttribute("href") ?? null;
1550
+ const brandLabel = (brand?.getAttribute("aria-label") ?? brand?.textContent)?.trim() || null;
1551
+ const brandMark = image?.getAttribute("src") ?? null;
1552
+ const nav = header?.querySelector("nav.hraness-marketing-header__nav");
1553
+ const links = [...nav?.querySelectorAll("a[href]") ?? []].map((link) => ({
1554
+ href: link.getAttribute("href") ?? "",
1555
+ label: (link.getAttribute("aria-label") ?? link.textContent)?.trim() ?? ""
1556
+ }));
1557
+ if (header !== undefined) {
1558
+ const main = mains[0];
1559
+ if (main !== undefined && (main.contains(header) || header.contains(main) || !(header.compareDocumentPosition(main) & 4))) {
1560
+ problems.push("The product header must precede and sit outside the main landmark.");
1561
+ }
1562
+ if (brandHref !== (options.brandHref ?? "/"))
1563
+ problems.push("The product home link is missing or points to a different page.");
1564
+ if (brandLabel === null || options.brandLabel !== undefined && brandLabel !== options.brandLabel)
1565
+ problems.push("The product home link has a missing or inconsistent name.");
1566
+ if (brand?.hasAttribute("data-foil") !== true || mark === null || mark === undefined || image === null || image === undefined || !mark.querySelector(".hraness-foil-mark__paint") || !brandMark) {
1567
+ problems.push("The product home link is missing its foil mark and artwork fallback.");
1568
+ } else if (options.brandMark !== undefined && brandMark !== options.brandMark) {
1569
+ problems.push("The product header uses different mark artwork.");
1570
+ }
1571
+ if (!nav || !(nav.getAttribute("aria-label")?.trim() || nav.getAttribute("aria-labelledby")?.trim()) || links.length === 0 || links.some((link) => !link.label)) {
1572
+ problems.push("The product header needs a named navigation with readable links.");
1573
+ }
1574
+ const appearance = appearances[0];
1575
+ const actions = header.querySelector(".hraness-marketing-header__actions");
1576
+ if (appearanceCount === 1 && appearance !== undefined) {
1577
+ if (!actions?.contains(appearance) || !actions.lastElementChild?.contains(appearance)) {
1578
+ problems.push("Appearance must be the final product-header action.");
1579
+ }
1580
+ if (!appearance.querySelector(":scope > summary, :scope > button, button.hraness-design-theme-toggle__trigger"))
1581
+ problems.push("Appearance is missing its trigger.");
1582
+ }
1583
+ if (options.measure !== false) {
1584
+ const view = document.defaultView;
1585
+ if (view === null)
1586
+ problems.push("Rendered header inspection requires a browser window.");
1587
+ else {
1588
+ const trigger = appearance?.querySelector(":scope > summary, :scope > button, button.hraness-design-theme-toggle__trigger");
1589
+ for (const [name, element] of [["header", header], ["brand", brand], ["mark", mark], ["navigation", nav], ["appearance", appearanceCount === 1 ? appearance : null], ["appearance trigger", appearanceCount === 1 ? trigger : null]]) {
1590
+ if (!element)
1591
+ continue;
1592
+ const box2 = element.getBoundingClientRect();
1593
+ let hidden = false;
1594
+ for (let ancestor = element;ancestor !== null; ancestor = ancestor.parentElement) {
1595
+ const style = view.getComputedStyle(ancestor);
1596
+ if (style.display === "none" || style.visibility === "hidden" || style.visibility === "collapse" || Number(style.opacity) === 0)
1597
+ hidden = true;
1598
+ }
1599
+ if (box2.width <= 0 || box2.height <= 0 || hidden)
1600
+ problems.push(`The product ${name} is not visible.`);
1601
+ }
1602
+ const box = header.getBoundingClientRect();
1603
+ if (box.left < -1 || box.right > view.innerWidth + 1)
1604
+ problems.push("The product header extends outside the viewport.");
1605
+ const inner = header.querySelector(".hraness-marketing-header__inner");
1606
+ if (!inner || !["grid", "flex"].includes(view.getComputedStyle(inner).display))
1607
+ problems.push("The shared product-header layout styles are missing.");
1608
+ if (options.stickyOffset === true && view.getComputedStyle(header).position === "sticky") {
1609
+ for (const target of [document.documentElement, mains[0]]) {
1610
+ if (!target)
1611
+ continue;
1612
+ const offset = Number.parseFloat(view.getComputedStyle(target).getPropertyValue("--hraness-sticky-offset"));
1613
+ if (!Number.isFinite(offset) || Math.abs(offset - box.height) > 1)
1614
+ problems.push("Sticky clearance does not match the measured product header.");
1615
+ }
1616
+ }
1617
+ if (appearanceCount === 1 && trigger) {
1618
+ const triggerBox = trigger.getBoundingClientRect();
1619
+ if (triggerBox.width < 43.5 || triggerBox.height < 43.5)
1620
+ problems.push("The appearance trigger is smaller than 44px.");
1621
+ const actionLinks = actions?.querySelectorAll("a[href]") ?? [];
1622
+ if ([...actionLinks].some((link) => link.getBoundingClientRect().right > triggerBox.right + 1))
1623
+ problems.push("Appearance is not the rightmost header action.");
1624
+ }
1625
+ }
1626
+ }
1627
+ }
1628
+ return {
1629
+ headerCount: headers.length,
1630
+ appearanceCount: appearances.length,
1631
+ brandHref,
1632
+ brandLabel,
1633
+ brandMark,
1634
+ links,
1635
+ problems
1636
+ };
1637
+ }
1532
1638
  // src/status-page.ts
1533
1639
  var STATUS_PAGE_MAX_ROUTES = 2000;
1534
1640
  function isSitePath(href) {
@@ -2260,18 +2366,23 @@ function resolveHeader(root, header) {
2260
2366
  return root.querySelector(header);
2261
2367
  return root.querySelector(stickyOffsetHeaderSelector);
2262
2368
  }
2263
- function resolveTarget(header, target) {
2369
+ function resolveTargets(header, target) {
2264
2370
  if (target !== undefined)
2265
- return target;
2266
- const page = header.closest(".hraness-marketing-page");
2267
- return page ?? header.ownerDocument.documentElement;
2371
+ return [target];
2372
+ const targets = new Set([header.ownerDocument.documentElement]);
2373
+ for (let ancestor = header;ancestor !== null; ancestor = ancestor.parentElement) {
2374
+ if (ancestor.matches(".hraness-marketing-page, [data-hraness-marketing-preset]"))
2375
+ targets.add(ancestor);
2376
+ }
2377
+ return [...targets];
2268
2378
  }
2269
2379
  function measureStickyOffset(header) {
2270
2380
  return `${header.getBoundingClientRect().height}px`;
2271
2381
  }
2272
2382
  function publishStickyOffset(header, target) {
2273
2383
  const value = measureStickyOffset(header);
2274
- resolveTarget(header, target).style.setProperty(stickyOffsetCustomProperty, value);
2384
+ for (const destination of resolveTargets(header, target))
2385
+ destination.style.setProperty(stickyOffsetCustomProperty, value);
2275
2386
  return value;
2276
2387
  }
2277
2388
  function syncStickyOffset(options = {}) {
@@ -2282,22 +2393,42 @@ function syncStickyOffset(options = {}) {
2282
2393
  const header = resolveHeader(root, options.header);
2283
2394
  if (header === null)
2284
2395
  return () => {};
2285
- const target = resolveTarget(header, options.target);
2396
+ const targets = resolveTargets(header, options.target);
2397
+ const prior = targets.map((target) => ({
2398
+ target,
2399
+ value: target.style.getPropertyValue(stickyOffsetCustomProperty),
2400
+ priority: typeof target.style.getPropertyPriority === "function" ? target.style.getPropertyPriority(stickyOffsetCustomProperty) : ""
2401
+ }));
2402
+ let published;
2286
2403
  const publish = () => {
2287
- publishStickyOffset(header, target);
2404
+ published = measureStickyOffset(header);
2405
+ for (const target of targets)
2406
+ target.style.setProperty(stickyOffsetCustomProperty, published);
2407
+ };
2408
+ const restore = () => {
2409
+ for (const {
2410
+ target,
2411
+ value,
2412
+ priority
2413
+ } of prior) {
2414
+ if (target.style.getPropertyValue(stickyOffsetCustomProperty) !== published || typeof target.style.getPropertyPriority === "function" && target.style.getPropertyPriority(stickyOffsetCustomProperty) !== "")
2415
+ continue;
2416
+ if (value)
2417
+ target.style.setProperty(stickyOffsetCustomProperty, value, priority);
2418
+ else
2419
+ target.style.removeProperty(stickyOffsetCustomProperty);
2420
+ }
2288
2421
  };
2289
2422
  publish();
2290
2423
  const view = document.defaultView;
2291
2424
  if (view === null || typeof view.ResizeObserver !== "function") {
2292
- return () => {
2293
- target.style.removeProperty(stickyOffsetCustomProperty);
2294
- };
2425
+ return restore;
2295
2426
  }
2296
2427
  const observer = new view.ResizeObserver(publish);
2297
2428
  observer.observe(header);
2298
2429
  return () => {
2299
2430
  observer.disconnect();
2300
- target.style.removeProperty(stickyOffsetCustomProperty);
2431
+ restore();
2301
2432
  };
2302
2433
  }
2303
2434
 
@@ -2324,6 +2455,7 @@ export {
2324
2455
  measureStickyOffset,
2325
2456
  isDesignTheme2 as isDesignTheme,
2326
2457
  installAppearanceMenus2 as installAppearanceMenus,
2458
+ inspectMarketingHeader,
2327
2459
  initDesignPalette,
2328
2460
  downloadBlob,
2329
2461
  designThemes2 as designThemes,
@@ -448,6 +448,7 @@ var marketingStyles = {
448
448
  $$css: true
449
449
  },
450
450
  header: {
451
+ "--hraness-marketing-header-control-target": "xlhppvv",
451
452
  "--hraness-sticky-offset": "x1ez4kp7",
452
453
  kMwMTN: "xtylnni xs5hli",
453
454
  knIRL8: "xrtw95r",
@@ -89,7 +89,7 @@ import {
89
89
  marketingProofFrameAddress,
90
90
  proceduralBackdropVariants,
91
91
  proceduralRecipeVersion
92
- } from "../chunk-0s71p361.js";
92
+ } from "../chunk-xa28y4fg.js";
93
93
  import {
94
94
  SyntaxCode
95
95
  } from "../chunk-6ts4955n.js";
@@ -2180,8 +2180,8 @@ var paletteMenuStyles = {
2180
2180
  k1xSpc: "x3nfvp2",
2181
2181
  kjj79g: "xl56j7k",
2182
2182
  kH6xsr: "x3ct3a4",
2183
- kVQ08L: "x1qwoi4t",
2184
- kdYMnH: "x9hh0qe",
2183
+ kVQ08L: "x5zky9q",
2184
+ kdYMnH: "xq5ipov",
2185
2185
  kjBf7l: "xb2ck1y",
2186
2186
  kInvED: "x1ewu8gn",
2187
2187
  k8WAf4: "x18g2hj5",
@@ -5211,8 +5211,8 @@ var themeStyles = {
5211
5211
  kAXs8y: "xr5dkdi",
5212
5212
  kULEZF: "x130h922 xqnxffv",
5213
5213
  kLWn49: "x15bjb6t",
5214
- kVQ08L: "xd0akbl x9me654",
5215
- kdYMnH: "x1o8ym9z x11je3w3",
5214
+ kVQ08L: "x5c9nq0 xczs0xf",
5215
+ kdYMnH: "xye2cm2 x12c0uzw",
5216
5216
  kSiTet: "xijokvz",
5217
5217
  kjBf7l: "x14pgi42 x1x84bn5",
5218
5218
  kInvED: "xecyca2",
@@ -8027,18 +8027,23 @@ function resolveHeader(root, header) {
8027
8027
  return root.querySelector(header);
8028
8028
  return root.querySelector(stickyOffsetHeaderSelector);
8029
8029
  }
8030
- function resolveTarget(header, target) {
8030
+ function resolveTargets(header, target) {
8031
8031
  if (target !== undefined)
8032
- return target;
8033
- const page = header.closest(".hraness-marketing-page");
8034
- return page ?? header.ownerDocument.documentElement;
8032
+ return [target];
8033
+ const targets = new Set([header.ownerDocument.documentElement]);
8034
+ for (let ancestor = header;ancestor !== null; ancestor = ancestor.parentElement) {
8035
+ if (ancestor.matches(".hraness-marketing-page, [data-hraness-marketing-preset]"))
8036
+ targets.add(ancestor);
8037
+ }
8038
+ return [...targets];
8035
8039
  }
8036
8040
  function measureStickyOffset(header) {
8037
8041
  return `${header.getBoundingClientRect().height}px`;
8038
8042
  }
8039
8043
  function publishStickyOffset(header, target) {
8040
8044
  const value = measureStickyOffset(header);
8041
- resolveTarget(header, target).style.setProperty(stickyOffsetCustomProperty, value);
8045
+ for (const destination of resolveTargets(header, target))
8046
+ destination.style.setProperty(stickyOffsetCustomProperty, value);
8042
8047
  return value;
8043
8048
  }
8044
8049
  function syncStickyOffset(options = {}) {
@@ -8049,22 +8054,42 @@ function syncStickyOffset(options = {}) {
8049
8054
  const header = resolveHeader(root, options.header);
8050
8055
  if (header === null)
8051
8056
  return () => {};
8052
- const target = resolveTarget(header, options.target);
8057
+ const targets = resolveTargets(header, options.target);
8058
+ const prior = targets.map((target) => ({
8059
+ target,
8060
+ value: target.style.getPropertyValue(stickyOffsetCustomProperty),
8061
+ priority: typeof target.style.getPropertyPriority === "function" ? target.style.getPropertyPriority(stickyOffsetCustomProperty) : ""
8062
+ }));
8063
+ let published;
8053
8064
  const publish = () => {
8054
- publishStickyOffset(header, target);
8065
+ published = measureStickyOffset(header);
8066
+ for (const target of targets)
8067
+ target.style.setProperty(stickyOffsetCustomProperty, published);
8068
+ };
8069
+ const restore = () => {
8070
+ for (const {
8071
+ target,
8072
+ value,
8073
+ priority
8074
+ } of prior) {
8075
+ if (target.style.getPropertyValue(stickyOffsetCustomProperty) !== published || typeof target.style.getPropertyPriority === "function" && target.style.getPropertyPriority(stickyOffsetCustomProperty) !== "")
8076
+ continue;
8077
+ if (value)
8078
+ target.style.setProperty(stickyOffsetCustomProperty, value, priority);
8079
+ else
8080
+ target.style.removeProperty(stickyOffsetCustomProperty);
8081
+ }
8055
8082
  };
8056
8083
  publish();
8057
8084
  const view = document2.defaultView;
8058
8085
  if (view === null || typeof view.ResizeObserver !== "function") {
8059
- return () => {
8060
- target.style.removeProperty(stickyOffsetCustomProperty);
8061
- };
8086
+ return restore;
8062
8087
  }
8063
8088
  const observer = new view.ResizeObserver(publish);
8064
8089
  observer.observe(header);
8065
8090
  return () => {
8066
8091
  observer.disconnect();
8067
- target.style.removeProperty(stickyOffsetCustomProperty);
8092
+ restore();
8068
8093
  };
8069
8094
  }
8070
8095
 
@@ -68,7 +68,7 @@ import {
68
68
  marketingProofFrameAddress,
69
69
  proceduralBackdropVariants,
70
70
  proceduralRecipeVersion
71
- } from "../chunk-0s71p361.js";
71
+ } from "../chunk-xa28y4fg.js";
72
72
  import {
73
73
  SyntaxCode
74
74
  } from "../chunk-6ts4955n.js";