@lettercamp/cli 0.1.5 → 0.1.7

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.
@@ -1,70 +1,201 @@
1
1
  :root {
2
2
  color-scheme: light;
3
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
4
- color: #20201e;
5
- background: #fffefa;
3
+ --font-family: 'Inter', Arial, Helvetica, sans-serif;
4
+ --heading-size: 3rem;
5
+ --body-size: 1.125rem;
6
+ font-family: var(--font-family);
7
+ color: #111;
8
+ background: #fff;
6
9
  font-synthesis: none;
7
10
  -webkit-font-smoothing: antialiased;
11
+ --muted: #666;
12
+ --text-secondary: #6f6e77;
13
+ --text-tertiary: #86848d;
14
+ --line: #f0f0f0;
15
+ --site-width: min(1280px, calc(100% - 64px));
8
16
  }
9
17
  * { box-sizing: border-box; }
10
- body { margin: 0; }
11
- a { color: inherit; text-underline-offset: .2em; }
12
- a:focus-visible { outline: 2px solid #235b45; outline-offset: 5px; border-radius: 2px; }
18
+ [hidden] { display: none !important; }
19
+ body { margin: 0; font-size: var(--body-size); line-height: 1.65; }
20
+ a { color: inherit; text-underline-offset: .22em; }
21
+ button { font: inherit; color: inherit; cursor: pointer; }
22
+ a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #111; outline-offset: 5px; border-radius: 3px; }
13
23
  img { display: block; max-width: 100%; height: auto; }
14
- .site-header, .site-footer { width: min(1080px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
15
- .site-header { min-height: 88px; }
16
- .brand { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 650; letter-spacing: -.6px; text-decoration: none; }
17
- nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
18
- nav a { text-decoration: none; color: #66655f; }
19
- nav a[aria-current], nav a:hover { color: #20201e; }
20
- .publication { width: min(760px, calc(100% - 48px)); margin: 56px auto 96px; }
21
- .publication-home { width: min(880px, calc(100% - 48px)); }
22
- .article-header { margin-bottom: 38px; }
23
- .back-link { display: inline-block; font-size: 14px; color: #77746e; text-decoration: none; margin-bottom: 40px; }
24
- .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; color: #77746e; margin: 0 0 20px; }
25
- h1, h2, h3, h4 { text-wrap: balance; }
26
- h1 { font: 500 clamp(38px, 5.8vw, 62px)/1.08 Georgia, serif; letter-spacing: -.045em; margin: 0 0 22px; }
27
- .publication-home .article-header { text-align: center; margin: 12px auto 56px; max-width: 700px; }
28
- .description { color: #6b6962; font-size: 19px; line-height: 1.6; max-width: 650px; margin: 0; }
29
- .publication-home .description { margin: auto; }
30
- .byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 13px; color: #77746e; }
24
+ h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: anywhere; }
25
+ .site-header-inner, .footer-inner, .blog-home { width: var(--site-width); margin-inline: auto; }
26
+ .site-header { border-bottom: 1px solid var(--line); }
27
+ .site-header-inner { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
28
+ .site-header .brand { min-width: 0; overflow-wrap: anywhere; }
29
+ .site-header .brand img { flex-shrink: 0; }
30
+ .brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -.45px; text-decoration: none; }
31
+ .brand img { width: 24px; height: 24px; }
32
+ .site-header nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
33
+ .site-header nav a { text-decoration: none; color: var(--muted); }
34
+ .site-header nav a[aria-current], .site-header nav a:hover { color: #111; }
35
+ .header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 28px; margin-left: auto; max-width: 100%; }
36
+ .header-primary { display: inline-flex; justify-content: center; padding: 6px 12px; border-radius: 6px; background: #111; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
37
+ .header-primary:hover { background: #333; }
38
+ .mobile-navigation { display: none; position: relative; }
39
+ .mobile-navigation summary { cursor: pointer; padding: 9px 0; font-size: 13px; }
40
+ .blog-home { padding-block: 72px 100px; }
41
+ .blog-heading { margin-bottom: 18px; }
42
+ .blog-heading h1 { margin-bottom: 0; }
43
+ .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 0 20px; }
44
+ .eyebrow a { text-decoration: none; }
45
+ h1 { font-size: clamp(calc(var(--heading-size) * .75), 4vw, var(--heading-size)); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 22px; }
46
+ .description { color: var(--text-secondary); font-size: var(--body-size); line-height: 1.65; max-width: 660px; margin: 0; }
47
+ .category-selector { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 0 40px; }
48
+ .category-selector a { padding-block: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; transition: color .15s; }
49
+ .category-selector a:hover { color: #111; }
50
+ .category-selector a[aria-current='page'] { color: #111; font-weight: 500; }
51
+ .post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; }
52
+ .post-card { min-width: 0; }
53
+ .post-card-link { display: flex; flex-direction: column; height: 100%; gap: 24px; text-decoration: none; }
54
+ .post-card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
55
+ .post-card-cover { flex-shrink: 0; overflow: hidden; aspect-ratio: 1200 / 630; background: #f4f4f4; border: 1px solid var(--line); border-radius: 4px; }
56
+ .post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
57
+ .post-card-link:hover .post-card-cover img { transform: scale(1.025); }
58
+ .image-placeholder { display: grid; place-items: center; height: 100%; font-size: 26px; letter-spacing: -.05em; color: #777; }
59
+ .post-card h3 { font-size: clamp(calc(var(--heading-size) * .375), 1.4vw, calc(var(--heading-size) * .4167)); font-weight: 500; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 8px; text-wrap: pretty; }
60
+ .post-card p { font-size: calc(var(--body-size) * .8333); line-height: 1.55; margin: 0; color: var(--text-secondary); }
61
+ .post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 24px; color: var(--text-tertiary); font-size: 12px; line-height: 1.4; }
62
+ .post-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
63
+ .author-avatar { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
64
+ .post-card .post-byline { gap: 8px; }
65
+ .post-byline time { white-space: nowrap; }
66
+ .reading-time { margin-left: auto; white-space: nowrap; }
67
+ .post-list.post-list-rows { grid-template-columns: 1fr; }
68
+ .post-list-rows .post-card-link { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: 32px; }
69
+ .post-list-rows .post-card h3 { font-size: calc(var(--heading-size) * .5); }
70
+ .archive { margin-top: 72px; }
71
+ .archive > h2 { font-size: calc(var(--heading-size) * .5); font-weight: 500; letter-spacing: -.025em; margin: 0 0 20px; }
72
+ .archive-list { display: grid; gap: 4px; }
73
+ .archive-list .post-card-link { padding-block: 18px; }
74
+ .archive-list .post-card-cover, .archive-list .post-card-description, .archive-list .author-avatar { display: none; }
75
+ .archive-list .post-card-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; }
76
+ .archive-list h3 { grid-area: 1 / 1; font-size: calc(var(--heading-size) * .375); margin: 0; }
77
+ .archive-list .post-byline { grid-area: 1 / 2; justify-content: flex-end; margin: 0; padding: 0; }
78
+ .archive-list .post-card-link:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
79
+ .empty-state { grid-column: 1 / -1; color: var(--muted); padding: 40px 0 70px; font-size: 16px; }
80
+ .publication { width: min(760px, calc(100% - 48px)); margin: 60px auto 100px; }
81
+ .article-header { margin-bottom: 40px; }
82
+ .publication h1 { line-height: 1.2; }
83
+ .back-link { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 40px; }
84
+ .byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 13px; color: var(--text-tertiary); }
85
+ .byline { align-items: center; }
86
+ .byline .post-byline { padding: 0; margin: 0; }
87
+ .byline .reading-time { margin-left: 0; }
31
88
  .cover { margin: 0 0 44px; }
32
- .cover img, .prose img { width: 100%; border-radius: 5px; }
33
- .prose { font: 19px/1.85 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
89
+ .cover img, .prose img { width: 100%; border-radius: 4px; }
90
+ .publication-post { width: var(--site-width); }
91
+ .article-hero { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
92
+ .article-hero-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
93
+ .article-intro { min-width: 0; }
94
+ .article-hero .article-intro { max-width: 760px; }
95
+ .article-hero-image { margin: 0; }
96
+ .article-hero-image img { width: 100%; border-radius: 6px; }
97
+ .publication-post { --post-content-width: 760px; }
98
+ .publication-post[data-post-width='narrow'] { --post-content-width: 640px; }
99
+ .publication-post[data-post-width='wide'] { --post-content-width: 920px; }
100
+ .publication-post[data-post-cover='hidden'] .article-hero-image, .publication-post[data-post-toc='hidden'] .article-sidebar { display: none; }
101
+ .publication-post[data-post-cover='hidden'] .article-hero, .publication-post[data-post-hero='stacked'] .article-hero { display: block; }
102
+ .publication-post[data-post-hero='stacked'] .article-hero-image { margin-top: 32px; }
103
+ .publication-post[data-post-toc='hidden'] .article-body { display: block; max-width: var(--post-content-width); }
104
+ .article-body { max-width: var(--post-content-width, 760px); margin-inline: auto; }
105
+ .article-body-with-toc { display: grid; grid-template-columns: 240px minmax(0, var(--post-content-width, 760px)); align-items: start; gap: 64px; max-width: calc(var(--post-content-width, 760px) + 304px); }
106
+ .article-sidebar { position: sticky; top: 32px; max-height: calc(100dvh - 64px); overflow-y: auto; }
107
+ .article-toc { padding: 4px 6px 6px; }
108
+ .article-toc h2 { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
109
+ .article-toc ol { list-style: none; margin: 0; padding: 0; }
110
+ .article-toc li + li { margin-top: 14px; }
111
+ .article-toc a { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
112
+ .article-toc a:hover { color: #111; text-decoration: underline; }
113
+ .article-toc .toc-subheading { padding-left: 16px; }
114
+ .article-body .prose { min-width: 0; }
115
+ .prose :is(h2, h3, h4, h5, h6) { scroll-margin-top: 32px; }
116
+ .prose { font-size: var(--body-size); line-height: 1.8; overflow-wrap: anywhere; }
34
117
  .prose > :first-child { margin-top: 0; }
35
118
  .prose p { margin: 1.3em 0; }
36
- .prose h2 { font: 600 29px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.04em; margin: 2em 0 .7em; }
37
- .prose h3 { font: 600 23px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.03em; margin: 1.7em 0 .6em; }
38
- .prose h4 { font: 600 19px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 1.6em 0 .5em; }
119
+ .prose h2 { font-size: calc(var(--heading-size) * .625); line-height: 1.3; font-weight: 600; letter-spacing: -.04em; margin: 2em 0 .7em; }
120
+ .prose h3 { font-size: calc(var(--heading-size) * .5); line-height: 1.4; font-weight: 600; letter-spacing: -.03em; margin: 1.7em 0 .6em; }
121
+ .prose h4 { font-size: calc(var(--heading-size) * .4167); line-height: 1.5; font-weight: 600; margin: 1.6em 0 .5em; }
39
122
  .prose h3 a { text-decoration: none; }
40
123
  .prose h3 a:hover { text-decoration: underline; }
41
124
  .prose ul, .prose ol { padding-left: 1.4em; }
42
125
  .prose li { padding-left: .2em; margin: .5em 0; }
43
- .prose blockquote { border-left: 3px solid #b6bfae; padding: 4px 0 4px 26px; margin: 36px 0; color: #575c50; font-size: 25px; line-height: 1.55; font-style: italic; }
126
+ .prose blockquote { border-left: 2px solid var(--line); padding: 4px 0 4px 26px; margin: 36px 0; color: #555; font-size: calc(var(--body-size) * 1.15); line-height: 1.55; }
44
127
  .prose blockquote p { margin: .3em 0; }
45
- .prose hr { border: 0; height: 1px; background: #e8e5dd; margin: 42px 0; }
46
- .prose pre { padding: 24px; overflow: auto; border-radius: 6px; font-size: 14px; line-height: 1.8; }
128
+ .prose hr { border: 0; height: 1px; background: var(--line); margin: 42px 0; }
129
+ .prose pre { padding: 24px; overflow: auto; border-radius: 5px; font-size: 14px; line-height: 1.8; }
47
130
  .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
48
- .prose :not(pre) > code { padding: .18em .35em; background: #efede6; border-radius: 3px; }
49
- .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
50
- .card { display: flex; flex-direction: column; align-items: start; padding: 26px; border-radius: 8px; background: #f3f1eb; text-decoration: none; }
51
- .card:hover { background: #ebe8df; }
52
- .card-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #747168; }
53
- .prose .card h3 { font-size: 22px; margin: 12px 0 6px; }
54
- .prose .card p { font-size: 15px; line-height: 1.7; color: #6b6962; margin: 0 0 20px; }
131
+ .prose :not(pre) > code { padding: .18em .35em; background: #f3f3f3; border-radius: 3px; }
132
+ .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
133
+ .card { display: flex; flex-direction: column; align-items: start; padding: 26px; border-radius: 6px; background: #f6f6f6; text-decoration: none; }
134
+ .card:hover { background: #eee; }
135
+ .card-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
136
+ .prose .card h3 { font-size: calc(var(--heading-size) * .4583); margin: 12px 0 6px; }
137
+ .prose .card p { font-size: calc(var(--body-size) * .8333); line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
55
138
  .card-link { font-size: 13px; font-weight: 600; margin-top: auto; }
56
- .site-footer { padding: 30px 0; font-size: 12px; color: #7b786f; }
57
- .site-footer a { text-decoration: none; }
58
- .skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 15px; background: #20201e; color: white; z-index: 10; }
139
+ .site-footer { border-top: 1px solid var(--line); }
140
+ .footer-inner { padding-block: 64px 48px; }
141
+ .footer-main { display: grid; grid-template-columns: repeat(calc(var(--footer-columns) + 1), minmax(0, 1fr)); align-items: start; gap: 32px; }
142
+ .footer-brand { min-width: 0; }
143
+ .footer-brand .brand { font-size: 14px; }
144
+ .footer-brand .brand img { width: 24px; height: 24px; }
145
+ .footer-columns { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--footer-columns), minmax(0, 1fr)); gap: 32px; }
146
+ .footer-column h2 { font-size: 13px; line-height: 24px; font-weight: 500; margin: 0 0 24px; overflow-wrap: anywhere; }
147
+ .footer-column ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
148
+ .footer-column a { display: inline-block; color: var(--muted); font-size: 13px; line-height: 22px; text-decoration: none; overflow-wrap: anywhere; }
149
+ .footer-column li { line-height: 22px; }
150
+ .site-footer a:hover { color: #111; }
151
+ .footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 64px; color: var(--muted); font-size: 12px; }
152
+ .footer-has-columns .footer-bottom { padding-left: calc((100% + 32px) / (var(--footer-columns) + 1)); }
153
+ .footer-bottom a { text-decoration: none; }
154
+ .footer-socials { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
155
+ .footer-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; }
156
+ .footer-socials svg { width: 18px; height: 18px; }
157
+ .footer-credit { margin-left: auto; }
158
+ .skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 15px; background: #111; color: white; z-index: 10; }
59
159
  .skip-link:focus { top: 15px; }
160
+ .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; }
161
+ @media (max-width: 900px) {
162
+ :root { --site-width: calc(100% - 48px); }
163
+ .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
164
+ .article-hero-with-image { gap: 32px; }
165
+ .article-body-with-toc { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
166
+ .footer-main { grid-template-columns: 1fr; gap: 32px; }
167
+ .footer-columns { grid-column: 1; grid-template-columns: repeat(var(--footer-tablet-columns), minmax(0, 1fr)); gap: 40px 32px; }
168
+ .footer-has-columns .footer-bottom { padding-left: 0; }
169
+ }
170
+ @media (max-width: 760px) {
171
+ .article-hero-with-image, .article-body-with-toc { grid-template-columns: minmax(0, 1fr); }
172
+ .article-hero { margin-bottom: 36px; padding-bottom: 36px; }
173
+ .article-sidebar { position: static; max-height: none; overflow: visible; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
174
+ }
60
175
  @media (max-width: 600px) {
61
- .site-header, .site-footer, .publication, .publication-home { width: calc(100% - 36px); }
62
- .site-header { min-height: 74px; }
63
- .brand { font-size: 18px; }
64
- nav { gap: 14px; font-size: 13px; }
65
- .publication { margin-top: 34px; }
66
- .description { font-size: 17px; }
67
- .prose { font-size: 18px; }
176
+ .site-header-inner { min-height: 64px; padding-block: 8px; }
177
+ .header-actions { gap: 16px; }
178
+ .site-header .desktop-navigation { display: none; }
179
+ .header-actions > .header-primary { display: none; }
180
+ .mobile-navigation { display: block; position: static; }
181
+ .mobile-navigation nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; display: flex; flex-direction: column; gap: 0; width: min(240px, calc(100vw - 48px)); padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #0002; }
182
+ .mobile-navigation nav a { padding: 10px 12px; overflow-wrap: anywhere; }
183
+ .blog-home { padding-block: 46px 64px; }
184
+ .category-selector { margin-bottom: 36px; gap: 4px 20px; }
185
+ .post-list { grid-template-columns: 1fr; gap: 48px; }
186
+ .post-list-rows .post-card-link { display: flex; gap: 24px; }
187
+ .post-list-rows .post-card h3 { font-size: calc(var(--heading-size) * .4167); }
188
+ .archive { margin-top: 48px; }
189
+ .archive-list .post-card-content { display: flex; align-items: stretch; gap: 8px; }
190
+ .archive-list .post-byline { align-self: start; justify-content: flex-start; }
191
+ .publication { margin-top: 36px; }
68
192
  .cards { grid-template-columns: 1fr; }
69
- .site-footer { align-items: start; flex-direction: column; gap: 10px; }
193
+ .footer-columns { grid-template-columns: repeat(var(--footer-mobile-columns), minmax(0, 1fr)); gap: 32px 24px; }
194
+ .footer-inner { padding-block: 40px 32px; }
195
+ .footer-bottom { margin-top: 48px; }
196
+ .footer-bottom { align-items: start; gap: 18px; }
197
+ .footer-credit { flex-basis: 100%; margin: 0; }
198
+ }
199
+ @media (prefers-reduced-motion: reduce) {
200
+ *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
70
201
  }
@@ -1 +0,0 @@
1
- <slot />