@lettercamp/cli 0.1.10 → 0.1.12

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 (37) hide show
  1. package/dist/build.js +3 -1
  2. package/dist/code-block.js +8 -8
  3. package/dist/content-component-syntax.js +75 -0
  4. package/dist/content-components.js +244 -0
  5. package/dist/dev.js +20 -3
  6. package/dist/media-dimensions.js +4 -3
  7. package/dist/publication-links.js +7 -0
  8. package/dist/search-content.js +24 -0
  9. package/dist/text-styles.js +23 -0
  10. package/package.json +7 -1
  11. package/renderer/src/components/AuthorByline.astro +9 -2
  12. package/renderer/src/components/BlogHome.astro +8 -4
  13. package/renderer/src/components/Footer.astro +1 -1
  14. package/renderer/src/components/Header.astro +2 -2
  15. package/renderer/src/components/PostSearch.astro +30 -0
  16. package/renderer/src/components/RelatedPosts.astro +11 -0
  17. package/renderer/src/components/SocialLink.astro +1 -1
  18. package/renderer/src/layouts/SiteLayout.astro +11 -4
  19. package/renderer/src/lib/block-widths.ts +0 -6
  20. package/renderer/src/lib/branding.js +2 -0
  21. package/renderer/src/lib/button.js +11 -9
  22. package/renderer/src/lib/code-block.ts +8 -8
  23. package/renderer/src/lib/faq.ts +25 -0
  24. package/renderer/src/lib/font-catalog.js +1650 -0
  25. package/renderer/src/lib/font-fallbacks.js +36 -0
  26. package/renderer/src/lib/fonts.js +31 -8
  27. package/renderer/src/lib/image-widths.ts +0 -3
  28. package/renderer/src/lib/key-takeaways.ts +25 -0
  29. package/renderer/src/lib/post-search.ts +194 -0
  30. package/renderer/src/lib/post-share.ts +10 -0
  31. package/renderer/src/lib/related-posts.ts +50 -0
  32. package/renderer/src/lib/site-colors.ts +42 -0
  33. package/renderer/src/lib/table-styles.ts +3 -3
  34. package/renderer/src/pages/[...slug].astro +14 -3
  35. package/renderer/src/styles/post-search.css +37 -0
  36. package/renderer/src/styles/post-share.css +44 -27
  37. package/renderer/src/styles/site.css +95 -72
