Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
508 lines (470 loc) · 19.1 KB
/
Copy pathstyle.css
File metadata and controls
508 lines (470 loc) · 19.1 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
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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
/* ============================================================
mharc. — portfolio stylesheet
tokens → base → shared patterns → components → responsive → print
DRY notes:
- Rhythm & type scale are fluid (clamp), so most "mobile sizing"
needs no breakpoint at all.
- Shared type roles (mono labels, uppercase tags) and the
two-column row pattern (.xp/.edu/.gear) are declared once;
components override via custom properties (--label-col).
- Grids that should collapse (.proj-grid/.stack-grid) use
auto-fit + minmax and never appear in a media query.
============================================================ */
/* ============ Tokens ============ */
:root {
/* color */
--bg: #fcfcfc;
--surface: #ffffff;
--surface-2: #f6f6f7;
--ink: #16181d;
--muted: #5b6270;
--faint: #8b91a0;
--line: #e7e8ec;
--line-strong: #d8dade;
--accent: #d81f33;
--accent-ink: #b91527;
--accent-soft: rgba(216, 31, 51, 0.08);
--btn-ink: #ffffff;
--shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px -12px rgba(22, 24, 29, 0.10);
/* shape & rhythm (fluid) */
--radius: 12px;
--nav-h: 60px;
--wrap-pad: clamp(18px, 4vw, 24px);
--sec-gap: clamp(56px, 10vw, 88px);
--row-gap: clamp(24px, 4.5vw, 48px);
--label-col: 220px; /* left column of two-col rows */
/* type */
--font-body: "Inter", system-ui, -apple-system, sans-serif;
--font-display: "Space Grotesk", "Inter", sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
--fs-display: clamp(31px, 5.2vw, 56px);
--fs-h2: clamp(23px, 3vw, 32px);
--fs-stat: clamp(24px, 3.4vw, 32px);
}
html.dark {
--bg: #0b0c0f;
--surface: #121419;
--surface-2: #171a20;
--ink: #eceef2;
--muted: #9aa3af;
--faint: #6e7684;
--line: #23262d;
--line-strong: #2e323b;
--accent: #ff4f60;
--accent-ink: #ff6a79;
--accent-soft: rgba(255, 79, 96, 0.10);
--btn-ink: #14060a;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}
/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
font-size: 16px;
line-height: 1.65;
color: var(--ink);
background: var(--bg);
-webkit-font-smoothing: antialiased;
transition: background 0.25s ease, color 0.25s ease;
}
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, .display { font-family: var(--font-display); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1060px; margin-inline: auto; padding-inline: var(--wrap-pad); }
main section {
padding: var(--sec-gap) 0 0;
scroll-margin-top: calc(var(--nav-h) + 8px); /* anchor jumps clear the sticky nav */
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* ============ Shared patterns (DRY) ============ */
/* mono type role — every terminal-flavored detail on the page */
.mono, .skip-link, .status, .tag, .eyebrow, .xp-when, .edu-when, .edu .note,
.proj .role, .gear .spec, .gear-note, .contact-meta, .foot-inner,
.sec-head .idx, .sec-head .aside, .stat .lbl, .stack-group h3,
.hero-photo figcaption, .more-gh .mono {
font-family: var(--font-mono);
}
/* uppercase micro-label role */
.eyebrow, .stat .lbl, .stack-group h3 {
font-size: 12px;
font-weight: 500;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--faint);
}
/* two-column row pattern — components tune it via --label-col */
.xp, .edu, .gear {
display: grid;
grid-template-columns: var(--label-col) 1fr;
gap: 20px var(--row-gap);
}
/* balanced headlines, tidy paragraph rag (progressive enhancements) */
.display, .sec-head h2 { text-wrap: balance; }
.lede, .proj p { text-wrap: pretty; }
/* Skip link */
.skip-link {
position: fixed; top: 12px; left: 12px; z-index: 2000;
background: var(--accent); color: #fff; text-decoration: none;
font-size: 13px;
padding: 10px 16px; border-radius: 8px;
transform: translateY(-64px); opacity: 0;
transition: transform 0.2s, opacity 0.2s;
}
.skip-link:focus { transform: translateY(0); opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
/* ============ Nav ============ */
.nav {
position: sticky; top: 0; z-index: 1000;
background: color-mix(in srgb, var(--bg) 82%, transparent);
-webkit-backdrop-filter: blur(14px);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--line);
}
.nav-inner {
display: flex; align-items: center; justify-content: space-between;
height: var(--nav-h);
}
.logo {
font-family: var(--font-display); font-weight: 700; font-size: 20px;
letter-spacing: -0.02em; text-decoration: none;
}
.logo b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
display: block; padding: 7px 12px; border-radius: 8px;
font-size: 13.5px; font-weight: 500; color: var(--muted);
text-decoration: none; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 36px; height: 36px; border-radius: 9px;
border: 1px solid var(--line); background: transparent; color: var(--muted);
cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
#theme-toggle .sun { display: none; }
html.dark #theme-toggle .sun { display: block; }
html.dark #theme-toggle .moon { display: none; }
.menu-btn { display: none; }
/* Mobile menu panel */
.mobile-panel {
display: none;
border-top: 1px solid var(--line);
padding: 8px var(--wrap-pad) 14px;
}
.mobile-panel a {
display: block; padding: 12px 4px; text-decoration: none;
font-size: 15px; font-weight: 500; color: var(--muted);
border-bottom: 1px solid var(--line);
}
.mobile-panel a:last-child { border-bottom: 0; }
.mobile-panel a:hover { color: var(--accent); }
.nav.menu-open .mobile-panel { display: block; }
/* ============ Hero ============ */
.hero { padding-top: clamp(44px, 8vw, 84px); }
.hero-grid {
display: grid; grid-template-columns: 1.5fr 1fr;
gap: clamp(36px, 6vw, 56px); align-items: center;
}
.eyebrow-row {
display: flex; flex-wrap: wrap; align-items: center;
gap: 10px 14px; margin-bottom: clamp(20px, 4vw, 26px);
}
.status {
display: inline-flex; align-items: center; gap: 8px;
font-size: 12px; font-weight: 500;
letter-spacing: 0.04em; color: var(--ink);
border: 1px solid var(--line); border-radius: 999px;
padding: 5px 13px; background: var(--surface);
}
.status .dot {
width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
flex-shrink: 0;
}
.hero h1 {
font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
color: var(--muted); margin-bottom: 14px;
}
.display {
font-size: var(--fs-display);
font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
margin-bottom: clamp(18px, 3.5vw, 24px);
}
.display em { font-style: normal; color: var(--accent); }
.lede {
font-size: clamp(16px, 2vw, 17.5px); color: var(--muted);
max-width: 56ch; margin-bottom: clamp(26px, 5vw, 34px);
}
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 9px;
padding: 12px 22px; border-radius: 10px;
font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
text-decoration: none; cursor: pointer; border: 1px solid transparent;
transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--btn-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-photo { position: relative; justify-self: end; width: min(300px, 100%); }
.hero-photo::before {
content: ""; position: absolute; inset: 14px -14px -14px 14px;
border: 1px solid var(--line-strong); border-radius: var(--radius);
z-index: 0; transition: border-color 0.25s;
}
.hero-photo:hover::before { border-color: var(--accent); }
.hero-photo img {
position: relative; z-index: 1; width: 100%; aspect-ratio: 4/4.6;
object-fit: cover; border-radius: var(--radius);
border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-photo figcaption {
position: absolute; z-index: 2; left: 14px; bottom: 14px;
font-size: 11px;
background: color-mix(in srgb, var(--bg) 88%, transparent);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border: 1px solid var(--line); border-radius: 7px;
padding: 5px 10px; color: var(--muted);
}
/* Stat strip */
.stats {
display: grid; grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
margin-top: clamp(48px, 8vw, 72px);
}
.stat { padding: clamp(20px, 3.5vw, 26px) 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 700;
letter-spacing: -0.02em; line-height: 1;
}
.stat .num i { font-style: normal; color: var(--accent); }
.stat .lbl { font-size: 11.5px; margin-top: 10px; line-height: 1.5; }
/* ============ Sections ============ */
.sec-head {
display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
padding-bottom: 18px; border-bottom: 1px solid var(--line-strong);
margin-bottom: clamp(28px, 5vw, 44px);
}
.sec-head .idx { font-size: 13px; font-weight: 600; color: var(--accent); }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
.sec-head .aside { margin-left: auto; font-size: 12px; color: var(--faint); letter-spacing: 0.03em; }
/* Experience */
.xp { padding: clamp(24px, 4vw, 30px) 0; border-bottom: 1px solid var(--line); }
.xp:last-child { border-bottom: 0; }
.xp-when { font-size: 12.5px; color: var(--faint); line-height: 1.8; }
.xp-when .range { color: var(--muted); font-weight: 500; display: block; }
.xp h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.xp .co { font-size: 14.5px; color: var(--muted); margin: 3px 0 14px; }
.xp .co b { color: var(--ink); font-weight: 600; }
.bullets { list-style: none; }
.bullets li {
position: relative; padding-left: 22px; margin-bottom: 9px;
font-size: 15px; color: var(--muted);
}
.bullets li::before {
content: ""; position: absolute; left: 0; top: 9px;
width: 10px; height: 2px; background: var(--accent);
}
.bullets li b { color: var(--ink); font-weight: 600; }
/* Open Source — auto-fit: 2-up when space allows, 1-up otherwise */
.proj-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
gap: 20px;
}
.proj {
position: relative; display: flex; flex-direction: column;
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius); padding: clamp(22px, 3.5vw, 30px) clamp(20px, 3.5vw, 30px) 26px;
box-shadow: var(--shadow);
transition: border-color 0.2s, transform 0.2s;
overflow: hidden;
}
.proj:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.proj::before {
content: ""; position: absolute; top: 0; left: 0;
width: 56px; height: 2px; background: var(--accent);
}
.proj-top {
display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
gap: 2px 12px; margin-bottom: 4px;
}
.proj h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.proj .role { font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; white-space: nowrap; }
.proj p { font-size: 15px; color: var(--muted); margin: 10px 0 14px; }
.proj p b { color: var(--ink); font-weight: 600; }
.proj .bullets { margin-bottom: 20px; }
.proj .bullets li { font-size: 14.5px; margin-bottom: 6px; }
.proj-foot {
margin-top: auto; display: flex; flex-wrap: wrap; align-items: center;
justify-content: space-between; gap: 12px;
padding-top: 16px; border-top: 1px solid var(--line);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
font-size: 11px; font-weight: 500;
color: var(--muted); background: var(--surface-2);
border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
white-space: nowrap;
}
.plink {
display: inline-flex; align-items: center; gap: 6px;
font-size: 13.5px; font-weight: 600; color: var(--accent);
text-decoration: none; white-space: nowrap;
}
.plink svg { width: 13px; height: 13px; transition: transform 0.15s; }
.plink:hover svg { transform: translate(2px, -2px); }
.more-gh {
grid-column: 1 / -1;
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
gap: 6px 16px;
border: 1px dashed var(--line-strong); border-radius: var(--radius);
padding: 18px clamp(20px, 3.5vw, 26px); text-decoration: none;
color: var(--muted); font-size: 14.5px;
transition: border-color 0.2s, color 0.2s;
}
.more-gh .mono { font-size: 13px; }
.more-gh:hover { border-color: var(--accent); color: var(--ink); }
/* Stack — auto-fit like .proj-grid */
.core-line {
display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius); padding: 16px clamp(16px, 3vw, 22px); margin-bottom: 28px;
box-shadow: var(--shadow);
}
.core-line .k {
font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.core-line .v { font-family: var(--font-display); font-size: clamp(15px, 2vw, 16.5px); font-weight: 600; letter-spacing: -0.01em; }
.core-line .v span { color: var(--faint); font-weight: 500; padding: 0 6px; }
.stack-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
gap: 0 var(--row-gap);
}
.stack-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-group h3 {
display: flex; align-items: center; gap: 10px;
font-weight: 600;
margin-bottom: 13px;
}
.stack-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stack-items { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
font-size: 13px; font-weight: 500; color: var(--ink);
background: var(--surface); border: 1px solid var(--line);
border-radius: 999px; padding: 5px 13px;
transition: border-color 0.15s;
}
.chip:hover { border-color: var(--accent); }
/* Education */
.edu { padding: 6px 0; }
.edu-when { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.edu h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.edu .school { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.edu .note {
display: inline-flex; margin-top: 14px;
font-size: 11.5px;
color: var(--accent); background: var(--accent-soft);
border-radius: 6px; padding: 4px 10px;
}
/* Gear */
.gear-list { border-top: 1px solid var(--line); }
.gear {
--label-col: 250px;
align-items: baseline;
gap: 6px var(--row-gap);
padding: 20px 0; border-bottom: 1px solid var(--line);
}
.gear h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gear .use { font-size: 13px; color: var(--faint); margin-top: 2px; }
.gear .spec { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.gear .spec i { font-style: normal; color: var(--faint); padding: 0 7px; }
.gear-note { font-size: 12px; color: var(--faint); margin-top: 16px; }
.gear-note em { font-style: normal; color: var(--accent); }
/* Contact */
.contact { text-align: left; padding-bottom: 8px; }
.contact-box {
border: 1px solid var(--line); border-radius: 16px;
background: var(--surface);
padding: clamp(28px, 6vw, 64px);
box-shadow: var(--shadow);
position: relative; overflow: hidden;
}
.contact-box::before {
content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 120px, var(--line) 120px);
}
.contact .display { font-size: clamp(26px, 4vw, 44px); margin-bottom: 16px; }
.contact .lede { margin-bottom: 30px; }
.contact-meta {
display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px;
font-size: 12.5px; color: var(--faint);
}
.contact-meta a { color: var(--muted); text-decoration: none; }
.contact-meta a:hover { color: var(--accent); }
/* Footer */
footer {
margin-top: var(--sec-gap); border-top: 1px solid var(--line);
padding: 26px 0 34px;
}
.foot-inner {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
gap: 12px;
font-size: 12px; color: var(--faint);
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--faint); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
/* ============ Reveal (JS-gated; visible without JS) ============ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* ============ Responsive ============
Fluid clamp() handles sizing; these breakpoints only swap layout. */
@media (max-width: 900px) {
.nav-links { display: none; }
.menu-btn { display: inline-flex; }
.hero-grid { grid-template-columns: 1fr; }
.hero-photo { justify-self: start; width: min(250px, 62%); }
.stats { grid-template-columns: repeat(2, 1fr); }
.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
/* two-col rows stack; labels become an inline meta line */
.xp, .edu, .gear { grid-template-columns: 1fr; gap: 10px 0; }
.xp-when { display: flex; flex-wrap: wrap; gap: 2px 14px; }
}
@media (max-width: 540px) {
/* CTAs: primary goes full-width, secondaries share a row */
.cta-row > .btn { flex: 1 1 auto; }
.cta-row > .btn-primary { flex-basis: 100%; }
}
/* comfortable touch targets on touch devices */
@media (pointer: coarse) {
.icon-btn { width: 42px; height: 42px; }
.nav-links a { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.js .reveal { opacity: 1; transform: none; transition: none; }
* { transition: none !important; animation: none !important; }
}
/* ============ Print ============ */
@media print {
.nav, .skip-link, .mobile-panel { display: none !important; }
body { background: #fff; color: #000; }
.js .reveal { opacity: 1 !important; transform: none !important; }
main section { padding-top: 32px; }
.proj, .contact-box, .core-line { box-shadow: none; }
}