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 | /*
* Base: a small reset plus the document-level defaults.
* Article typography lives in prose.css; this file is everything outside it.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html {
-webkit-text-size-adjust: 100%;
/* Anchor links and in-page jumps should not land under a sticky header. */
scroll-padding-top: var(--space-xl);
/* Hyphenation is only safe with a declared language; layouts set lang. */
hanging-punctuation: first last;
}
body {
background: var(--surface);
color: var(--ink);
font-family: var(--font-ui);
font-size: var(--step-0);
line-height: var(--leading-prose);
min-height: 100svh;
display: flex;
flex-direction: column;
/* Kerning and common ligatures on; discretionary ligatures deliberately
* off, because they misfire in metadata and code. */
font-kerning: normal;
font-variant-ligatures: common-ligatures;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
::selection {
background: var(--selection);
color: var(--ink);
}
/* -- Media defaults -------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
/* -- Forms ----------------------------------------------------------------- */
input,
button,
textarea,
select {
font: inherit;
color: inherit;
}
/* -- Links ----------------------------------------------------------------- */
a {
color: var(--accent);
/* Underline offset and thickness are set from the font metrics so the rule
* clears descenders instead of cutting through them. */
text-decoration-thickness: from-font;
text-underline-offset: 0.18em;
text-decoration-skip-ink: auto;
transition: color var(--duration) var(--ease);
}
a:hover {
color: var(--ink);
}
/* -- Focus ----------------------------------------------------------------- */
:focus-visible {
outline: var(--focus-ring);
outline-offset: var(--focus-offset);
border-radius: var(--radius);
}
/* Keyboard users get a way past the navigation. */
.skip-link {
position: absolute;
inset-inline-start: var(--gutter);
inset-block-start: var(--space-2xs);
z-index: 10;
padding: var(--space-2xs) var(--space-s);
background: var(--surface-raised);
border: 1px solid var(--rule-strong);
border-radius: var(--radius);
font-family: var(--font-ui);
font-size: var(--step--1);
text-decoration: none;
transform: translateY(calc(-100% - var(--space-s)));
transition: transform var(--duration) var(--ease);
}
.skip-link:focus-visible {
transform: translateY(0);
}
/* -- Layout primitives ----------------------------------------------------- */
/*
* The one layout idea in the system: a single centred grid whose named columns
* let any child opt into a wider track without leaving the flow or needing a
* wrapper. `.prose > *` sits in [content]; a figure sets `grid-column: wide`
* or `full` and breaks out cleanly, including inside MDX where you cannot wrap
* things in extra markup without polluting the text.
*/
.canvas {
display: grid;
grid-template-columns:
[full-start] minmax(var(--gutter), 1fr)
[full-bleed-start wide-start] minmax(0, calc((var(--measure-wide) - var(--measure)) / 2))
[content-start] min(var(--measure), 100% - var(--gutter) * 2) [content-end]
minmax(0, calc((var(--measure-wide) - var(--measure)) / 2)) [wide-end full-bleed-end]
minmax(var(--gutter), 1fr) [full-end];
}
.canvas > * {
grid-column: content;
}
.canvas > .u-wide {
grid-column: wide;
}
.canvas > .u-full {
grid-column: full;
}
/* -- Small shared pieces --------------------------------------------------- */
.eyebrow {
font-family: var(--font-ui);
font-size: var(--step--1);
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-faint);
line-height: var(--leading-tight);
}
.meta {
font-family: var(--font-ui);
font-size: var(--step--1);
color: var(--ink-muted);
line-height: var(--leading-tight);
}
hr {
border: 0;
border-top: 1px solid var(--rule);
margin-block: var(--space-xl);
}
/* Visually hidden but still announced by screen readers. */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
|