@@ -1,56 +1,73 @@
1
1
  .byline:has(.post-share-button) { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
2
2
  .byline:has(.post-share-button) .post-byline { grid-column: 1; grid-row: 1; min-width: 0; }
3
3
  .byline > .post-share-button { grid-column: 2; grid-row: 1; justify-self: end; }
4
- .post-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; margin-left: auto; padding: 5px 11px; border: 0; border-radius: 999px; background: #f5f5f5; color: #555; font-size: 13px; line-height: 1.4; }
5
- .post-share-button:hover { background: #ededed; color: #111; }
4
+ .article-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
5
+ .article-meta-row:not(:has(.article-category)) { display: none; }
6
+ .article-meta-row .article-category { min-width: 0; margin: 0; }
7
+ .article-meta-row > .post-share-button { display: none; }
8
+ .post-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; margin-left: auto; padding: 5px 11px; border: 0; border-radius: 999px; background: var(--site-surface-hover); color: var(--site-text-strong); font-size: 13px; line-height: 1.4; }
9
+ .post-share-button:hover { background: var(--site-surface-active); color: var(--site-foreground); }
6
10
  .post-share-button svg { width: 15px; height: 15px; }
7
11
  html:has(.post-share-dialog[open]) { overflow: hidden; }
8
- .post-share-dialog { position: fixed; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 16px; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 14px; background: var(--site-background, #fff); color: #222; box-shadow: 0 20px 80px #0003; font: 13px/1.5 var(--font-family); }
12
+ .post-share-dialog { position: fixed; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 16px; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 14px; background: var(--site-background, #fff); color: var(--site-foreground); box-shadow: 0 20px 80px #0003; font: 13px/1.5 var(--font-family); }
9
13
  .post-share-dialog::backdrop { background: #0006; }
10
14
  .post-share-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
11
15
  .post-share-heading h2 { margin: 0; font: 600 15px/1.4 var(--font-family); letter-spacing: -.3px; }
12
- .post-share-close { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; margin: -4px -4px -4px 0; padding: 0; border: 0; background: transparent; color: #777; }
13
- .post-share-close:hover { color: #111; }
16
+ .post-share-close { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; margin: -4px -4px -4px 0; padding: 0; border: 0; background: transparent; color: var(--site-text-secondary); }
17
+ .post-share-close:hover { color: var(--site-foreground); }
14
18
  .post-share-close svg { width: 19px; height: 19px; }
15
- .post-share-preview { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 8px; background: #f7f7f7; color: #222; font-family: Arial, Helvetica, sans-serif; }
19
+ .post-share-preview { overflow: hidden; border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface-hover); color: var(--site-foreground); font-family: Arial, Helvetica, sans-serif; }
16
20
  .post-share-image { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
17
21
  .post-share-preview-copy { padding: 9px 10px; }
18
- .post-share-domain { margin: 0 0 4px; color: #777; font-size: 10px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
22
+ .post-share-domain { margin: 0 0 4px; color: var(--site-text-secondary); font-size: 10px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
19
23
  .post-share-preview h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font: 600 14px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; text-wrap: auto; }
20
- .post-share-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: #666; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
24
+ .post-share-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: var(--site-text-secondary); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
21
25
  .post-share-description:empty { display: none; }
22
26
  .post-share-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
23
- .post-share-action { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: #555; font-size: 11px; line-height: 1.4; text-decoration: none; }
24
- .post-share-action-icon { display: grid; place-items: center; width: 100%; height: 40px; border-radius: 10px; background: #00000005; }
25
- .post-share-action:hover, .post-share-action[aria-expanded='true'] { color: #111; }
26
- .post-share-action:hover .post-share-action-icon, .post-share-action[aria-expanded='true'] .post-share-action-icon { background: #0000000a; }
27
+ .post-share-action { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--site-text-strong); font-size: 11px; line-height: 1.4; text-decoration: none; }
28
+ .post-share-action-icon { display: grid; place-items: center; width: 100%; height: 40px; border-radius: 10px; background: var(--site-surface); }
29
+ .post-share-action:hover, .post-share-action[aria-expanded='true'] { color: var(--site-foreground); }
30
+ .post-share-action:hover .post-share-action-icon, .post-share-action[aria-expanded='true'] .post-share-action-icon { background: var(--site-surface-hover); }
27
31
  .post-share-action svg { width: 18px; height: 18px; }
28
- .post-share-menu { position: fixed; inset: auto; width: 184px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 6px; overflow: auto; overscroll-behavior: contain; border: 1px solid #eaeaea; border-radius: 10px; background: #fafafa; color: #444; box-shadow: 0 6px 24px #0002; font: 12px/1.4 var(--font-family); }
32
+ .post-share-menu { position: fixed; inset: auto; width: 184px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 6px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--site-border); border-radius: 10px; background: var(--site-surface); color: var(--site-text-strong); box-shadow: 0 6px 24px #0002; font: 12px/1.4 var(--font-family); }
29
33
  .post-share-menu::backdrop { background: transparent; }
30
34
  .post-share-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: inherit; text-align: left; font: inherit; text-decoration: none; }
31
- .post-share-menu-item:is(:hover, :focus-visible) { background: #efefef; color: #111; outline: none; }
32
- .post-share-menu-item svg { width: 15px; height: 15px; color: #888; }
33
- .post-share-menu-item[data-share='native'] { margin-top: 4px; border-top: 1px solid #e8e8e8; border-radius: 0; }
34
- .post-share-summaries { margin-top: 14px; padding-top: 12px; border-top: 1px solid #0000000d; }
35
+ .post-share-menu-item:is(:hover, :focus-visible) { background: var(--site-surface-active); color: var(--site-foreground); outline: none; }
36
+ .post-share-menu-item svg { width: 15px; height: 15px; color: var(--site-text-muted); }
37
+ .post-share-menu-item[data-share='native'] { margin-top: 4px; border-top: 1px solid var(--site-border); border-radius: 0; }
38
+ .post-share-summaries { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--site-border); }
35
39
  .post-share-summaries h3 { margin: 0; font: 600 13px/1.5 var(--font-family); }
36
- .post-share-summaries > p { margin: 3px 0 9px; color: #777; font-size: 12px; }
40
+ .post-share-summaries > p { margin: 3px 0 9px; color: var(--site-text-secondary); font-size: 12px; }
37
41
  .post-share-providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
38
- .post-share-provider { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 9px; border-radius: 7px; background: #00000005; font-size: 12px; text-decoration: none; }
39
- .post-share-provider:hover { background: #0000000a; }
40
- .post-share-provider svg { width: 13px; height: 13px; flex-shrink: 0; color: #888; }
41
- .post-share-status { margin: 12px 0 0; color: #666; font-size: 12px; text-align: center; }
42
+ .post-share-provider { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 9px; border-radius: 7px; background: var(--site-surface); font-size: 12px; text-decoration: none; }
43
+ .post-share-provider:hover { background: var(--site-surface-hover); }
44
+ .post-share-provider svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--site-text-muted); }
45
+ .post-share-status { margin: 12px 0 0; color: var(--site-text-secondary); font-size: 12px; text-align: center; }
42
46
  .post-share-status:empty { display: none; }
43
47
  .post-share-copy-fallback { margin-top: 12px; }
44
- .post-share-copy-fallback label { display: block; margin-bottom: 4px; color: #666; font-size: 12px; }
45
- .post-share-copy-fallback input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #333; font: inherit; }
46
- @media (max-width: 640px) {
47
- .byline:has(.post-share-button) .post-byline { flex-wrap: wrap; gap: 6px 12px; overflow: visible; white-space: normal; }
48
- .byline:has(.post-share-button) .post-authors { max-width: 100%; white-space: normal; }
48
+ .post-share-copy-fallback label { display: block; margin-bottom: 4px; color: var(--site-text-secondary); font-size: 12px; }
49
+ .post-share-copy-fallback input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--site-border-strong); border-radius: 8px; background: var(--site-background); color: var(--site-text-strong); font: inherit; }
50
+ @media (max-width: 600px) {
51
+ .article-meta-row, .article-meta-row:not(:has(.article-category)) { display: flex; }
52
+ .article-meta-row > .post-share-button { display: inline-flex; }
53
+ .byline:has(.post-share-button) { grid-template-columns: minmax(0, 1fr); }
54
+ .byline > .post-share-button { display: none; }
55
+ .byline .post-byline { flex-wrap: wrap; gap: 6px 16px; overflow: visible; white-space: normal; }
56
+ .byline .post-authors { order: -1; flex: 0 0 100%; min-width: 0; white-space: nowrap; }
49
57
  }
50
58
  @media (max-width: 400px) {
51
59
  .post-share-provider { padding: 7px; font-size: 11px; }
52
60
  .byline:has(.post-share-button) { column-gap: 10px; }
53
61
  }
62
+ /* Split headers keep metadata above authors, with sharing centered beside both rows. */
63
+ .publication-post[data-post-hero='split'] .byline { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 6px 16px; }
64
+ .publication-post[data-post-hero='split'] .byline .post-byline { display: contents; }
65
+ .publication-post[data-post-hero='split'] .byline .post-byline > :is(time, .reading-time) { grid-row: 1; }
66
+ .publication-post[data-post-hero='split'] .byline > .post-share-button { display: inline-flex; grid-column: 3; grid-row: 1 / 3; align-self: center; }
67
+ .publication-post[data-post-hero='split'] .byline .post-authors { grid-column: 1 / 3; grid-row: 2; min-width: 0; order: 0; }
68
+ .publication-post[data-post-hero='split'] .byline .author-names { flex: 1; min-width: 0; white-space: normal; }
69
+ .publication-post[data-post-hero='split'] .article-meta-row > .post-share-button { display: none; }
70
+ .publication-post[data-post-hero='split'] .article-meta-row:not(:has(.article-category)) { display: none; }
54
71
  @media (prefers-reduced-motion: no-preference) {
55
72
  .post-share-dialog[open] { animation: post-share-enter 140ms ease-out; }
56
73
  @keyframes post-share-enter { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@@ -1,43 +1,45 @@
1
1
  :root {
2
- color-scheme: light;
3
2
  --font-family: 'Inter', Arial, Helvetica, sans-serif;
4
3
  font-size: 100%;
5
- --type-scale: 1;
6
- --text-base: calc(1rem * var(--type-scale));
7
- --text-title: calc(clamp(2rem, 3.5vw, 2.625rem) * var(--type-scale));
8
- --text-card-title: calc(clamp(1.125rem, 1.4vw, 1.25rem) * var(--type-scale));
9
- --text-h2: calc(var(--text-base) * 1.875);
10
- --text-h3: calc(var(--text-base) * 1.5);
11
- --text-h4: calc(var(--text-base) * 1.25);
12
- --text-h5: calc(var(--text-base) * 1.125);
4
+ --heading-type-scale: 1;
5
+ --body-type-scale: 1;
6
+ --heading-base: calc(1.125rem * var(--heading-type-scale));
7
+ --text-base: calc(1rem * var(--body-type-scale));
8
+ --text-title: calc(clamp(2rem, 3.5vw, 2.625rem) * var(--heading-type-scale));
9
+ --text-card-title: calc(clamp(1.125rem, 1.4vw, 1.25rem) * var(--heading-type-scale));
10
+ --text-h2: calc(var(--heading-base) * 30 / 18);
11
+ --text-h3: calc(var(--heading-base) * 24 / 18);
12
+ --text-h4: calc(var(--heading-base) * 20 / 18);
13
+ --text-h5: var(--heading-base);
13
14
  --text-summary: calc(var(--text-base) * .9375);
14
15
  --text-small: calc(var(--text-base) * .875);
15
16
  --text-label: calc(var(--text-base) * .8125);
16
17
  --text-meta: calc(var(--text-base) * .75);
17
18
  font-family: var(--font-family);
18
- color: #111;
19
+ color: var(--site-foreground);
19
20
  background: var(--site-background, #ffffff);
20
21
  font-synthesis: weight style;
21
22
  -webkit-font-smoothing: antialiased;
22
- --muted: #666;
23
- --text-secondary: #6f6e77;
24
- --text-tertiary: #86848d;
25
- --line: #f0f0f0;
26
- --site-width: min(1280px, calc(100% - 64px));
23
+ --muted: var(--site-text-secondary);
24
+ --text-secondary: var(--site-text-secondary);
25
+ --text-tertiary: var(--site-text-muted);
26
+ --line: var(--site-border);
27
+ --site-gutter: 32px;
28
+ --site-width: min(1280px, calc(100% - 2 * var(--site-gutter)));
27
29
  }
28
30
  * { box-sizing: border-box; }
29
31
  [hidden] { display: none !important; }
30
32
  body { margin: 0; font-size: var(--text-base); line-height: 1.65; }
31
33
  a { color: inherit; text-underline-offset: .22em; }
32
34
  button { font: inherit; color: inherit; cursor: pointer; }
33
- a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #111; outline-offset: 5px; border-radius: 3px; }
35
+ a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--site-foreground); outline-offset: 5px; border-radius: 3px; }
34
36
  img { display: block; max-width: 100%; height: auto; }
35
37
  h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font, var(--font-family)); text-wrap: balance; overflow-wrap: anywhere; }
36
- .site-header-inner, .footer-inner, .blog-home { width: var(--site-width); margin-inline: auto; }
38
+ .footer-inner, .blog-home { width: var(--site-width); margin-inline: auto; }
37
39
  .site-header { position: relative; z-index: 30; border: 0; background: var(--site-background, #ffffff); }
38
40
  .site-header[data-header-position='fixed'] { position: sticky; top: 0; }
39
41
  html:has(.site-header[data-header-position='fixed']) { scroll-padding-top: 80px; }
40
- .site-header-inner { position: relative; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
42
+ .site-header-inner { position: relative; margin-inline: 32px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
41
43
  @keyframes header-scroll-away { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
42
44
  @media (prefers-reduced-motion: no-preference) {
43
45
  @supports (animation-timeline: scroll()) {
@@ -54,7 +56,7 @@ html:has(.site-header[data-header-position='fixed']) { scroll-padding-top: 80px;
54
56
  .brand img { width: 24px; height: 24px; }
55
57
  .site-header nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: var(--text-small); }
56
58
  .site-header nav a { text-decoration: none; color: var(--muted); }
57
- .site-header nav a[aria-current], .site-header nav a:hover { color: #111; }
59
+ .site-header nav a[aria-current], .site-header nav a:hover { color: var(--site-foreground); }
58
60
  .header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 28px; margin-left: auto; max-width: 100%; }
59
61
  .header-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 20px; border: 0; border-radius: 12px; background: var(--button-color, #111111); color: var(--button-text, #ffffff); font-size: var(--text-label); font-weight: 500; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
60
62
  .site-header a.header-primary, .site-header a.header-primary:hover { color: var(--button-text, #ffffff); }
@@ -62,7 +64,7 @@ html:has(.site-header[data-header-position='fixed']) { scroll-padding-top: 80px;
62
64
  .mobile-navigation { display: none; }
63
65
  .mobile-menu-toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; list-style: none; cursor: pointer; background: transparent; }
64
66
  .mobile-menu-toggle::-webkit-details-marker { display: none; }
65
- .mobile-menu-toggle svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity 180ms ease, transform 180ms ease; }
67
+ .mobile-menu-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 180ms ease, transform 180ms ease; }
66
68
  .mobile-close-icon { opacity: 0; transform: rotate(-90deg) scale(.75); }
67
69
  .mobile-navigation[open] .mobile-menu-icon { opacity: 0; transform: rotate(90deg) scale(.75); }
68
70
  .mobile-navigation[open] .mobile-close-icon { opacity: 1; transform: rotate(0) scale(1); }
@@ -72,17 +74,21 @@ html:has(.site-header[data-header-position='fixed']) { scroll-padding-top: 80px;
72
74
  }
73
75
  .blog-home { padding-block: 72px 100px; }
74
76
  .blog-heading { margin-bottom: 18px; }
75
- .blog-home:not(:has(> .category-selector:not([hidden]))) > .blog-heading { margin-bottom: 64px; }
77
+ .blog-home:not(:has(.blog-toolbar > :not([hidden], script, dialog))) > .blog-heading { margin-bottom: 64px; }
76
78
  .blog-heading h1 { margin-bottom: 0; }
77
79
  .article-category { margin: 0 0 20px; }
78
- .article-category a, .post-card-category { display: inline-flex; align-items: center; justify-content: center; padding: 4px 15px; border: 0; border-radius: 10px; background: #fafafa; color: var(--muted); font-size: var(--text-meta); font-weight: 500; line-height: 1.333333; text-decoration: none; }
80
+ .article-category a, .post-card-category { display: inline-flex; align-items: center; justify-content: center; padding: 4px 15px; border: 0; border-radius: 10px; background: var(--site-surface); color: var(--muted); font-size: var(--text-meta); font-weight: 500; line-height: 1.333333; text-decoration: none; }
79
81
  h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 22px; }
80
82
  .description { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.65; max-width: 660px; margin: 0; }
81
- .category-selector { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 0 40px; }
83
+ .blog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 40px; }
84
+ .blog-toolbar:not(:has(> :not([hidden], script, dialog))) { display: none; }
85
+ .category-selector { display: flex; flex-wrap: wrap; gap: 8px 24px; }
82
86
  .category-selector a { padding-block: 8px; color: var(--muted); font-size: var(--text-small); line-height: 1.5; text-decoration: none; transition: color .15s; }
83
- .category-selector a:hover { color: #111; }
84
- .category-selector a[aria-current='page'] { color: #111; font-weight: 500; }
87
+ .category-selector a:hover { color: var(--site-foreground); }
88
+ .category-selector a[aria-current='page'] { color: var(--site-foreground); font-weight: 500; }
85
89
  .post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; }
90
+ .related-posts { margin-top: 80px; padding-top: 40px; }
91
+ .related-posts > h2 { margin: 0 0 32px; font-size: var(--text-h3); font-weight: 500; letter-spacing: -.025em; }
86
92
  .post-card { position: relative; isolation: isolate; min-width: 0; }
87
93
  .post-card-link { color: inherit; text-decoration: none; }
88
94
  .post-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
@@ -92,28 +98,29 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
92
98
  .post-card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
93
99
  .post-card-meta { margin-top: auto; min-width: 0; }
94
100
  .archive-date { display: none; }
95
- .post-card-details { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; color: #8c8b93; font-size: var(--text-label); line-height: 1.4; }
101
+ .post-card-details { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; color: var(--site-text-muted); font-size: var(--text-label); line-height: 1.4; }
96
102
  .post-card-category { min-width: 0; overflow-wrap: anywhere; }
97
103
  .post-card-date { white-space: nowrap; }
98
- .post-card-cover { flex-shrink: 0; overflow: hidden; aspect-ratio: 1200 / 630; background: #f4f4f4; border: 1px solid var(--line); border-radius: calc(var(--image-short-side, 200px) * var(--image-radius, 0.02)); }
104
+ .post-card-cover { flex-shrink: 0; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--site-surface-hover); border: 1px solid var(--line); border-radius: calc(var(--image-short-side, 200px) * var(--image-radius, 0.02)); }
99
105
  .post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
100
106
  .post-card:has(.post-card-link:hover) .post-card-cover img { transform: scale(1.025); }
101
- .image-placeholder { display: grid; place-items: center; height: 100%; font-size: calc(var(--text-base) * 1.625); letter-spacing: -.05em; color: #777; }
107
+ .image-placeholder { display: grid; place-items: center; height: 100%; font-size: calc(var(--text-base) * 1.625); letter-spacing: -.05em; color: var(--site-text-secondary); }
102
108
  .post-card h3 { font-size: var(--text-card-title); font-weight: 500; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 8px; text-wrap: pretty; }
103
109
  .post-card p { font-size: var(--text-summary); line-height: 1.55; margin: 0; color: var(--text-secondary); }
104
- .post-byline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 24px; color: #8c8b93; font-size: var(--text-label); line-height: 1.4; }
110
+ .post-byline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 24px; color: var(--site-text-muted); font-size: var(--text-label); line-height: 1.4; }
105
111
  .post-authors { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
106
112
  .author-portraits { position: relative; z-index: 2; display: inline-flex; align-items: center; flex-shrink: 0; isolation: isolate; }
107
- .author-portrait { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid #fafafa; border-radius: 50%; background: #f1f1f2; }
113
+ .author-portrait { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid var(--site-surface); border-radius: 50%; background: var(--site-surface-active); }
108
114
  .author-portraits .author-portrait + .author-portrait { margin-left: -8px; }
109
115
  .author-portraits .author-portrait:hover { z-index: 1; }
110
116
  .author-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
111
- .author-initials { color: #666; font-size: 9px; font-weight: 500; line-height: 1; }
117
+ .author-initials { color: var(--site-text-secondary); font-size: 9px; font-weight: 500; line-height: 1; }
112
118
  .author-names { min-width: 0; overflow-wrap: anywhere; }
119
+ .author-names-mobile { display: none; }
113
120
  .author-more { position: relative; z-index: 2; display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
114
- .author-more:hover { color: var(--text-primary, #111); }
121
+ .author-more:hover { color: var(--site-foreground); }
115
122
  .author-more:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
116
- .authors-popover { position: fixed; inset: auto; width: min(240px, calc(100vw - 16px)); max-height: 320px; margin: 0; padding: 10px; overflow: auto; border: 1px solid #ebebeb; border-radius: 9px; background: #fafafa; color: #55545c; box-shadow: 0 4px 18px #00000017; font: 13px/1.4 var(--font-family); outline: none; }
123
+ .authors-popover { position: fixed; inset: auto; width: min(240px, calc(100vw - 16px)); max-height: 320px; margin: 0; padding: 10px; overflow: auto; border: 1px solid var(--site-border); border-radius: 9px; background: var(--site-surface); color: var(--site-text-strong); box-shadow: 0 4px 18px #00000017; font: 13px/1.4 var(--font-family); outline: none; }
117
124
  .authors-popover::backdrop { background: transparent; }
118
125
  .authors-popover-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
119
126
  .authors-popover-author { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
@@ -132,13 +139,13 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
132
139
  .archive > h2 { font-size: var(--text-h3); font-weight: 500; letter-spacing: -.025em; margin: 0 0 20px; }
133
140
  .archive-list { display: grid; gap: 4px; }
134
141
  .archive-list .post-card { margin-inline: -12px; padding-inline: 12px; border-radius: 6px; }
135
- .archive-list .post-card:is(:hover, :focus-within) { background: #f7f7f8; }
142
+ .archive-list .post-card:is(:hover, :focus-within) { background: var(--site-surface-hover); }
136
143
  .archive-list .post-card-layout { padding-block: 18px; }
137
144
  .archive-list .post-card-cover, .archive-list .post-card-description { display: none; }
138
145
  .archive-list .post-card-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 16px 32px; }
139
146
  .archive-list .post-card-details { display: none; }
140
- .archive-list h3 { grid-area: 1 / 1; font-size: var(--text-base); margin: 0; }
141
- .archive-list .post-card-meta { grid-area: 1 / 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: #8c8b93; font-size: var(--text-label); line-height: 1.4; }
147
+ .archive-list h3 { grid-area: 1 / 1; font-size: calc(var(--heading-base) * 16 / 18); margin: 0; }
148
+ .archive-list .post-card-meta { grid-area: 1 / 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--site-text-muted); font-size: var(--text-label); line-height: 1.4; }
142
149
  .archive-list .archive-date { display: block; white-space: nowrap; }
143
150
  .archive-list .post-byline { align-items: flex-end; min-width: 0; margin: 0; padding: 0; text-align: right; }
144
151
  .archive-list .post-authors { justify-content: flex-end; }
@@ -156,16 +163,16 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
156
163
  .byline .post-byline > time, .byline .reading-time { flex-shrink: 0; font-size: inherit; }
157
164
  .byline .reading-time { margin-left: 0; }
158
165
  .cover { margin: 0 0 44px; }
159
- .cover img, .prose img, .article-hero-image img { background-color: #fafafa; }
166
+ .cover img, .prose img, .article-hero-image img { background-color: var(--site-surface); }
160
167
  .cover img, .prose img:not([width]) { width: 100%; border-radius: calc(var(--image-short-side, 200px) * var(--image-radius, 0.02)); }
161
168
  .prose img { display: block; max-width: 100%; height: auto; margin: 32px auto; border-radius: calc(var(--image-short-side, 200px) * var(--image-radius, 0.02)); }
162
169
  .prose img[data-media-sized] { width: 100%; }
163
170
  .prose :is(img, video):not([width][height]) { aspect-ratio: auto 16 / 9; }
164
- .prose video { display: block; max-width: 100%; height: auto; background: #fafafa; }
171
+ .prose video { display: block; max-width: 100%; height: auto; background: var(--site-surface); }
165
172
  .prose video:not([width]) { width: 100%; }
166
173
  .prose audio { width: min(100%, 560px); height: 54px; }
167
174
  .publication-post { width: var(--site-width); }
168
- .article-hero { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
175
+ .article-hero { margin-bottom: 64px; }
169
176
  .article-hero-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
170
177
  .article-intro { min-width: 0; }
171
178
  .article-hero .article-intro { max-width: 760px; }
@@ -183,7 +190,7 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
183
190
  .article-toc ol { list-style: none; margin: 0; padding: 0; }
184
191
  .article-toc li + li { margin-top: 14px; }
185
192
  .article-toc a { display: block; font-size: var(--text-label); line-height: 1.6; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
186
- .article-toc a:hover { color: #111; text-decoration: underline; }
193
+ .article-toc a:hover { color: var(--site-foreground); text-decoration: underline; }
187
194
  .article-toc .toc-subheading { padding-left: 16px; }
188
195
  .article-body .prose { min-width: 0; }
189
196
  .prose :is(h2, h3, h4, h5, h6) { scroll-margin-top: 32px; }
@@ -194,24 +201,24 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
194
201
  .prose h3 { font-size: var(--text-h3); line-height: 1.4; font-weight: 600; letter-spacing: -.03em; margin: 1.7em 0 .6em; }
195
202
  .prose h4 { font-size: var(--text-h4); line-height: 1.5; font-weight: 600; margin: 1.6em 0 .5em; }
196
203
  .prose h5 { font-size: var(--text-h5); line-height: 1.5; }
197
- .prose h6 { font-size: var(--text-base); line-height: 1.5; }
204
+ .prose h6 { font-size: calc(var(--heading-base) * 16 / 18); line-height: 1.5; }
198
205
  .prose h3 a { text-decoration: none; }
199
206
  .prose h3 a:hover { text-decoration: underline; }
200
207
  .prose ul, .prose ol { padding-left: 1.4em; }
201
208
  .prose li { padding-left: .2em; margin: .5em 0; }
202
209
  .prose .task-list-item:has(> input[type="checkbox"]:checked, > p > input[type="checkbox"]:checked) { text-decoration: line-through; }
203
- .prose blockquote { border-left: 2px solid var(--line); padding: 4px 0 4px 26px; margin: 36px 0; color: #555; font-size: calc(var(--text-base) * 1.15); line-height: 1.55; }
210
+ .prose blockquote { border-left: 2px solid var(--line); padding: 4px 0 4px 26px; margin: 36px 0; color: var(--site-text-strong); font-size: calc(var(--text-base) * 1.15); line-height: 1.55; }
204
211
  .prose blockquote p { margin: .3em 0; }
205
212
  .prose hr { border: 0; height: 1px; background: var(--line); margin: 42px 0; }
206
213
  .prose pre { padding: 24px; overflow: auto; border-radius: 5px; font-size: var(--text-small); line-height: 1.8; }
207
214
  .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
208
- .prose :not(pre) > code { padding: .18em .35em; background: #f3f3f3; border-radius: 3px; }
215
+ .prose :not(pre) > code { padding: .18em .35em; background: var(--site-surface-hover); border-radius: 3px; }
209
216
  .prose span[style*="background-color"] code { background-color: inherit; }
210
217
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
211
- .card { display: flex; flex-direction: column; align-items: start; padding: 26px; border-radius: 6px; background: #f6f6f6; text-decoration: none; }
212
- .card:hover { background: #eee; }
218
+ .card { display: flex; flex-direction: column; align-items: start; padding: 26px; border-radius: 6px; background: var(--site-surface-hover); text-decoration: none; }
219
+ .card:hover { background: var(--site-surface-active); }
213
220
  .card-eyebrow { font-size: calc(var(--text-base) * .6875); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
214
- .prose .card h3 { font-size: calc(var(--text-base) * 1.375); margin: 12px 0 6px; }
221
+ .prose .card h3 { font-size: calc(var(--heading-base) * 22 / 18); margin: 12px 0 6px; }
215
222
  .prose .card p { font-size: var(--text-summary); line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
216
223
  .card-link { font-size: var(--text-label); font-weight: 600; margin-top: auto; }
217
224
  .site-footer { border-top: 1px solid var(--line); }
@@ -225,7 +232,7 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
225
232
  .footer-column ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; font-size: var(--text-small); }
226
233
  .footer-column a { display: inline-block; color: var(--muted); font-size: var(--text-small); line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
227
234
  .footer-column li { line-height: 1.7; }
228
- .site-footer a:hover { color: #111; }
235
+ .site-footer a:hover { color: var(--site-foreground); }
229
236
  .footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 64px; color: var(--muted); font-size: var(--text-small); }
230
237
  .footer-bottom a { text-decoration: none; }
231
238
  .footer-credit { margin-left: auto; opacity: .65; }
@@ -233,11 +240,11 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
233
240
  .footer-socials { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
234
241
  .footer-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; }
235
242
  .footer-socials svg { width: 18px; height: 18px; }
236
- .skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 15px; background: #111; color: white; z-index: 10; }
243
+ .skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 15px; background: var(--site-foreground); color: var(--site-background); z-index: 10; }
237
244
  .skip-link:focus { top: 15px; }
238
245
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
239
246
  @media (max-width: 900px) {
240
- :root { --site-width: calc(100% - 48px); }
247
+ :root { --site-gutter: 24px; }
241
248
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
242
249
  .article-hero-with-image { gap: 32px; }
243
250
  .article-body-with-toc { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
@@ -246,28 +253,41 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
246
253
  }
247
254
  @media (max-width: 760px) {
248
255
  .article-hero-with-image, .article-body-with-toc { grid-template-columns: minmax(0, 1fr); }
249
- .article-hero { margin-bottom: 36px; padding-bottom: 36px; }
256
+ .article-hero { margin-bottom: 36px; }
250
257
  .publication-post .article-sidebar { display: none; }
251
258
  }
252
259
  @media (max-width: 600px) {
253
- .site-header-inner { width: auto; margin-inline: 24px 10px; min-height: 64px; padding-block: 10px; gap: 12px; }
260
+ :root { --site-gutter: 16px; }
261
+ .site-header-inner { width: auto; margin-inline: var(--site-gutter); min-height: 64px; padding-block: 10px; gap: 12px; }
254
262
  .site-header .brand { flex: 1; overflow: hidden; }
255
263
  .site-header .brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
256
264
  .header-actions { flex: none; flex-wrap: nowrap; gap: 8px; }
257
265
  .site-header .desktop-navigation { display: none; }
258
266
  .header-actions > .header-primary { display: block; max-width: min(42vw, 200px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
259
267
  .mobile-navigation { display: block; position: static; }
260
- .site-header .mobile-menu-panel { position: fixed; inset: var(--mobile-menu-top, 64px) 0 0; z-index: 5; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; width: 100%; margin: 0; padding: 24px 24px max(32px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--site-background, #ffffff); }
268
+ /* Align the visible menu strokes with the gutter, preserving the 44px tap target. */
269
+ .mobile-menu-toggle { margin-inline-end: -14.5px; }
270
+ .site-header .mobile-menu-panel { position: fixed; inset: var(--mobile-menu-top, 64px) 0 0; z-index: 5; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; width: 100%; margin: 0; padding: 24px var(--site-gutter) max(32px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--site-background, #ffffff); }
261
271
  .mobile-menu-panel a { flex: none; padding: 12px 0; font-size: var(--text-base); line-height: 1.4; overflow-wrap: anywhere; }
262
272
  @media (prefers-reduced-motion: no-preference) { .mobile-navigation[open] .mobile-menu-panel { animation: mobile-menu-enter 180ms ease-out; } }
263
273
  .blog-home { padding-block: 46px 64px; }
264
- .blog-home:not(:has(> .category-selector:not([hidden]))) > .blog-heading { margin-bottom: 40px; }
265
- .category-selector { margin-bottom: 36px; gap: 4px 20px; }
274
+ .blog-home:not(:has(.blog-toolbar > :not([hidden], script, dialog))) > .blog-heading { margin-bottom: 40px; }
275
+ .blog-toolbar { margin-bottom: 36px; }
276
+ .category-selector { gap: 4px 20px; }
266
277
  .post-list { grid-template-columns: 1fr; gap: 48px; }
278
+ .related-posts { margin-top: 56px; padding-top: 32px; }
267
279
  [data-home-layout='rows'] .post-list .post-card-layout { display: flex; align-items: stretch; gap: 20px; }
268
280
  [data-home-layout='rows'] .post-list .post-card h3 { font-size: var(--text-h4); }
269
281
  .archive { margin-top: 72px; }
270
- .publication { margin-top: 36px; }
282
+ .publication { width: var(--site-width); margin-top: 36px; }
283
+ .post-byline { width: 100%; }
284
+ .post-authors { width: 100%; flex-wrap: nowrap; }
285
+ .author-portraits .author-portrait:not(:first-child) { display: none; }
286
+ .author-names { flex: 1; min-width: 0; }
287
+ .author-names-desktop { display: none; }
288
+ .author-names-mobile { display: flex; align-items: center; gap: 6px; min-width: 0; }
289
+ .author-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
290
+ .author-names-mobile .author-more { flex-shrink: 0; }
271
291
  .cards { grid-template-columns: 1fr; }
272
292
  .footer-columns { grid-template-columns: repeat(var(--footer-mobile-columns), minmax(0, 1fr)); gap: 32px 24px; }
273
293
  .footer-inner { padding-block: 40px 56px; }
@@ -300,29 +320,29 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
300
320
  .publication-post[data-post-hero='stacked'] .article-sidebar { position: static; max-height: none; overflow: visible; margin: 0 0 32px; padding: 0; border: 0; }
301
321
  .toc-trigger { display: none; }
302
322
  .publication-post[data-post-hero='stacked'] .article-sidebar[data-floating-toc] { position: fixed; z-index: 20; left: 8px; top: 50%; transform: translateY(-50%); margin: 0; }
303
- .publication-post[data-post-hero='stacked'] .toc-trigger { display: flex; flex-direction: column; align-items: center; gap: 0; max-height: min(60dvh, 320px); overflow: hidden; width: 28px; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: #414146; cursor: pointer; }
323
+ .publication-post[data-post-hero='stacked'] .toc-trigger { display: flex; flex-direction: column; align-items: center; gap: 0; max-height: min(60dvh, 320px); overflow: hidden; width: 28px; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--site-text-strong); cursor: pointer; }
304
324
  .toc-trigger span { position: relative; display: block; flex: none; width: 16px; height: 12px; }
305
325
  .toc-trigger span::after { content: ''; position: absolute; left: 0; top: 5px; width: 100%; height: 2px; border-radius: 2px; background: currentColor; opacity: .3; transform: scaleX(.5); transform-origin: left center; transition: transform 140ms ease-out, opacity 140ms ease-out; }
306
326
  .toc-trigger:is([aria-expanded='true'], :hover, :focus-visible) span::after { opacity: .38; transform: scaleX(.5625); }
307
327
  .toc-trigger span[data-active]::after, .toc-trigger:is([aria-expanded='true'], :hover, :focus-visible) span[data-active]::after { opacity: .5; transform: scaleX(.625); }
308
328
  .toc-trigger:is([aria-expanded='true'], :hover, :focus-visible) span:hover::after { opacity: 1; transform: scaleX(1); }
309
- .toc-trigger:focus-visible { outline: 2px solid #b8b8c0; outline-offset: 1px; }
310
- .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc { visibility: hidden; opacity: 0; position: absolute; left: 100%; top: 50%; transform: translate(-4px, -50%) scale(.98); transform-origin: left center; width: min(240px, calc(100vw - 60px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 5px; margin-left: 6px; border: 0; border-radius: 9px; background: var(--site-background, #fff); box-shadow: 0 6px 18px rgb(0 0 0 / 2%), 0 3px 9px rgb(0 0 0 / 4%), 0 1px 1px rgb(0 0 0 / 4%); transition: opacity 120ms ease-out, transform 140ms ease-out; }
329
+ .toc-trigger:focus-visible { outline: 2px solid var(--site-text-faint); outline-offset: 1px; }
330
+ .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc { visibility: hidden; opacity: 0; position: absolute; left: 100%; top: 50%; transform: translate(-4px, -50%) scale(.98); transform-origin: left center; width: min(240px, calc(100vw - 60px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 5px; margin-left: 6px; border: 0; border-radius: 9px; background: var(--site-background, #fff); box-shadow: 0 0 0 1px var(--site-border), 0 6px 18px rgb(0 0 0 / 2%), 0 3px 9px rgb(0 0 0 / 4%), 0 1px 1px rgb(0 0 0 / 4%); transition: opacity 120ms ease-out, transform 140ms ease-out; }
311
331
  .publication-post[data-post-hero='stacked'] [data-floating-toc]::after { content: ''; position: absolute; left: 100%; top: 0; width: 6px; height: 100%; }
312
332
  .publication-post[data-post-hero='stacked'] [data-toc-open] .article-toc { visibility: visible; opacity: 1; transform: translate(0, -50%) scale(1); }
313
- .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc h2 { margin: 0 0 3px; padding: 6px 8px 4px; color: #87878e; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
333
+ .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc h2 { margin: 0 0 3px; padding: 6px 8px 4px; color: var(--site-text-muted); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
314
334
  .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc li + li { margin-top: 4px; }
315
- .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a { padding: 5px 8px; border-radius: 5px; color: #414146; font-size: var(--text-label); line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-decoration: none; transition: background-color 120ms ease; }
316
- .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a[aria-current='location'] { color: #303034; font-weight: 500; background: color-mix(in srgb, var(--site-background, #fff), #000 5%); }
317
- .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a:is(:hover, :focus-visible) { background: #fafafa; outline: none; }
335
+ .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a { padding: 5px 8px; border-radius: 5px; color: var(--site-text-strong); font-size: var(--text-label); line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-decoration: none; transition: background-color 120ms ease; }
336
+ .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a[aria-current='location'] { color: var(--site-text-strong); font-weight: 500; background: var(--site-surface-active); }
337
+ .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a:is(:hover, :focus-visible) { background: var(--site-surface); color: var(--site-accent, var(--site-text-strong)); outline: none; }
318
338
  .publication-post[data-post-hero='stacked'] [data-floating-toc] .toc-label { display: inline; animation: none; }
319
339
  @media (prefers-reduced-motion: reduce) {
320
340
  .toc-trigger span::after, .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc, .publication-post[data-post-hero='stacked'] [data-floating-toc] .article-toc a { transition: none; }
321
341
  }
322
- .article-toc a[aria-current='location'] { color: #111; font-weight: 500; }
323
- @media (min-width: 1200px) {
324
- .publication-post[data-post-hero='split'][data-post-toc='visible'] .article-body-with-toc { grid-template-columns: minmax(180px, 1fr) minmax(0, var(--post-content-width)) minmax(180px, 1fr); max-width: none; }
325
- .publication-post[data-post-hero='split'] .article-sidebar { width: 180px; }
342
+ .article-toc a[aria-current='location'] { color: var(--site-foreground); font-weight: 500; }
343
+ @media (min-width: 761px) {
344
+ .publication-post[data-post-hero='split'][data-post-toc='visible'] .article-body-with-toc { grid-template-columns: minmax(140px, 1fr) minmax(0, var(--post-content-width)) minmax(140px, 1fr); max-width: none; }
345
+ .publication-post[data-post-hero='split'] .article-sidebar { width: min(180px, 100%); }
326
346
  }
327
347
  @media (max-width: 900px) {
328
348
  /* Keep the floating control clear of the reading column on small screens. */
@@ -343,15 +363,12 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
343
363
  .prose figure img, .prose figure > p:has(img) { margin-block: 0; }
344
364
  .prose figure :is(img, video, audio) { display: block; max-width: 100%; }
345
365
  .prose figure > a { display: block; }
346
- .prose figcaption { margin-top: 4px; color: var(--muted, #777); font-size: 13px; line-height: 1.5; text-align: center; }
366
+ .prose figcaption { margin-top: 4px; color: var(--muted, var(--site-text-secondary)); font-size: 13px; line-height: 1.5; text-align: center; }
347
367
  .prose figcaption p { margin: 0; }
348
368
 
349
369
  /* Homepage width and container-responsive layouts. */
350
370
 
351
- .blog-home { container: home-layout / inline-size; width: min(var(--home-content-width, 1280px), calc(100% - 64px)); }
352
- @media (max-width: 900px) {
353
- .blog-home { width: min(var(--home-content-width, 1280px), calc(100% - 48px)); }
354
- }
371
+ .blog-home { container: home-layout / inline-size; width: min(var(--home-content-width, 1280px), calc(100% - 2 * var(--site-gutter))); }
355
372
  @container home-layout (max-width: 852px) {
356
373
  .archive-list .post-card-content { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
357
374
  .archive-list h3 { grid-area: 1 / 1; }
@@ -364,8 +381,14 @@ h1 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-s
364
381
  [data-home-layout='grid'] .archive-list .post-card-content { grid-template-columns: minmax(0, 1fr) 14px; align-items: center; gap: 12px; }
365
382
  [data-home-layout='grid'] .archive-list .post-card-meta { display: none; }
366
383
  [data-home-layout='grid'] .archive-list h3 { min-width: 0; overflow: hidden; white-space: nowrap; text-wrap: nowrap; text-overflow: ellipsis; font-family: var(--font-family); font-size: var(--text-summary); font-weight: 400; letter-spacing: normal; line-height: 1.55; }
367
- [data-home-layout='grid'] .archive-list .post-card-content::after { content: ''; grid-area: 1 / 2; justify-self: center; width: 6px; height: 6px; border-top: 1.5px solid #c5c5ca; border-right: 1.5px solid #c5c5ca; transform: rotate(45deg); pointer-events: none; }
384
+ [data-home-layout='grid'] .archive-list .post-card-content::after { content: ''; grid-area: 1 / 2; justify-self: center; width: 6px; height: 6px; border-top: 1.5px solid var(--site-text-faint); border-right: 1.5px solid var(--site-text-faint); transform: rotate(45deg); pointer-events: none; }
368
385
  [data-home-layout='rows'] .post-list .post-card-layout { display: flex; align-items: stretch; gap: 20px; }
369
386
  [data-home-layout='rows'] .post-list .post-card h3 { font-size: var(--text-h4); }
370
387
 
371
388
  }
389
+
390
+ /* An unset accent leaves native selection and link colors untouched. */
391
+ /* Filled header buttons retain their contrasting label, including on hover. */
392
+ :root[data-site-accent] a[href]:not(.header-primary):is(:hover, :focus-visible) { color: var(--site-accent); }
393
+ :root[data-site-accent]::selection,
394
+ :root[data-site-accent] ::selection { background: var(--site-accent); color: var(--site-accent-text); }