sproutsite 0.5.18 → 0.5.20

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 (30) hide show
  1. package/README.md +17 -1
  2. package/THIRD_PARTY_NOTICES.md +4 -0
  3. package/VERSION +1 -1
  4. package/package.json +1 -1
  5. package/src/lib/sproutsite/site-config.ts +31 -1
  6. package/src/lib/sproutsite/types.ts +4 -0
  7. package/src/themes/default/components/atoms/BrandLogo/BrandLogo.css +1 -1
  8. package/src/themes/default/components/atoms/Button/Button.astro +2 -2
  9. package/src/themes/default/components/atoms/Eyebrow/Eyebrow.css +3 -2
  10. package/src/themes/default/components/atoms/Tab/Tab.css +4 -1
  11. package/src/themes/default/components/molecules/AccordionItem/AccordionItem.css +2 -2
  12. package/src/themes/default/components/molecules/Card/Card.css +6 -0
  13. package/src/themes/default/components/molecules/Feature/Feature.css +2 -2
  14. package/src/themes/default/components/molecules/FoundationSample/FoundationSample.css +4 -3
  15. package/src/themes/default/components/organisms/BlogIndex/BlogIndex.astro +1 -1
  16. package/src/themes/default/components/organisms/BlogIndex/BlogIndex.css +1 -0
  17. package/src/themes/default/components/organisms/Footer/Footer.css +5 -3
  18. package/src/themes/default/components/organisms/Header/Header.astro +10 -8
  19. package/src/themes/default/components/organisms/Header/Header.css +3 -3
  20. package/src/themes/default/components/organisms/Header/navigation.ts +12 -0
  21. package/src/themes/default/components/organisms/Hero/Hero.css +5 -4
  22. package/src/themes/default/components/organisms/PageTitle/PageTitle.css +2 -1
  23. package/src/themes/default/components/organisms/Section/Section.css +5 -0
  24. package/src/themes/default/layouts/PageLayout/PageLayout.astro +6 -0
  25. package/src/themes/default/styles/foundation/fonts/eb-garamond-OFL.txt +94 -0
  26. package/src/themes/default/styles/foundation/fonts/eb-garamond-latin-variable-italic.woff2 +0 -0
  27. package/src/themes/default/styles/foundation/fonts/eb-garamond-latin-variable.woff2 +0 -0
  28. package/src/themes/default/styles/foundation/fonts.css +48 -2
  29. package/src/themes/default/styles/foundation/prose.css +11 -6
  30. package/src/themes/default/styles/foundation/tokens.css +13 -3
package/README.md CHANGED
@@ -180,6 +180,22 @@ This is our first page. Edit this file to update the website.
180
180
 
181
181
  ## Write, Preview, and Publish
182
182
 
183
+ Choose heading and eyebrow fonts independently in each locale's `src/content/site.yaml` or `src/content/site.de.yaml`:
184
+
185
+ ```yaml
186
+ typography:
187
+ headings:
188
+ family: serif
189
+ weight: 500
190
+ eyebrow:
191
+ family: serif
192
+ weight: 500
193
+ ```
194
+
195
+ For each area, `family` accepts `serif` (EB Garamond, the default) or `sans-serif` (Nunito); `weight` is an integer, defaulting to `500`. EB Garamond supports weights 400–800 and Nunito 200–1000. Unsupported weights and unknown settings are rejected. The default theme hosts both variable fonts locally, including EB Garamond's italic face, with their SIL Open Font License notices. HTML headings, title components and the live header/footer wordmark follow `headings`; eyebrow text has its own setting. Body text, navigation, buttons and inline emphasis retain their existing typography. Custom themes decide how to present these semantic choices.
196
+
197
+ Heading line heights are shared by semantic level across the default theme: H1 `1.1`, H2 `1.2`, H3 `1.3`, H4 `1.35`, H5/H6 `1.4`. Their central tokens are `--leading-heading-1` through `--leading-heading-6` in `styles/foundation/tokens.css`. Component title text without an HTML heading, such as accordion summaries, uses the H3 token.
198
+
183
199
  Run `npm run dev` and open the local address printed by Astro. Edit Markdown files under `src/content/` to change the page content. Add a directory with `page.yaml` and numbered sections to create another page; add its link to `site.yaml` when it should appear in navigation. An optional `hero.md` supplies the page's introductory area.
