@atomic-ui/blocks 0.10.0 → 0.12.0

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.
Files changed (84) hide show
  1. package/custom-elements.json +3157 -97
  2. package/dist/chunk-2URXTXNQ.js +296 -0
  3. package/dist/chunk-2URXTXNQ.js.map +1 -0
  4. package/dist/chunk-7X4WGV6K.js +97 -0
  5. package/dist/chunk-7X4WGV6K.js.map +1 -0
  6. package/dist/{chunk-QGVIJNTD.js → chunk-CCFBROX3.js} +127 -41
  7. package/dist/chunk-CCFBROX3.js.map +1 -0
  8. package/dist/{chunk-NLHFBIGQ.js → chunk-EYP5LWUR.js} +28 -10
  9. package/dist/chunk-EYP5LWUR.js.map +1 -0
  10. package/dist/chunk-GRKPKJZH.js +275 -0
  11. package/dist/chunk-GRKPKJZH.js.map +1 -0
  12. package/dist/{chunk-OR4U4UJQ.js → chunk-MX7FU5JE.js} +69 -1
  13. package/dist/chunk-MX7FU5JE.js.map +1 -0
  14. package/dist/{chunk-UVHQY3QJ.js → chunk-NHWD2LUR.js} +2 -2
  15. package/dist/chunk-NHWD2LUR.js.map +1 -0
  16. package/dist/{chunk-FLOKZ7O3.js → chunk-PIUPEB4I.js} +44 -11
  17. package/dist/chunk-PIUPEB4I.js.map +1 -0
  18. package/dist/{chunk-HNCJLMQB.js → chunk-R7SSIE2E.js} +26 -8
  19. package/dist/chunk-R7SSIE2E.js.map +1 -0
  20. package/dist/{chunk-LJ6AQO26.js → chunk-SYTQIQT2.js} +73 -18
  21. package/dist/chunk-SYTQIQT2.js.map +1 -0
  22. package/dist/chunk-WGDMORWT.js +48 -0
  23. package/dist/chunk-WGDMORWT.js.map +1 -0
  24. package/dist/{chunk-PALYJCLC.js → chunk-XB6FD4SF.js} +3 -3
  25. package/dist/chunk-XB6FD4SF.js.map +1 -0
  26. package/dist/chunk-XNRFZCNB.js +499 -0
  27. package/dist/chunk-XNRFZCNB.js.map +1 -0
  28. package/dist/{chunk-CC2U2L2H.js → chunk-YXMXLVK7.js} +3 -3
  29. package/dist/chunk-YXMXLVK7.js.map +1 -0
  30. package/dist/{chunk-YC6KXE6O.js → chunk-ZD75GU6J.js} +7 -4
  31. package/dist/chunk-ZD75GU6J.js.map +1 -0
  32. package/dist/{chunk-TT2PTEQO.js → chunk-ZODL5HD4.js} +64 -17
  33. package/dist/chunk-ZODL5HD4.js.map +1 -0
  34. package/dist/components/card-grid.js +1 -1
  35. package/dist/components/changelog.d.ts +24 -0
  36. package/dist/components/changelog.js +2 -2
  37. package/dist/components/estimator.d.ts +25 -0
  38. package/dist/components/estimator.js +1 -1
  39. package/dist/components/g2-case.d.ts +225 -0
  40. package/dist/components/g2-case.js +16 -0
  41. package/dist/components/g2-case.js.map +1 -0
  42. package/dist/components/g2-shared.d.ts +28 -0
  43. package/dist/components/g2-shared.js +35 -0
  44. package/dist/components/g2-shared.js.map +1 -0
  45. package/dist/components/g2-site.d.ts +493 -0
  46. package/dist/components/g2-site.js +26 -0
  47. package/dist/components/g2-site.js.map +1 -0
  48. package/dist/components/g2-tools.d.ts +77 -0
  49. package/dist/components/g2-tools.js +8 -0
  50. package/dist/components/g2-tools.js.map +1 -0
  51. package/dist/components/journey.d.ts +79 -9
  52. package/dist/components/journey.js +1 -1
  53. package/dist/components/marketing.d.ts +23 -0
  54. package/dist/components/marketing.js +1 -1
  55. package/dist/components/organisms.d.ts +23 -2
  56. package/dist/components/organisms.js +1 -1
  57. package/dist/components/property.js +1 -1
  58. package/dist/components/scene.js +1 -1
  59. package/dist/components/scrubber.js +1 -1
  60. package/dist/components/selling.d.ts +42 -1
  61. package/dist/components/selling.js +1 -1
  62. package/dist/components/site.d.ts +78 -0
  63. package/dist/components/site.js +1 -1
  64. package/dist/components/studio.d.ts +87 -6
  65. package/dist/components/studio.js +1 -1
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +81 -42
  68. package/dist/index.js.map +1 -1
  69. package/dist/standalone/atomic-ui-blocks.js +1373 -787
  70. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  71. package/package.json +3 -3
  72. package/dist/chunk-CC2U2L2H.js.map +0 -1
  73. package/dist/chunk-FLOKZ7O3.js.map +0 -1
  74. package/dist/chunk-HNCJLMQB.js.map +0 -1
  75. package/dist/chunk-LJ6AQO26.js.map +0 -1
  76. package/dist/chunk-NLHFBIGQ.js.map +0 -1
  77. package/dist/chunk-OR4U4UJQ.js.map +0 -1
  78. package/dist/chunk-PALYJCLC.js.map +0 -1
  79. package/dist/chunk-QGVIJNTD.js.map +0 -1
  80. package/dist/chunk-SOFMXF32.js +0 -142
  81. package/dist/chunk-SOFMXF32.js.map +0 -1
  82. package/dist/chunk-TT2PTEQO.js.map +0 -1
  83. package/dist/chunk-UVHQY3QJ.js.map +0 -1
  84. package/dist/chunk-YC6KXE6O.js.map +0 -1
@@ -23,6 +23,8 @@ var ImpaktWorkList = class extends ImpaktElement {
23
23
  headingLevel: { type: Number, attribute: "heading-level" },
24
24
  start: { type: Number },
25
25
  label: { type: String },
26
+ columns: { type: Array },
27
+ preview: { state: true },
26
28
  spaceAbove: { type: String, reflect: true, attribute: "space-above" },
27
29
  spaceBelow: { type: String, reflect: true, attribute: "space-below" }
28
30
  };
@@ -33,8 +35,10 @@ var ImpaktWorkList = class extends ImpaktElement {
33
35
  this.headingLevel = 3;
34
36
  this.start = 1;
35
37
  this.label = "";
38
+ this.columns = [];
36
39
  this.spaceAbove = "none";
37
40
  this.spaceBelow = "none";
41
+ this.preview = null;
38
42
  }
