@lets-ship/site 2.0.0 → 3.1.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/dist/mdx/allow-list.d.ts +9 -1
  2. package/dist/mdx/allow-list.d.ts.map +1 -1
  3. package/dist/mdx/allow-list.js +6 -2
  4. package/dist/mdx/allow-list.js.map +1 -1
  5. package/dist/mdx/components.d.ts.map +1 -1
  6. package/dist/mdx/components.js +4 -0
  7. package/dist/mdx/components.js.map +1 -1
  8. package/dist/mdx/tones.d.ts +11 -0
  9. package/dist/mdx/tones.d.ts.map +1 -0
  10. package/dist/mdx/tones.js +43 -0
  11. package/dist/mdx/tones.js.map +1 -0
  12. package/dist/node/build.js +1 -1
  13. package/dist/node/build.js.map +1 -1
  14. package/dist/node/content.d.ts +7 -2
  15. package/dist/node/content.d.ts.map +1 -1
  16. package/dist/node/content.js +17 -7
  17. package/dist/node/content.js.map +1 -1
  18. package/dist/node/errors.d.ts +1 -0
  19. package/dist/node/errors.d.ts.map +1 -1
  20. package/dist/node/errors.js +1 -0
  21. package/dist/node/errors.js.map +1 -1
  22. package/dist/website/blocks/call-to-action-views.js +3 -3
  23. package/dist/website/blocks/call-to-action-views.js.map +1 -1
  24. package/dist/website/blocks/card-grid-views.js +1 -1
  25. package/dist/website/blocks/card-grid-views.js.map +1 -1
  26. package/dist/website/blocks/catalog.d.ts +10 -0
  27. package/dist/website/blocks/catalog.d.ts.map +1 -1
  28. package/dist/website/blocks/catalog.js +9 -0
  29. package/dist/website/blocks/catalog.js.map +1 -1
  30. package/dist/website/blocks/commerce.d.ts +2 -1
  31. package/dist/website/blocks/commerce.d.ts.map +1 -1
  32. package/dist/website/blocks/commerce.js +2 -2
  33. package/dist/website/blocks/commerce.js.map +1 -1
  34. package/dist/website/blocks/contact-views.d.ts.map +1 -1
  35. package/dist/website/blocks/contact-views.js +4 -4
  36. package/dist/website/blocks/contact-views.js.map +1 -1
  37. package/dist/website/blocks/content.d.ts +4 -1
  38. package/dist/website/blocks/content.d.ts.map +1 -1
  39. package/dist/website/blocks/content.js +5 -3
  40. package/dist/website/blocks/content.js.map +1 -1
  41. package/dist/website/blocks/empty-state-views.d.ts.map +1 -1
  42. package/dist/website/blocks/empty-state-views.js +3 -3
  43. package/dist/website/blocks/empty-state-views.js.map +1 -1
  44. package/dist/website/blocks/faq-views.js +1 -1
  45. package/dist/website/blocks/faq-views.js.map +1 -1
  46. package/dist/website/blocks/feature-views.d.ts.map +1 -1
  47. package/dist/website/blocks/feature-views.js +6 -6
  48. package/dist/website/blocks/feature-views.js.map +1 -1
  49. package/dist/website/blocks/hero-views.d.ts +4 -1
  50. package/dist/website/blocks/hero-views.d.ts.map +1 -1
  51. package/dist/website/blocks/hero-views.js +5 -5
  52. package/dist/website/blocks/hero-views.js.map +1 -1
  53. package/dist/website/blocks/local-views.d.ts +60 -0
  54. package/dist/website/blocks/local-views.d.ts.map +1 -0
  55. package/dist/website/blocks/local-views.js +38 -0
  56. package/dist/website/blocks/local-views.js.map +1 -0
  57. package/dist/website/blocks/local.d.ts +15 -0
  58. package/dist/website/blocks/local.d.ts.map +1 -0
  59. package/dist/website/blocks/local.js +15 -0
  60. package/dist/website/blocks/local.js.map +1 -0
  61. package/dist/website/blocks/logo-stats-views.d.ts.map +1 -1
  62. package/dist/website/blocks/logo-stats-views.js +5 -5
  63. package/dist/website/blocks/logo-stats-views.js.map +1 -1
  64. package/dist/website/blocks/media-views.d.ts.map +1 -1
  65. package/dist/website/blocks/media-views.js +4 -4
  66. package/dist/website/blocks/media-views.js.map +1 -1
  67. package/dist/website/blocks/newsletter-views.d.ts +1 -1
  68. package/dist/website/blocks/newsletter-views.d.ts.map +1 -1
  69. package/dist/website/blocks/newsletter-views.js +4 -3
  70. package/dist/website/blocks/newsletter-views.js.map +1 -1
  71. package/dist/website/blocks/parts.d.ts +29 -4
  72. package/dist/website/blocks/parts.d.ts.map +1 -1
  73. package/dist/website/blocks/parts.js +21 -7
  74. package/dist/website/blocks/parts.js.map +1 -1
  75. package/dist/website/blocks/team-views.js +3 -3
  76. package/dist/website/blocks/team-views.js.map +1 -1
  77. package/dist/website/blocks/testimonial-views.js +5 -5
  78. package/dist/website/blocks/testimonial-views.js.map +1 -1
  79. package/dist/website/blocks/variant.d.ts +7 -0
  80. package/dist/website/blocks/variant.d.ts.map +1 -1
  81. package/dist/website/blocks/variant.js +16 -0
  82. package/dist/website/blocks/variant.js.map +1 -1
  83. package/package.json +2 -2
  84. package/styles.css +451 -30
