-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
.body {
flex-grow: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
grid-template-rows: minmax(max-content, 1fr) max-content;
grid-template-areas: "nav main outline" "footer footer footer";
gap: var(--spacing-15);
min-height: 0;
max-width: 100%;
}
.sitenav {
justify-self: end;
grid-area: nav;
}
.outline {
grid-area: outline;
}
.navButton,
.navButtonWrapper {
display: none;
}
.navInner {
position: sticky;
margin-top: var(--spacing-5);
top: calc(var(--v-rhythm) * 1);
}
.main {
grid-area: main;
width: 100vw;
max-width: calc(70ch + 2em);
padding: var(--spacing-12) 1em;
line-height: var(--v-rhythm);
}
.footer {
grid-area: footer;
}
:where(.main) h1,
:where(.main) h2,
:where(.main) h3 {
font-family: var(--font-family-heading);
font-weight: bold;
margin: var(--v-rhythm) 0;
line-height: calc(var(--v-rhythm) * 2);
}
:where(.main) h1 {
font-size: var(--font-8);
margin-top: calc(var(--v-rhythm) * 3);
}
:where(.main) h2 {
font-size: var(--font-7);
margin-top: calc(var(--v-rhythm) * 3);
}
:where(.main) h3 {
font-size: var(--font-6);
margin-top: calc(var(--v-rhythm) * 2);
}
:where(.main) h1 > a,
:where(.main) h2 > a,
:where(.main) h3 > a,
:where(.main) h4 > a,
:where(.main) h5 > a,
:where(.main) h6 > a {
text-decoration: none;
}
:where(.main) h1 > a:hover,
:where(.main) h2 > a:hover,
:where(.main) h3 > a:hover,
:where(.main) h4 > a:hover,
:where(.main) h5 > a:hover,
:where(.main) h6 > a:hover {
text-decoration: underline;
}
:where(.main) p {
font-size: var(--font-4);
margin: var(--v-rhythm) 0;
}
:where(.main) em {
font-style: italic;
}
:where(.main p) code,
:where(.main ul) code,
:where(.main pre) code {
font-size: var(--font-3);
padding: 0 0.5em;
border: 1px solid var(--color-border);
background-color: var(--color-panel-bg);
border-radius: var(--radii);
}
:where(.main) pre {
font-size: var(--font-3);
padding: calc(var(--v-rhythm) * 0.5) 1em;
margin: calc(var(--v-rhythm) * 0.5) -1em;
border: 1px solid var(--color-border);
background-color: var(--color-panel-bg);
border-radius: var(--radii);
overflow: auto;
}
:where(.main) pre > code {
padding: 0;
border: none;
background-color: transparent;
border-radius: 0;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.navOverlay {
display: none;
animation: 0.2s ease both fadeIn;
}
/* 600px = 16px * 37.5 */
@media (min-height: 37.5rem) and (min-width: 74.9376rem) {
.navInner {
margin-top: calc(var(--v-rhythm) * 3 + var(--spacing-12));
top: calc(var(--v-rhythm) * 2);
}
}
/* 1199px = 16px * 74.9375 */
@media (max-width: 74.9375rem) {
.body {
grid-template-columns: 100vw;
grid-template-rows: minmax(max-content, 1fr) max-content;
grid-template-areas: "single" "footer";
gap: 0;
}
.sitenav,
.main,
.navButtonWrapper,
.outline,
.navOverlay {
grid-area: single;
}
.main {
justify-self: center;
}
.sitenav,
.outline {
justify-self: start;
padding: var(--spacing-5) var(--spacing-10);
grid-row: 1 / 3;
border-right: 1px solid var(--color-border);
background-color: var(--color-bg);
box-shadow: 0 0 8px rgb(0 0 0 / 0.2);
z-index: 5;
transform: translateX(-100%);
transition: 0.2s ease transform;
}
.sitenav:focus-within {
transform: translateX(0);
}
.outline {
justify-self: end;
border-right: none;
border-left: 1px solid var(--color-border);
transform: translateX(100%);
}
.outline:focus-within {
transform: translateX(0);
}
.navOverlay {
grid-row: 1 / 3;
background-color: var(--color-overlay);
backdrop-filter: blur(2px);
z-index: 3;
}
.sitenav:focus-within + .navOverlay,
.outline:focus-within + .navOverlay {
display: block;
}
.navButtonWrapper {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.navButton {
display: block;
position: sticky;
top: calc(-1 * var(--radii));
left: 0;
margin-top: var(--spacing-5);
padding: var(--action-padding);
font-family: var(--font-family-heading);
font-weight: 600;
border: 1px solid var(--color-border);
border-left: none;
background-color: var(--color-panel-bg);
border-radius: var(--radii);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
box-shadow: 0 0 4px rgb(0 0 0 / 0.3);
cursor: pointer;
}
.navButton:nth-child(even) {
border-right: none;
border-left: 1px solid var(--color-border);
border-radius: var(--radii);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.navButton:hover {
text-decoration: underline;
}
.navButton:focus-visible {
border-color: var(--color-focus);
box-shadow: 0 0 0 var(--focus-shadow-radius) var(--color-focus-shadow);
outline: none;
}
@media (prefers-reduced-motion: reduce) {
.sitenav,
.outline {
opacity: 0;
transition: 0.2s ease opacity;
}
.sitenav:focus-within,
.outline:focus-within {
opacity: 1;
}
}
}