39
43
  static {
40
44
  this.styles = [
@@ -42,49 +46,100 @@ var ImpaktWorkList = class extends ImpaktElement {
42
46
  focusRing,
43
47
  spaceAround,
44
48
  css`
45
- :host { display: block; container: impakt-work-list / inline-size; }
49
+ :host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${token("color.accent.default", "#ffd43b")}; --impakt-work-on-accent: ${token("color.accent.on", "#111111")}; }
46
50
  ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }
47
- li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
51
+ .columns + ol { border-block-start: 0; }
52
+ li, .columns { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; }
53
+ .texts li, .texts.columns { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) auto 22px; }
54
+ li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
55
+ .columns { padding-block: ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
56
+ .columns .last { grid-column: -3; text-align: end; }
48
57
  .number { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
49
58
  .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }
59
+ .texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }
50
60
  .name a { color: inherit; text-decoration: none; }
51
61
  /* The link is stretched over the row, so the row is one target. */
52
- .name a::after { content: ''; position: absolute; inset: 0; }
62
+ .name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
53
63
  .name a:focus-visible { outline: none; }
54
64
  .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }
55
- .meta { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
65
+ .text { margin: 0; font-size: ${fontSize("md")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
66
+ .side { display: flex; flex-direction: column; align-items: flex-end; gap: ${space(2)}; text-align: end; }
67
+ .meta, .price { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
68
+ .price { font-size: 0.6875rem; }
69
+ /* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */
70
+ .badge { display: inline-block; padding: ${space(1)} ${space(2.5)}; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${t.surfaceCard}; background: ${t.text}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }
71
+ li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }
56
72
  .arrow { display: flex; color: ${t.text}; }
57
- /* Pointed at or focused, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */
58
- li:has(a):hover, li:has(a:focus-visible) { background: ${t.text}; }
59
- li:has(a):hover .name, li:has(a:focus-visible) .name { color: ${t.surfaceCard}; }
60
- li:has(a):hover :is(.number, .meta), li:has(a:focus-visible) :is(.number, .meta) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }
61
- li:has(a):hover .arrow, li:has(a:focus-visible) .arrow { color: ${token("color.accent.default", "currentColor")}; }
73
+ /* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */
74
+ li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${t.text}; }
75
+ li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }
76
+ li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }
77
+ li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }
78
+ li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }
79
+ li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }
80
+ /* The preview card follows the pointer. Only its transform changes, so it costs no layout. */
81
+ .preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${space(2)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }
82
+ .preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
83
+ .preview span { display: block; padding-block-end: ${space(2)}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
62
84
  @container impakt-work-list (max-width: 40rem) {
63
- li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }
64
- .meta { grid-column: 2; grid-row: 2; margin-block-start: ${space(2)}; }
85
+ li, .texts li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }
86
+ .text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${space(2)}; }
87
+ .side { grid-column: 2 / -1; grid-row: 3; align-items: flex-start; text-align: start; margin-block-start: ${space(2)}; }
88
+ li:not(:has(.text)) .side { grid-row: 2; }
65
89
  .arrow { grid-column: 3; grid-row: 1; }
90
+ .columns { display: none; }
66
91
  }
92
+ @media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }
67
93
  @media (forced-colors: active) {
68
- li:has(a):hover, li:has(a:focus-visible) { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }
69
- li:has(a):hover :is(.name, .number, .meta, .arrow), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow) { color: CanvasText; }
94
+ li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }
95
+ li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }
96
+ .badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }
70
97
  }
71
98
  `
72
99
  ];
73
100
  }
101
+ /** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */
102
+ point(event, item) {
103
+ if (!item.preview || event.pointerType !== "mouse" || window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
104
+ if (this.preview) this.preview = null;
105
+ return;
106
+ }
107
+ const box = this.getBoundingClientRect();
108
+ this.preview = { src: item.preview, label: item.previewLabel ?? "", x: event.clientX - box.left, y: event.clientY - box.top };
109
+ }
110
+ columnRow(texts) {
111
+ const columns = this.columns ?? [];
112
+ if (!columns.length) return nothing;
113
+ const [number, name, ...rest] = columns;
114
+ return html`<div class=${texts ? "columns texts" : "columns"} part="columns" aria-hidden="true">
115
+ <span>${number ?? ""}</span><span>${name ?? ""}</span>${rest.length ? html`<span class="last">${rest.join(" \xB7 ")}</span>` : nothing}
116
+ </div>`;
117
+ }
74
118
  render() {
75
- return html`<ol role="list" part="list" aria-label=${this.label || nothing}>
76
- ${this.items.map((item, index) => {
119
+ const items = this.items ?? [];
120
+ const texts = items.some((item) => !!item.text);
121
+ const preview = this.preview;
122
+ return html`${this.columnRow(texts)}<ol role="list" part="list" class=${texts ? "texts" : ""} aria-label=${this.label || nothing} @pointerleave=${() => this.preview = null}>
123
+ ${items.map((item, index) => {
77
124
  const number = String(this.start + index).padStart(2, "0");
78
- return html`<li part="row">
125
+ const side = item.badge || item.price || item.meta;
126
+ return html`<li part="row" class=${item.featured ? "featured" : ""} @pointermove=${(event) => this.point(event, item)}>
79
127
  <span class="number" aria-hidden="true">${number}</span>
80
128
  <div class="name" part="name" role="heading" aria-level=${this.headingLevel}>
81
129
  ${item.href ? html`<a href=${item.href} part="link">${item.name}</a>` : item.name}
82
130
  </div>
83
- ${item.meta ? html`<span class="meta" part="meta">${item.meta}</span>` : html`<span></span>`}
131
+ ${texts ? html`<p class="text" part="text">${item.text ?? ""}</p>` : nothing}
132
+ ${side ? html`<span class="side">
133
+ ${item.badge ? html`<span class="badge" part="badge">${item.badge}</span>` : nothing}
134
+ ${item.price ? html`<span class="price" part="price">${item.price}</span>` : nothing}
135
+ ${item.meta ? html`<span class="meta" part="meta">${item.meta}</span>` : nothing}
136
+ </span>` : html`<span></span>`}
84
137
  ${item.href ? html`<span class="arrow">${arrow}</span>` : html`<span></span>`}
85
138
  </li>`;
86
139
  })}
87
- </ol>`;
140
+ </ol>${preview ? html`<div class="preview" part="preview" aria-hidden="true" style=${`--x:${preview.x}px;--y:${preview.y}px`}>
141
+ ${preview.label ? html`<span>${preview.label}</span>` : nothing}<img src=${preview.src} alt="" />
142
+ </div>` : nothing}`;
88
143
  }
89
144
  };
90
145
  var ImpaktStatRow = class extends ImpaktElement {
@@ -109,12 +164,13 @@ var ImpaktStatRow = class extends ImpaktElement {
109
164
  spaceAround,
110
165
  css`
111
166
  :host { display: block; container: impakt-stat-row / inline-size; }
112
- ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: ${space(6)}; }
167
+ ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }
113
168
  li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }
114
169
  p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }
115
170
  .value { font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
116
171
  .label { font-size: ${fontSize("sm")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
117
- .note { font-size: ${fontSize("sm")}; color: ${t.textMuted}; }
172
+ /* The note is meta: monospace capitals at 11px. */
173
+ .note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
118
174
  `
119
175
  ];
120
176
  }
@@ -164,7 +220,12 @@ var ImpaktFaq = class extends ImpaktElement {
164
220
  .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize("sm")}; color: var(--impakt-eyebrow, ${t.textMuted}); }
165
221
  .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }
166
222
  .lead { margin: 0; font-size: ${fontSize("md")}; line-height: ${lineHeight("normal")}; color: ${t.textMuted}; }
167
- impakt-accordion { border-block-start: ${t.borderThin} solid ${t.rule}; }
223
+ /* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */
224
+ impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }
225
+ impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }
226
+ impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
227
+ impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight("normal")}; }
228
+ @media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }
168
229
  `
169
230
  ];
170
231
  }
@@ -176,7 +237,7 @@ var ImpaktFaq = class extends ImpaktElement {
176
237
  ${this.heading ? html`<div id=${headingId} class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
177
238
  ${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
178
239
  </div>` : nothing;
179
- const accordion = html`<impakt-accordion part="questions" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
240
+ const accordion = html`<impakt-accordion part="questions" marker="plus" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
180
241
  ${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}
181
242
  </impakt-accordion>`;
182
243
  return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;
@@ -190,9 +251,11 @@ var ImpaktSiteMenu = class extends ImpaktElement {
190
251
  this.links = [];
191
252
  this.current = "";
192
253
  this.brand = "";
254
+ this.mark = "";
193
255
  this.home = "/";
194
256
  this.label = "Menu";
195
257
  this.closeText = "Close";
258
+ this.currentText = "";
196
259
  }
197
260
  static {
198
261
  this.properties = {
@@ -200,9 +263,11 @@ var ImpaktSiteMenu = class extends ImpaktElement {
200
263
  links: { type: Array },
201
264
  current: { type: String },
202
265
  brand: { type: String },
266
+ mark: { type: String },
203
267
  home: { type: String },
204
268
  label: { type: String },
205
- closeText: { type: String, attribute: "close-text" }
269
+ closeText: { type: String, attribute: "close-text" },
270
+ currentText: { type: String, attribute: "current-text" }
206
271
  };
207
272
  }
208
273
  static {
@@ -217,6 +282,8 @@ var ImpaktSiteMenu = class extends ImpaktElement {
217
282
  dialog::backdrop { background: var(--impakt-menu); }
218
283
  .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }
219
284
  .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize("md")}; font-weight: ${fontWeight("semibold")}; border-radius: ${t.radiusSm}; }
285
+ .brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight("medium")}; }
286
+ .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize("sm")}; }
220
287
  .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }
221
288
  nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }
222
289
  ol { list-style: none; margin: 0; padding: 0; }
@@ -229,7 +296,8 @@ var ImpaktSiteMenu = class extends ImpaktElement {
229
296
  * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).
230
297
  */
231
298
  a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }
232
- a[aria-current] .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }
299
+ a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }
300
+ a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }
233
301
  .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }
234
302
  .foot[hidden] { display: none; }
235
303
  /* What is slotted at the foot is read on ink too. */
@@ -271,7 +339,7 @@ var ImpaktSiteMenu = class extends ImpaktElement {
271
339
  render() {
272
340
  return html`<dialog part="dialog" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>
273
341
  <div class="bar" part="bar">
274
- ${this.brand ? html`<a class="brand" href=${this.home || "/"} part="brand">${this.brand}</a>` : html`<span></span>`}
342
+ ${this.brand ? html`<a class=${this.mark ? "brand marked" : "brand"} href=${this.home || "/"} part="brand">${this.mark ? html`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>` : nothing}${this.brand}</a>` : html`<span></span>`}
275
343
  <button class="close" type="button" part="close" @click=${() => this.close()}>
276
344
  <span>${this.closeText}</span>
277
345
  <svg viewBox="0 0 12 12" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M1 1l10 10M11 1 1 11" /></svg>
@@ -281,9 +349,11 @@ var ImpaktSiteMenu = class extends ImpaktElement {
281
349
  <ol role="list">
282
350
  ${(this.links ?? []).map((link, index) => {
283
351
  const current = !!this.current && link.href === this.current;
352
+ const number = String(index + 1).padStart(2, "0");
353
+ const worded = current && !!this.currentText;
284
354
  return html`<li>
285
- <a href=${link.href} aria-current=${current ? "page" : nothing} part="link" @click=${() => this.close()}>
286
- <span class="words">${link.label}</span><span class="number" aria-hidden="true">${String(index + 1).padStart(2, "0")}</span>
355
+ <a href=${link.href} class=${worded ? "worded" : ""} aria-current=${current ? "page" : nothing} part="link" @click=${() => this.close()}>
356
+ <span class="words">${link.label}</span><span class="number" aria-hidden="true">${worded ? `${this.currentText} \xB7 ${number}` : number}</span>
287
357
  </a>
288
358
  </li>`;
289
359
  })}
@@ -321,15 +391,18 @@ var ImpaktOffer = class extends ImpaktElement {
321
391
  spaceAround,
322
392
  css`
323
393
  :host { display: block; container: impakt-offer / inline-size; }
324
- .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(12)}; align-items: start; }
394
+ .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: ${space(12)}; row-gap: ${space(5)}; align-items: start; }
395
+ .copy { grid-area: copy; }
396
+ .actions { grid-area: actions; }
397
+ ol { grid-area: points; }
325
398
  .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(5)}; }
326
399
  .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize("sm")}; color: var(--impakt-eyebrow, ${t.textMuted}); }
327
- .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.75rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
400
+ .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
328
401
  .lead { margin: 0; max-inline-size: 32rem; font-size: ${fontSize("md")}; line-height: ${lineHeight("normal")}; color: ${t.text}; }
329
402
  ol { list-style: none; margin: 0; padding: 0; }
330
403
  li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: ${fontSize("lg")}; font-weight: ${fontWeight("medium")}; line-height: 1.2; color: ${t.text}; }
331
404
  .number { flex: none; font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("regular")}; line-height: 1.6; }
332
- @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; gap: ${space(8)}; } }
405
+ @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(8)}; } }
333
406
  `
334
407
  ];
335
408
  }
@@ -340,8 +413,8 @@ var ImpaktOffer = class extends ImpaktElement {
340
413
  ${this.eyebrow ? html`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>` : nothing}
341
414
  ${this.heading ? html`<div class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
342
415
  ${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
343
- <slot name="actions"></slot>
344
416
  </div>
417
+ <div class="actions" part="actions"><slot name="actions"></slot></div>
345
418
  ${(this.points ?? []).length ? html`<ol role="list" part="points">
346
419
  ${this.points.map((point, index) => html`<li><span class="number" aria-hidden="true">${String(index + 1).padStart(2, "0")}</span><span>${point}</span></li>`)}
347
420
  </ol>` : nothing}
@@ -401,30 +474,43 @@ var ImpaktPostCard = class extends ImpaktElement {
401
474
  var ImpaktHighlight = class extends ImpaktElement {
402
475
  static {
403
476
  this.properties = {
404
- label: { type: String }
477
+ label: { type: String },
478
+ cursor: { type: String },
479
+ hideLabelOn: { type: String, reflect: true, attribute: "hide-label-on" }
405
480
  };
406
481
  }
407
482
  constructor() {
408
483
  super();
409
484
  this.label = "";
485
+ this.cursor = null;
486
+ this.hideLabelOn = "";
410
487
  }
411
488
  static {
412
489
  this.styles = [
413
490
  ...ImpaktElement.styles,
414
491
  css`
415
492
  :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${token("color.accent.default", "#ffd43b")}; color: ${token("color.accent.on", "#1a1a1a")}; outline: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; outline-offset: -1px; }
416
- .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
417
- .handle:nth-of-type(1) { inset-block-start: -4px; inset-inline-start: -4px; }
418
- .handle:nth-of-type(2) { inset-block-start: -4px; inset-inline-end: -4px; }
419
- .handle:nth-of-type(3) { inset-block-end: -4px; inset-inline-start: -4px; }
420
- .handle:nth-of-type(4) { inset-block-end: -4px; inset-inline-end: -4px; }
421
- .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: 3px; }
422
- @media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label { background: CanvasText; color: Canvas; } }
493
+ .handle { position: absolute; inline-size: 6px; block-size: 6px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1px solid ${token("color.accent.on", "#1a1a1a")}; }
494
+ .handle:nth-of-type(1) { inset-block-start: -3px; inset-inline-start: -3px; }
495
+ .handle:nth-of-type(2) { inset-block-start: -3px; inset-inline-end: -3px; }
496
+ .handle:nth-of-type(3) { inset-block-end: -3px; inset-inline-start: -3px; }
497
+ .handle:nth-of-type(4) { inset-block-end: -3px; inset-inline-end: -3px; }
498
+ /* The label is meta: monospace capitals at 11px, square. */
499
+ .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: ${t.radiusSm}; }
500
+ @media (max-width: 40rem) { :host([hide-label-on='phone']) .label { display: none; } }
501
+ /* The pointer's tip sits on the bottom-right handle. */
502
+ .cursor { position: absolute; inset-block-start: calc(100% - 1px); inset-inline-start: calc(100% - 1px); display: flex; align-items: flex-start; gap: 2px; pointer-events: none; line-height: 1; }
503
+ .cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }
504
+ .tag { margin-block-start: 14px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }
505
+ @media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }
423
506
  `
424
507
  ];
425
508
  }
426
509
  render() {
427
- return html`<slot></slot><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span>${this.label ? html`<span class="label" part="label" aria-hidden="true">${this.label}</span>` : nothing}`;
510
+ return html`<slot></slot><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span>${this.label ? html`<span class="label" part="label" aria-hidden="true">${this.label}</span>` : nothing}${this.cursor != null ? html`<span class="cursor" part="cursor" aria-hidden="true"
511
+ ><svg viewBox="0 0 16 20" width="16" height="20" focusable="false"><path d="M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z" fill="currentColor" stroke-width="1.2" stroke-linejoin="round" /></svg
512
+ >${this.cursor ? html`<span class="tag">${this.cursor}</span>` : nothing}</span
513
+ >` : nothing}`;
428
514
  }
429
515
  };
430
516
  customElements.define("impakt-work-list", ImpaktWorkList);
@@ -444,4 +530,4 @@ export {
444
530
  ImpaktPostCard,
445
531
  ImpaktHighlight
446
532
  };
447
- //# sourceMappingURL=chunk-QGVIJNTD.js.map
533
+ //# sourceMappingURL=chunk-CCFBROX3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/studio.ts"],"sourcesContent":["/**\n * The blocks a studio's own site is built from: the numbered list of work, a\n * row of figures, and the questions at the foot of a page.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport {\n ImpaktElement,\n focusRing,\n fontSize,\n fontWeight,\n lineHeight,\n lockScroll,\n space,\n spaceAround,\n t,\n token,\n unlockScroll,\n type NavLink,\n} from '@atomic-ui/ui';\n\n/** One project in a list of work. */\nexport interface WorkItem {\n id?: string;\n /** The project's name, set large. */\n name: string;\n /** What it is and who it is for, such as \"Web platform · Automotive\". */\n meta?: string;\n /** Where the row goes when it is pressed. Leave empty for a row that goes nowhere: it has no arrow and does not turn to ink. */\n href?: string;\n /** A sentence about it, in its own column, such as \"Audits a website against WCAG 2.2 and writes the fixes.\" */\n text?: string;\n /** A short status, set in capitals, such as \"Available now\" or \"Coming soon\". The word carries the status. */\n badge?: string;\n /** A price line under the badge, such as \"From £59 a month\". */\n price?: string;\n /** Keep the row in ink, with the badge and the arrow in the accent: the one item the page wants seen first. */\n featured?: boolean;\n /** A picture shown, tilted, beside the pointer while the row is pointed at. It is decoration and is not read. */\n preview?: string;\n /** A small caption on the preview card, such as \"Harbour · Cover · 4:3\". */\n previewLabel?: string;\n}\n\n/** The arrow at the end of a row that goes somewhere. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg viewBox=\"0 0 22 22\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M5 17 17 5M8 5h9v9\" />\n</svg>`;\n\n/**\n * A numbered list of projects, each name set large: the work on a studio's\n * home page, or the index on its work page.\n *\n * **Each row is one link.** The link sits on the project's name, which is a\n * heading, and is stretched over the row, so the whole row can be pressed\n * while a screen reader meets one link with one name (2.4.4, 2.5.8). The\n * number and the arrow are decoration and are hidden from it; the list itself\n * says how many projects there are and which one this is (1.3.1).\n *\n * **Pointing at a row and focusing it look the same.** The row turns to the\n * text colour with the card colour on it, a pair every brand's tokens already\n * hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,\n * 1.4.11). The focus ring is still drawn over it (2.4.7).\n *\n * The names shrink with the block's own width, not the window's, so the list\n * reads the same in a narrow column as on a phone (1.4.10).\n *\n * **A row can say more.** `text` adds a description column, `badge` a status\n * word in capitals and `price` a line under it, so the same list sets out a\n * studio's work or a shop of tools. A `featured` row stays in ink with its\n * badge and arrow in the accent. `columns` draws a line of column names above\n * the rows, such as \"No.\", \"Project\" and \"Type · Sector\"; it is decoration,\n * since each row's own words already say what they are.\n *\n * **A row can show a picture as it is pointed at.** Give it `preview` and a\n * card with the picture follows the pointer, tilted. It is shown only to a\n * mouse, never on touch or with reduced motion asked for, and it is hidden\n * from a screen reader: the row's name already says what it is.\n *\n * @category content\n * @icon list\n */\nexport class ImpaktWorkList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n start: { type: Number },\n label: { type: String },\n columns: { type: Array },\n preview: { state: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The projects, in order. */\n declare items: WorkItem[];\n /** The heading level of each project's name. It depends on what is above the list on the page. */\n declare headingLevel: number;\n /** The number the first project is given. */\n declare start: number;\n /** A name for the list, so a screen reader can tell it from other lists on the page. Leave empty for none. */\n declare label: string;\n /**\n * Column names drawn above the rows, in monospace capitals: the first over\n * the numbers, the second over the names, and the rest, joined with \" · \",\n * over the last column, such as `[\"No.\", \"Project\", \"Type · Sector\"]`.\n * Leave empty for none.\n */\n declare columns: string[];\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** The preview being shown, with where the pointer is. */\n declare private preview: { src: string; label: string; x: number; y: number } | null;\n\n constructor() {\n super();\n this.items = [];\n this.headingLevel = 3;\n this.start = 1;\n this.label = '';\n this.columns = [];\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n this.preview = null;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${token('color.accent.default', '#ffd43b')}; --impakt-work-on-accent: ${token('color.accent.on', '#111111')}; }\n ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }\n .columns + ol { border-block-start: 0; }\n li, .columns { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; }\n .texts li, .texts.columns { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) auto 22px; }\n li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .columns { padding-block: ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .columns .last { grid-column: -3; text-align: end; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }\n .texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }\n .name a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n .name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }\n .name a:focus-visible { outline: none; }\n .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .side { display: flex; flex-direction: column; align-items: flex-end; gap: ${space(2)}; text-align: end; }\n .meta, .price { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .price { font-size: 0.6875rem; }\n /* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */\n .badge { display: inline-block; padding: ${space(1)} ${space(2.5)}; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${t.surfaceCard}; background: ${t.text}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }\n li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }\n .arrow { display: flex; color: ${t.text}; }\n /* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${t.text}; }\n li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }\n li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }\n li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }\n li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }\n li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }\n /* The preview card follows the pointer. Only its transform changes, so it costs no layout. */\n .preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${space(2)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }\n .preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }\n .preview span { display: block; padding-block-end: ${space(2)}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n @container impakt-work-list (max-width: 40rem) {\n li, .texts li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }\n .text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${space(2)}; }\n .side { grid-column: 2 / -1; grid-row: 3; align-items: flex-start; text-align: start; margin-block-start: ${space(2)}; }\n li:not(:has(.text)) .side { grid-row: 2; }\n .arrow { grid-column: 3; grid-row: 1; }\n .columns { display: none; }\n }\n @media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }\n @media (forced-colors: active) {\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }\n li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }\n .badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }\n }\n `,\n ];\n\n /** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */\n private point(event: PointerEvent, item: WorkItem): void {\n if (!item.preview || event.pointerType !== 'mouse' || window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n if (this.preview) this.preview = null;\n return;\n }\n const box = this.getBoundingClientRect();\n this.preview = { src: item.preview, label: item.previewLabel ?? '', x: event.clientX - box.left, y: event.clientY - box.top };\n }\n\n private columnRow(texts: boolean): TemplateResult | typeof nothing {\n const columns = this.columns ?? [];\n if (!columns.length) return nothing;\n const [number, name, ...rest] = columns;\n // Decoration: each row's own words already say what they are.\n return html`<div class=${texts ? 'columns texts' : 'columns'} part=\"columns\" aria-hidden=\"true\">\n <span>${number ?? ''}</span><span>${name ?? ''}</span>${rest.length ? html`<span class=\"last\">${rest.join(' · ')}</span>` : nothing}\n </div>`;\n }\n\n render(): TemplateResult {\n const items = this.items ?? [];\n const texts = items.some((item) => !!item.text);\n const preview = this.preview;\n // role=\"list\" is set by hand: a list with its markers removed is not announced as a list by every screen reader.\n return html`${this.columnRow(texts)}<ol role=\"list\" part=\"list\" class=${texts ? 'texts' : ''} aria-label=${this.label || nothing} @pointerleave=${() => (this.preview = null)}>\n ${items.map((item, index) => {\n const number = String(this.start + index).padStart(2, '0');\n const side = item.badge || item.price || item.meta;\n return html`<li part=\"row\" class=${item.featured ? 'featured' : ''} @pointermove=${(event: PointerEvent) => this.point(event, item)}>\n <span class=\"number\" aria-hidden=\"true\">${number}</span>\n <div class=\"name\" part=\"name\" role=\"heading\" aria-level=${this.headingLevel}>\n ${item.href ? html`<a href=${item.href} part=\"link\">${item.name}</a>` : item.name}\n </div>\n ${texts ? html`<p class=\"text\" part=\"text\">${item.text ?? ''}</p>` : nothing}\n ${\n side\n ? html`<span class=\"side\">\n ${item.badge ? html`<span class=\"badge\" part=\"badge\">${item.badge}</span>` : nothing}\n ${item.price ? html`<span class=\"price\" part=\"price\">${item.price}</span>` : nothing}\n ${item.meta ? html`<span class=\"meta\" part=\"meta\">${item.meta}</span>` : nothing}\n </span>`\n : html`<span></span>`\n }\n ${item.href ? html`<span class=\"arrow\">${arrow}</span>` : html`<span></span>`}\n </li>`;\n })}\n </ol>${\n preview\n ? html`<div class=\"preview\" part=\"preview\" aria-hidden=\"true\" style=${`--x:${preview.x}px;--y:${preview.y}px`}>\n ${preview.label ? html`<span>${preview.label}</span>` : nothing}<img src=${preview.src} alt=\"\" />\n </div>`\n : nothing\n }`;\n }\n}\n\n/** One figure in a row of them. */\nexport interface StatRowItem {\n /** The number, written as it should appear, such as \"161 ms\" or \"4\". */\n figure: string;\n /** What the number counts. */\n label: string;\n /** A line more, if the label needs it. */\n note?: string;\n}\n\n/**\n * A row of figures under a rule, each with what it counts: \"4 live products\",\n * \"161 ms response time\".\n *\n * The figures are a list, so a screen reader says how many there are, and each\n * is read as one phrase, \"161 ms response time\", not a bare number followed\n * some way off by its label (1.3.1). The row wraps by its own width: four\n * across, then two (a phone 350px wide shows two by two), then one, with\n * nothing to scroll sideways at 320px (1.4.10).\n *\n * @category content\n * @icon stat\n */\nexport class ImpaktStatRow extends ImpaktElement {\n static properties = {\n items: { type: Array },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The figures, in order. Four fit a row on a wide page. */\n declare items: StatRowItem[];\n /** A name for the row, such as \"Live products\", read before the figures. Leave empty for none. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-stat-row / inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }\n li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }\n p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }\n .value { font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .label { font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n /* The note is meta: monospace capitals at 11px. */\n .note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`<ul role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) =>\n html`<li part=\"stat\">\n <p><span class=\"value\" part=\"value\">${item.figure}</span> <span class=\"label\" part=\"label\">${item.label}</span>${item.note ? html` <span class=\"note\">${item.note}</span>` : nothing}</p>\n </li>`,\n )}\n </ul>`;\n }\n}\n\n/** One question and its answer. */\nexport interface FaqItem {\n id: string;\n /** The question. */\n heading: string;\n /** The answer, as plain text. An answer with links or a list is slotted as `panel-<id>` instead. */\n body: string;\n}\n\n/**\n * The questions at the foot of a page, under a heading: a title, a line of\n * introduction, and the questions as sections that open.\n *\n * It is `impakt-accordion` with the heading a page always writes above it, so\n * the levels cannot drift: the questions are always one level below the\n * block's own heading (1.3.1). With a heading, the block is a region named by\n * it, so a screen reader can jump straight to the questions (2.4.1).\n *\n * An answer that is more than words is slotted as `panel-<id>`, exactly as\n * on the accordion, and is passed through to it.\n *\n * @category content\n * @icon accordion\n */\nexport class ImpaktFaq extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n open: { type: Array },\n multiple: { type: Boolean },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Questions\". */\n declare eyebrow: string;\n /** The block's heading, such as \"Questions founders ask us first.\" */\n declare heading: string;\n /** A line under the heading. */\n declare lead: string;\n /** The questions, in order. */\n declare items: FaqItem[];\n /** The level of the block's heading. The questions are one level below it. */\n declare headingLevel: number;\n /** The ids of the questions that start open. */\n declare open: string[];\n /** Let more than one answer be open at once. */\n declare multiple: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.items = [];\n this.headingLevel = 2;\n this.open = [];\n this.multiple = true;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-faq / inline-size; }\n .head { display: flex; flex-direction: column; gap: ${space(4)}; margin-block-end: ${space(10)}; max-inline-size: 44rem; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n /* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */\n impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight('normal')}; }\n @media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const headingId = this.id_('heading');\n const level = Math.min(Math.max(this.headingLevel, 1), 5);\n const head =\n this.eyebrow || this.heading || this.lead\n ? html`<div class=\"head\" part=\"head\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div id=${headingId} class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>`\n : nothing;\n // Each answer's slot is passed through to the accordion, with the plain answer as what shows when nothing is slotted.\n const accordion = html`<impakt-accordion part=\"questions\" marker=\"plus\" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>\n ${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}\n </impakt-accordion>`;\n return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;\n }\n}\n\n/**\n * A site's menu as a whole screen: a few large links, for a phone or for a\n * site with only a handful of pages.\n *\n * **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so\n * the focus trap, Escape, the inert page behind it and the return of focus to\n * the button that opened it all come from the browser (2.1.2, 2.4.3). The page\n * behind does not scroll while it is open. The button that opens it is the\n * page's own; set `open` from it and listen for `impakt-close`.\n *\n * **The links are a navigation landmark with a name**, and the page the reader\n * is on carries `aria-current=\"page\"` and is marked with a square, so the mark\n * does not depend on colour (1.4.1). Set `current-text`, such as \"Current\",\n * and the words \"Current · 01\" stand in its number instead of the square. A\n * brand whose ink is dark may also colour it, by setting\n * `--impakt-site-menu-current`.\n *\n * The menu is drawn in ink: the text colour as the background with the card\n * colour on it, a pair every brand already holds at 4.5:1. A component slotted\n * at its foot takes the same colours through its tokens; a plain link there\n * keeps the page's own link colour, so slot `impakt-link` instead.\n *\n * @category navigation\n * @icon menu\n * @slot footer - Under the links: a call to action, an email address.\n * @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.\n */\nexport class ImpaktSiteMenu extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n links: { type: Array },\n current: { type: String },\n brand: { type: String },\n mark: { type: String },\n home: { type: String },\n label: { type: String },\n closeText: { type: String, attribute: 'close-text' },\n currentText: { type: String, attribute: 'current-text' },\n };\n /** Whether the menu is showing. */\n declare open: boolean;\n /** The pages, in order. */\n declare links: NavLink[];\n /** The `href` of the page the reader is on, so its link is marked. */\n declare current: string;\n /** The site's name, at the top. */\n declare brand: string;\n /** A letter in a small square before the name, such as \"i\", as the site header's canvas look draws it. */\n declare mark: string;\n /** Where the site's name goes. */\n declare home: string;\n /** The menu's name, read when it opens and as the name of its links. */\n declare label: string;\n /** The words on the button that closes it. */\n declare closeText: string;\n /**\n * A word shown with the current page's number, such as \"Current\", so it\n * reads \"Current · 01\". It then marks the page in place of the square.\n * Leave empty for the square.\n */\n declare currentText: string;\n\n constructor() {\n super();\n this.open = false;\n this.links = [];\n this.current = '';\n this.brand = '';\n this.mark = '';\n this.home = '/';\n this.label = 'Menu';\n this.closeText = 'Close';\n this.currentText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */\n :host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }\n dialog[open] { display: flex; }\n dialog::backdrop { background: var(--impakt-menu); }\n .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('semibold')}; border-radius: ${t.radiusSm}; }\n .brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight('medium')}; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize('sm')}; }\n .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }\n nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; letter-spacing: 0; color: var(--impakt-menu-muted); }\n /*\n * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets\n * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).\n */\n a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }\n .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }\n .foot[hidden] { display: none; }\n /* What is slotted at the foot is read on ink too. */\n ::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }\n @media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }\n `,\n ];\n\n private hasFooter = false;\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private close(): void {\n if (!this.open) return;\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n private footerChanged(event: Event): void {\n this.hasFooter = (event.target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n return html`<dialog part=\"dialog\" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>\n <div class=\"bar\" part=\"bar\">\n ${\n this.brand\n ? html`<a class=${this.mark ? 'brand marked' : 'brand'} href=${this.home || '/'} part=\"brand\">${this.mark ? html`<span class=\"mark\" part=\"mark\" aria-hidden=\"true\">${this.mark}</span>` : nothing}${this.brand}</a>`\n : html`<span></span>`\n }\n <button class=\"close\" type=\"button\" part=\"close\" @click=${() => this.close()}>\n <span>${this.closeText}</span>\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l10 10M11 1 1 11\" /></svg>\n </button>\n </div>\n <nav aria-label=${this.label} part=\"nav\">\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const current = !!this.current && link.href === this.current;\n const number = String(index + 1).padStart(2, '0');\n const worded = current && !!this.currentText;\n // Following a link closes the menu, so a link to a place on the same page does not leave it open over that place.\n return html`<li>\n <a href=${link.href} class=${worded ? 'worded' : ''} aria-current=${current ? 'page' : nothing} part=\"link\" @click=${() => this.close()}>\n <span class=\"words\">${link.label}</span><span class=\"number\" aria-hidden=\"true\">${worded ? `${this.currentText} · ${number}` : number}</span>\n </a>\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"foot\" part=\"footer\" ?hidden=${!this.hasFooter}><slot name=\"footer\" @slotchange=${this.footerChanged}></slot></div>\n </dialog>`;\n }\n}\n\n/**\n * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width, and on a narrow screen the action comes after the\n * points, so it is the last thing read before the next section (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-offer / inline-size; }\n .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: ${space(12)}; row-gap: ${space(5)}; align-items: start; }\n .copy { grid-area: copy; }\n .actions { grid-area: actions; }\n ol { grid-area: points; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(5)}; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 32rem; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: ${fontSize('lg')}; font-weight: ${fontWeight('medium')}; line-height: 1.2; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; line-height: 1.6; }\n @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(8)}; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\" part=\"actions\"><slot name=\"actions\"></slot></div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: ${fontSize('xl')}; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .more { margin-block-start: auto; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.text}; }\n @media (forced-colors: active) { article { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<article part=\"card\">\n ${this.meta ? html`<p class=\"meta\" part=\"meta\">${this.meta}</p>` : nothing}\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}</div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.linkText && this.href ? html`<span class=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A word or two of a heading picked out as if selected in a design tool: the\n * accent colour behind it, an outline and four handles.\n *\n * It is decoration round real text. The words stay in the heading, in the\n * page, so they are read, found and translated as the rest of it is; the\n * handles and the optional label are hidden from a screen reader (1.3.1).\n * The words on the accent are the colour the tokens measured against it\n * (1.4.3). Nothing moves, so there is nothing to stop for reduced motion.\n *\n * `cursor` draws a pointer at the bottom-right handle, as if someone in the\n * file had just picked the words; its value, if any, is the name tag beside\n * it. `hide-label-on=\"phone\"` leaves the label out on a phone, where it would\n * crowd the line below.\n *\n * @category content\n * @icon text\n * @slot - The words to pick out.\n */\nexport class ImpaktHighlight extends ImpaktElement {\n static properties = {\n label: { type: String },\n cursor: { type: String },\n hideLabelOn: { type: String, reflect: true, attribute: 'hide-label-on' },\n };\n /** A small tag under the words, such as \"Design · H1 / 120\". It is decoration and is not read. */\n declare label: string;\n /**\n * Draw a pointer at the bottom-right handle. Its value is a name tag beside\n * the pointer, such as \"Maria\"; an empty value draws the pointer alone. Leave\n * the attribute off for no pointer. Decoration, not read.\n */\n declare cursor: string | null;\n /** Leave the label out on a phone (`phone`). */\n declare hideLabelOn: '' | 'phone';\n\n constructor() {\n super();\n this.label = '';\n this.cursor = null;\n this.hideLabelOn = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${token('color.accent.default', '#ffd43b')}; color: ${token('color.accent.on', '#1a1a1a')}; outline: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; outline-offset: -1px; }\n .handle { position: absolute; inline-size: 6px; block-size: 6px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle:nth-of-type(1) { inset-block-start: -3px; inset-inline-start: -3px; }\n .handle:nth-of-type(2) { inset-block-start: -3px; inset-inline-end: -3px; }\n .handle:nth-of-type(3) { inset-block-end: -3px; inset-inline-start: -3px; }\n .handle:nth-of-type(4) { inset-block-end: -3px; inset-inline-end: -3px; }\n /* The label is meta: monospace capitals at 11px, square. */\n .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: ${t.radiusSm}; }\n @media (max-width: 40rem) { :host([hide-label-on='phone']) .label { display: none; } }\n /* The pointer's tip sits on the bottom-right handle. */\n .cursor { position: absolute; inset-block-start: calc(100% - 1px); inset-inline-start: calc(100% - 1px); display: flex; align-items: flex-start; gap: 2px; pointer-events: none; line-height: 1; }\n .cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }\n .tag { margin-block-start: 14px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }\n @media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<slot></slot><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span>${\n this.label ? html`<span class=\"label\" part=\"label\" aria-hidden=\"true\">${this.label}</span>` : nothing\n }${\n this.cursor != null\n ? html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\"\n ><svg viewBox=\"0 0 16 20\" width=\"16\" height=\"20\" focusable=\"false\"><path d=\"M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z\" fill=\"currentColor\" stroke-width=\"1.2\" stroke-linejoin=\"round\" /></svg\n >${this.cursor ? html`<span class=\"tag\">${this.cursor}</span>` : nothing}</span\n >`\n : nothing\n }`;\n }\n}\n\ncustomElements.define('impakt-work-list', ImpaktWorkList);\ncustomElements.define('impakt-stat-row', ImpaktStatRow);\ncustomElements.define('impakt-faq', ImpaktFaq);\ncustomElements.define('impakt-site-menu', ImpaktSiteMenu);\ncustomElements.define('impakt-offer', ImpaktOffer);\ncustomElements.define('impakt-post-card', ImpaktPostCard);\ncustomElements.define('impakt-highlight', ImpaktHighlight);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-work-list': ImpaktWorkList;\n 'impakt-stat-row': ImpaktStatRow;\n 'impakt-faq': ImpaktFaq;\n 'impakt-site-menu': ImpaktSiteMenu;\n 'impakt-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AA0BP,IAAM,QAAQ;AAAA;AAAA;AAqCP,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAChD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,cAAc,EAAE,MAAM,QAAQ,WAAW,gBAAgB;AAAA,MACzD,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,SAA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AiB,EAAE,IAAI,oBAAoB,EAAE,QAAQ;AAAA;AAAA;AAAA;AAAA,uDAIrT,EAAE,IAAI,aAAa,EAAE,WAAW;AAAA,2FACI,EAAE,QAAQ,uGAAuG,EAAE,WAAW,iBAAiB,EAAE,IAAI;AAAA;AAAA;AAAA,IAG9O;AAAA;AAAA,EAEA,SAAyB;AACvB,WAAO,gNACL,KAAK,QAAQ,2DAA2D,KAAK,KAAK,YAAY,OAChG,GACE,KAAK,UAAU,OACX;AAAA;AAAA,eAEK,KAAK,SAAS,yBAAyB,KAAK,MAAM,YAAY,OAAO;AAAA,eAE1E,OACN;AAAA,EACF;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,mBAAmB,aAAa;AACtD,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
@@ -62,7 +62,7 @@ var ImpaktCarousel = class extends ImpaktElement {
62
62
  .controls { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; margin-block-start: ${space(4)}; }
63
63
  .dots { display: flex; flex-wrap: wrap; gap: ${space(1)}; }
64
64
  .dot { ${targetSize} display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; cursor: pointer; border-radius: ${t.radiusSm}; }
65
- .dot span { display: block; inline-size: 8px; block-size: 8px; border-radius: 999px; background: ${t.rule}; transition: inline-size 150ms ease-in-out, background-color 150ms ease-in-out; }
65
+ .dot span { display: block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${t.rule}; transition: inline-size 150ms ease-in-out, background-color 150ms ease-in-out; }
66
66
  .dot[aria-current='true'] span { inline-size: 24px; background: ${t.brand}; }
67
67
  .buttons { display: flex; gap: ${space(2)}; }
68
68
  section { position: relative; }
@@ -395,6 +395,8 @@ var ImpaktSteps = class extends ImpaktElement {
395
395
  items: { type: Array },
396
396
  orientation: { type: String, reflect: true },
397
397
  look: { type: String, reflect: true },
398
+ tones: { type: Boolean, reflect: true },
399
+ current: { type: Number },
398
400
  headingLevel: { type: Number, attribute: "heading-level" },
399
401
  spaceAbove: { type: String, reflect: true, attribute: "space-above" },
400
402
  spaceBelow: { type: String, reflect: true, attribute: "space-below" }
@@ -405,6 +407,8 @@ var ImpaktSteps = class extends ImpaktElement {
405
407
  this.items = [];
406
408
  this.orientation = "horizontal";
407
409
  this.look = "numbered";
410
+ this.tones = false;
411
+ this.current = -1;
408
412
  this.headingLevel = 3;
409
413
  this.spaceAbove = "none";
410
414
  this.spaceBelow = "none";
@@ -433,23 +437,35 @@ var ImpaktSteps = class extends ImpaktElement {
433
437
  li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }
434
438
  li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${space(6)} + 8px); inset-inline-start: 19px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }
435
439
  }
