Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
243 lines (216 loc) · 5.59 KB
/
Copy pathstyle.css
File metadata and controls
243 lines (216 loc) · 5.59 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
:root {
/* ---- Colors (these are the warm, calm palette) ---- */
--bg: #faf6ef; /* page background — warm cream */
--text: #2b2622; /* main text — warm near-black */
--muted: #6f655c; /* secondary text — warm gray */
--accent: #9c4a2f; /* the one accent color — a quiet rust (links, buttons) */
--line: #e6ddcf; /* thin divider/border lines — soft */
--card: #fffdf9; /* slightly lighter background for project cards */
/* ---- Fonts ---- */
--font-heading: 'Fraunces', Georgia, 'Times New Roman', serif; /* big titles */
--font-body: 'Hanken Grotesk', system-ui, sans-serif; /* paragraphs */
--font-label: 'Space Mono', ui-monospace, monospace; /* small labels */
/* ---- Layout ---- */
--max-width: 720px; /* how wide the text column gets (bigger = wider) */
}
/* ---- Basic reset so things behave predictably ---- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth; /* in-page links glide instead of jumping */
scroll-padding-top: 1.5rem; /* small gap above a section you jump to */
}
body {
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
font-size: 1.0625rem; /* ~17px */
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
/* Paragraphs get breathing room between them. */
p {
margin-bottom: 1.1rem;
}
a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.15s ease;
}
a:hover {
border-bottom-color: var(--accent); /* subtle underline on hover */
}
em {
font-style: italic;
}
/* ===================== SHARED LAYOUT ===================== */
/* The hero and every section share this centered, max-width column. */
.hero,
.section {
max-width: var(--max-width);
margin: 0 auto;
padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem);
}
.section {
border-top: 1px solid var(--line); /* a thin line between sections */
}
/* The small uppercase label used above the name and above each project. */
.eyebrow {
font-family: var(--font-label);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
margin-bottom: 0.75rem;
}
.section__title {
font-family: var(--font-heading);
font-weight: 600;
font-size: 1.7rem;
margin-bottom: 1.5rem;
}
.section__subtitle {
font-family: var(--font-heading);
font-weight: 600;
font-size: 1.25rem;
margin: 2.5rem 0 1rem;
}
/* ===================== HERO ===================== */
.hero {
padding-top: 4.5rem;
padding-bottom: 4.5rem;
}
.hero__name {
font-family: var(--font-heading);
font-weight: 600;
font-size: clamp(2.5rem, 8vw, 3.75rem); /* scales with screen size */
line-height: 1.05;
letter-spacing: -0.01em;
margin-bottom: 1.25rem;
}
.hero__subhead {
font-size: 1.3rem;
line-height: 1.5;
max-width: 34ch;
}
.hero__supporting {
color: var(--muted);
font-size: 0.95rem;
}
.hero__ctas {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
/* ===================== BUTTONS ===================== */
.button {
display: inline-block;
font-family: var(--font-label);
font-size: 0.82rem;
letter-spacing: 0.02em;
padding: 0.65rem 1.1rem;
color: var(--bg);
background: var(--accent);
border: 1px solid var(--accent);
border-radius: 4px;
}
.button:hover {
background: transparent;
color: var(--accent);
}
/* A lighter "outline only" version for secondary actions. */
.button--quiet {
color: var(--accent);
background: transparent;
}
.button--quiet:hover {
background: var(--accent);
color: var(--bg);
}
/* ===================== ABOUT ===================== */
.about__photo {
float: right; /* photo sits to the right of the text */
width: 200px;
max-width: 40%;
margin: 0 0 1rem 1.75rem;
border-radius: 6px;
}
/* ===================== PROJECTS ===================== */
.project {
background: var(--card);
border: 1px solid var(--line);
border-radius: 8px;
padding: 1.5rem 1.6rem;
margin-bottom: 1.5rem;
}
.project__title {
font-family: var(--font-heading);
font-weight: 600;
font-size: 1.3rem;
margin-bottom: 0.75rem;
}
/* The smaller "other work" entries: no box, just text. */
.project--small {
background: transparent;
border: none;
border-radius: 0;
padding: 0;
margin-bottom: 1.5rem;
}
.project--small .project__title {
font-size: 1.1rem;
margin-bottom: 0.4rem;
}
/* The little tag labels under each project. */
.tags {
list-style: none; /* no bullet points */
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 1rem;
}
.tags li {
font-family: var(--font-label);
font-size: 0.72rem;
color: var(--muted);
padding: 0.25rem 0.55rem;
border: 1px solid var(--line);
border-radius: 999px;
}
/* ===================== CONTACT ===================== */
.contact-links {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-top: 0.5rem;
}
.contact-links a {
font-family: var(--font-label);
font-size: 0.9rem;
}
/* ===================== FOOTER ===================== */
.footer {
max-width: var(--max-width);
margin: 0 auto;
padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 3.5rem;
border-top: 1px solid var(--line);
color: var(--muted);
font-family: var(--font-label);
font-size: 0.8rem;
}
/* ===================== SMALL SCREENS (phones) ===================== */
/* These rules only apply when the screen is narrower than 640px. */
@media (max-width: 640px) {
.about__photo {
float: none; /* on phones, photo goes above the text */
display: block;
width: 160px;
margin: 0 0 1.25rem 0;
}
}