@keystone-sites/marketing-design-system 1.0.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 (130) hide show
  1. package/AGENTS.md +163 -0
  2. package/README.md +85 -0
  3. package/assets/media/brand/ks-lockup.svg +13 -0
  4. package/assets/media/brand/ks-logomark.svg +4 -0
  5. package/assets/media/brand/ks-wordmark-inline.svg +13 -0
  6. package/assets/media/brand/ks-wordmark.svg +11 -0
  7. package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
  8. package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
  9. package/base.css +111 -0
  10. package/css-vars.d.ts +10 -0
  11. package/grid/engine.css +368 -0
  12. package/grid/field-hash.ts +31 -0
  13. package/grid/field.tsx +48 -0
  14. package/grid/gates.cjs +34 -0
  15. package/grid/region.tsx +97 -0
  16. package/icons.tsx +1224 -0
  17. package/index.css +77 -0
  18. package/lib/autoplay-gate.ts +88 -0
  19. package/lib/focus-trap.ts +42 -0
  20. package/lib/grader.ts +131 -0
  21. package/lib/legal-data.ts +1 -0
  22. package/lib/legal.ts +41 -0
  23. package/lib/noise.tsx +114 -0
  24. package/lib/render-boundary.tsx +27 -0
  25. package/lib/scroll-lock.ts +25 -0
  26. package/lib/swipe.ts +124 -0
  27. package/lib/use-active-section.ts +43 -0
  28. package/lib/use-count-up.ts +26 -0
  29. package/lib/use-grader-search.ts +118 -0
  30. package/lib/use-video-carousel.ts +271 -0
  31. package/media.ts +558 -0
  32. package/package.json +201 -0
  33. package/primitives/button-inline.css +52 -0
  34. package/primitives/button-inline.tsx +38 -0
  35. package/primitives/buttons.css +449 -0
  36. package/primitives/buttons.tsx +263 -0
  37. package/primitives/case-study-button.css +71 -0
  38. package/primitives/case-study-button.tsx +28 -0
  39. package/primitives/case-study-card.css +318 -0
  40. package/primitives/case-study-card.tsx +116 -0
  41. package/primitives/closer-row.css +14 -0
  42. package/primitives/closer-row.tsx +22 -0
  43. package/primitives/cta-row.css +41 -0
  44. package/primitives/cta-row.tsx +39 -0
  45. package/primitives/disclosure.css +210 -0
  46. package/primitives/disclosure.tsx +144 -0
  47. package/primitives/faq-question.css +220 -0
  48. package/primitives/faq-question.tsx +55 -0
  49. package/primitives/field.css +225 -0
  50. package/primitives/field.tsx +266 -0
  51. package/primitives/footer-item.css +72 -0
  52. package/primitives/footer-item.tsx +42 -0
  53. package/primitives/grader-menu.tsx +84 -0
  54. package/primitives/grader.css +302 -0
  55. package/primitives/grader.tsx +284 -0
  56. package/primitives/modal.css +151 -0
  57. package/primitives/modal.tsx +90 -0
  58. package/primitives/notice.css +39 -0
  59. package/primitives/notice.tsx +56 -0
  60. package/primitives/persona-card.css +374 -0
  61. package/primitives/persona-card.tsx +74 -0
  62. package/primitives/picture.css +11 -0
  63. package/primitives/picture.tsx +41 -0
  64. package/primitives/plan-card.css +378 -0
  65. package/primitives/plan-card.tsx +91 -0
  66. package/primitives/prose.css +118 -0
  67. package/primitives/prose.tsx +170 -0
  68. package/primitives/ramps.css +84 -0
  69. package/primitives/slider.css +179 -0
  70. package/primitives/slider.tsx +69 -0
  71. package/primitives/slug.css +87 -0
  72. package/primitives/slug.tsx +37 -0
  73. package/primitives/status.css +298 -0
  74. package/primitives/status.tsx +222 -0
  75. package/primitives/strip.css +40 -0
  76. package/primitives/surface.css +78 -0
  77. package/primitives/surface.tsx +95 -0
  78. package/primitives/table.css +226 -0
  79. package/primitives/table.tsx +122 -0
  80. package/primitives/tabs.css +85 -0
  81. package/primitives/tabs.tsx +122 -0
  82. package/primitives/text.css +110 -0
  83. package/primitives/toc.css +65 -0
  84. package/primitives/toc.tsx +42 -0
  85. package/rules/design-system.md +154 -0
  86. package/rules/grid-and-layout.md +166 -0
  87. package/scripts/generate-exports.mjs +61 -0
  88. package/scripts/generate-type-css.mjs +130 -0
  89. package/sections/faq-island.tsx +102 -0
  90. package/sections/faq.css +213 -0
  91. package/sections/faq.tsx +46 -0
  92. package/sections/footer-nav.tsx +95 -0
  93. package/sections/footer-signature.css +183 -0
  94. package/sections/footer-signature.tsx +114 -0
  95. package/sections/footer.css +735 -0
  96. package/sections/footer.tsx +283 -0
  97. package/sections/gallery-overlay.css +213 -0
  98. package/sections/gallery-overlay.tsx +267 -0
  99. package/sections/landing-benefits.css +59 -0
  100. package/sections/landing-benefits.tsx +81 -0
  101. package/sections/landing-closer.css +23 -0
  102. package/sections/landing-closer.tsx +26 -0
  103. package/sections/landing-hero.css +80 -0
  104. package/sections/landing-hero.tsx +69 -0
  105. package/sections/landing-quote.css +19 -0
  106. package/sections/landing-quote.tsx +30 -0
  107. package/sections/landing-sample.ts +66 -0
  108. package/sections/landing.css +45 -0
  109. package/sections/landing.tsx +69 -0
  110. package/sections/load-orchestrator.tsx +43 -0
  111. package/sections/load.css +138 -0
  112. package/sections/nav-desktop.css +530 -0
  113. package/sections/nav-desktop.tsx +155 -0
  114. package/sections/nav-mobile.css +571 -0
  115. package/sections/nav-mobile.tsx +222 -0
  116. package/sections/nav.css +126 -0
  117. package/sections/nav.tsx +394 -0
  118. package/sections/site-chat-data.ts +16 -0
  119. package/sections/site-chat-open.tsx +25 -0
  120. package/sections/site-chat.tsx +67 -0
  121. package/site-links.ts +36 -0
  122. package/site.ts +2 -0
  123. package/themes/inverted.css +139 -0
  124. package/tokens/fonts.css +38 -0
  125. package/tokens/motion.css +125 -0
  126. package/tokens/primitives.css +163 -0
  127. package/tokens/semantic.css +153 -0
  128. package/tokens/type-styles.json +145 -0
  129. package/tokens/type.css +1548 -0
  130. package/widgets.css +78 -0