package/styles.css CHANGED
@@ -23,6 +23,9 @@
23
23
  /* A call to action in text form, and the colour it turns on hover. */
24
24
  --site-cta: var(--color-fd-primary);
25
25
  --site-link: var(--color-fd-primary);
26
+ /* The headline emphasis of the surface; a band points it at its own solved values. */
27
+ --site-emphasis-color: var(--dna-emphasis-color);
28
+ --site-emphasis-bg: var(--dna-emphasis-bg);
26
29
  /* The height of the sticky site header (h-14), which the contents rail and anchors clear. */
27
30
  --site-header-height: 3.5rem;
28
31
  --site-container-width: var(--fd-layout-width);
@@ -33,7 +36,7 @@
33
36
  .site-container {
34
37
  max-width: var(--site-container-width);
35
38
  margin: 0 auto;
36
- padding-inline: 32px;
39
+ padding-inline: var(--dna-grid-margin);
37
40
  }
38
41
 
39
42
  .site-page-top {
@@ -46,9 +49,10 @@
46
49
  }
47
50
  }
48
51
 
52
+ /* A phone keeps the brand's margin up to 20px, so the content keeps its width. */
49
53
  @media (max-width: 760px) {
50
54
  .site-container {
51
- padding-inline: 20px;
55
+ padding-inline: min(var(--dna-grid-margin), 20px);
52
56
  }
53
57
  }
54
58
 
@@ -310,7 +314,7 @@
310
314
 
311
315
  /* Website blocks (D21): bands of content, each from the DNA's type scale and component tokens. */
312
316
  .site-block {
313
- padding-block: 64px;
317
+ padding-block: var(--dna-section-md);
314
318
  }
315
319
 
316
320
  /* A long word (a German compound, a pasted URL) breaks at the edge of its box instead of running
@@ -335,7 +339,7 @@
335
339
  grid cannot centre its last row. */
336
340
  .site-grid {
337
341
  --site-grid-cols: 1;
338
- --site-grid-gap: 1.5rem;
342
+ --site-grid-gap: var(--dna-grid-gutter);
339
343
  display: flex;
340
344
  flex-wrap: wrap;
341
345
  justify-content: center;
@@ -348,11 +352,11 @@
348
352
  }
349
353
 
350
354
  .site-grid-roomy {
351
- --site-grid-gap: 2rem;
355
+ --site-grid-gap: calc(var(--dna-grid-gutter) * 4 / 3);
352
356
  }
353
357
 
354
358
  .site-grid-tight {
355
- --site-grid-gap: 1rem;
359
+ --site-grid-gap: calc(var(--dna-grid-gutter) * 2 / 3);
356
360
  }
357
361
 