436
- :host([look='ruled']) li { padding-block-start: ${space(5)}; border-block-start: 3px solid var(--rule); }
440
+ /* Ruled: a 1px rule in the band's text colour, or in the chart colours with tones. */
441
+ :host([look='ruled']) li { --rule: currentColor; padding-block-start: ${space(5)}; border-block-start: 1px solid var(--rule); }
442
+ :host([look='ruled'][tones]) li { --rule: var(--chart); border-block-start-width: 3px; }
443
+ :host([look='ruled']:not([tones])) .meta { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
444
+ :host([look='ruled']:not([tones])) .meta::before { content: counter(step, decimal-leading-zero) ' · '; }
445
+ :host([look='ruled']:not([tones])) li[aria-current] { --rule: var(--impakt-steps-current, currentColor); border-block-start-width: 2px; padding-block-start: calc(${space(5)} - 1px); }
446
+ :host([look='ruled']:not([tones])) li[aria-current] .meta { color: var(--impakt-steps-current, currentColor); }
437
447
  :host([look='ruled']) li::before, :host([look='ruled']) li::after { display: none; }
438
448
  :host([look='ruled']) ol { gap: ${space(5)}; }
439
- /* On a phone the ruled steps become a branch graph: one trunk down the left, and each step a coloured branch off it with a dot. */
449
+ /* On a phone the ruled steps hang off a rail: a 1.5px line down the left and a hollow 10px ring at each step, the current one filled. */
440
450
  @container (max-width: 40rem) {
441
451
  :host([look='ruled']) ol { gap: 0; }
442
- :host([look='ruled']) li { padding-inline-start: 40px; padding-block: ${space(6)}; min-block-size: 0; border-block-start: 0; }
443
- :host([look='ruled']) li::before { display: block; content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 2px; block-size: auto; border-radius: 0; margin: 0; background: ${t.text}; }
444
- :host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block: ${space(3)}; inset-inline-start: 2px; inset-inline-end: auto; inline-size: 12px; block-size: auto; background: radial-gradient(circle at 100% 34px, var(--rule) 4px, transparent 4.5px); border: 2px solid var(--rule); border-inline-start: 0; border-radius: 0 14px 14px 0; }
452
+ :host([look='ruled']) li, :host([look='ruled']:not([tones])) li[aria-current] { padding-inline-start: 40px; padding-block: ${space(6)}; min-block-size: 0; border-block-start: 0; }
453
+ :host([look='ruled']) li::before { display: block; content: ''; position: absolute; inset-block: 0; inset-inline-start: 4px; inline-size: 1.5px; block-size: auto; border-radius: 0; margin: 0; background: currentColor; }
454
+ :host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block-start: calc(${space(6)} + 2px); inset-inline-start: 0; inline-size: 10px; block-size: 10px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; background: ${t.surfaceCard}; }
455
+ :host([look='ruled']) li:first-child::before { inset-block-start: calc(${space(6)} + 7px); }
456
+ :host([look='ruled']) li:last-child::before { inset-block-end: auto; block-size: calc(${space(6)} + 7px); }
457
+ :host([look='ruled']:not([tones])) li[aria-current]::after { background: var(--impakt-steps-current, currentColor); }
458
+ /* With tones: a branch graph, one trunk down the left and each step a coloured branch off it with a dot. */
459
+ :host([look='ruled'][tones]) li::before { inset-block: 0; inset-inline-start: 0; inline-size: 2px; block-size: auto; background: ${t.text}; }
460
+ :host([look='ruled'][tones]) li::after { inset-block: ${space(3)}; inset-inline-start: 2px; inline-size: 12px; block-size: auto; background: radial-gradient(circle at 100% 34px, var(--rule) 4px, transparent 4.5px); border: 2px solid var(--rule); border-inline-start: 0; border-radius: 0 14px 14px 0; }
445
461
  }