@@ -0,0 +1,38 @@
1
+ /* Licensed variable fonts are self-hosted and never CDN-imported.
2
+ GT Standard requires an explicit weight because its binary default is
3
+ 900. Optical sizing is pinned per type-scale step rather than inferred
4
+ from Figma's named instances. `swap` keeps text readable while loading. */
5
+
6
+ @font-face {
7
+ font-family: "GT Standard";
8
+ src: url("/media/fonts/gt-standard-standard-vf.woff2") format("woff2");
9
+ font-weight: 300 900;
10
+ font-style: normal;
11
+ font-display: swap;
12
+ }
13
+
14
+ @font-face {
15
+ font-family: "PP Kyoto";
16
+ src: url("/media/fonts/pp-kyoto-variable-upright-vf.woff2") format("woff2");
17
+ font-weight: 100 900;
18
+ font-style: normal;
19
+ font-display: swap;
20
+ }
21
+
22
+ :root {
23
+ --font-sans: "GT Standard", ui-sans-serif, system-ui, sans-serif;
24
+ --font-serif: "PP Kyoto", ui-serif, Georgia, serif;
25
+ /* Raw data, identifiers, transcripts: the platform mono face. */
26
+ --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
27
+
28
+ /* Weight names match Figma. */
29
+ --font-weight-thin: 100;
30
+ --font-weight-extralight: 200;
31
+ --font-weight-light: 300;
32
+ --font-weight-regular: 400;
33
+ --font-weight-medium: 500;
34
+ --font-weight-semibold: 600;
35
+
36
+ /* GT Standard VF slnt axis (0–6). WebKit renders oblique when omitted. */
37
+ --font-sans-slnt: "slnt" 0;
38
+ }
@@ -0,0 +1,125 @@
1
+ /* Motion grammars. Every transition and animation on the site references
2
+ a token from this file; no duration, curve, or distance is written
3
+ anywhere else. Motion is CSS only — no animation runtime ships.
4
+
5
+ Laws for new motion (each one is a bug we shipped once):
6
+ - Reuse a grammar before inventing one. A new grammar gets a name and a
7
+ one-line prose definition here first, then its tokens.
8
+ - Opens run the ease-in-out curve; closes run the ease-out curve.
9
+ - A hard shadow never paints while its box moves: it grows from 0,0
10
+ after the box lands and drops at once on close.
11
+ - Never transition transform/translate inside an element whose paint
12
+ (color, opacity) is transitioning; the compositor re-rasters the
13
+ ancestor mid-paint and flickers for a frame. Move a relative offset
14
+ instead, or move the paint to an absolute child.
15
+ - Colors never transition on gradients; cross-fade the opacity of an
16
+ absolute child that carries the gradient.
17
+ - A load choreography ends explicitly on its final beat's `animationend`
18
+ so a band-gated variant re-entering the tree replays nothing.
19
+ - Timers are not a sync primitive. Wait for `animationend`,
20
+ `transitionend`, `decode()`, or `requestAnimationFrame`. Timers are
21
+ for things that fire on a timer: auto-advance, debounce.
22
+ - `prefers-reduced-motion: reduce` renders every grammar state-to-state:
23
+ no transitions, no timers, elements born settled. A no-JS render shows
24
+ the same settled state.
25
+ - Hover styles sit under `@media (hover: hover)`; every state also works
26
+ on touch. Auto-rotation pauses on hover, focus, and hidden documents.
27
+
28
+ Drawers reveal content with their moving clip edge; hard shadows appear
29
+ only after the box lands. */
30
+
31
+ :root {
32
+ --motion-drawer-duration: 250ms;
33
+ /* ease-out — the close direction (and the shadow growth) */
34
+ --motion-drawer-ease: cubic-bezier(0.22, 1, 0.36, 1);
35
+ /* ease-in-out — the open direction */
36
+ --motion-drawer-ease-open: cubic-bezier(0.65, 0, 0.35, 1);
37
+ --motion-drawer-shadow-duration: 200ms;
38
+
39
+ /* Fade-rise entries share the drawer ease-out curve. */
40
+ --motion-rise-distance: 26px;
41
+ --motion-rise-duration: 800ms;
42
+ --motion-rise-ease: var(--motion-drawer-ease);
43
+
44
+ /* Chip highlights wipe left-to-right while their ink cross-fades. */
45
+ --motion-wipe-duration: 420ms;
46
+ --motion-wipe-ease: cubic-bezier(0.76, 0, 0.24, 1);
47
+ --motion-chip-stagger: 150ms;
48
+
49
+ /* Carousels move one frame without overshoot; islands read timers here. */
50
+ --motion-slide-duration: 900ms;
51
+ --motion-slide-ease: cubic-bezier(0.45, 0.05, 0.15, 1);
52
+ --motion-carousel-dwell: 3500ms;
53
+ --motion-carousel-first-advance: 4500ms;
54
+
55
+ /* Video sequences overlap the outgoing final frame and incoming
56
+ first frame in one quiet opacity crossfade. */
57
+ --motion-video-crossfade-duration: 400ms;
58
+ --motion-video-crossfade-ease: ease-in-out;
59
+
60
+ /* Dots morph from circle to square and unwind more slowly on exit. */
61
+ --motion-dot-morph-dur: 450ms;
62
+ --motion-dot-morph-out-dur: 600ms;
63
+ --motion-dot-morph-out-ease: var(--motion-drawer-ease-open);
64
+ --motion-dot-rotation: 180deg;
65
+
66
+ /* Card shadows grow after layout motion and reverse slightly faster. */
67
+ --motion-card-shadow-dur: 450ms;
68
+ --motion-card-shadow-out-dur: 300ms;
69
+
70
+ /* Decorative circles translate one cell without moving layout. */
71
+ --motion-cell-slide-dur: 500ms;
72
+ --motion-cell-slide-ease: var(--motion-drawer-ease-open);
73
+
74
+ /* Rail cells stagger on open and fade together on close. */
75
+ --motion-rail-stagger: 40ms;
76
+
77
+ /* Carousel snapping uses the shared slide ease; dragging has no transition. */
78
+ --motion-snap-dur: 450ms;
79
+ --motion-snap-ease: var(--motion-slide-ease);
80
+
81
+ /* Inactive carousel images remain translucent so the lattice reads through. */
82
+ --motion-ghost-opacity: 0.5;
83
+
84
+ /* Two-clock entrances ink quickly and settle more slowly. */
85
+ --motion-entrance-ring-fade-dur: 700ms;
86
+ --motion-entrance-ring-move-dur: 900ms;
87
+ --motion-entrance-ring-ease: cubic-bezier(0.2, 0.72, 0.18, 1);
88
+ --motion-entrance-engine-fade-dur: 400ms;
89
+ --motion-entrance-engine-move-dur: 750ms;
90
+ --motion-entrance-engine-ease: cubic-bezier(0.16, 0.78, 0.24, 1);
91
+ --motion-entrance-stagger: 120ms;
92
+
93
+ /* Bloom launches engines clockwise from the center and resolves labels
94
+ before the final intersect mark. Shared timings alias entrance tokens. */
95
+ --motion-bloom-ring-fade-dur: var(--motion-entrance-ring-fade-dur);
96
+ --motion-bloom-ring-move-dur: var(--motion-entrance-ring-move-dur);
97
+ --motion-bloom-ring-ease: var(--motion-entrance-ring-ease);
98
+ --motion-bloom-ring-scale: 0.94;
99
+ --motion-bloom-engine-delay: 150ms;
100
+ --motion-bloom-stagger: var(--motion-entrance-stagger);
101
+ --motion-bloom-engine-fade-dur: var(--motion-entrance-engine-fade-dur);
102
+ --motion-bloom-engine-move-dur: var(--motion-entrance-engine-move-dur);
103
+ --motion-bloom-engine-ease: var(--motion-entrance-engine-ease);
104
+ --motion-bloom-engine-seed: 0.12;
105
+ --motion-bloom-label-delay: 340ms;
106
+ --motion-bloom-label-dur: 350ms;
107
+ --motion-bloom-label-scale: 0.96;
108
+ --motion-bloom-mark-delay: 950ms;
109
+ --motion-bloom-mark-dur: 400ms;
110
+ /* Labels and the mark use the standard ease keyword. */
111
+ --motion-bloom-resolve-ease: ease;
112
+
113
+ /* Every stage swap uses the same blur-and-rise transition. Reduced
114
+ motion renders state changes directly. */
115
+ --motion-stage-dur: 500ms;
116
+ --motion-stage-ease: var(--motion-drawer-ease);
117
+ --motion-stage-blur: 8px;
118
+ --motion-stage-rise: 24px;
119
+ --motion-stage-drop: -12px;
120
+
121
+ /* Deck cards share one clock with no stagger. Rapid input retargets
122
+ current positions instead of queuing; reduced motion reorders directly. */
123
+ --motion-deck-dur: 300ms;
124
+ --motion-deck-ease: var(--motion-drawer-ease);
125
+ }
@@ -0,0 +1,163 @@
1
+ /* Figma `ks-MarketingSite` primitive variables.
2
+ Do not edit values by hand. Consumers use the semantic layer instead. */
3
+
4
+ :root {
5
+ /* base */
6
+ --color-base-white: #ffffff;
7
+ --color-base-black: #000000;
8
+
9
+ /* neutrals — warm grays (paper/ink axis) */
10
+ --color-lightgray-050: #fcfbf8;
11
+ --color-lightgray-100: #f8f7f2;
12
+ --color-lightgray-200: #f0eee6;
13
+ --color-lightgray-300: #e9e7dd;
14
+ --color-lightgray-400: #e0ddd1;
15
+ --color-lightgray-500: #d6d2c2;
16
+ --color-lightgray-600: #cbc5b4;
17
+ --color-lightgray-700: #beb8a7;
18
+ --color-lightgray-800: #b1aa9a;
19
+ --color-lightgray-900: #a49d8e;
20
+ --color-lightgray-950: #989281;
21
+
22
+ --color-darkgray-050: #8e897b;
23
+ --color-darkgray-100: #847f71;
24
+ --color-darkgray-200: #6c6860;
25
+ --color-darkgray-300: #5d5a56;
26
+ --color-darkgray-400: #4f4d4a;
27
+ --color-darkgray-500: #444240;
28
+ --color-darkgray-600: #3a3836;
29
+ --color-darkgray-700: #2f2e2d;
30
+ --color-darkgray-800: #242323;
31
+ --color-darkgray-900: #1d1c1c;
32
+ --color-darkgray-950: #141313;
33
+
34
+ /* hues (100 light -> 800 dark) */
35
+ --color-orange-100: #fff5ec;
36
+ --color-orange-200: #ffebd9;
37
+ --color-orange-250: #ffcaa3;
38
+ --color-orange-300: #ffbb8a;
39
+ --color-orange-400: #f57e56;
40
+ --color-orange-500: #cf5330;
41
+ --color-orange-600: #a03722;
42
+ --color-orange-700: #6e271d;
43
+ --color-orange-800: #3c1618;
44
+
45
+ --color-red-100: #fff1ec;
46
+ --color-red-200: #ffe8e0;
47
+ --color-red-300: #ffb2a3;
48
+ --color-red-400: #f55c47;
49
+ --color-red-500: #cb452f;
50
+ --color-red-600: #9f3722;
51
+ --color-red-700: #792b20;
52
+ --color-red-800: #3c1618;
53
+
54
+ --color-yellow-100: #fdf5e3;
55
+ --color-yellow-200: #fceac6;
56
+ --color-yellow-250: #fadb9e;
57
+ --color-yellow-300: #f7ca6f;
58
+ --color-yellow-400: #f5b83d;
59
+ --color-yellow-500: #dc9c19;
60
+ --color-yellow-600: #9f7318;
61
+ --color-yellow-700: #70531a;
62
+ --color-yellow-800: #3a2a0e;
63
+
64
+ --color-green-100: #eefdec;
65
+ --color-green-200: #dcfbd9;
66
+ --color-green-300: #a7f0b4;
67
+ --color-green-400: #66cc86;
68
+ --color-green-500: #46a56d;
69
+ --color-green-600: #267d54;
70
+ --color-green-700: #16573d;
71
+ --color-green-800: #063126;
72
+
73
+ --color-teal-100: #e9f6f3;
74
+ /* The teal ramp alone carries the intermediate 150/250/450/550 stops. */
75
+ --color-teal-150: #dbf0eb;
76
+ --color-teal-200: #d2ede6;
77
+ --color-teal-250: #aadfd7;
78
+ --color-teal-300: #8cd4c9;
79
+ --color-teal-400: #5bc3b3;
80
+ --color-teal-450: #4cb3a3;
81
+ --color-teal-500: #4aac9d;
82
+ --color-teal-550: #409689;
83
+ --color-teal-600: #318175;
84
+ --color-teal-700: #236058;
85
+ --color-teal-800: #0d2a28;
86
+
87
+ --color-blue-100: #edf8ff;
88
+ --color-blue-150: #dbf1ff;
89
+ --color-blue-200: #cdebfe;
90
+ --color-blue-250: #b2d6ff;
91
+ --color-blue-300: #a3ceff;
92
+ --color-blue-350: #8fc3ff;
93
+ --color-blue-400: #3393ff;
94
+ --color-blue-500: #307be8;
95
+ --color-blue-600: #2566d0;
96
+ --color-blue-700: #24509e;
97
+ --color-blue-800: #0f223d;
98
+
99
+ --color-purple-100: #f8f3ff;
100
+ --color-purple-200: #f0e8ff;
101
+ --color-purple-300: #d8c2ff;
102
+ --color-purple-350: #cbadff;
103
+ --color-purple-400: #9c69ea;
104
+ --color-purple-500: #8552c9;
105
+ --color-purple-600: #6e3ca7;
106
+ --color-purple-700: #4f2573;
107
+ --color-purple-800: #2f0d3f;
108
+
109
+ --color-pink-100: #fceef2;
110
+ --color-pink-200: #f9dce4;
111
+ --color-pink-250: #fec3d8;
112
+ --color-pink-300: #feaac8;
113
+ --color-pink-400: #f38bb0;
114
+ --color-pink-500: #da749b;
115
+ --color-pink-600: #bd527e;
116
+ --color-pink-700: #783551;
117
+ --color-pink-800: #3d1324;
118
+
119
+ --color-brown-100: #f6f1ee;
120
+ --color-brown-200: #e5d7cc;
121
+ --color-brown-300: #cbaf9a;
122
+ --color-brown-400: #ad8261;
123
+ --color-brown-500: #946b4d;
124
+ --color-brown-600: #72523b;
125
+ --color-brown-700: #513b2a;
126
+ --color-brown-800: #2f2218;
127
+
128
+ /* 4px spacing scale. The grid tick is derived geometry, not a token. */
129
+ --spacing-0: 0px;
130
+ --spacing-0-5: 2px;
131
+ --spacing-1: 4px;
132
+ --spacing-1-5: 6px;
133
+ --spacing-2: 8px;
134
+ --spacing-2-5: 10px;
135
+ --spacing-3: 12px;
136
+ --spacing-4: 16px;
137
+ --spacing-5: 20px;
138
+ --spacing-6: 24px;
139
+ --spacing-8: 32px;
140
+ --spacing-10: 40px;
141
+ --spacing-12: 48px;
142
+ --spacing-16: 64px;
143
+ --spacing-18: 72px;
144
+ --spacing-20: 80px;
145
+ --spacing-24: 96px;
146
+ --spacing-32: 128px;
147
+ --spacing-40: 160px;
148
+ --spacing-48: 192px;
149
+ --spacing-56: 224px;
150
+ --spacing-64: 256px;
151
+ --spacing-80: 320px;
152
+ --spacing-96: 384px;
153
+ --spacing-120: 480px;
154
+ --spacing-140: 560px;
155
+ --spacing-160: 640px;
156
+ --spacing-180: 720px;
157
+ --spacing-192: 768px;
158
+ --spacing-256: 1024px;
159
+ --spacing-320: 1280px;
160
+ --spacing-360: 1440px;
161
+ --spacing-400: 1600px;
162
+ --spacing-480: 1920px;
163
+ }
@@ -0,0 +1,153 @@
1
+ /* Semantic tokens from the Figma color, spacing, radius, and effect
2
+ collections. Only light mode is wired. nav/* and badge/* remain
3
+ product-app tokens. */
4
+
5
+ :root {
6
+ /* bg — low = closest to page background */
7
+ --color-bg-000: var(--color-base-white);
8
+ --color-bg-050: var(--color-lightgray-050);
9
+ --color-bg-100: var(--color-lightgray-100); /* default page bg */
10
+ --color-bg-200: var(--color-lightgray-200); /* raised / card bg */
11
+ --color-bg-300: var(--color-lightgray-300);
12
+ --color-bg-400: var(--color-lightgray-400);
13
+ --color-bg-500: var(--color-lightgray-500);
14
+ --color-bg-600: var(--color-lightgray-600);
15
+
16
+ /* text */
17
+ --color-text-000: var(--color-darkgray-800); /* strongest ink */
18
+ --color-text-050: var(--color-darkgray-700);
19
+ --color-text-100: var(--color-darkgray-600); /* headings / primary */
20
+ --color-text-200: var(--color-darkgray-400); /* body */
21
+ --color-text-300: var(--color-darkgray-300); /* body, most used */
22
+ --color-text-400: var(--color-darkgray-100); /* secondary */
23
+ --color-text-500: var(--color-lightgray-950); /* tertiary / placeholder */
24
+ --color-text-600: var(--color-lightgray-800); /* disabled */
25
+
26
+ /* border — 000 is the grid hairline */
27
+ --color-border-000: var(--color-lightgray-300);
28
+ --color-border-050: var(--color-lightgray-400);
29
+ --color-border-100: var(--color-lightgray-500);
30
+ --color-border-200: var(--color-lightgray-600);
31
+ --color-border-300: var(--color-lightgray-700);
32
+ --color-border-400: var(--color-lightgray-950);
33
+ --color-border-500: var(--color-darkgray-200);
34
+
35
+ /* alpha — "black" means ink-colored, "white" means paper-colored */
36
+ --color-alpha-black-00: rgba(0, 0, 0, 0.001);
37
+ --color-alpha-black-05: rgba(0, 0, 0, 0.05);
38
+ --color-alpha-black-10: rgba(0, 0, 0, 0.1);
39
+ --color-alpha-black-20: rgba(0, 0, 0, 0.2);
40
+ --color-alpha-black-30: rgba(0, 0, 0, 0.3);
41
+ --color-alpha-black-40: rgba(0, 0, 0, 0.4);
42
+ --color-alpha-black-50: rgba(0, 0, 0, 0.5);
43
+ --color-alpha-black-60: rgba(0, 0, 0, 0.6);
44
+ --color-alpha-black-70: rgba(0, 0, 0, 0.7);
45
+ --color-alpha-black-80: rgba(0, 0, 0, 0.8);
46
+ --color-alpha-black-90: rgba(0, 0, 0, 0.9);
47
+ --color-alpha-black-100: #000000;
48
+ --color-alpha-white-00: rgba(255, 255, 255, 0.001);
49
+ --color-alpha-white-05: rgba(255, 255, 255, 0.05);
50
+ --color-alpha-white-10: rgba(255, 255, 255, 0.1);
51
+ --color-alpha-white-20: rgba(255, 255, 255, 0.2);
52
+ --color-alpha-white-30: rgba(255, 255, 255, 0.3);
53
+ --color-alpha-white-40: rgba(255, 255, 255, 0.4);
54
+ --color-alpha-white-50: rgba(255, 255, 255, 0.5);
55
+ --color-alpha-white-60: rgba(255, 255, 255, 0.6);
56
+ --color-alpha-white-70: rgba(255, 255, 255, 0.7);
57
+ --color-alpha-white-80: rgba(255, 255, 255, 0.8);
58
+ --color-alpha-white-90: rgba(255, 255, 255, 0.9);
59
+ --color-alpha-white-100: #ffffff;
60
+
61
+ /* status */
62
+ --color-success-000: var(--color-green-100);
63
+ --color-success-100: var(--color-green-200);
64
+ --color-success-200: var(--color-green-300);
65
+ --color-success-300: var(--color-green-400);
66
+ --color-success-400: var(--color-green-500);
67
+ --color-success-500: var(--color-green-700);
68
+ --color-warning-000: var(--color-yellow-100);
69
+ --color-warning-100: var(--color-yellow-200);
70
+ --color-warning-200: var(--color-yellow-300);
71
+ --color-warning-300: var(--color-yellow-400);
72
+ --color-warning-400: var(--color-yellow-500);
73
+ --color-warning-500: var(--color-yellow-700);
74
+ --color-danger-000: var(--color-red-100);
75
+ --color-danger-100: var(--color-red-200);
76
+ --color-danger-200: var(--color-red-300);
77
+ --color-danger-300: var(--color-red-400);
78
+ --color-danger-400: var(--color-red-500);
79
+ --color-danger-500: var(--color-red-700);
80
+
81
+ /* spacing semantics (02 spacing) — --space-xl is the 16px grid cell */
82
+ --space-none: var(--spacing-0);
83
+ --space-2xs: var(--spacing-0-5);
84
+ --space-xs: var(--spacing-1);
85
+ --space-sm: var(--spacing-1-5);
86
+ --space-md: var(--spacing-2);
87
+ --space-lg: var(--spacing-3);
88
+ --space-xl: var(--spacing-4);
89
+ --space-2xl: var(--spacing-5);
90
+ --space-3xl: var(--spacing-6);
91
+ --space-4xl: var(--spacing-8);
92
+ --space-5xl: var(--spacing-10);
93
+ --space-6xl: var(--spacing-12);
94
+ --space-7xl: var(--spacing-16);
95
+ --space-8xl: var(--spacing-18);
96
+ --space-9xl: var(--spacing-20);
97
+ --space-10xl: var(--spacing-24);
98
+ --space-11xl: var(--spacing-32);
99
+ --space-12xl: var(--spacing-40);
100
+
101
+ /* radii (03 radii) */
102
+ --radius-none: var(--spacing-0);
103
+ --radius-2xs: var(--spacing-0-5);
104
+ --radius-xs: var(--spacing-1);
105
+ --radius-sm: var(--spacing-1-5);
106
+ --radius-md: var(--spacing-2);
107
+ --radius-lg: var(--spacing-2-5);
108
+ --radius-xl: var(--spacing-3);
109
+ --radius-2xl: var(--spacing-4);
110
+ --radius-3xl: var(--spacing-5);
111
+ --radius-4xl: var(--spacing-6);
112
+ --radius-full: 9999px;
113
+
114
+ /* Shadow ink is a deliberate warm near-black outside the palette. */
115
+ --shadow-ink: rgba(85, 77, 68, 0.15);
116
+ --shadow-hard-square: 4px 4px 0 0 var(--shadow-ink);
117
+ --shadow-hard-square-md: 3px 3px 0 0 var(--shadow-ink);
118
+ /* The 1px step uses its drawn 0.2 alpha, unlike the larger steps. */
119
+ --shadow-hard-square-xs: 1px 1px 0 0 rgba(85, 77, 68, 0.2);
120
+ /* Zero-offset shadows preserve structure for smooth interpolation. */
121
+ --shadow-hard-square-0: 0 0 0 0 var(--shadow-ink);
122
+ --shadow-hard-square-md-0: 0 0 0 0 var(--shadow-ink);
123
+ /* The web-swatch hairline uses palette ink, unlike hard shadows. */
124
+ --shadow-web-swatch: 0 1px 2px 0 rgba(108, 104, 96, 0.05);
125
+ }
126
+
127
+ /* Constants shared by more than one file. Section-local constants live
128
+ at the top of the section's own file. */
129
+ :root {
130
+ --ring-w: 4px;
131
+ --motion-hover-duration: 150ms;
132
+ --motion-hover-ease: ease-in-out;
133
+ --btn-glyph-slide: calc(var(--fitem-gap-hover) - var(--fitem-gap));
134
+ --btn-glyph-slide-dur: var(--knav-ink-dur);
135
+ --fitem-gap: 3px;
136
+ --fitem-gap-hover: 5px;
137
+ --z-raised: 10;
138
+ --z-sticky: 20;
139
+ --knav-bar-h: 44px;
140
+ --knav-logomark: 18px;
141
+ --hx-wm-w: 3.9563em;
142
+ --hx-wm-h: 0.8031em;
143
+ --hx-wm-drop: 0.19045;
144
+ --hx-d-h1a: 80ms;
145
+ --hx-d-h1b: 190ms;
146
+ --hx-d-sub1: 330ms;
147
+ --hx-d-cta: 490ms;
148
+ --hx-d-rect: 620ms;
149
+ --ps-snap-dur: var(--motion-snap-dur);
150
+ --ps-snap-ease: var(--motion-snap-ease);
151
+ --btn-inline-advance: 4px;
152
+ --csc-img-zoom: 1%;
153
+ }