Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
112 lines (102 loc) · 6.21 KB
/
Copy pathstyle.css
File metadata and controls
112 lines (102 loc) · 6.21 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
:root {
--bg: #fbfaf7;
--surface: #ffffff;
--fg: #22211f;
--muted: #6f6b64;
--faint: #a8a39a;
--line: #e7e3dc;
--accent: #c2410c;
--accent-soft: #fbeee6;
--serif: "Instrument Serif", Georgia, "Songti SC", serif;
--sans: "Inter", -apple-system, "PingFang SC", "Segoe UI", sans-serif;
--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #141412; --surface: #1c1b19; --fg: #ecebe6; --muted: #a29e95; --faint: #6e6a62;
--line: #2d2c29; --accent: #fb8a4c; --accent-soft: #2a1d15;
}
}
:root[data-theme="dark"] {
--bg: #141412; --surface: #1c1b19; --fg: #ecebe6; --muted: #a29e95; --faint: #6e6a62;
--line: #2d2c29; --accent: #fb8a4c; --accent-soft: #2a1d15;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
/* nav */
nav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; flex-wrap: nowrap; align-items: center; gap: 22px; height: 54px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
nav .brand { font: 22px var(--serif); text-decoration: none; margin-right: auto; white-space: nowrap; }
nav a:not(.brand) { text-decoration: none; color: var(--muted); white-space: nowrap; }
nav a.active { color: var(--fg); }
#theme { flex-shrink: 0; }
nav a:hover { color: var(--fg); }
#theme { background: none; border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: var(--muted); font-size: 14px; }
/* hero */
.hero { display: grid; grid-template-columns: 1fr 132px; gap: 32px; align-items: start; padding: 64px 0 28px; }
.hero h1 { font: 400 54px/1.05 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 em { color: var(--accent); }
.hero p { margin: 0 0 12px; font-size: 17px; }
.hero img { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; background: var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-top: 18px; }
/* the path: equations → systems → pixels → actions */
.path { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0 8px; position: relative; }
.path::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 2px;
background: linear-gradient(90deg, var(--faint), var(--accent)); }
.path a { text-decoration: none; text-align: center; position: relative; padding-bottom: 4px; }
.path .dot { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
background: var(--surface); border: 2px solid var(--line); font: 20px var(--serif); transition: border-color .2s, transform .2s; }
.path a:last-child .dot { border-color: var(--accent); color: var(--accent); }
.path a:hover .dot { border-color: var(--accent); transform: translateY(-2px); }
.path .k { font: 12px var(--mono); color: var(--muted); display: block; }
.path .v { font-size: 13px; display: block; }
/* sections */
section { padding: 40px 0 8px; scroll-margin-top: 54px; }
h2 { font: 400 32px var(--serif); margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
h2 small { font: 12px var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
/* featured */
.feature { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
padding: 22px 24px; margin-bottom: 14px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.feature .eyebrow { font: 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.feature h3 { font: 400 26px/1.2 var(--serif); margin: 6px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .go { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--fg); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .feature { margin: 0; }
/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
background: linear-gradient(var(--accent), var(--faint)); }
.timeline li { position: relative; padding: 0 0 26px 36px; scroll-margin-top: 70px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%;
background: var(--bg); border: 2px solid var(--faint); }
.timeline li:first-child::before { border-color: var(--accent); background: var(--accent); }
.timeline .when { font: 12px var(--mono); color: var(--faint); }
.timeline .tag { font: 11px var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; }
.timeline .org { font-weight: 600; }
.timeline .org span { font-weight: 400; color: var(--muted); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
/* list rows: writing + publications */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows time { font: 12px/2 var(--mono); color: var(--faint); }
.rows .meta { display: block; color: var(--muted); font-size: 14px; }
.rows b { font-weight: 600; }
footer { padding: 56px 0 40px; color: var(--faint); font-size: 13px; }
@media (max-width: 640px) {
.wrap { padding: 0 16px; }
nav .wrap { gap: 11px; font-size: 13px; }
nav .brand { font-size: 17px; }
.hero { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
.hero img { width: 88px; height: 88px; order: -1; }
.hero h1 { font-size: 42px; }
.path .v { display: none; }
.grid2 { grid-template-columns: 1fr; }
.rows li { grid-template-columns: 1fr; gap: 0; }
}