446
- @media (forced-colors: active) { li::before { border: 1px solid CanvasText; } li:not(:last-child)::after { background: CanvasText; } :host([look='ruled']) li { border-block-start-color: CanvasText; } }
462
+ @media (forced-colors: active) { li::before { border: 1px solid CanvasText; } li:not(:last-child)::after { background: CanvasText; } :host([look='ruled']) li { border-block-start-color: CanvasText; } :host([look='ruled']) li[aria-current]::after { background: Highlight; } }
447
463
  `
448
464
  ];
449
465
  }
450
466
  render() {
451
467
  return html`<ol part="list">${(this.items ?? []).map(
452
- (step, i) => html`<li part="step" style=${this.look === "ruled" ? `--rule:var(--impakt-color-chart-${i % 5 + 1}, ${"var(--impakt-color-brand-default, #1f4ed8)"})` : nothing}>
468
+ (step, i) => html`<li part="step" aria-current=${i === this.current ? "step" : nothing} style=${this.look === "ruled" ? `--chart:var(--impakt-color-chart-${i % 5 + 1}, ${"var(--impakt-color-brand-default, #1f4ed8)"})` : nothing}>
453
469
  ${step.meta ? html`<p class="meta">${step.meta}</p>` : nothing}
454
470
  <div class="h" role="heading" aria-level=${this.headingLevel}>${step.heading}</div>
455
471
  ${step.text ? html`<p class="body">${step.text}</p>` : nothing}
@@ -570,7 +586,9 @@ var ImpaktCtaBanner = class extends ImpaktElement {
570
586
  :host { display: block; container-type: inline-size; }
571
587
  .panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: ${space(8)}; padding: ${space(16)}; border-radius: ${t.radius2xl}; background: ${t.surfaceCard}; box-shadow: ${t.shadowSm}, inset 0 0 0 1px ${t.hairline}; }
572
588
  :host([tone='subtle']) .panel { background: ${t.surfaceSubtle}; box-shadow: none; }
573
- :host([tone='brand']) .panel { background: ${t.brand}; color: ${t.onBrand}; box-shadow: ${t.shadowLg}; }
589
+ :host([tone='brand']) .panel { background: ${t.brand}; color: ${t.onBrand}; box-shadow: ${t.shadowMd};
590
+ /* A primary button on the brand panel turns over, as it does on an ink band, so it keeps an edge against the panel. */
591
+ --impakt-button-primary: ${t.onBrand}; --impakt-button-on-primary: ${t.brand}; --impakt-button-primary-hover: color-mix(in srgb, ${t.onBrand} 86%, ${t.brand}); --impakt-color-text-inverse: ${t.brand}; }
574
592
  /* Only the words take the light colours: a button in the actions keeps its own. */
575
593
  :host([tone='brand']) .words { --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; }
576
594
  /* A soft glow in the corner, so a flat colour has some depth. Decoration only. */
@@ -751,4 +769,4 @@ export {
751
769
  ImpaktReviews,
752
770
  ImpaktNewsletter
753
771
  };
754
- //# sourceMappingURL=chunk-NLHFBIGQ.js.map
772
+ //# sourceMappingURL=chunk-EYP5LWUR.js.map