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