184
200
 
185
201
  Use `.mdx` sections when you need documented components such as cards, columns, features, or accordions:
@@ -620,7 +636,7 @@ Leave `PRIVACY_LOG_RETENTION_DAYS` empty until a time-based policy is implemente
620
636
 
621
637
  ### Logo and icons
622
638
 
623
- The reference-based sprout and three-layer symbol lives in `src/themes/default/assets/branding/`. `logo.svg` (navy wordmark), `logo-dark.svg` (white wordmark), `logo-monochrome.svg`, `icon.svg`, and `icon-monochrome.svg` are standalone vector assets with transparent backgrounds and outlined Nunito lettering. They need no external font. The shared `BrandLogo` atom uses the existing locally hosted Nunito font, inherits the light/dark text color, and is used in the header and footer. Consumer sites with a different `site.name` retain their own text wordmark.
639
+ The reference-based sprout and three-layer symbol lives in `src/themes/default/assets/branding/`. `logo.svg` (navy wordmark), `logo-dark.svg` (white wordmark), `logo-monochrome.svg`, `icon.svg`, and `icon-monochrome.svg` are standalone vector assets with transparent backgrounds and outlined Nunito lettering. They need no external font. The shared `BrandLogo` atom follows the configured heading family and weight, inherits the light/dark text color, and is used in the header and footer. Consumer sites with a different `site.name` retain their own text wordmark.
624
640
 
625
641
  `favicon.svg` uses flat colors for small displays. The ICO contains native 16, 32, and 48 pixel frames; separate PNGs provide those sizes too. The Apple touch icon is 180 pixels; web app icons are 192 and 512 pixels, with navy backgrounds and safe internal padding. `PageLayout` links the icons and the static `/site.webmanifest` endpoint registered by `createSproutsiteConfig()` through Astro's standard `injectRoute()` API. Imported asset URLs and the configured base are respected; no CMS runtime or service worker is added. These are the default theme's icons; a differently branded consumer should replace them when replacing the theme. The Sproutsite social card is emitted only for the product site (`site.name: Sproutsite`).
626
642
 
@@ -17,6 +17,10 @@ Nunito is third-party font software licensed under the SIL Open Font License 1.1
17
17
 