358
362
  .site-grid-hairline {
@@ -405,7 +409,7 @@
405
409
  margin, so a ring on a link in it is not cut off by the scrolling box; it keeps the width of
406
410
  the container, so its first item lines up with the heading. */
407
411
  .site-carousel-track {
408
- --site-carousel-gap: 1.5rem;
412
+ --site-carousel-gap: var(--dna-grid-gutter);
409
413
  display: flex;
410
414
  gap: var(--site-carousel-gap);
411
415
  margin-block: -4px;
@@ -506,75 +510,128 @@
506
510
  outline-offset: 2px;
507
511
  }
508
512
 
513
+ /* A section heading follows the brand's alignment (composition.align); a variant that centres
514
+ its heading adds .site-block-head-center, which comes later and wins. */
509
515
  .site-block-title {
510
- margin-bottom: 12px;
516
+ margin-bottom: var(--dna-space-md);
511
517
  font-family: var(--dna-type-h2-family);
512
518
  font-size: var(--dna-type-h2-size);
513
519
  font-weight: var(--dna-type-h2-weight);
514
520
  line-height: var(--dna-type-h2-line-height);
521
+ letter-spacing: var(--dna-type-h2-tracking);
515
522
  color: var(--site-fg);
523
+ text-align: var(--dna-head-align);
524
+ text-wrap: balance;
516
525
  }
517
526
 
518
527
  .site-block-intro {
519
- max-width: 42rem;
520
- margin-bottom: 32px;
528
+ max-width: var(--dna-measure-lead);
529
+ margin-inline: var(--dna-head-margin);
530
+ margin-bottom: var(--dna-space-xl);
521
531
  font-size: var(--dna-type-body-size);
522
532
  line-height: var(--dna-type-body-line-height);
523
533
  color: var(--site-fg-muted);
534
+ text-align: var(--dna-head-align);
535
+ text-wrap: pretty;
524
536
  }
525
537
 
526
538
  .site-hero {
527
- padding-block: 96px;
539
+ padding-block: var(--dna-section-lg);
528
540
  }
529
541
 
542
+ /* The opening headline is the brand's largest role, fluid from a phone to a wide screen. */
530
543
  .site-hero-title {
531
- font-family: var(--dna-type-display-family);
532
- font-size: clamp(2.25rem, 5vw, var(--dna-type-display-size));
533
- font-weight: var(--dna-type-display-weight);
534
- line-height: var(--dna-type-display-line-height);
535
- letter-spacing: var(--dna-type-display-tracking);
544
+ font-family: var(--dna-type-display-xl-family);
545
+ font-size: var(--dna-type-display-xl-size);
546
+ font-weight: var(--dna-type-display-xl-weight);
547
+ line-height: var(--dna-type-display-xl-line-height);
548
+ letter-spacing: var(--dna-type-display-xl-tracking);
536
549
  color: var(--site-fg);
550
+ text-wrap: balance;
537
551
  }
538
552
 
539
553
  .site-hero-subtitle {
540
- margin-top: 16px;
554
+ max-width: var(--dna-measure-lead);
555
+ margin-top: var(--dna-space-lg);
541
556
  font-size: var(--dna-type-h4-size);
542
557
  line-height: var(--dna-type-body-line-height);
543
558
  color: var(--site-fg-muted);
559
+ text-wrap: pretty;
544
560
  }
545
561
 
562
+ .text-center > .site-hero-subtitle {
563
+ margin-inline: auto;
564
+ }
565
+
566
+ /* A button takes the brand's control height and button role, darkens toward the text colour on
567
+ hover by the brand's mix, and shows the brand's focus ring. */
546
568
  .site-button {
569
+ --site-button-bg: var(--dna-component-button-primary-bg);
547
570
  display: inline-flex;
548
571
  align-items: center;
572
+ justify-content: center;
573
+ min-height: var(--dna-control-height-md);
549
574
  padding: var(--dna-component-button-primary-padding-y) var(--dna-component-button-primary-padding-x);
550
575
  border: var(--dna-border-width-thin) solid var(--dna-component-button-primary-border);
551
576
  border-radius: var(--dna-component-button-primary-radius);
552
- background: var(--dna-component-button-primary-bg);
577
+ background: var(--site-button-bg);
553
578
  color: var(--dna-component-button-primary-fg);
554
- font-family: var(--font-sans);
555
- font-weight: 600;
579
+ font-family: var(--dna-type-button-family);
580
+ font-size: var(--dna-type-button-size);
581
+ font-weight: var(--dna-type-button-weight);
582
+ letter-spacing: var(--dna-type-button-tracking);
583
+ line-height: var(--dna-type-button-line-height);
556
584
  text-decoration: none;
585
+ transition: background-color var(--dna-motion-fast) var(--dna-motion-ease);
557
586
  /* A long label wraps inside the button instead of pushing it past its column. */
558
587
  max-width: 100%;
559
588
  }
560
589
 
590
+ .site-button:hover {
591
+ background: color-mix(in oklab, var(--site-button-bg), var(--site-fg) var(--dna-hover-mix));
592
+ }
593
+
594
+ .site-button:focus-visible,
595
+ .site-text-link:focus-visible,
596
+ .site-input:focus-visible {
597
+ outline: var(--dna-focus-width) solid var(--dna-focus-color);
598
+ outline-offset: var(--dna-focus-offset);
599
+ }
600
+
601
+ .site-button-lg {
602
+ min-height: var(--dna-control-height-lg);
603
+ padding-inline: calc(var(--dna-component-button-primary-padding-x) * 1.5);
604
+ }
605
+
561
606
  .site-button-secondary {
562
- background: transparent;
607
+ --site-button-bg: transparent;
563
608
  color: var(--site-fg);
564
609
  border-color: var(--site-border);
565
610
  }
566
611
 
612
+ /* An item of a list (features, steps, quotes, people, questions) in the brand's container: a
613
+ card, a rule over the item, or space alone (containers.list). */
567
614
  .site-card {
615
+ padding: var(--dna-list-padding-y) var(--dna-list-padding-x);
616
+ border-style: solid;
617
+ border-color: var(--dna-component-card-border);
618
+ border-width: var(--dna-list-border-width);
619
+ border-radius: var(--dna-list-radius);
620
+ background: var(--dna-list-bg);
621
+ color: var(--site-fg);
622
+ }
623
+
624
+ /* A call to action is one object, not an item of a list: it keeps the card look. */
625
+ .site-card.site-cta {
568
626
  padding: var(--dna-component-card-padding-y) var(--dna-component-card-padding-x);
569
- border: var(--dna-border-width-thin) solid var(--dna-component-card-border);
627
+ border-width: var(--dna-border-width-thin);
570
628
  border-radius: var(--dna-component-card-radius);
571
629
  background: var(--dna-component-card-bg);
572
- color: var(--dna-component-card-fg);
573
630
  }
574
631
 
575
632
  .site-card-highlight {
576
633
  border-color: var(--site-brand);
577
- border-width: var(--dna-border-width-thick);
634
+ border-top-width: var(--dna-border-width-thick);
578
635
  }
579
636
 
580
637
  .site-card-title {
@@ -609,6 +666,7 @@
609
666
  }
610
667
 
611
668
  .site-stat-value {
669
+ font-variant-numeric: var(--dna-numerals);
612
670
  font-family: var(--dna-type-h2-family);
613
671
  font-size: var(--dna-type-h2-size);
614
672
  font-weight: var(--dna-type-h2-weight);
@@ -624,11 +682,17 @@
624
682
 
625
683
  .site-step-number {
626
684
  display: block;
627
- margin-bottom: 8px;
685
+ margin-bottom: var(--dna-space-sm);
686
+ font-family: var(--dna-type-h3-family);
687
+ font-size: var(--dna-type-h3-size);
688
+ font-weight: var(--dna-type-h3-weight);
689
+ line-height: 1;
690
+ font-variant-numeric: var(--dna-numerals);
628
691
  color: var(--site-brand-text);
629
692
  }
630
693
 
631
694
  .site-price {
695
+ font-variant-numeric: var(--dna-numerals);
632
696
  margin-block: 8px;
633
697
  font-family: var(--dna-type-h3-family);
634
698
  font-size: var(--dna-type-h3-size);
@@ -660,12 +724,21 @@
660
724
  text-align: center;
661
725
  }
662
726
 
727
+ /* The key words of a headline, in the brand's emphasis: a colour, a marker stroke behind them,
728
+ an underline, italic, or nothing at all (emphasis). */
663
729
  .site-highlight {
664
730
  font-weight: inherit;
665
- color: var(--site-brand-text);
731
+ font-style: var(--dna-emphasis-style);
732
+ color: var(--site-emphasis-color);
733
+ background: var(--site-emphasis-bg);
734
+ text-decoration-line: var(--dna-emphasis-decoration);
735
+ text-decoration-color: var(--dna-emphasis-decoration-color);
736
+ text-decoration-thickness: 0.08em;
737
+ text-underline-offset: 0.12em;
738
+ box-decoration-break: clone;
739
+ -webkit-box-decoration-break: clone;
666
740
  }
667
741
 
668
- .site-hero-image,
669
742
  .site-cta-panel,
670
743
  .site-cta-photo,
671
744
  .site-team-photo,
@@ -799,11 +872,21 @@
799
872
  color: var(--site-border);
800
873
  }
801
874
 
875
+ /* A quote on its own, in the brand's quote container (containers.quote), with the opening mark
876
+ hung outside the text edge when the brand hangs punctuation (details.hangingPunctuation). */
802
877
  .site-quote-large {
878
+ padding: var(--dna-quote-padding);
879
+ border-style: solid;
880
+ border-color: var(--dna-quote-border-color);
881
+ border-width: var(--dna-quote-border-width);
882
+ border-radius: var(--dna-quote-radius);
883
+ background: var(--dna-quote-bg);
803
884
  font-family: var(--dna-type-h3-family);
804
885
  font-size: var(--dna-type-h3-size);
805
886
  font-weight: 500;
806
887
  line-height: var(--dna-type-h3-line-height);
888
+ letter-spacing: var(--dna-type-h3-tracking);
889
+ text-indent: var(--dna-quote-hang);
807
890
  color: var(--site-fg);
808
891
  text-wrap: pretty;
809
892
  }
@@ -979,7 +1062,6 @@ details[open] > .site-faq-summary .site-faq-caret {
979
1062
  text-wrap: pretty;
980
1063
  }
981
1064
 
982
- .site-media-image,
983
1065
  .site-card-overlay {
984
1066
  border-radius: var(--dna-radius-lg);
985
1067
  }
@@ -1086,14 +1168,14 @@ details[open] > .site-faq-summary .site-faq-caret {
1086
1168
  .site-website > :not(.site-block, .site-announcement) {
1087
1169
  max-width: var(--site-container-width);
1088
1170
  margin-inline: auto;
1089
- padding-inline: 32px;
1171
+ padding-inline: var(--dna-grid-margin);
1090
1172
  color: var(--site-fg);
1091
1173
  line-height: var(--dna-type-body-line-height);
1092
1174
  }
1093
1175
 
1094
1176
  @media (max-width: 760px) {
1095
1177
  .site-website > :not(.site-block, .site-announcement) {
1096
- padding-inline: 20px;
1178
+ padding-inline: min(var(--dna-grid-margin), 20px);
1097
1179
  }
1098
1180
  }
1099
1181
 
@@ -1158,3 +1240,342 @@ details[open] > .site-faq-summary .site-faq-caret {
1158
1240
  .site-blog .prose :is(th, td) {
1159
1241
  white-space: nowrap;
1160
1242
  }
1243
+
1244
+ /*
1245
+ * The design language (theme contract minor 1): section tones, the brand's split, media, the
1246
+ * blocks of a business people visit, the browser's own surfaces and the opening reveal. Every
1247
+ * value comes from the brand DNA's design primitives through the --dna-* variables.
1248
+ */
1249
+
1250
+ /* Section tones: a block's `tone` prop sets data-tone. A band re-points the engine's colours, so
1251
+ everything inside it (cards, buttons, links, Tailwind's fd colours) follows the band. */
1252
+ .site-block[data-tone="tint"] {
1253
+ --site-border: color-mix(in oklab, var(--dna-color-on-surface) 24%, var(--dna-color-surface-tint));
1254
+ --color-fd-border: var(--site-border);
1255
+ background: var(--dna-texture-tint), var(--dna-color-surface-tint);
1256
+ }
1257
+
1258
+ /* Muted text on an inverse band is a mix toward the band, which keeps AA on its high contrast. A
1259
+ brand band starts near AA, so its secondary text keeps the band's full text colour. */
1260
+ .site-block[data-tone="inverse"] {
1261
+ --site-band-bg: var(--dna-color-surface-inverse);
1262
+ --site-band-fg: var(--dna-color-on-surface-inverse);
1263
+ --site-band-muted: color-mix(in oklab, var(--site-band-fg) 80%, var(--site-band-bg));
1264
+ --site-band-surface: color-mix(in oklab, var(--site-band-fg) 8%, var(--site-band-bg));
1265
+ --site-emphasis-color: var(--dna-emphasis-color-inverse);
1266
+ --site-emphasis-bg: var(--dna-emphasis-bg-inverse);
1267
+ --site-band-texture: var(--dna-texture-inverse);
1268
+ }
1269
+
1270
+ .site-block[data-tone="brand"] {
1271
+ --site-band-bg: var(--dna-color-surface-brand);
1272
+ --site-band-fg: var(--dna-color-on-surface-brand);
1273
+ --site-band-muted: var(--site-band-fg);
1274
+ --site-band-surface: var(--site-band-bg);
1275
+ --site-emphasis-color: var(--dna-emphasis-color-brand);
1276
+ --site-emphasis-bg: var(--dna-emphasis-bg-brand);
1277
+ --site-band-texture: var(--dna-texture-brand);
1278
+ }
1279
+
1280
+ .site-block[data-tone="inverse"],
1281
+ .site-block[data-tone="brand"] {
1282
+ --site-fg: var(--site-band-fg);
1283
+ --site-fg-muted: var(--site-band-muted);
1284
+ --site-border: color-mix(in oklab, var(--site-band-fg) 24%, var(--site-band-bg));
1285
+ --site-surface: var(--site-band-surface);
1286
+ --site-surface-muted: var(--site-surface);
1287
+ --site-brand: var(--dna-cta-inverse-bg);
1288
+ --site-brand-text: var(--dna-cta-inverse-bg);
1289
+ --site-link: var(--dna-cta-inverse-bg);
1290
+ --color-fd-foreground: var(--site-fg);
1291
+ --color-fd-muted-foreground: var(--site-fg-muted);
1292
+ --color-fd-border: var(--site-border);
1293
+ --color-fd-card: var(--site-surface);
1294
+ --color-fd-muted: var(--site-surface);
1295
+ --color-fd-background: var(--site-band-bg);
1296
+ /* The DNA's texture for this tone, if any, over the band's colour (contract minor 3). */
1297
+ background: var(--site-band-texture), var(--site-band-bg);
1298
+ color: var(--site-fg);
1299
+ }
1300
+
1301
+ .site-block[data-tone="inverse"] .site-card,
1302
+ .site-block[data-tone="brand"] .site-card {
1303
+ border-color: var(--site-border);
1304
+ background: color-mix(in oklab, var(--site-surface) calc(var(--dna-list-fill) * 100%), transparent);
1305
+ }
1306
+
1307
+ .site-block[data-tone="inverse"] .site-button,
1308
+ .site-block[data-tone="brand"] .site-button {
1309
+ --site-button-bg: var(--dna-cta-inverse-bg);
1310
+ border-color: var(--dna-cta-inverse-bg);
1311
+ color: var(--dna-cta-inverse-fg);
1312
+ }
1313
+
1314
+ .site-block[data-tone="inverse"] .site-button-secondary,
1315
+ .site-block[data-tone="brand"] .site-button-secondary {
1316
+ --site-button-bg: transparent;
1317
+ border-color: var(--site-border);
1318
+ color: var(--site-fg);
1319
+ }
1320
+
1321
+ /* On a band the step numbers take the accent when the brand allows it (colorPolicy.accent). */
1322
+ .site-block[data-tone="inverse"] .site-step-number,
1323
+ .site-block[data-tone="brand"] .site-step-number {
1324
+ color: var(--dna-accent-numerals);
1325
+ }
1326
+
1327
+ /* The brand's split (composition.split): the first column the wider one, or the last. */
1328
+ .site-split,
1329
+ .site-split-end {
1330
+ display: grid;
1331
+ grid-template-columns: minmax(0, 1fr);
1332
+ gap: var(--dna-space-xl);
1333
+ }
1334
+
1335
+ @media (min-width: 48rem) {
1336
+ .site-split {
1337
+ grid-template-columns: minmax(0, var(--dna-split-wide)) minmax(0, var(--dna-split-narrow));
1338
+ column-gap: clamp(var(--dna-space-xl), 6vw, calc(var(--dna-space-2xl) * 1.5));
1339
+ }
1340
+
1341
+ .site-split-end {
1342
+ grid-template-columns: minmax(0, var(--dna-split-narrow)) minmax(0, var(--dna-split-wide));
1343
+ column-gap: clamp(var(--dna-space-xl), 6vw, calc(var(--dna-space-2xl) * 1.5));
1344
+ }
1345
+ }
1346
+
1347
+ /* Media (containers.media, imagery.media): a frame or none, the media radius, the brand's aspect
1348
+ ratio, and a two-colour treatment made of a grey picture between two brand colours. */
1349
+ .site-media {
1350
+ margin: 0;
1351
+ width: 100%;
1352
+ padding: var(--dna-media-frame-padding);
1353
+ border: var(--dna-media-frame-border-width) solid var(--dna-component-card-border);
1354
+ border-radius: calc(var(--dna-media-radius) + var(--dna-media-frame-padding));
1355
+ background: var(--dna-media-frame-bg);
1356
+ }
1357
+
1358
+ .site-media-picture {
1359
+ position: relative;
1360
+ isolation: isolate;
1361
+ overflow: hidden;
1362
+ border-radius: var(--dna-media-radius);
1363
+ background: var(--dna-media-highlight);
1364
+ }
1365
+
1366
+ .site-media-img {
1367
+ display: block;
1368
+ width: 100%;
1369
+ height: 100%;
1370
+ aspect-ratio: var(--dna-media-aspect);
1371
+ object-fit: cover;
1372
+ filter: var(--dna-media-filter);
1373
+ mix-blend-mode: var(--dna-media-blend);
1374
+ }
1375
+
1376
+ .site-media-picture::after {
1377
+ content: "";
1378
+ position: absolute;
1379
+ inset: 0;
1380
+ background: var(--dna-media-shadow);
1381
+ mix-blend-mode: lighten;
1382
+ pointer-events: none;
1383
+ }
1384
+
1385
+ .site-hero-image,
1386
+ .site-media-image {
1387
+ width: 100%;
1388
+ }
1389
+
1390
+ .site-hero-media {
1391
+ align-self: stretch;
1392
+ }
1393
+
1394
+ /* A picture that runs to the edge of its band on a wide screen, when the brand bleeds media
1395
+ (containers.media). The band is a size container, so 100cqw is its own width: the window on a
1396
+ site, the canvas in a preview. A split that holds such a picture spans the band: its start
1397
+ padding lines the words up with the page column, and its end padding is that gutter times
1398
+ (1 - the flag), so for every other brand the picture keeps its column and its corners. */
1399
+ .site-block:has(.site-media-bleed) {
1400
+ container-type: inline-size;
1401
+ }
1402
+
1403
+ @media (min-width: 48rem) {
1404
+ .site-container:has(> .site-media-bleed) {
1405
+ --site-gutter: max(
1406
+ var(--dna-grid-margin),
1407
+ calc((100cqw - var(--site-container-width)) / 2 + var(--dna-grid-margin))
1408
+ );
1409
+ max-width: none;
1410
+ padding-inline-start: var(--site-gutter);
1411
+ padding-inline-end: calc(var(--site-gutter) * (1 - var(--dna-media-bleed)));
1412
+ }
1413
+
1414
+ .site-media-bleed .site-media-picture {
1415
+ border-start-end-radius: calc(var(--dna-media-radius) * (1 - var(--dna-media-bleed)));
1416
+ border-end-end-radius: calc(var(--dna-media-radius) * (1 - var(--dna-media-bleed)));
1417
+ height: 100%;
1418
+ }
1419
+ }
1420
+
1421
+ /* A price list: each line a name and a note on one side, the price on the other. */
1422
+ .site-price-list {
1423
+ border-top: var(--dna-border-width-thick) solid var(--site-fg);
1424
+ }
1425
+
1426
+ .site-price-row {
1427
+ display: flex;
1428
+ align-items: baseline;
1429
+ justify-content: space-between;
1430
+ gap: var(--dna-space-lg);
1431
+ padding-block: var(--dna-space-lg);
1432
+ border-bottom: var(--dna-border-width-thin) solid var(--site-border);
1433
+ }
1434
+
1435
+ .site-price-name {
1436
+ margin-bottom: var(--dna-space-xs);
1437
+ font-family: var(--dna-type-h4-family);
1438
+ font-size: var(--dna-type-h4-size);
1439
+ font-weight: var(--dna-type-h4-weight);
1440
+ line-height: var(--dna-type-h4-line-height);
1441
+ color: var(--site-fg);
1442
+ }
1443
+
1444
+ .site-price-amount {
1445
+ flex: 0 1 auto;
1446
+ min-width: 0;
1447
+ max-width: 50%;
1448
+ text-align: end;
1449
+ font-family: var(--dna-type-h4-family);
1450
+ font-size: var(--dna-type-h4-size);
1451
+ font-weight: var(--dna-type-h4-weight);
1452
+ font-variant-numeric: var(--dna-numerals);
1453
+ color: var(--site-fg);
1454
+ }
1455
+
1456
+ .site-price-note {
1457
+ display: block;
1458
+ font-family: var(--dna-type-caption-family);
1459
+ font-size: var(--dna-type-caption-size);
1460
+ font-weight: var(--dna-type-caption-weight);
1461
+ color: var(--site-fg-muted);
1462
+ }
1463
+
1464
+ @media (min-width: 64rem) {
1465
+ .site-price-columns .site-price-list {
1466
+ columns: 2;
1467
+ column-gap: var(--dna-space-2xl);
1468
+ }
1469
+
1470
+ .site-price-columns .site-price-row {
1471
+ break-inside: avoid;
1472
+ }
1473
+ }
1474
+
1475
+ /* Opening hours and the facts of a place: a label and a value on each line. */
1476
+ .site-hours {
1477
+ display: grid;
1478
+ font-size: var(--dna-type-body-size);
1479
+ line-height: var(--dna-type-body-line-height);
1480
+ font-variant-numeric: var(--dna-numerals);
1481
+ }
1482
+
1483
+ .site-hours-row {
1484
+ display: flex;
1485
+ justify-content: space-between;
1486
+ gap: var(--dna-space-lg);
1487
+ padding-block: var(--dna-space-sm);
1488
+ border-bottom: var(--dna-border-width-thin) solid var(--site-border);
1489
+ }
1490
+
1491
+ .site-hours-row > dt {
1492
+ color: var(--site-fg);
1493
+ }
1494
+
1495
+ .site-hours-row > dd {
1496
+ margin: 0;
1497
+ text-align: end;
1498
+ color: var(--site-fg-muted);
1499
+ }
1500
+
1501
+ .site-hours-table {
1502
+ max-width: var(--dna-measure-body);
1503
+ }
1504
+
1505
+ /* A location: the address in the display face, and a picture or a plan of streets beside it. */
1506
+ .site-location-words {
1507
+ min-width: 0;
1508
+ }
1509
+
1510
+ .site-location-address {
1511
+ font-style: normal;
1512
+ font-family: var(--dna-type-h3-family);
1513
+ font-size: var(--dna-type-h3-size);
1514
+ font-weight: var(--dna-type-h3-weight);
1515
+ line-height: var(--dna-type-h3-line-height);
1516
+ letter-spacing: var(--dna-type-h3-tracking);
1517
+ color: var(--site-fg);
1518
+ }
1519
+
1520
+ .site-location-media {
1521
+ align-self: stretch;
1522
+ }
1523
+
1524
+ .site-location-plan {
1525
+ position: relative;
1526
+ min-height: 16rem;
1527
+ aspect-ratio: 4 / 3;
1528
+ border-radius: var(--dna-media-radius);
1529
+ --site-plan-street: var(--color-fd-background);
1530
+ background:
1531
+ linear-gradient(100deg, transparent 46%, var(--site-plan-street) 46%, var(--site-plan-street) 54%, transparent 54%),
1532
+ linear-gradient(8deg, transparent 37%, var(--site-plan-street) 37%, var(--site-plan-street) 43%, transparent 43%),
1533
+ linear-gradient(-4deg, transparent 69%, var(--site-plan-street) 69%, var(--site-plan-street) 73%, transparent 73%),
1534
+ color-mix(in oklab, var(--site-border) 55%, var(--dna-color-surface-tint));
1535
+ border: var(--dna-border-width-thin) solid var(--site-border);
1536
+ overflow: hidden;
1537
+ }
1538
+
1539
+ .site-location-pin {
1540
+ position: absolute;
1541
+ inset-block-start: 44%;
1542
+ inset-inline-start: 50%;
1543
+ width: 18px;
1544
+ height: 18px;
1545
+ border-radius: var(--dna-radius-full);
1546
+ background: var(--site-brand);
1547
+ box-shadow: 0 0 0 8px color-mix(in oklab, var(--site-brand) 22%, transparent);
1548
+ transform: translate(-50%, -50%);
1549
+ }
1550
+
1551
+ /* The browser's own surfaces take the brand: a text selection, the caret, checkboxes and radio
1552
+ buttons, and the scroll bar. */
1553
+ ::selection {
1554
+ background: color-mix(in oklab, var(--dna-color-primary) 26%, transparent);
1555
+ }
1556
+
1557
+ :root {
1558
+ accent-color: var(--dna-color-primary);
1559
+ caret-color: var(--dna-color-primary);
1560
+ scrollbar-color: color-mix(in oklab, var(--dna-color-on-surface) 32%, transparent) transparent;
1561
+ }
1562
+
1563
+ /* The opening section enters once when the brand has a reveal (motion.pageReveal); every other
1564
+ section is still. With duration 0 and opacity 1 the rule does nothing. */
1565
+ @keyframes site-reveal {
1566
+ from {
1567
+ opacity: var(--dna-reveal-opacity);
1568
+ transform: translateY(var(--dna-reveal-distance));
1569
+ }
1570
+ }
1571
+
1572
+ @media (prefers-reduced-motion: no-preference) {
1573
+ .site-hero-words,
1574
+ .site-hero-media {
1575
+ animation: site-reveal var(--dna-reveal-duration) var(--dna-motion-ease) both;
1576
+ }
1577
+
1578
+ .site-hero-media {
1579
+ animation-delay: var(--dna-motion-fast);
1580
+ }
1581
+ }