create-abcart-theme 0.10.1 → 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 (251) hide show
  1. package/CHANGELOG.md +133 -127
  2. package/LICENSE +202 -202
  3. package/NOTICE +2 -2
  4. package/README.md +65 -65
  5. package/bin/create-abcart-theme.mjs +4 -4
  6. package/package.json +49 -49
  7. package/src/args.mjs +113 -113
  8. package/src/banner.mjs +21 -21
  9. package/src/cli.mjs +119 -119
  10. package/src/create.mjs +85 -82
  11. package/src/package-manager.mjs +32 -32
  12. package/src/style.mjs +17 -17
  13. package/templates/default/.agents/skills/{wocart-docs → abcart-docs}/SKILL.md +146 -146
  14. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/SKILL.md +58 -58
  15. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/inputs-and-rights.md +47 -47
  16. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/layout-rtl-and-phone.md +36 -36
  17. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/measure-the-design.md +60 -60
  18. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/tokens-sections-content.md +103 -103
  19. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/verify-and-report.md +102 -102
  20. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/scripts/compare-design.cjs +230 -230
  21. package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/scripts/qa-pages.cjs +219 -219
  22. package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -125
  23. package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -370
  24. package/templates/default/.dev.vars.example +12 -12
  25. package/templates/default/AGENTS.md +240 -240
  26. package/templates/default/README.md +184 -184
  27. package/templates/default/_gitignore +11 -11
  28. package/templates/default/astro.config.mjs +85 -85
  29. package/templates/default/package.json +36 -36
  30. package/templates/default/public/fonts/OFL.txt +96 -96
  31. package/templates/default/src/actions/index.ts +22 -22
  32. package/templates/default/src/components/cart/AddToCartButton.astro +45 -45
  33. package/templates/default/src/components/cart/CartDrawer.astro +47 -47
  34. package/templates/default/src/components/cart/CartSummary.astro +11 -11
  35. package/templates/default/src/components/cart/FreeShipping.astro +7 -7
  36. package/templates/default/src/components/checkout/CheckoutMain.astro +29 -29
  37. package/templates/default/src/components/checkout/OrderForm.astro +280 -280
  38. package/templates/default/src/components/checkout/ThankYouMain.astro +68 -68
  39. package/templates/default/src/components/landing/LandingImages.astro +51 -51
  40. package/templates/default/src/components/landing/LandingOrder.astro +46 -46
  41. package/templates/default/src/components/landing/LandingProduct.astro +41 -41
  42. package/templates/default/src/components/listing/ListingMain.astro +93 -93
  43. package/templates/default/src/components/listing/PageMain.astro +52 -52
  44. package/templates/default/src/components/listing/Pagination.astro +31 -31
  45. package/templates/default/src/components/listing/SortControl.astro +35 -35
  46. package/templates/default/src/components/product/BuyBox.astro +96 -96
  47. package/templates/default/src/components/product/Description.astro +24 -24
  48. package/templates/default/src/components/product/Gallery.astro +66 -66
  49. package/templates/default/src/components/product/MobileBuyBar.astro +29 -29
  50. package/templates/default/src/components/product/OfferChoice.astro +66 -66
  51. package/templates/default/src/components/product/ProductMain.astro +40 -40
  52. package/templates/default/src/components/product/ProductReviews.astro +72 -72
  53. package/templates/default/src/components/product/RelatedProducts.astro +30 -30
  54. package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -13
  55. package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -20
  56. package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -19
  57. package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -33
  58. package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -12
  59. package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -30
  60. package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -23
  61. package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -16
  62. package/templates/default/src/components/product/blocks/StockBlock.astro +22 -22
  63. package/templates/default/src/components/product/blocks/TextBlock.astro +11 -11
  64. package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -20
  65. package/templates/default/src/components/reviews/ReviewCard.astro +46 -46
  66. package/templates/default/src/components/reviews/ReviewForm.astro +113 -113
  67. package/templates/default/src/components/reviews/VoiceNote.astro +60 -60
  68. package/templates/default/src/components/sections/CollectionCards.astro +65 -65
  69. package/templates/default/src/components/sections/Countdown.astro +57 -57
  70. package/templates/default/src/components/sections/Faq.astro +44 -44
  71. package/templates/default/src/components/sections/FeaturedProduct.astro +71 -71
  72. package/templates/default/src/components/sections/Hero.astro +99 -99
  73. package/templates/default/src/components/sections/ImageBanner.astro +46 -46
  74. package/templates/default/src/components/sections/ProductGrid.astro +47 -47
  75. package/templates/default/src/components/sections/RichText.astro +35 -35
  76. package/templates/default/src/components/sections/Steps.astro +46 -46
  77. package/templates/default/src/components/sections/Testimonials.astro +57 -57
  78. package/templates/default/src/components/shell/Footer.astro +80 -80
  79. package/templates/default/src/components/shell/Header.astro +89 -89
  80. package/templates/default/src/components/shell/LanguageMenu.astro +33 -33
  81. package/templates/default/src/components/shell/MobileMenu.astro +65 -65
  82. package/templates/default/src/components/shell/SearchDialog.astro +19 -19
  83. package/templates/default/src/components/shell/TopBar.astro +54 -54
  84. package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -111
  85. package/templates/default/src/components/store/ContactMain.astro +79 -79
  86. package/templates/default/src/components/store/SearchMain.astro +56 -56
  87. package/templates/default/src/components/store/TrackOrderMain.astro +161 -161
  88. package/templates/default/src/components/surface/Area.astro +20 -20
  89. package/templates/default/src/components/surface/PreviewBridge.astro +24 -24
  90. package/templates/default/src/components/surface/Sections.astro +35 -35
  91. package/templates/default/src/components/ui/Breadcrumbs.astro +36 -36
  92. package/templates/default/src/components/ui/Button.astro +45 -45
  93. package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -24
  94. package/templates/default/src/components/ui/Icon.astro +93 -93
  95. package/templates/default/src/components/ui/Logo.astro +36 -36
  96. package/templates/default/src/components/ui/Photo.astro +46 -46
  97. package/templates/default/src/components/ui/Price.astro +24 -24
  98. package/templates/default/src/components/ui/ProductCard.astro +41 -41
  99. package/templates/default/src/components/ui/Rating.astro +22 -22
  100. package/templates/default/src/components/ui/Section.astro +34 -34
  101. package/templates/default/src/components/ui/SectionHeading.astro +19 -19
  102. package/templates/default/src/env.d.ts +23 -23
  103. package/templates/default/src/layouts/StoreLayout.astro +145 -145
  104. package/templates/default/src/lib/browser-copy.ts +37 -37
  105. package/templates/default/src/lib/context.ts +89 -89
  106. package/templates/default/src/lib/coupon-notice.ts +47 -47
  107. package/templates/default/src/lib/i18n.ts +32 -32
  108. package/templates/default/src/lib/images.ts +38 -38
  109. package/templates/default/src/lib/listing-query.ts +41 -41
  110. package/templates/default/src/lib/money.ts +16 -16
  111. package/templates/default/src/lib/motion.ts +16 -16
  112. package/templates/default/src/lib/nav.ts +26 -26
  113. package/templates/default/src/lib/offer-tiles.ts +105 -105
  114. package/templates/default/src/lib/order-outcome.ts +66 -66
  115. package/templates/default/src/lib/otp-message.ts +21 -21
  116. package/templates/default/src/lib/products.ts +38 -38
  117. package/templates/default/src/lib/review-refusals.ts +31 -31
  118. package/templates/default/src/lib/store.ts +31 -31
  119. package/templates/default/src/lib/whatsapp.ts +29 -29
  120. package/templates/default/src/middleware.ts +23 -23
  121. package/templates/default/src/pages/404.astro +22 -22
  122. package/templates/default/src/pages/{wocart-preview.astro → abcart-preview.astro} +43 -43
  123. package/templates/default/src/pages/{wocart-revalidate.ts → abcart-revalidate.ts} +10 -10
  124. package/templates/default/src/pages/{wocart-styles.css.ts → abcart-styles.css.ts} +5 -5
  125. package/templates/default/src/pages/{wocart-theme.json.ts → abcart-theme.json.ts} +5 -5
  126. package/templates/default/src/pages/api/abandoned/convert.ts +4 -4
  127. package/templates/default/src/pages/api/abandoned/upsert.ts +4 -4
  128. package/templates/default/src/pages/api/cart/validate.ts +4 -4
  129. package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -4
  130. package/templates/default/src/pages/api/otp/send.ts +4 -4
  131. package/templates/default/src/pages/api/otp/verify.ts +4 -4
  132. package/templates/default/src/pages/api/reviews/[productId].ts +3 -3
  133. package/templates/default/src/pages/api/reviews/eligibility.ts +3 -3
  134. package/templates/default/src/pages/api/reviews/submit.ts +3 -3
  135. package/templates/default/src/pages/api/reviews/upload.ts +3 -3
  136. package/templates/default/src/pages/category/[slug].astro +20 -20
  137. package/templates/default/src/pages/checkout.astro +25 -25
  138. package/templates/default/src/pages/collections/[handle].astro +20 -20
  139. package/templates/default/src/pages/contact.astro +17 -17
  140. package/templates/default/src/pages/index.astro +9 -9
  141. package/templates/default/src/pages/lp/[slug].astro +47 -47
  142. package/templates/default/src/pages/pages/[slug].astro +16 -16
  143. package/templates/default/src/pages/products/[handle].astro +37 -37
  144. package/templates/default/src/pages/products/index.astro +15 -15
  145. package/templates/default/src/pages/robots.txt.ts +9 -9
  146. package/templates/default/src/pages/search.astro +19 -19
  147. package/templates/default/src/pages/sitemap.xml.ts +12 -12
  148. package/templates/default/src/pages/thank-you.astro +33 -33
  149. package/templates/default/src/pages/track-order.astro +17 -17
  150. package/templates/default/src/scripts/cart.ts +371 -371
  151. package/templates/default/src/scripts/checkout/coupon.ts +96 -96
  152. package/templates/default/src/scripts/checkout/delivery.ts +86 -86
  153. package/templates/default/src/scripts/checkout/form.ts +54 -54
  154. package/templates/default/src/scripts/checkout/otp.ts +106 -106
  155. package/templates/default/src/scripts/checkout/picker.ts +169 -169
  156. package/templates/default/src/scripts/checkout/quote.ts +169 -169
  157. package/templates/default/src/scripts/checkout/submit.ts +113 -113
  158. package/templates/default/src/scripts/checkout/tracking.ts +74 -74
  159. package/templates/default/src/scripts/countdown.ts +29 -29
  160. package/templates/default/src/scripts/events.ts +4 -4
  161. package/templates/default/src/scripts/hero.ts +49 -49
  162. package/templates/default/src/scripts/listing.ts +13 -13
  163. package/templates/default/src/scripts/order-form.ts +100 -100
  164. package/templates/default/src/scripts/product.ts +306 -306
  165. package/templates/default/src/scripts/public-config.ts +79 -79
  166. package/templates/default/src/scripts/reviews.ts +358 -358
  167. package/templates/default/src/scripts/site.ts +131 -131
  168. package/templates/default/src/scripts/thank-you.ts +11 -11
  169. package/templates/default/src/scripts/voice-note.ts +94 -94
  170. package/templates/default/src/styles/base.css +1030 -1030
  171. package/templates/default/src/styles/checkout.css +1111 -1111
  172. package/templates/default/src/styles/global.css +12 -12
  173. package/templates/default/src/styles/product.css +871 -871
  174. package/templates/default/src/styles/reviews.css +533 -533
  175. package/templates/default/src/styles/sections.css +931 -931
  176. package/templates/default/src/styles/shell.css +970 -970
  177. package/templates/default/src/styles/tokens.css +583 -583
  178. package/templates/default/src/theme/api-routes.ts +10 -10
  179. package/templates/default/src/theme/content/catalog.ts +117 -117
  180. package/templates/default/src/theme/content/checkout.ts +168 -168
  181. package/templates/default/src/theme/content/editor.ts +21 -21
  182. package/templates/default/src/theme/content/index.ts +45 -45
  183. package/templates/default/src/theme/content/reviews.ts +76 -76
  184. package/templates/default/src/theme/content/shell.ts +59 -59
  185. package/templates/default/src/theme/content/types.ts +12 -12
  186. package/templates/default/src/theme/documents/catalog.json +11 -11
  187. package/templates/default/src/theme/documents/category.json +11 -11
  188. package/templates/default/src/theme/documents/checkout.json +11 -11
  189. package/templates/default/src/theme/documents/collection.json +11 -11
  190. package/templates/default/src/theme/documents/contact.json +11 -11
  191. package/templates/default/src/theme/documents/footer.area.json +11 -11
  192. package/templates/default/src/theme/documents/header.area.json +16 -16
  193. package/templates/default/src/theme/documents/home.json +313 -313
  194. package/templates/default/src/theme/documents/landing.json +8 -8
  195. package/templates/default/src/theme/documents/page.json +11 -11
  196. package/templates/default/src/theme/documents/product.json +125 -125
  197. package/templates/default/src/theme/documents/search.json +11 -11
  198. package/templates/default/src/theme/documents/thank-you.json +11 -11
  199. package/templates/default/src/theme/documents/track-order.json +11 -11
  200. package/templates/default/src/theme/fields.ts +61 -61
  201. package/templates/default/src/theme/key.ts +11 -11
  202. package/templates/default/src/theme/labels.ts +231 -231
  203. package/templates/default/src/theme/locales.ts +11 -11
  204. package/templates/default/src/theme/palette.ts +14 -14
  205. package/templates/default/src/theme/sections/collection-cards.ts +65 -65
  206. package/templates/default/src/theme/sections/faq.ts +74 -74
  207. package/templates/default/src/theme/sections/featured-product.ts +42 -42
  208. package/templates/default/src/theme/sections/hero.ts +47 -47
  209. package/templates/default/src/theme/sections/image-banner.ts +25 -25
  210. package/templates/default/src/theme/sections/index.ts +40 -40
  211. package/templates/default/src/theme/sections/landing.ts +150 -150
  212. package/templates/default/src/theme/sections/listing.ts +84 -84
  213. package/templates/default/src/theme/sections/product-grid.ts +42 -42
  214. package/templates/default/src/theme/sections/product.ts +297 -297
  215. package/templates/default/src/theme/sections/rich-text.ts +39 -39
  216. package/templates/default/src/theme/sections/shared.ts +54 -54
  217. package/templates/default/src/theme/sections/shell.ts +85 -85
  218. package/templates/default/src/theme/sections/store-pages.ts +101 -101
  219. package/templates/default/src/theme/sections/testimonials.ts +61 -61
  220. package/templates/default/src/theme/sections/thank-you.ts +35 -35
  221. package/templates/default/src/theme/settings.ts +124 -124
  222. package/templates/default/src/theme/theme.ts +65 -65
  223. package/templates/default/tests/fixtures/canvas-tote.json +62 -62
  224. package/templates/default/tests/fixtures/linen-shirt.json +128 -128
  225. package/templates/default/tests/unit/checkout.test.ts +241 -241
  226. package/templates/default/tests/unit/contract.test.ts +170 -169
  227. package/templates/default/tests/unit/contrast.test.ts +68 -68
  228. package/templates/default/tests/unit/copy.test.ts +101 -101
  229. package/templates/default/tests/unit/design-values.test.ts +95 -95
  230. package/templates/default/tests/unit/editability.test.ts +180 -180
  231. package/templates/default/tests/unit/fixtures.ts +91 -91
  232. package/templates/default/tests/unit/footer.test.ts +54 -54
  233. package/templates/default/tests/unit/guards.test.ts +340 -340
  234. package/templates/default/tests/unit/images.test.ts +26 -26
  235. package/templates/default/tests/unit/landing.test.ts +151 -151
  236. package/templates/default/tests/unit/languages.test.ts +42 -42
  237. package/templates/default/tests/unit/middleware.test.ts +53 -53
  238. package/templates/default/tests/unit/offer-tiles.test.ts +75 -75
  239. package/templates/default/tests/unit/render.ts +38 -38
  240. package/templates/default/tests/unit/reviews.test.ts +25 -25
  241. package/templates/default/tests/unit/rules.test.ts +59 -59
  242. package/templates/default/tests/unit/source.ts +75 -75
  243. package/templates/default/tests/unit/store-pages.test.ts +147 -147
  244. package/templates/default/tests/unit/studio.test.ts +202 -202
  245. package/templates/default/tests/unit/testimonials.test.ts +52 -52
  246. package/templates/default/tests/unit/thank-you.test.ts +52 -52
  247. package/templates/default/tests/unit/tracking.test.ts +29 -29
  248. package/templates/default/tests/unit/voice-note.test.ts +42 -42
  249. package/templates/default/tsconfig.json +13 -13
  250. package/templates/default/vitest.config.ts +15 -15
  251. package/templates/default/wrangler.jsonc +16 -16