18
18
  Both existing `OFL.txt` files are retained unchanged. The source font is from the [official Nunito distribution](https://github.com/google/fonts/tree/main/ofl/nunito). Apache-2.0 does not replace the OFL. The project's artwork license below does not relicense Nunito or remove its applicable notices.
19
19
 
20
+ EB Garamond is third-party font software under SIL Open Font License 1.1. The unmodified copyright and license text is retained in `src/themes/default/styles/foundation/fonts/eb-garamond-OFL.txt`, alongside the locally bundled normal and italic Latin variable WOFF2 files (weights 400–800). All three files are included in the npm package. The original notice identifies Copyright 2017 The EB Garamond Project Authors. These files retain their OFL license; Apache-2.0 does not replace it.
21
+
22
+ The WOFF2 files were downloaded unchanged on 2026-11-19 from the official Google Fonts distribution (`fonts.gstatic.com/s/ebgaramond/v33/`): [normal](https://fonts.gstatic.com/s/ebgaramond/v33/SlGUmQSNjdsmc35JDF1K5GR1SDk.woff2) and [italic](https://fonts.gstatic.com/s/ebgaramond/v33/SlGWmQSNjdsmc35JDF1K5GRweDs1Zw.woff2). The corresponding source and license are documented in the [official EB Garamond repository](https://github.com/octaviopardo/EBGaramond12/tree/106a4a6d377987459ae5e68673a4570f13b957fb), referenced by Google Fonts metadata. The license was copied unchanged from that source revision. No browser requests to Google Fonts are needed; ordinary builds use the committed files.
23
+
20
24
  ## Dependency licenses and notices
21
25
 
22
26
  Footer social logos (GitHub, Instagram and Facebook) are rendered locally from `simple-icons` 16.38.0, distributed under [CC0 1.0 Universal](third-party-licenses/simple-icons-LICENSE). The full, unmodified upstream license is retained. Brand names and logos remain subject to their respective trademark rights; CC0 does not grant trademark rights. No remote icon service or social embed is loaded. The footer-wave SVG in `src/themes/default/assets/footer-waves.svg` was supplied by the maintainer on 2026-11-18; its separate provenance and redistribution permissions have not yet been confirmed. The existing hero-wave authorization should not be assumed to cover this new file.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.18
1
+ 0.5.20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutsite",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Björn Hempel",
6
6
  "description": "Agent-ready, Markdown-first Static CMS powered by Astro and TypeScript.",
@@ -36,7 +36,37 @@ const heroClass = z.string().regex(/^ss-[a-z0-9][a-z0-9_-]*$/, {
36
36
  'must start with ss- and contain only lowercase letters, digits, underscores, or hyphens',
37
37
  });
38
38
 
39
+ const fontSelectionSchema = z
40
+ .object({
41
+ family: z.enum(['serif', 'sans-serif']).default('serif'),
42
+ weight: z.number().int().min(200).max(1000).default(500),
43
+ })
44
+ .strict()
45
+ .superRefine((font, context) => {
46
+ if (
47
+ font.family === 'serif' &&
48
+ (font.weight < 400 || font.weight > 800)
49
+ ) {
50
+ context.addIssue({
51
+ code: 'custom',
52
+ path: ['weight'],
53
+ message: 'must be between 400 and 800 for serif (EB Garamond)',
54
+ });
55
+ }
56
+ })
57
+ .default({ family: 'serif', weight: 500 });
58
+
39
59
  const siteSchema = z.object({
60
+ typography: z
61
+ .object({
62
+ headings: fontSelectionSchema,
63
+ eyebrow: fontSelectionSchema,
64
+ })
65
+ .strict()
66
+ .default({
67
+ headings: { family: 'serif', weight: 500 },
68
+ eyebrow: { family: 'serif', weight: 500 },
69
+ }),
40
70
  links: z
41
71
  .object({
42
72
  externalNewTab: z.boolean().optional(),
@@ -147,7 +177,7 @@ export function loadSiteConfig(
147
177
  const parsed = siteSchema.safeParse(raw);
148
178
  if (!parsed.success) {
149
179
  throw new Error(
150
- `Invalid src/content/site.yaml: ${parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,
180
+ `Invalid src/content/${filename}: ${parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`,
151
181
  );
152
182
  }
153
183
  const { 'hero-classes': heroClasses, ...site } = parsed.data;
@@ -34,6 +34,10 @@ export interface SiteConfig {
34
34
  language: string;
35
35
  locales: string[];
36
36
  heroClasses: string[];
37
+ typography: {
38
+ headings: { family: 'serif' | 'sans-serif'; weight: number };
39
+ eyebrow: { family: 'serif' | 'sans-serif'; weight: number };
40
+ };
37
41
  links?: {
38
42
  externalNewTab?: boolean;
39
43
  externalIcon?: boolean;
@@ -5,7 +5,7 @@
5
5
  gap: 0.625rem;
6
6
  font-family: var(--font-heading);
7
7
  font-size: 1.5rem;
8
- font-weight: 800;
8
+ font-weight: var(--ss-heading-weight, 500);
9
9
  line-height: 1;
10
10
  letter-spacing: -0.025em;
11
11
 
@@ -34,8 +34,8 @@ interface Props {
34
34
  target?: HTMLAttributes<'a'>['target'];
35
35
  /** Relationship of a link to its target. */
36
36
  rel?: string;
37
- /** Marks a link as the current page. */
38
- 'aria-current'?: 'page';
37
+ /** Marks the current page or its enclosing navigation location. */
38
+ 'aria-current'?: 'page' | 'location';
39
39
  /** Native button type for button actions. */
40
40
  type?: ButtonType;
41
41
  /** Disables a native button. Links cannot be disabled. */
@@ -1,7 +1,8 @@
1
1
  @layer components {
2
2
  .ss-eyebrow {
3
- @apply mb-1.5 text-sm font-bold tracking-wider uppercase;
4
- font-family: var(--font-heading);
3
+ @apply mb-1.5 text-sm tracking-wider uppercase;
4
+ font-family: var(--font-eyebrow);
5
+ font-weight: var(--ss-eyebrow-weight, 500);
5
6
  color: var(--ss-eyebrow-color, var(--color-primary));
6
7
  display: flex;
7
8
  align-items: center;
@@ -11,7 +11,10 @@
11
11
  }
12
12
 
13
13
  .ss-tab__label {
14
- @apply mt-0 font-bold;
14
+ @apply mt-0;
15
+ font-family: var(--font-heading);
16
+ font-weight: var(--ss-heading-weight, 500);
17
+ line-height: var(--leading-heading-3);
15
18
 
16
19
  &[hidden] {
17
20
  display: none;
@@ -38,8 +38,8 @@
38
38
  .ss-accordion-item__title {
39
39
  font-family: var(--font-heading);
40
40
  font-size: 1.25rem;
41
- font-weight: 700;
42
- line-height: 1.4;
41
+ font-weight: var(--ss-heading-weight, 500);
42
+ line-height: var(--leading-heading-3);
43
43
  }
44
44
 
45
45
  .ss-accordion-item__indicator {
@@ -20,6 +20,12 @@
20
20
 
21
21
  > h3:first-child {
22
22
  @apply card-title;
23
+ font-weight: var(--ss-heading-weight, 500);
24
+ }
25
+
26
+ :is(h1, h2, h3, h4, h5, h6, .card-title) {
27
+ /* DaisyUI emits card-title weight in the utilities layer. */
28
+ font-weight: var(--ss-heading-weight, 500) !important;
23
29
  }
24
30
 
25
31
  > p {
@@ -37,8 +37,8 @@
37
37
  color: inherit;
38
38
  font-family: var(--font-heading);
39
39
  font-size: 1.25rem;
40
- font-weight: 700;
41
- line-height: 1.3;
40
+ font-weight: var(--ss-heading-weight, 500);
41
+ line-height: var(--ss-heading-leading);
42
42
  }
43
43
 
44
44
  .ss-feature__description {
@@ -78,18 +78,19 @@
78
78
  .ss-foundation-sample__heading {
79
79
  @apply m-0 mb-4;
80
80
  font-family: var(--font-heading);
81
- line-height: 1.2;
82
81
  overflow-wrap: anywhere;
83
82
  }
84
83
 
85
84
  .ss-foundation-sample__display {
86
85
  font-size: var(--text-display);
87
- font-weight: 700;
86
+ font-weight: var(--ss-heading-weight, 500);
87
+ line-height: var(--leading-heading-1);
88
88
  }
89
89
 
90
90
  .ss-foundation-sample__heading {
91
91
  font-size: var(--text-heading-2);
92
- font-weight: 500;
92
+ font-weight: var(--ss-heading-weight, 500);
93
+ line-height: var(--leading-heading-2);
93
94
  }
94
95
 
95
96
  .ss-foundation-sample__body {
@@ -64,7 +64,7 @@ const dateFormatter = new Intl.DateTimeFormat(site.language, {
64
64
  >
65
65
  {dateFormatter.format(post.data.pubDate)}
66
66
  </time>
67
- <h2 class="card-title">{post.data.title}</h2>
67
+ <h3>{post.data.title}</h3>
68
68
  <p>{post.data.description}</p>
69
69
  <CardActions>
70
70
  <a
@@ -11,6 +11,7 @@
11
11
 
12
12
  .ss-blog-index__date {
13
13
  @apply text-sm font-semibold tracking-wide text-base-content/70 uppercase;
14
+ font-family: var(--font-eyebrow);
14
15
  }
15
16
  }
16
17
  }
@@ -68,7 +68,9 @@
68
68
  }
69
69
  .ss-brand-logo {
70
70
  font-size: 2rem;
71
- gap: 0.25rem;
71
+ @media (width < 72rem) {
72
+ gap: 0.5rem;
73
+ }
72
74
  img {
73
75
  width: 3rem;
74
76
  height: 3rem;
@@ -83,8 +85,8 @@
83
85
  .ss-footer__heading {
84
86
  margin: 0 0 0.75rem;
85
87
  font-size: 1.125rem;
86
- line-height: 1.4;
87
- font-weight: 700;
88
+ line-height: var(--ss-heading-leading);
89
+ font-weight: var(--ss-heading-weight, 500);
88
90
  }
89
91
  .ss-footer__group {
90
92
  a {
@@ -5,7 +5,8 @@ import Icon from '../../atoms/Icon/Icon.astro';
5
5
  import LanguageSwitcher from '../../molecules/LanguageSwitcher/LanguageSwitcher.astro';
6
6
  import type { ComponentProps } from 'astro/types';
7
7
  import { t } from '../../../i18n/index.js';
8
- import type { Link, SiteConfig } from '../../../../../lib/sproutsite/types.js';
8
+ import type { SiteConfig } from '../../../../../lib/sproutsite/types.js';
9
+ import { navigationCurrent } from './navigation.js';
9
10
  import {
10
11
  contentHref,
11
12
  externalLinkAttributes,
@@ -16,7 +17,6 @@ interface Props {
16
17
  route: string;
17
18
  }
18
19
  const { site, route } = Astro.props;
19
- const isActive = (link: Link) => link.href === route;
20
20
  const language = site.language === 'de' ? 'de' : 'en';
21
21
  const hasLanguageSwitcher = site.header.links.some(
22
22
  (link) => link.type === 'language-switcher',
@@ -88,9 +88,10 @@ const hasLanguageSwitcher = site.header.links.some(
88
88
  size="md"
89
89
  target={externalAttributes.target}
90
90
  rel={externalAttributes.rel}
91
- aria-current={
92
- isActive(link) ? 'page' : undefined
93
- }
91
+ aria-current={navigationCurrent(
92
+ link.href,
93
+ route,
94
+ )}
94
95
  >
95
96
  {icon && <Icon name={icon} size={20} />}
96
97
  {link.label}
@@ -104,9 +105,10 @@ const hasLanguageSwitcher = site.header.links.some(
104
105
  class="ss-header__link btn btn-ghost btn-sm"
105
106
  href={contentHref(link.href, site)}
106
107
  {...externalAttributes}
107
- aria-current={
108
- isActive(link) ? 'page' : undefined
109
- }
108
+ aria-current={navigationCurrent(
109
+ link.href,
110
+ route,
111
+ )}
110
112
  >
111
113
  {icon && <Icon name={icon} size={20} />}
112
114
  {link.label}
@@ -37,7 +37,7 @@
37
37
  .ss-button {
38
38
  @apply m-0 !text-lg no-underline hover:underline;
39
39
 
40
- &[aria-current='page'] {
40
+ &:is([aria-current='page'], [aria-current='location']) {
41
41
  @apply outline-2 outline-offset-2;
42
42
  outline-color: var(--ss-header-cta-outline);
43
43
  }
@@ -63,7 +63,7 @@
63
63
  ) !important;
64
64
  }
65
65
 
66
- &[aria-current='page'] {
66
+ &:is([aria-current='page'], [aria-current='location']) {
67
67
  --btn-bg: transparent !important;
68
68
  --btn-border: transparent !important;
69
69
  @apply font-bold;
@@ -206,7 +206,7 @@
206
206
  text-align: start;
207
207
  white-space: normal;
208
208
 
209
- &[aria-current='page'] {
209
+ &:is([aria-current='page'], [aria-current='location']) {
210
210
  font-weight: 700 !important;
211
211
 
212
212
  &::after {
@@ -0,0 +1,12 @@
1
+ /** Compare content routes before locale and deployment-base prefixes are applied. */
2
+ export function navigationCurrent(
3
+ href: string,
4
+ route: string,
5
+ ): 'page' | 'location' | undefined {
6
+ if (!href.startsWith('/') || href.startsWith('//')) return undefined;
7
+ const path = href.split(/[?#]/, 1)[0]!.replace(/\/+$/, '') || '/';
8
+ const current = route.replace(/\/+$/, '') || '/';
9
+ if (path === current) return 'page';
10
+ if (path !== '/' && current.startsWith(`${path}/`)) return 'location';
11
+ return undefined;
12
+ }
@@ -27,9 +27,10 @@
27
27
  }
28
28
 
29
29
  .ss-hero__title {
30
- @apply max-w-3xl font-bold tracking-tight;
30
+ @apply max-w-3xl tracking-tight;
31
+ font-weight: var(--ss-heading-weight, 500);
31
32
  font-size: clamp(3.25rem, 6vw, 6rem);
32
- line-height: 1.06;
33
+ line-height: var(--ss-heading-leading);
33
34
 
34
35
  .ss-hero__title-line {
35
36
  display: block;
@@ -46,8 +47,8 @@
46
47
  color: var(--color-primary-content);
47
48
  font-family: var(--font-heading);
48
49
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
49
- font-weight: 700;
50
- line-height: 1.12;
50
+ font-weight: var(--ss-heading-weight, 500);
51
+ line-height: var(--leading-heading-2);
51
52
  }
52
53
 
53
54
  .ss-hero__meta {
@@ -15,7 +15,8 @@
15
15
  }
16
16
 
17
17
  .ss-page-title__title {
18
- @apply max-w-3xl text-display font-bold tracking-tight;
18
+ @apply max-w-3xl text-display tracking-tight;
19
+ font-weight: var(--ss-heading-weight, 500);
19
20
  }
20
21
 
21
22
  .ss-page-title__description {
@@ -2,6 +2,11 @@
2
2
  .ss-section {
3
3
  @apply py-section;
4
4
 
5
+ /* Keep direct section links, including footer links, below the header. */
6
+ .content-prose > h2:target {
7
+ scroll-margin-top: 10rem;
8
+ }
9
+
5
10
  /* Keep hero jump-link destinations below the docked header. */
6
11
  .ss-hero:has(a[href^='#']) ~ & {
7
12
  .content-prose > h2 {
@@ -96,6 +96,12 @@ const socialImage = new URL(socialCard.src, site.url).href;
96
96
  <meta name="twitter:description" content={description} />
97
97
  </head>
98
98
  <body
99
+ data-heading-font={site.typography.headings.family}
100
+ data-eyebrow-font={site.typography.eyebrow.family}
101
+ style={{
102
+ '--ss-heading-weight': String(site.typography.headings.weight),
103
+ '--ss-eyebrow-weight': String(site.typography.eyebrow.weight),
104
+ }}
99
105
  class:list={{
100
106
  'ss-page--landing': layout === 'landing',
101
107
  'ss-links--external-icons': site.links?.externalIcon === true,
@@ -0,0 +1,94 @@
1
+ Copyright 2017 The EB Garamond Project Authors (https://github.com/octaviopardo/EBGaramond12)
2
+ Copyright 2025 Deborah Khodanovich (RCS citation glyphs)
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,6 +1,7 @@
1
1
  /*
2
- * Nunito is stored locally so production pages do not request fonts
3
- * from a third party. Its SIL Open Font License is in ./fonts/OFL.txt.
2
+ * Fonts are stored locally so pages do not request fonts from a third party.
3
+ * Nunito's SIL Open Font License is in ./fonts/OFL.txt;
4
+ * EB Garamond's is in ./fonts/eb-garamond-OFL.txt.
4
5
  */
5
6
  @font-face {
6
7
  font-family: 'Nunito';
@@ -10,8 +11,53 @@
10
11
  src: url('./fonts/nunito-latin-variable.woff2') format('woff2');
11
12
  }
12
13
 
14
+ @font-face {
15
+ font-family: 'EB Garamond';
16
+ font-style: normal;
17
+ font-weight: 400 800;
18
+ font-display: swap;
19
+ src: url('./fonts/eb-garamond-latin-variable.woff2') format('woff2');
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'EB Garamond';
24
+ font-style: italic;
25
+ font-weight: 400 800;
26
+ font-display: swap;
27
+ src: url('./fonts/eb-garamond-latin-variable-italic.woff2') format('woff2');
28
+ }
29
+
13
30
  @layer base {
31
+ [data-heading-font='sans-serif'] {
32
+ --font-heading: var(--font-heading-sans);
33
+ }
34
+
35
+ [data-eyebrow-font='sans-serif'] {
36
+ --font-eyebrow: var(--font-heading-sans);
37
+ }
38
+
14
39
  :is(h1, h2, h3, h4, h5, h6) {
15
40
  font-family: var(--font-heading);
41
+ font-weight: var(--ss-heading-weight, 500);
42
+ line-height: var(--ss-heading-leading);
43
+ }
44
+
45
+ h1 {
46
+ --ss-heading-leading: var(--leading-heading-1);
47
+ }
48
+ h2 {
49
+ --ss-heading-leading: var(--leading-heading-2);
50
+ }
51
+ h3 {
52
+ --ss-heading-leading: var(--leading-heading-3);
53
+ }
54
+ h4 {
55
+ --ss-heading-leading: var(--leading-heading-4);
56
+ }
57
+ h5 {
58
+ --ss-heading-leading: var(--leading-heading-5);
59
+ }
60
+ h6 {
61
+ --ss-heading-leading: var(--leading-heading-6);
16
62
  }
17
63
  }
@@ -14,27 +14,32 @@
14
14
 
15
15
  h1 {
16
16
  font-size: var(--text-heading-1);
17
- @apply mb-5 font-bold;
17
+ @apply mb-5;
18
18
  }
19
19
  h2 {
20
20
  font-size: var(--text-heading-2);
21
- @apply mb-4 font-bold;
21
+ @apply mb-4;
22
22
  }
23
23
  h3 {
24
24
  font-size: var(--text-heading-3);
25
- @apply mb-3 font-medium;
25
+ @apply mb-3;
26
26
  }
27
27
  h4 {
28
28
  font-size: var(--text-heading-4);
29
- @apply mb-2.5 font-medium;
29
+ @apply mb-2.5;
30
30
  }
31
31
  h5 {
32
32
  font-size: var(--text-heading-5);
33
- @apply mb-2 font-medium;
33
+ @apply mb-2;
34
34
  }
35
35
  h6 {
36
36
  font-size: var(--text-heading-6);
37
- @apply mb-2 font-medium;
37
+ @apply mb-2;
38
+ }
39
+
40
+ :is(h1, h2, h3, h4, h5, h6) {
41
+ font-weight: var(--ss-heading-weight, 500);
42
+ line-height: var(--ss-heading-leading);
38
43
  }
39
44
 
40
45
  :is(h1, h2, h3, h4, h5, h6) + * {
@@ -16,12 +16,22 @@
16
16
  --color-hero-cyan: #70c6df;
17
17
 
18
18
  --font-sans: ui-sans-serif, system-ui, sans-serif;
19
- --font-heading: 'Nunito', var(--font-sans);
19
+ --font-heading-sans: 'Nunito', var(--font-sans);
20
+ --font-heading-serif: 'EB Garamond', ui-serif, Georgia, serif;
21
+ --font-heading: var(--font-heading-serif);
22
+ --font-eyebrow: var(--font-heading-serif);
20
23
 
21
24
  --text-display: clamp(2.25rem, 5vw, 4rem);
22
- --text-display--line-height: 1.08;
25
+ --text-display--line-height: var(--leading-heading-1);
23
26
  --text-heading: clamp(1.75rem, 3vw, 2.5rem);
24
- --text-heading--line-height: 1.15;
27
+ --text-heading--line-height: var(--leading-heading-2);
28
+
29
+ --leading-heading-1: 1.1;
30
+ --leading-heading-2: 1.2;
31
+ --leading-heading-3: 1.3;
32
+ --leading-heading-4: 1.35;
33
+ --leading-heading-5: 1.4;
34
+ --leading-heading-6: 1.4;
25
35
 
26
36
  --spacing-gutter: clamp(1rem, 4vw, 2rem);
27
37
  --spacing-section: clamp(1.875rem, 3.75vw, 3.375rem);