Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
237 lines (220 loc) · 9 KB
/
Copy pathstyles.css
File metadata and controls
237 lines (220 loc) · 9 KB
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
/* Jeewon Kim — personal site
Plain HTML/CSS/JS. Colors are tokens; change them here. */
:root {
--paper: #f4f6f3;
--ink: #17201d;
--muted: #5b6863;
--line: #d3d9d3;
--accent: #2f4fcf;
--accent-soft: rgba(47, 79, 207, .12);
--surface: #ffffff;
--font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
--rail: 168px;
--measure: 66ch;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--paper: #111614; --ink: #e6ebe8; --muted: #98a49f; --line: #2c3531;
--accent: #9fb2ff; --accent-soft: rgba(159, 178, 255, .16); --surface: #1b221f;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--paper: #111614; --ink: #e6ebe8; --muted: #98a49f; --line: #2c3531;
--accent: #9fb2ff; --accent-soft: rgba(159, 178, 255, .16); --surface: #1b221f;
color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font: 400 17px/1.6 var(--font);
font-feature-settings: "tnum" 0;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl { margin: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 16px; }
.shell { width: min(1080px, 100% - 32px); margin-inline: auto; }
/* ── Hero ── */
.hero { padding: clamp(48px, 9vw, 112px) 0 24px; }
h1 {
font-size: clamp(64px, 14vw, 168px);
font-weight: 800;
line-height: .86;
letter-spacing: -0.05em;
margin-left: -0.04em;
}
.intro {
margin-top: clamp(24px, 4vw, 40px);
max-width: 38ch;
font-size: clamp(19px, 2.2vw, 24px);
line-height: 1.42;
letter-spacing: -0.01em;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-weight: 600; }
/* ── Career trace ── */
.trace { margin-top: clamp(48px, 7vw, 80px); margin-bottom: 0; }
.trace-track {
list-style: none; margin: 0; padding: 0;
position: relative;
height: 168px;
}
/* the axis, with a break for 2022–2023 */
.trace-track::before {
content: "";
position: absolute; left: 0; right: 0; top: 50%;
height: 2px; margin-top: -1px;
background: linear-gradient(to right,
var(--ink) 0, var(--ink) var(--break-at, 22%),
transparent var(--break-at, 22%), transparent calc(var(--break-at, 22%) + var(--break-w, 6%)),
var(--ink) calc(var(--break-at, 22%) + var(--break-w, 6%)), var(--ink) 100%);
transform-origin: left center;
transform: scaleX(0);
transition: transform 1s cubic-bezier(.6, .1, .2, 1);
}
.trace-track::after {
/* two slashes marking the break */
content: "//";
position: absolute; top: 50%;
left: calc(var(--break-at, 22%) + var(--break-w, 6%) / 2);
transform: translate(-50%, -54%);
color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: -2px;
opacity: 0; transition: opacity .3s ease .6s;
}
.trace-track.drawn::before { transform: scaleX(1); }
.trace-track.drawn::after { opacity: 1; }
.ev {
position: absolute; left: var(--x, 0); top: 50%;
width: 0; height: 0;
font-size: 14px; line-height: 1.3;
opacity: 0; transition: opacity .35s ease;
transition-delay: calc(.45s + var(--i, 0) * .09s);
}
.drawn .ev { opacity: 1; }
.ev::before {
/* the dot */
content: "";
position: absolute; left: -6px; top: -6px;
width: 12px; height: 12px; border-radius: 50%;
background: var(--paper); border: 2px solid var(--ink);
}
.ev.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.lab {
position: absolute; left: -6px; width: max-content; max-width: 13em;
color: inherit; text-decoration: none; padding: 2px 4px; margin: -2px -4px; border-radius: 4px;
}
.lab:hover span, .lab:focus-visible span { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ev:hover::before, .ev:focus-within::before { border-color: var(--accent); }
/* summary box: opens on the other side of the axis from the label */
.peek {
position: absolute; left: -10px; z-index: 2;
width: 17em; margin: 0; padding: 10px 12px;
background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
box-shadow: 0 6px 20px rgba(20, 30, 25, .08);
font-size: 14px; line-height: 1.45; color: var(--ink);
opacity: 0; visibility: hidden; pointer-events: none;
transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.up .peek { top: 16px; transform: translateY(-4px); }
.down .peek { bottom: 16px; transform: translateY(4px); }
.end .peek { left: auto; right: -10px; }
.ev:hover .peek, .ev:focus-within .peek {
opacity: 1; visibility: visible; transform: none;
transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.ev:hover, .ev:focus-within { z-index: 3; }
.up .lab { bottom: 18px; }
.down .lab { top: 18px; }
.end .lab { left: auto; right: -6px; text-align: right; }
.ev time { display: block; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ev span { display: block; font-weight: 600; }
.bar {
/* service period drawn as a thick segment of the axis */
position: absolute; top: 50%; left: var(--x); width: var(--w);
height: 6px; margin-top: -3px; background: var(--ink);
opacity: 0; transition: opacity .35s ease .4s;
}
.drawn .bar { opacity: 1; }
/* ── Sections ── */
main { padding-bottom: 32px; }
.row {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
padding: 48px 0 0;
}
.row + .row { margin-top: 16px; }
.row > h2 {
font-size: 15px; font-weight: 600; color: var(--muted);
letter-spacing: 0; line-height: 1.9;
}
@media (min-width: 760px) {
.row { grid-template-columns: var(--rail) 1fr; gap: 32px; padding-top: 64px; }
.row > h2 { position: sticky; top: 24px; align-self: start; }
}
.entries { display: grid; gap: 40px; max-width: 760px; }
.entry { display: grid; gap: 10px; }
.entry > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.entry h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.when { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.role { font-weight: 500; }
.entry p, .entry li { max-width: var(--measure); }
.entry ul { padding-left: 1.1em; display: grid; gap: 6px; }
.entry li::marker { color: var(--muted); }
.stack { color: var(--muted); font-size: 15px; }
.go { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; font-size: 15px; }
.strong { font-weight: 700; }
.aka { font-weight: 400; color: var(--muted); font-size: 16px; letter-spacing: 0; }
/* where the timeline lands you */
.entry { scroll-margin-top: 24px; }
.entry:target { animation: landed 1.8s ease-out; border-radius: 6px; }
@keyframes landed {
0%, 30% { background: var(--accent-soft); box-shadow: 0 0 0 12px var(--accent-soft); }
100% { background: transparent; box-shadow: 0 0 0 12px transparent; }
}
/* the current job gets the one accent rule */
#work .entry:first-child { border-left: 3px solid var(--accent); padding-left: 18px; margin-left: -21px; }
@media (max-width: 759px) { #work .entry:first-child { margin-left: 0; } }
.toolkit { display: grid; grid-template-columns: 9em 1fr; gap: 10px 20px; max-width: 760px; }
.toolkit dt { color: var(--muted); font-size: 15px; line-height: 1.75; }
.toolkit dd { margin: 0; }
.archive { list-style: none; padding: 0; display: grid; gap: 8px; }
.archive a { font-weight: 600; }
.archive span { color: var(--muted); }
.archive span a { font-weight: 400; }
footer {
margin-top: 88px; padding: 24px 0 64px;
border-top: 1px solid var(--line);
display: flex; flex-wrap: wrap; gap: 4px 32px;
color: var(--muted); font-size: 15px;
}
/* ── Small screens: the trace becomes a vertical list ── */
@media (max-width: 719px) {
.trace-track { height: auto; padding-left: 22px; display: grid; gap: 16px; }
.trace-track::before {
left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; margin: 0;
background: var(--ink); transform: scaleY(0); transform-origin: top center;
}
.trace-track.drawn::before { transform: scaleY(1); }
.trace-track::after { display: none; }
.ev { position: relative; left: auto; top: auto; width: auto; height: auto; }
.ev::before { left: -22px; top: 4px; }
.lab, .end .lab { position: static; display: block; max-width: none; text-align: left; margin: 0; padding: 0; }
.peek { display: none; }
.bar { display: none; }
.intro { max-width: none; }
.toolkit { grid-template-columns: 1fr; gap: 0; }
.toolkit dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.trace-track::before, .trace-track::after, .ev, .peek { transition: none !important; }
.entry:target { animation: none; background: var(--accent-soft); }
}