@@ -1,931 +1,931 @@
1
- /* ---------- hero ---------- */
2
-
3
- .hero {
4
- position: relative;
5
- isolation: isolate;
6
- overflow: hidden;
7
- min-height: 560px;
8
- height: 82svh;
9
- max-height: 820px;
10
- background: var(--soft);
11
- }
12
-
13
- .hero--medium {
14
- min-height: 460px;
15
- height: 64svh;
16
- max-height: 620px;
17
- }
18
-
19
- .hero__slide {
20
- position: absolute;
21
- inset: 0;
22
- display: grid;
23
- opacity: 0;
24
- visibility: hidden;
25
- transition: var(--motion-hero-slide);
26
- }
27
-
28
- .hero__slide[data-active="true"] {
29
- z-index: 1;
30
- opacity: 1;
31
- visibility: visible;
32
- }
33
-
34
- .hero__media,
35
- .hero__media img {
36
- position: absolute;
37
- inset: 0;
38
- width: 100%;
39
- height: 100%;
40
- object-fit: cover;
41
- }
42
-
43
- /* A veil in the page's own colour keeps the words readable on any photo. */
44
- .hero__media::after {
45
- content: "";
46
- position: absolute;
47
- inset: 0;
48
- background: var(--surface-hero-media-after);
49
- }
50
-
51
- [dir="rtl"] .hero__media::after {
52
- background: var(--surface-hero-media-after-rtl);
53
- }
54
-
55
- .hero__inner {
56
- position: relative;
57
- z-index: 2;
58
- display: flex;
59
- align-items: center;
60
- width: 100%;
61
- max-width: 1320px;
62
- margin-inline: auto;
63
- padding: calc(var(--header-h) + 52px) var(--gutter) 64px;
64
- }
65
-
66
- .hero--center .hero__inner {
67
- justify-content: center;
68
- text-align: center;
69
- }
70
-
71
- .hero__content {
72
- max-width: 620px;
73
- }
74
-
75
- .hero__title {
76
- color: var(--heading);
77
- font-family: var(--font-display);
78
- font-size: var(--text-hero-title);
79
- font-weight: var(--display-weight);
80
- line-height: var(--leading-hero-title);
81
- letter-spacing: var(--display-tracking);
82
- text-wrap: balance;
83
- }
84
-
85
- /* Arabic letters reach far below the line (the dots of ي): room scaled to the title. */
86
- [dir="rtl"] .hero__title {
87
- line-height: var(--leading-hero-title-rtl);
88
- padding-block-end: 0.18em;
89
- }
90
-
91
- .hero__title .accent {
92
- display: inline-block;
93
- }
94
-
95
- .hero__subtitle {
96
- max-width: 480px;
97
- margin-block-start: 18px;
98
- color: color-mix(in oklab, var(--ink) 86%, var(--bg));
99
- font-size: var(--text-hero-subtitle);
100
- }
101
-
102
- .hero--center .hero__subtitle {
103
- margin-inline: auto;
104
- }
105
-
106
- .hero__actions {
107
- display: flex;
108
- flex-wrap: wrap;
109
- gap: 12px;
110
- margin-block-start: 28px;
111
- }
112
-
113
- .hero--center .hero__actions {
114
- justify-content: center;
115
- }
116
-
117
- .hero__actions .btn {
118
- box-shadow: var(--btn-glow);
119
- }
120
-
121
- .hero__dots {
122
- position: absolute;
123
- inset-block-end: 22px;
124
- inset-inline: 0;
125
- z-index: 3;
126
- display: flex;
127
- justify-content: center;
128
- gap: 4px;
129
- }
130
-
131
- .hero__dot {
132
- display: grid;
133
- place-items: center;
134
- width: 28px;
135
- height: 28px;
136
- }
137
-
138
- .hero__dot::before {
139
- content: "";
140
- width: 9px;
141
- height: 9px;
142
- border-radius: var(--r-pill);
143
- background: var(--surface-hero-dot-before);
144
- transition: var(--motion-hero-dot-before);
145
- }
146
-
147
- .hero__dot[aria-current="true"]::before {
148
- width: 26px;
149
- background: var(--accent);
150
- }
151
-
152
- .hero__arrow {
153
- position: absolute;
154
- inset-block-start: 50%;
155
- z-index: 3;
156
- display: grid;
157
- place-items: center;
158
- width: 46px;
159
- height: 46px;
160
- border-radius: var(--r-round);
161
- background: var(--surface-hero-arrow);
162
- color: var(--heading);
163
- box-shadow: var(--shadow);
164
- opacity: 0;
165
- translate: 0 -50%;
166
- transition: opacity var(--duration) var(--ease), background-color var(--duration) var(--ease);
167
- }
168
-
169
- .hero:hover .hero__arrow,
170
- .hero:focus-within .hero__arrow {
171
- opacity: 1;
172
- }
173
-
174
- .hero__arrow--prev {
175
- inset-inline-start: 18px;
176
- }
177
-
178
- .hero__arrow--next {
179
- inset-inline-end: 18px;
180
- }
181
-
182
- /* Without a photo the words are the hero: centred, and no taller than they need. */
183
- .hero--plain {
184
- height: auto;
185
- min-height: 0;
186
- }
187
-
188
- .hero--plain .hero__slide {
189
- position: relative;
190
- }
191
-
192
- .hero--plain .hero__slide:not([data-active="true"]) {
193
- position: absolute;
194
- }
195
-
196
- .hero--plain .hero__inner {
197
- min-height: clamp(400px, 52vw, 600px);
198
- }
199
-
200
- @media (max-width: 899px) {
201
- .hero:not(.hero--plain) .hero__inner {
202
- align-items: flex-end;
203
- padding-block-end: 64px;
204
- }
205
- .hero__slide--photo .hero__media::after,
206
- [dir="rtl"] .hero__slide--photo .hero__media::after {
207
- background: var(--surface-hero-media-after-narrow);
208
- }
209
- .hero__arrow {
210
- display: none;
211
- }
212
- .hero__actions .btn {
213
- flex: 1;
214
- }
215
- }
216
-
217
- /* ---------- collection cards ---------- */
218
-
219
- .collection-grid {
220
- display: grid;
221
- grid-template-columns: repeat(2, minmax(0, 1fr));
222
- gap: 14px;
223
- }
224
-
225
- @media (min-width: 900px) {
226
- .collection-grid {
227
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
228
- gap: 20px;
229
- }
230
- }
231
-
232
- .collection-grid--large {
233
- grid-template-columns: 1fr;
234
- }
235
-
236
- @media (min-width: 700px) {
237
- .collection-grid--large {
238
- grid-template-columns: repeat(2, minmax(0, 1fr));
239
- }
240
- }
241
-
242
- .collection-card {
243
- display: grid;
244
- gap: 12px;
245
- }
246
-
247
- .collection-card__media {
248
- position: relative;
249
- display: block;
250
- overflow: hidden;
251
- aspect-ratio: 1;
252
- border-radius: var(--r-lg);
253
- background: var(--soft);
254
- }
255
-
256
- .collection-card__media img {
257
- width: 100%;
258
- height: 100%;
259
- object-fit: cover;
260
- transition: var(--motion-collection-card-media);
261
- }
262
-
263
- .collection-card:hover .collection-card__media img {
264
- transform: var(--motion-collection-card-media-hover);
265
- }
266
-
267
- .collection-card__art {
268
- position: absolute;
269
- inset: 0;
270
- display: grid;
271
- place-items: center;
272
- color: color-mix(in oklab, var(--accent) 60%, var(--bg));
273
- }
274
-
275
- .collection-card__body {
276
- display: flex;
277
- align-items: center;
278
- justify-content: space-between;
279
- gap: 10px;
280
- }
281
-
282
- .collection-card__title {
283
- color: var(--heading);
284
- font-family: var(--font-display);
285
- font-size: var(--text-collection-card-title);
286
- font-weight: var(--weight-heavy);
287
- line-height: var(--leading-collection-card-title);
288
- }
289
-
290
- .collection-card__text {
291
- display: grid;
292
- gap: 2px;
293
- }
294
-
295
- .collection-card__count {
296
- color: var(--muted);
297
- font-size: var(--text-collection-card-count);
298
- font-weight: var(--weight-semibold);
299
- }
300
-
301
- .collection-card__arrow {
302
- display: grid;
303
- place-items: center;
304
- flex: none;
305
- width: 36px;
306
- height: 36px;
307
- border-radius: var(--r-round);
308
- background: var(--soft);
309
- color: var(--accent);
310
- transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
311
- }
312
-
313
- .collection-card:hover .collection-card__arrow {
314
- background: var(--accent);
315
- color: var(--bg);
316
- }
317
-
318
- .collection-card__cta {
319
- display: none;
320
- }
321
-
322
- /* Large cards carry their words over the photo. */
323
- .collection-card--large {
324
- position: relative;
325
- overflow: hidden;
326
- border-radius: var(--r-lg);
327
- }
328
-
329
- .collection-card--large .collection-card__media {
330
- aspect-ratio: var(--shape-collection-card-media);
331
- border-radius: 0;
332
- }
333
-
334
- .collection-card--large .collection-card__body {
335
- position: absolute;
336
- inset-inline: 14px;
337
- inset-block-end: 14px;
338
- padding: 16px 18px;
339
- border-radius: var(--r);
340
- background: var(--surface-collection-card-body);
341
- -webkit-backdrop-filter: blur(8px);
342
- backdrop-filter: var(--filter-collection-card-body);
343
- }
344
-
345
- .collection-card--large .collection-card__title {
346
- font-size: var(--text-collection-card-title-large);
347
- }
348
-
349
- .collection-card--large .collection-card__cta {
350
- display: block;
351
- margin-inline-start: auto;
352
- color: var(--accent);
353
- font-weight: var(--weight-bold);
354
- font-size: var(--text-collection-card-cta);
355
- }
356
-
357
- /* ---------- image banner ---------- */
358
-
359
- .image-banner {
360
- position: relative;
361
- isolation: isolate;
362
- display: grid;
363
- place-items: center;
364
- overflow: hidden;
365
- min-height: clamp(340px, 40vw, 520px);
366
- text-align: center;
367
- }
368
-
369
- .image-banner--tall {
370
- min-height: clamp(440px, 56vw, 700px);
371
- }
372
-
373
- .image-banner--start {
374
- place-items: center start;
375
- text-align: start;
376
- }
377
-
378
- .image-banner--boxed {
379
- border-radius: var(--r-lg);
380
- }
381
-
382
- .image-banner > img {
383
- position: absolute;
384
- inset: 0;
385
- z-index: -2;
386
- width: 100%;
387
- height: 100%;
388
- object-fit: cover;
389
- }
390
-
391
- .image-banner--photo {
392
- color: var(--on-photo);
393
- }
394
-
395
- .image-banner--photo::after {
396
- content: "";
397
- position: absolute;
398
- inset: 0;
399
- z-index: -1;
400
- background: var(--surface-image-banner-photo-after);
401
- }
402
-
403
- .image-banner__inner {
404
- max-width: 760px;
405
- padding: clamp(40px, 6vw, 72px) var(--gutter);
406
- }
407
-
408
- .image-banner h2 {
409
- font-size: var(--text-image-banner);
410
- }
411
-
412
- .image-banner--photo h2,
413
- .image-banner--photo .accent {
414
- color: var(--on-photo);
415
- }
416
-
417
- .image-banner p {
418
- max-width: 560px;
419
- margin: 14px auto 0;
420
- font-size: var(--text-image-banner-text);
421
- opacity: var(--opacity-image-banner);
422
- }
423
-
424
- .image-banner--start p {
425
- margin-inline: 0;
426
- }
427
-
428
- .image-banner .btn {
429
- margin-block-start: 26px;
430
- }
431
-
432
- /* ---------- products ---------- */
433
-
434
- .product-grid {
435
- --columns: 4;
436
- display: grid;
437
- grid-template-columns: repeat(2, minmax(0, 1fr));
438
- gap: 22px 12px;
439
- }
440
-
441
- @media (min-width: 700px) {
442
- .product-grid {
443
- grid-template-columns: repeat(min(3, var(--columns)), minmax(0, 1fr));
444
- gap: 30px 18px;
445
- }
446
- }
447
-
448
- @media (min-width: 1100px) {
449
- .product-grid {
450
- grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
451
- }
452
- }
453
-
454
- /* A row the phone swipes, with the next card peeking in. */
455
- @media (max-width: 899px) {
456
- .product-grid--carousel {
457
- grid-template-columns: none;
458
- grid-auto-flow: column;
459
- grid-auto-columns: 46%;
460
- margin-inline: calc(var(--gutter) * -1);
461
- padding-inline: var(--gutter);
462
- overflow-x: auto;
463
- scroll-snap-type: x mandatory;
464
- scroll-padding-inline: var(--gutter);
465
- scrollbar-width: none;
466
- }
467
- .product-grid--carousel::-webkit-scrollbar {
468
- display: none;
469
- }
470
- .product-grid--carousel > * {
471
- scroll-snap-align: start;
472
- }
473
- }
474
-
475
- .product-card {
476
- position: relative;
477
- display: flex;
478
- flex-direction: column;
479
- min-width: 0;
480
- }
481
-
482
- .product-card__media {
483
- position: relative;
484
- display: block;
485
- overflow: hidden;
486
- aspect-ratio: 1;
487
- border-radius: var(--r-lg);
488
- background: var(--soft);
489
- }
490
-
491
- .product-card--portrait .product-card__media {
492
- aspect-ratio: var(--shape-product-card-media);
493
- }
494
-
495
- .product-card__media img {
496
- width: 100%;
497
- height: 100%;
498
- object-fit: cover;
499
- transition: var(--motion-product-card-media);
500
- }
501
-
502
- .product-card:hover .product-card__media img {
503
- transform: var(--motion-product-card-media-hover);
504
- }
505
-
506
- .product-card__placeholder {
507
- position: absolute;
508
- inset: 0;
509
- display: grid;
510
- place-items: center;
511
- background: var(--soft);
512
- color: var(--muted);
513
- }
514
-
515
- .product-card__badges {
516
- position: absolute;
517
- inset-block-start: 10px;
518
- inset-inline-start: 10px;
519
- display: flex;
520
- gap: 6px;
521
- }
522
-
523
- /* Every card of a row ends on the same line: the title keeps two lines, the button sits at the foot. */
524
- .product-card__body {
525
- display: flex;
526
- flex-direction: column;
527
- gap: 6px;
528
- flex: 1;
529
- padding: 12px 2px 0;
530
- }
531
-
532
- .product-card__title {
533
- display: -webkit-box;
534
- overflow: hidden;
535
- -webkit-box-orient: vertical;
536
- -webkit-line-clamp: 2;
537
- font-family: var(--font-body);
538
- min-height: calc(2 * 1.4em);
539
- font-size: var(--text-product-card-title);
540
- font-weight: var(--weight-semibold);
541
- line-height: var(--leading-product-card-title);
542
- }
543
-
544
- .product-card__title a::after {
545
- content: "";
546
- position: absolute;
547
- inset: 0;
548
- }
549
-
550
- .product-card .price {
551
- font-size: var(--text-price);
552
- }
553
-
554
- .product-card .btn {
555
- position: relative;
556
- z-index: 1;
557
- width: 100%;
558
- margin-block-start: auto;
559
- }
560
-
561
- .product-card .price {
562
- margin-block-end: 6px;
563
- }
564
-
565
- /* ---------- featured product ---------- */
566
-
567
- .product-detail--featured {
568
- padding: clamp(14px, 2.4vw, 28px);
569
- border-radius: var(--radius-product-detail-featured);
570
- background: var(--card);
571
- box-shadow: var(--shadow);
572
- }
573
-
574
- .product-info__title {
575
- font-size: var(--text-product-info-title);
576
- }
577
-
578
- .product-info__title a:hover {
579
- color: var(--accent);
580
- }
581
-
582
- /* ---------- testimonials ---------- */
583
-
584
- .testimonials {
585
- display: grid;
586
- gap: 14px;
587
- }
588
-
589
- @media (min-width: 760px) {
590
- .testimonials {
591
- grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
592
- gap: 20px;
593
- }
594
- }
595
-
596
- .testimonial {
597
- position: relative;
598
- display: grid;
599
- align-content: start;
600
- gap: 14px;
601
- padding: 24px;
602
- border-radius: var(--r-lg);
603
- background: var(--card);
604
- box-shadow: var(--shadow);
605
- }
606
-
607
- .testimonial::before {
608
- content: "“";
609
- position: absolute;
610
- inset-block-start: 4px;
611
- inset-inline-end: 18px;
612
- color: var(--soft);
613
- font-family: var(--font-quote);
614
- font-size: var(--text-testimonial-before);
615
- line-height: 1;
616
- }
617
-
618
- .testimonial__quote {
619
- color: var(--heading);
620
- font-size: var(--text-testimonial-quote);
621
- line-height: var(--leading-testimonial-quote);
622
- }
623
-
624
- .testimonial__top {
625
- display: flex;
626
- align-items: center;
627
- gap: 12px;
628
- margin-block-start: auto;
629
- }
630
-
631
- .testimonial__avatar {
632
- width: 46px;
633
- height: 46px;
634
- border-radius: var(--r-round);
635
- display: grid;
636
- place-items: center;
637
- flex: none;
638
- background: var(--soft);
639
- color: var(--accent);
640
- font-family: var(--font-display);
641
- font-size: var(--text-testimonial-avatar);
642
- font-weight: var(--weight-heavy);
643
- }
644
-
645
- .testimonial__name {
646
- display: block;
647
- color: var(--heading);
648
- font-weight: var(--weight-bold);
649
- }
650
-
651
- .testimonial__date {
652
- display: flex;
653
- flex-wrap: wrap;
654
- align-items: center;
655
- gap: 4px 10px;
656
- color: var(--muted);
657
- font-size: var(--text-testimonial-date);
658
- }
659
-
660
- .testimonial__product {
661
- justify-self: start;
662
- color: var(--accent);
663
- font-size: var(--text-testimonial-product);
664
- font-weight: var(--weight-bold);
665
- text-decoration: underline;
666
- text-underline-offset: 3px;
667
- }
668
-
669
- /* ---------- rich text ---------- */
670
-
671
- .rich-text {
672
- display: grid;
673
- justify-items: center;
674
- gap: 18px;
675
- text-align: center;
676
- }
677
-
678
- .rich-text .section-head {
679
- margin-block-end: 0;
680
- }
681
-
682
- .rich-text--start {
683
- justify-items: start;
684
- text-align: start;
685
- }
686
-
687
- /* ---------- questions ---------- */
688
-
689
- .faq {
690
- display: grid;
691
- gap: 10px;
692
- }
693
-
694
- .faq__item {
695
- padding-inline: 20px;
696
- border: var(--border-faq-item);
697
- border-radius: var(--r);
698
- background: var(--card);
699
- transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
700
- }
701
-
702
- .faq__item[open] {
703
- border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
704
- box-shadow: var(--shadow);
705
- }
706
-
707
- /* ---------- listings and text pages ---------- */
708
-
709
- .listing-head {
710
- max-width: 720px;
711
- margin: 0 auto clamp(20px, 3vw, 30px);
712
- text-align: center;
713
- }
714
-
715
- .listing-head--start {
716
- margin-inline: 0;
717
- text-align: start;
718
- }
719
-
720
- .listing-head h1 {
721
- font-size: var(--text-listing-head);
722
- }
723
-
724
- .listing-head p {
725
- margin-block-start: 10px;
726
- color: var(--muted);
727
- }
728
-
729
- .listing-head__count {
730
- display: inline-block;
731
- margin-block-start: 12px;
732
- padding: 4px 12px;
733
- border-radius: var(--r-pill);
734
- background: var(--soft);
735
- color: var(--accent);
736
- font-size: var(--text-listing-head-count);
737
- font-weight: var(--weight-bold);
738
- }
739
-
740
- .listing-sort {
741
- display: flex;
742
- flex-wrap: wrap;
743
- align-items: center;
744
- justify-content: flex-end;
745
- gap: 8px 10px;
746
- margin-block-end: 18px;
747
- }
748
-
749
- .listing-sort label {
750
- color: var(--muted);
751
- font-size: var(--text-listing-sort);
752
- font-weight: var(--weight-semibold);
753
- }
754
-
755
- .listing-sort .select {
756
- width: auto;
757
- min-height: 44px;
758
- font-size: var(--text-select);
759
- }
760
-
761
- .text-page {
762
- display: grid;
763
- gap: 28px;
764
- }
765
-
766
- @media (min-width: 900px) {
767
- .text-page--aside {
768
- grid-template-columns: minmax(0, 1fr) 300px;
769
- align-items: start;
770
- }
771
- }
772
-
773
- .text-page .prose h1 {
774
- margin-block-end: 18px;
775
- font-size: var(--text-prose-h1);
776
- }
777
-
778
- .side-card {
779
- display: grid;
780
- gap: 12px;
781
- padding: 22px;
782
- border-radius: var(--r-lg);
783
- background: var(--card);
784
- box-shadow: var(--shadow);
785
- }
786
-
787
- @media (min-width: 900px) {
788
- .side-card {
789
- position: sticky;
790
- inset-block-start: calc(var(--header-h) + 20px);
791
- }
792
- }
793
-
794
- .side-card h2 {
795
- font-size: var(--text-side-card);
796
- }
797
-
798
- .side-card p {
799
- color: var(--muted);
800
- font-size: var(--text-side-card-text);
801
- }
802
-
803
- .side-card__link {
804
- display: inline-flex;
805
- align-items: center;
806
- gap: 8px;
807
- color: var(--accent);
808
- font-weight: var(--weight-semibold);
809
- font-size: var(--text-side-card-link);
810
- }
811
-
812
- .contact-cards {
813
- display: grid;
814
- gap: 14px;
815
- max-width: 920px;
816
- margin-inline: auto;
817
- }
818
-
819
- @media (min-width: 700px) {
820
- .contact-cards {
821
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
822
- }
823
- }
824
-
825
- .contact-card {
826
- display: grid;
827
- justify-items: center;
828
- gap: 8px;
829
- padding: 28px 20px;
830
- border-radius: var(--r-lg);
831
- background: var(--card);
832
- box-shadow: var(--shadow);
833
- text-align: center;
834
- transition: transform var(--duration) var(--ease);
835
- }
836
-
837
- a.contact-card:hover {
838
- transform: var(--motion-contact-card-hover);
839
- }
840
-
841
- .contact-card__icon {
842
- display: grid;
843
- place-items: center;
844
- width: 58px;
845
- height: 58px;
846
- border-radius: var(--r-round);
847
- background: var(--soft);
848
- color: var(--accent);
849
- }
850
-
851
- .contact-card strong {
852
- color: var(--heading);
853
- font-size: var(--text-contact-card);
854
- }
855
-
856
- .contact-card span:last-child {
857
- overflow-wrap: anywhere;
858
- color: var(--muted);
859
- }
860
-
861
- .contact-card .contact-card__prose {
862
- white-space: pre-line;
863
- }
864
-
865
- .contact-note,
866
- .contact-none {
867
- max-width: 620px;
868
- margin: 24px auto 0;
869
- padding: 16px 20px;
870
- border-radius: var(--r);
871
- background: var(--soft);
872
- color: var(--ink);
873
- text-align: center;
874
- white-space: pre-line;
875
- }
876
-
877
- .contact-help {
878
- max-width: 620px;
879
- margin: 32px auto 0;
880
- }
881
-
882
- .contact-help h2 {
883
- margin-block-end: 12px;
884
- font-size: var(--text-contact-help);
885
- text-align: center;
886
- }
887
-
888
- .contact-help ul {
889
- display: grid;
890
- gap: 8px;
891
- padding: 0;
892
- list-style: none;
893
- }
894
-
895
- .contact-help a {
896
- display: flex;
897
- align-items: center;
898
- justify-content: space-between;
899
- gap: 12px;
900
- min-height: 56px;
901
- padding: 0 18px;
902
- border-radius: var(--r);
903
- background: var(--card);
904
- box-shadow: var(--shadow);
905
- color: var(--heading);
906
- font-weight: var(--weight-semibold);
907
- }
908
-
909
- .contact-help a:hover {
910
- color: var(--accent);
911
- }
912
-
913
- .contact-page__note {
914
- display: flex;
915
- align-items: center;
916
- justify-content: center;
917
- gap: 8px;
918
- margin-block-start: 28px;
919
- color: var(--muted);
920
- }
921
-
922
- .landing-stack {
923
- display: grid;
924
- gap: var(--gap, 0px);
925
- max-width: 720px;
926
- margin-inline: auto;
927
- }
928
-
929
- .landing-stack img {
930
- width: 100%;
931
- }
1
+ /* ---------- hero ---------- */
2
+
3
+ .hero {
4
+ position: relative;
5
+ isolation: isolate;
6
+ overflow: hidden;
7
+ min-height: 560px;
8
+ height: 82svh;
9
+ max-height: 820px;
10
+ background: var(--soft);
11
+ }
12
+
13
+ .hero--medium {
14
+ min-height: 460px;
15
+ height: 64svh;
16
+ max-height: 620px;
17
+ }
18
+
19
+ .hero__slide {
20
+ position: absolute;
21
+ inset: 0;
22
+ display: grid;
23
+ opacity: 0;
24
+ visibility: hidden;
25
+ transition: var(--motion-hero-slide);
26
+ }
27
+
28
+ .hero__slide[data-active="true"] {
29
+ z-index: 1;
30
+ opacity: 1;
31
+ visibility: visible;
32
+ }
33
+
34
+ .hero__media,
35
+ .hero__media img {
36
+ position: absolute;
37
+ inset: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ object-fit: cover;
41
+ }
42
+
43
+ /* A veil in the page's own colour keeps the words readable on any photo. */
44
+ .hero__media::after {
45
+ content: "";
46
+ position: absolute;
47
+ inset: 0;
48
+ background: var(--surface-hero-media-after);
49
+ }
50
+
51
+ [dir="rtl"] .hero__media::after {
52
+ background: var(--surface-hero-media-after-rtl);
53
+ }
54
+
55
+ .hero__inner {
56
+ position: relative;
57
+ z-index: 2;
58
+ display: flex;
59
+ align-items: center;
60
+ width: 100%;
61
+ max-width: 1320px;
62
+ margin-inline: auto;
63
+ padding: calc(var(--header-h) + 52px) var(--gutter) 64px;
64
+ }
65
+
66
+ .hero--center .hero__inner {
67
+ justify-content: center;
68
+ text-align: center;
69
+ }
70
+
71
+ .hero__content {
72
+ max-width: 620px;
73
+ }
74
+
75
+ .hero__title {
76
+ color: var(--heading);
77
+ font-family: var(--font-display);
78
+ font-size: var(--text-hero-title);
79
+ font-weight: var(--display-weight);
80
+ line-height: var(--leading-hero-title);
81
+ letter-spacing: var(--display-tracking);
82
+ text-wrap: balance;
83
+ }
84
+
85
+ /* Arabic letters reach far below the line (the dots of ي): room scaled to the title. */
86
+ [dir="rtl"] .hero__title {
87
+ line-height: var(--leading-hero-title-rtl);
88
+ padding-block-end: 0.18em;
89
+ }
90
+
91
+ .hero__title .accent {
92
+ display: inline-block;
93
+ }
94
+
95
+ .hero__subtitle {
96
+ max-width: 480px;
97
+ margin-block-start: 18px;
98
+ color: color-mix(in oklab, var(--ink) 86%, var(--bg));
99
+ font-size: var(--text-hero-subtitle);
100
+ }
101
+
102
+ .hero--center .hero__subtitle {
103
+ margin-inline: auto;
104
+ }
105
+
106
+ .hero__actions {
107
+ display: flex;
108
+ flex-wrap: wrap;
109
+ gap: 12px;
110
+ margin-block-start: 28px;
111
+ }
112
+
113
+ .hero--center .hero__actions {
114
+ justify-content: center;
115
+ }
116
+
117
+ .hero__actions .btn {
118
+ box-shadow: var(--btn-glow);
119
+ }
120
+
121
+ .hero__dots {
122
+ position: absolute;
123
+ inset-block-end: 22px;
124
+ inset-inline: 0;
125
+ z-index: 3;
126
+ display: flex;
127
+ justify-content: center;
128
+ gap: 4px;
129
+ }
130
+
131
+ .hero__dot {
132
+ display: grid;
133
+ place-items: center;
134
+ width: 28px;
135
+ height: 28px;
136
+ }
137
+
138
+ .hero__dot::before {
139
+ content: "";
140
+ width: 9px;
141
+ height: 9px;
142
+ border-radius: var(--r-pill);
143
+ background: var(--surface-hero-dot-before);
144
+ transition: var(--motion-hero-dot-before);
145
+ }
146
+
147
+ .hero__dot[aria-current="true"]::before {
148
+ width: 26px;
149
+ background: var(--accent);
150
+ }
151
+
152
+ .hero__arrow {
153
+ position: absolute;
154
+ inset-block-start: 50%;
155
+ z-index: 3;
156
+ display: grid;
157
+ place-items: center;
158
+ width: 46px;
159
+ height: 46px;
160
+ border-radius: var(--r-round);
161
+ background: var(--surface-hero-arrow);
162
+ color: var(--heading);
163
+ box-shadow: var(--shadow);
164
+ opacity: 0;
165
+ translate: 0 -50%;
166
+ transition: opacity var(--duration) var(--ease), background-color var(--duration) var(--ease);
167
+ }
168
+
169
+ .hero:hover .hero__arrow,
170
+ .hero:focus-within .hero__arrow {
171
+ opacity: 1;
172
+ }
173
+
174
+ .hero__arrow--prev {
175
+ inset-inline-start: 18px;
176
+ }
177
+
178
+ .hero__arrow--next {
179
+ inset-inline-end: 18px;
180
+ }
181
+
182
+ /* Without a photo the words are the hero: centred, and no taller than they need. */
183
+ .hero--plain {
184
+ height: auto;
185
+ min-height: 0;
186
+ }
187
+
188
+ .hero--plain .hero__slide {
189
+ position: relative;
190
+ }
191
+
192
+ .hero--plain .hero__slide:not([data-active="true"]) {
193
+ position: absolute;
194
+ }
195
+
196
+ .hero--plain .hero__inner {
197
+ min-height: clamp(400px, 52vw, 600px);
198
+ }
199
+
200
+ @media (max-width: 899px) {
201
+ .hero:not(.hero--plain) .hero__inner {
202
+ align-items: flex-end;
203
+ padding-block-end: 64px;
204
+ }
205
+ .hero__slide--photo .hero__media::after,
206
+ [dir="rtl"] .hero__slide--photo .hero__media::after {
207
+ background: var(--surface-hero-media-after-narrow);
208
+ }
209
+ .hero__arrow {
210
+ display: none;
211
+ }
212
+ .hero__actions .btn {
213
+ flex: 1;
214
+ }
215
+ }
216
+
217
+ /* ---------- collection cards ---------- */
218
+
219
+ .collection-grid {
220
+ display: grid;
221
+ grid-template-columns: repeat(2, minmax(0, 1fr));
222
+ gap: 14px;
223
+ }
224
+
225
+ @media (min-width: 900px) {
226
+ .collection-grid {
227
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
228
+ gap: 20px;
229
+ }
230
+ }
231
+
232
+ .collection-grid--large {
233
+ grid-template-columns: 1fr;
234
+ }
235
+
236
+ @media (min-width: 700px) {
237
+ .collection-grid--large {
238
+ grid-template-columns: repeat(2, minmax(0, 1fr));
239
+ }
240
+ }
241
+
242
+ .collection-card {
243
+ display: grid;
244
+ gap: 12px;
245
+ }
246
+
247
+ .collection-card__media {
248
+ position: relative;
249
+ display: block;
250
+ overflow: hidden;
251
+ aspect-ratio: 1;
252
+ border-radius: var(--r-lg);
253
+ background: var(--soft);
254
+ }
255
+
256
+ .collection-card__media img {
257
+ width: 100%;
258
+ height: 100%;
259
+ object-fit: cover;
260
+ transition: var(--motion-collection-card-media);
261
+ }
262
+
263
+ .collection-card:hover .collection-card__media img {
264
+ transform: var(--motion-collection-card-media-hover);
265
+ }
266
+
267
+ .collection-card__art {
268
+ position: absolute;
269
+ inset: 0;
270
+ display: grid;
271
+ place-items: center;
272
+ color: color-mix(in oklab, var(--accent) 60%, var(--bg));
273
+ }
274
+
275
+ .collection-card__body {
276
+ display: flex;
277
+ align-items: center;
278
+ justify-content: space-between;
279
+ gap: 10px;
280
+ }
281
+
282
+ .collection-card__title {
283
+ color: var(--heading);
284
+ font-family: var(--font-display);
285
+ font-size: var(--text-collection-card-title);
286
+ font-weight: var(--weight-heavy);
287
+ line-height: var(--leading-collection-card-title);
288
+ }
289
+
290
+ .collection-card__text {
291
+ display: grid;
292
+ gap: 2px;
293
+ }
294
+
295
+ .collection-card__count {
296
+ color: var(--muted);
297
+ font-size: var(--text-collection-card-count);
298
+ font-weight: var(--weight-semibold);
299
+ }
300
+
301
+ .collection-card__arrow {
302
+ display: grid;
303
+ place-items: center;
304
+ flex: none;
305
+ width: 36px;
306
+ height: 36px;
307
+ border-radius: var(--r-round);
308
+ background: var(--soft);
309
+ color: var(--accent);
310
+ transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
311
+ }
312
+
313
+ .collection-card:hover .collection-card__arrow {
314
+ background: var(--accent);
315
+ color: var(--bg);
316
+ }
317
+
318
+ .collection-card__cta {
319
+ display: none;
320
+ }
321
+
322
+ /* Large cards carry their words over the photo. */
323
+ .collection-card--large {
324
+ position: relative;
325
+ overflow: hidden;
326
+ border-radius: var(--r-lg);
327
+ }
328
+
329
+ .collection-card--large .collection-card__media {
330
+ aspect-ratio: var(--shape-collection-card-media);
331
+ border-radius: 0;
332
+ }
333
+
334
+ .collection-card--large .collection-card__body {
335
+ position: absolute;
336
+ inset-inline: 14px;
337
+ inset-block-end: 14px;
338
+ padding: 16px 18px;
339
+ border-radius: var(--r);
340
+ background: var(--surface-collection-card-body);
341
+ -webkit-backdrop-filter: blur(8px);
342
+ backdrop-filter: var(--filter-collection-card-body);
343
+ }
344
+
345
+ .collection-card--large .collection-card__title {
346
+ font-size: var(--text-collection-card-title-large);
347
+ }
348
+
349
+ .collection-card--large .collection-card__cta {
350
+ display: block;
351
+ margin-inline-start: auto;
352
+ color: var(--accent);
353
+ font-weight: var(--weight-bold);
354
+ font-size: var(--text-collection-card-cta);
355
+ }
356
+
357
+ /* ---------- image banner ---------- */
358
+
359
+ .image-banner {
360
+ position: relative;
361
+ isolation: isolate;
362
+ display: grid;
363
+ place-items: center;
364
+ overflow: hidden;
365
+ min-height: clamp(340px, 40vw, 520px);
366
+ text-align: center;
367
+ }
368
+
369
+ .image-banner--tall {
370
+ min-height: clamp(440px, 56vw, 700px);
371
+ }
372
+
373
+ .image-banner--start {
374
+ place-items: center start;
375
+ text-align: start;
376
+ }
377
+
378
+ .image-banner--boxed {
379
+ border-radius: var(--r-lg);
380
+ }
381
+
382
+ .image-banner > img {
383
+ position: absolute;
384
+ inset: 0;
385
+ z-index: -2;
386
+ width: 100%;
387
+ height: 100%;
388
+ object-fit: cover;
389
+ }
390
+
391
+ .image-banner--photo {
392
+ color: var(--on-photo);
393
+ }
394
+
395
+ .image-banner--photo::after {
396
+ content: "";
397
+ position: absolute;
398
+ inset: 0;
399
+ z-index: -1;
400
+ background: var(--surface-image-banner-photo-after);
401
+ }
402
+
403
+ .image-banner__inner {
404
+ max-width: 760px;
405
+ padding: clamp(40px, 6vw, 72px) var(--gutter);
406
+ }
407
+
408
+ .image-banner h2 {
409
+ font-size: var(--text-image-banner);
410
+ }
411
+
412
+ .image-banner--photo h2,
413
+ .image-banner--photo .accent {
414
+ color: var(--on-photo);
415
+ }
416
+
417
+ .image-banner p {
418
+ max-width: 560px;
419
+ margin: 14px auto 0;
420
+ font-size: var(--text-image-banner-text);
421
+ opacity: var(--opacity-image-banner);
422
+ }
423
+
424
+ .image-banner--start p {
425
+ margin-inline: 0;
426
+ }
427
+
428
+ .image-banner .btn {
429
+ margin-block-start: 26px;
430
+ }
431
+
432
+ /* ---------- products ---------- */
433
+
434
+ .product-grid {
435
+ --columns: 4;
436
+ display: grid;
437
+ grid-template-columns: repeat(2, minmax(0, 1fr));
438
+ gap: 22px 12px;
439
+ }
440
+
441
+ @media (min-width: 700px) {
442
+ .product-grid {
443
+ grid-template-columns: repeat(min(3, var(--columns)), minmax(0, 1fr));
444
+ gap: 30px 18px;
445
+ }
446
+ }
447
+
448
+ @media (min-width: 1100px) {
449
+ .product-grid {
450
+ grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
451
+ }
452
+ }
453
+
454
+ /* A row the phone swipes, with the next card peeking in. */
455
+ @media (max-width: 899px) {
456
+ .product-grid--carousel {
457
+ grid-template-columns: none;
458
+ grid-auto-flow: column;
459
+ grid-auto-columns: 46%;
460
+ margin-inline: calc(var(--gutter) * -1);
461
+ padding-inline: var(--gutter);
462
+ overflow-x: auto;
463
+ scroll-snap-type: x mandatory;
464
+ scroll-padding-inline: var(--gutter);
465
+ scrollbar-width: none;
466
+ }
467
+ .product-grid--carousel::-webkit-scrollbar {
468
+ display: none;
469
+ }
470
+ .product-grid--carousel > * {
471
+ scroll-snap-align: start;
472
+ }
473
+ }
474
+
475
+ .product-card {
476
+ position: relative;
477
+ display: flex;
478
+ flex-direction: column;
479
+ min-width: 0;
480
+ }
481
+
482
+ .product-card__media {
483
+ position: relative;
484
+ display: block;
485
+ overflow: hidden;
486
+ aspect-ratio: 1;
487
+ border-radius: var(--r-lg);
488
+ background: var(--soft);
489
+ }
490
+
491
+ .product-card--portrait .product-card__media {
492
+ aspect-ratio: var(--shape-product-card-media);
493
+ }
494
+
495
+ .product-card__media img {
496
+ width: 100%;
497
+ height: 100%;
498
+ object-fit: cover;
499
+ transition: var(--motion-product-card-media);
500
+ }
501
+
502
+ .product-card:hover .product-card__media img {
503
+ transform: var(--motion-product-card-media-hover);
504
+ }
505
+
506
+ .product-card__placeholder {
507
+ position: absolute;
508
+ inset: 0;
509
+ display: grid;
510
+ place-items: center;
511
+ background: var(--soft);
512
+ color: var(--muted);
513
+ }
514
+
515
+ .product-card__badges {
516
+ position: absolute;
517
+ inset-block-start: 10px;
518
+ inset-inline-start: 10px;
519
+ display: flex;
520
+ gap: 6px;
521
+ }
522
+
523
+ /* Every card of a row ends on the same line: the title keeps two lines, the button sits at the foot. */
524
+ .product-card__body {
525
+ display: flex;
526
+ flex-direction: column;
527
+ gap: 6px;
528
+ flex: 1;
529
+ padding: 12px 2px 0;
530
+ }
531
+
532
+ .product-card__title {
533
+ display: -webkit-box;
534
+ overflow: hidden;
535
+ -webkit-box-orient: vertical;
536
+ -webkit-line-clamp: 2;
537
+ font-family: var(--font-body);
538
+ min-height: calc(2 * 1.4em);
539
+ font-size: var(--text-product-card-title);
540
+ font-weight: var(--weight-semibold);
541
+ line-height: var(--leading-product-card-title);
542
+ }
543
+
544
+ .product-card__title a::after {
545
+ content: "";
546
+ position: absolute;
547
+ inset: 0;
548
+ }
549
+
550
+ .product-card .price {
551
+ font-size: var(--text-price);
552
+ }
553
+
554
+ .product-card .btn {
555
+ position: relative;
556
+ z-index: 1;
557
+ width: 100%;
558
+ margin-block-start: auto;
559
+ }
560
+
561
+ .product-card .price {
562
+ margin-block-end: 6px;
563
+ }
564
+
565
+ /* ---------- featured product ---------- */
566
+
567
+ .product-detail--featured {
568
+ padding: clamp(14px, 2.4vw, 28px);
569
+ border-radius: var(--radius-product-detail-featured);
570
+ background: var(--card);
571
+ box-shadow: var(--shadow);
572
+ }
573
+
574
+ .product-info__title {
575
+ font-size: var(--text-product-info-title);
576
+ }
577
+
578
+ .product-info__title a:hover {
579
+ color: var(--accent);
580
+ }
581
+
582
+ /* ---------- testimonials ---------- */
583
+
584
+ .testimonials {
585
+ display: grid;
586
+ gap: 14px;
587
+ }
588
+
589
+ @media (min-width: 760px) {
590
+ .testimonials {
591
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
592
+ gap: 20px;
593
+ }
594
+ }
595
+
596
+ .testimonial {
597
+ position: relative;
598
+ display: grid;
599
+ align-content: start;
600
+ gap: 14px;
601
+ padding: 24px;
602
+ border-radius: var(--r-lg);
603
+ background: var(--card);
604
+ box-shadow: var(--shadow);
605
+ }
606
+
607
+ .testimonial::before {
608
+ content: "“";
609
+ position: absolute;
610
+ inset-block-start: 4px;
611
+ inset-inline-end: 18px;
612
+ color: var(--soft);
613
+ font-family: var(--font-quote);
614
+ font-size: var(--text-testimonial-before);
615
+ line-height: 1;
616
+ }
617
+
618
+ .testimonial__quote {
619
+ color: var(--heading);
620
+ font-size: var(--text-testimonial-quote);
621
+ line-height: var(--leading-testimonial-quote);
622
+ }
623
+
624
+ .testimonial__top {
625
+ display: flex;
626
+ align-items: center;
627
+ gap: 12px;
628
+ margin-block-start: auto;
629
+ }
630
+
631
+ .testimonial__avatar {
632
+ width: 46px;
633
+ height: 46px;
634
+ border-radius: var(--r-round);
635
+ display: grid;
636
+ place-items: center;
637
+ flex: none;
638
+ background: var(--soft);
639
+ color: var(--accent);
640
+ font-family: var(--font-display);
641
+ font-size: var(--text-testimonial-avatar);
642
+ font-weight: var(--weight-heavy);
643
+ }
644
+
645
+ .testimonial__name {
646
+ display: block;
647
+ color: var(--heading);
648
+ font-weight: var(--weight-bold);
649
+ }
650
+
651
+ .testimonial__date {
652
+ display: flex;
653
+ flex-wrap: wrap;
654
+ align-items: center;
655
+ gap: 4px 10px;
656
+ color: var(--muted);
657
+ font-size: var(--text-testimonial-date);
658
+ }
659
+
660
+ .testimonial__product {
661
+ justify-self: start;
662
+ color: var(--accent);
663
+ font-size: var(--text-testimonial-product);
664
+ font-weight: var(--weight-bold);
665
+ text-decoration: underline;
666
+ text-underline-offset: 3px;
667
+ }
668
+
669
+ /* ---------- rich text ---------- */
670
+
671
+ .rich-text {
672
+ display: grid;
673
+ justify-items: center;
674
+ gap: 18px;
675
+ text-align: center;
676
+ }
677
+
678
+ .rich-text .section-head {
679
+ margin-block-end: 0;
680
+ }
681
+
682
+ .rich-text--start {
683
+ justify-items: start;
684
+ text-align: start;
685
+ }
686
+
687
+ /* ---------- questions ---------- */
688
+
689
+ .faq {
690
+ display: grid;
691
+ gap: 10px;
692
+ }
693
+
694
+ .faq__item {
695
+ padding-inline: 20px;
696
+ border: var(--border-faq-item);
697
+ border-radius: var(--r);
698
+ background: var(--card);
699
+ transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
700
+ }
701
+
702
+ .faq__item[open] {
703
+ border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
704
+ box-shadow: var(--shadow);
705
+ }
706
+
707
+ /* ---------- listings and text pages ---------- */
708
+
709
+ .listing-head {
710
+ max-width: 720px;
711
+ margin: 0 auto clamp(20px, 3vw, 30px);
712
+ text-align: center;
713
+ }
714
+
715
+ .listing-head--start {
716
+ margin-inline: 0;
717
+ text-align: start;
718
+ }
719
+
720
+ .listing-head h1 {
721
+ font-size: var(--text-listing-head);
722
+ }
723
+
724
+ .listing-head p {
725
+ margin-block-start: 10px;
726
+ color: var(--muted);
727
+ }
728
+
729
+ .listing-head__count {
730
+ display: inline-block;
731
+ margin-block-start: 12px;
732
+ padding: 4px 12px;
733
+ border-radius: var(--r-pill);
734
+ background: var(--soft);
735
+ color: var(--accent);
736
+ font-size: var(--text-listing-head-count);
737
+ font-weight: var(--weight-bold);
738
+ }
739
+
740
+ .listing-sort {
741
+ display: flex;
742
+ flex-wrap: wrap;
743
+ align-items: center;
744
+ justify-content: flex-end;
745
+ gap: 8px 10px;
746
+ margin-block-end: 18px;
747
+ }
748
+
749
+ .listing-sort label {
750
+ color: var(--muted);
751
+ font-size: var(--text-listing-sort);
752
+ font-weight: var(--weight-semibold);
753
+ }
754
+
755
+ .listing-sort .select {
756
+ width: auto;
757
+ min-height: 44px;
758
+ font-size: var(--text-select);
759
+ }
760
+
761
+ .text-page {
762
+ display: grid;
763
+ gap: 28px;
764
+ }
765
+
766
+ @media (min-width: 900px) {
767
+ .text-page--aside {
768
+ grid-template-columns: minmax(0, 1fr) 300px;
769
+ align-items: start;
770
+ }
771
+ }
772
+
773
+ .text-page .prose h1 {
774
+ margin-block-end: 18px;
775
+ font-size: var(--text-prose-h1);
776
+ }
777
+
778
+ .side-card {
779
+ display: grid;
780
+ gap: 12px;
781
+ padding: 22px;
782
+ border-radius: var(--r-lg);
783
+ background: var(--card);
784
+ box-shadow: var(--shadow);
785
+ }
786
+
787
+ @media (min-width: 900px) {
788
+ .side-card {
789
+ position: sticky;
790
+ inset-block-start: calc(var(--header-h) + 20px);
791
+ }
792
+ }
793
+
794
+ .side-card h2 {
795
+ font-size: var(--text-side-card);
796
+ }
797
+
798
+ .side-card p {
799
+ color: var(--muted);
800
+ font-size: var(--text-side-card-text);
801
+ }
802
+
803
+ .side-card__link {
804
+ display: inline-flex;
805
+ align-items: center;
806
+ gap: 8px;
807
+ color: var(--accent);
808
+ font-weight: var(--weight-semibold);
809
+ font-size: var(--text-side-card-link);
810
+ }
811
+
812
+ .contact-cards {
813
+ display: grid;
814
+ gap: 14px;
815
+ max-width: 920px;
816
+ margin-inline: auto;
817
+ }
818
+
819
+ @media (min-width: 700px) {
820
+ .contact-cards {
821
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
822
+ }
823
+ }
824
+
825
+ .contact-card {
826
+ display: grid;
827
+ justify-items: center;
828
+ gap: 8px;
829
+ padding: 28px 20px;
830
+ border-radius: var(--r-lg);
831
+ background: var(--card);
832
+ box-shadow: var(--shadow);
833
+ text-align: center;
834
+ transition: transform var(--duration) var(--ease);
835
+ }
836
+
837
+ a.contact-card:hover {
838
+ transform: var(--motion-contact-card-hover);
839
+ }
840
+
841
+ .contact-card__icon {
842
+ display: grid;
843
+ place-items: center;
844
+ width: 58px;
845
+ height: 58px;
846
+ border-radius: var(--r-round);
847
+ background: var(--soft);
848
+ color: var(--accent);
849
+ }
850
+
851
+ .contact-card strong {
852
+ color: var(--heading);
853
+ font-size: var(--text-contact-card);
854
+ }
855
+
856
+ .contact-card span:last-child {
857
+ overflow-wrap: anywhere;
858
+ color: var(--muted);
859
+ }
860
+
861
+ .contact-card .contact-card__prose {
862
+ white-space: pre-line;
863
+ }
864
+
865
+ .contact-note,
866
+ .contact-none {
867
+ max-width: 620px;
868
+ margin: 24px auto 0;
869
+ padding: 16px 20px;
870
+ border-radius: var(--r);
871
+ background: var(--soft);
872
+ color: var(--ink);
873
+ text-align: center;
874
+ white-space: pre-line;
875
+ }
876
+
877
+ .contact-help {
878
+ max-width: 620px;
879
+ margin: 32px auto 0;
880
+ }
881
+
882
+ .contact-help h2 {
883
+ margin-block-end: 12px;
884
+ font-size: var(--text-contact-help);
885
+ text-align: center;
886
+ }
887
+
888
+ .contact-help ul {
889
+ display: grid;
890
+ gap: 8px;
891
+ padding: 0;
892
+ list-style: none;
893
+ }
894
+
895
+ .contact-help a {
896
+ display: flex;
897
+ align-items: center;
898
+ justify-content: space-between;
899
+ gap: 12px;
900
+ min-height: 56px;
901
+ padding: 0 18px;
902
+ border-radius: var(--r);
903
+ background: var(--card);
904
+ box-shadow: var(--shadow);
905
+ color: var(--heading);
906
+ font-weight: var(--weight-semibold);
907
+ }
908
+
909
+ .contact-help a:hover {
910
+ color: var(--accent);
911
+ }
912
+
913
+ .contact-page__note {
914
+ display: flex;
915
+ align-items: center;
916
+ justify-content: center;
917
+ gap: 8px;
918
+ margin-block-start: 28px;
919
+ color: var(--muted);
920
+ }
921
+
922
+ .landing-stack {
923
+ display: grid;
924
+ gap: var(--gap, 0px);
925
+ max-width: 720px;
926
+ margin-inline: auto;
927
+ }
928
+
929
+ .landing-stack img {
930
+ width: 100%;
931
+ }