Repository navigation
Expand file tree
/
Copy pathcourse.css
More file actions
226 lines (219 loc) · 12.1 KB
/
Copy pathcourse.css
File metadata and controls
226 lines (219 loc) · 12.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
:root {
--paper: #f4f1e9;
--white: #fffdf8;
--ink: #17211d;
--muted: #69726d;
--line: #d1cec4;
--accent: #2b66f6;
--accent-soft: #e7edff;
--forest: #163f32;
--acid: #d9ff42;
--orange: #ff6a3d;
--sans: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
--serif: Iowan Old Style, "Noto Serif KR", "AppleMyungjo", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.camp { --accent: #7b9a00; --accent-soft: #edf4cf; }
body.collaboration-course { --accent: #0e7c7b; --accent-soft: #dff2ed; }
a { color: inherit; }
.course-header {
min-height: 72px;
padding: 0 max(20px, calc((100vw - 1320px) / 2));
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--line);
}
.back-link, .header-repo { font-size: 11px; font-weight: 850; letter-spacing: .04em; text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
.back-link span { color: var(--orange); font-size: 17px; }
.header-repo { color: var(--muted); }
.course-hero {
position: relative;
min-height: 580px;
padding: 96px max(20px, calc((100vw - 1320px) / 2)) 86px;
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr);
gap: 8vw;
align-items: end;
overflow: hidden;
}
.course-hero::after {
content: attr(data-number);
position: absolute;
z-index: -1;
right: 2vw;
top: -45px;
color: color-mix(in srgb, var(--accent) 11%, transparent);
font-size: min(31vw, 410px);
line-height: 1;
font-weight: 900;
letter-spacing: -.12em;
}
.course-kicker { margin: 0 0 22px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.course-hero h1 { max-width: 950px; margin: 0; font-size: clamp(45px, 6.2vw, 84px); line-height: 1.06; letter-spacing: -.065em; }
.course-intro { max-width: 560px; margin: 0 0 5px; }
.course-intro > p { margin: 0 0 27px; color: #59635d; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions a {
min-height: 46px;
padding: 0 17px;
border: 1px solid var(--ink);
display: inline-flex;
align-items: center;
gap: 14px;
font-size: 11px;
font-weight: 850;
text-decoration: none;
}
.hero-actions a:first-child { background: var(--ink); color: #fff; }
.hero-actions a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-band {
padding: 0 max(20px, calc((100vw - 1320px) / 2));
display: grid;
grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
background: var(--white);
}
.stat-band div { min-height: 108px; padding: 24px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 7px; }
.stat-band div:last-child { border-right: 0; }
.stat-band span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.stat-band strong { font-size: 21px; letter-spacing: -.03em; }
.course-layout {
max-width: 1320px;
margin: 0 auto;
padding: 105px 20px 120px;
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
gap: 9vw;
align-items: start;
}
.course-nav { position: sticky; top: 26px; }
.course-nav p { margin: 0 0 18px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.course-nav ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.course-nav li { border-bottom: 1px solid var(--line); }
.course-nav a { padding: 13px 0; display: grid; grid-template-columns: 29px 1fr; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; text-decoration: none; }
.course-nav a span { color: var(--accent); font-weight: 900; }
.course-nav a:hover { color: var(--ink); }
.course-search { margin: 0 0 23px; }
.course-search > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.search-control { display: flex; border-bottom: 1px solid var(--ink); }
.search-control input { min-width: 0; width: 100%; height: 39px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.search-control input::placeholder { color: #9ba19d; }
.search-control button { padding: 0 0 0 10px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.search-status { display: block; min-height: 16px; margin-top: 7px; color: var(--accent); font-size: 10px; font-weight: 800; }
.reading { min-width: 0; }
.reading-intro { margin: 0 0 72px; padding: 35px; border-left: 7px solid var(--accent); background: var(--white); }
.reading-intro p { margin: 0; font-family: var(--serif); font-size: clamp(23px, 2.5vw, 34px); line-height: 1.5; letter-spacing: -.025em; }
.chapter { padding: 0 0 72px; scroll-margin-top: 28px; }
.chapter + .chapter { padding-top: 74px; border-top: 1px solid var(--line); }
.chapter-heading { display: grid; grid-template-columns: 65px 1fr; gap: 20px; align-items: start; }
.chapter-number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; }
.chapter-label { margin: 2px 0 11px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.chapter h2 { margin: 0; font-size: clamp(30px, 3.6vw, 49px); line-height: 1.12; letter-spacing: -.055em; }
.chapter-body { margin: 30px 0 0 85px; }
.chapter-body > p { max-width: 790px; margin: 0 0 23px; color: #535d57; font-size: 16px; line-height: 1.83; }
.chapter-body code { padding: .12em .34em; background: var(--white); color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.chapter[hidden], .course-nav li[hidden] { display: none; }
.search-empty { margin: 0 0 72px; padding: 28px; border: 1px dashed var(--line); background: var(--white); }
.search-empty strong, .search-empty span { display: block; }
.search-empty strong { margin-bottom: 7px; color: var(--accent); font-size: 15px; }
.search-empty span { color: var(--muted); font-size: 12px; }
.takeaways { margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.takeaways li { min-height: 105px; padding: 19px; border: 1px solid var(--line); background: var(--white); }
.takeaways strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; }
.takeaways span { color: #59635d; font-size: 12px; line-height: 1.62; }
.takeaways.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-scroll { margin: 29px 0; overflow-x: auto; border-top: 2px solid var(--ink); }
.content-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 13px; }
.content-table th, .content-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.content-table thead th { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.content-table tbody th { width: 22%; color: var(--ink); font-size: 12px; }
.content-table td { color: #59635d; }
.step-list { margin: 30px 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.step-list li { min-height: 74px; padding: 16px 0; display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 22px; align-items: baseline; border-bottom: 1px solid var(--line); counter-increment: step; }
.step-list strong { color: var(--accent); font-size: 13px; }
.step-list strong::before { content: counter(step, decimal-leading-zero) " "; color: var(--orange); font-size: 9px; letter-spacing: .06em; }
.step-list span { color: #59635d; font-size: 13px; line-height: 1.65; }
.step-list.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 1px; background: var(--line); }
.step-list.compact li { min-height: 112px; padding: 19px; display: block; border: 0; background: var(--white); }
.step-list.compact span { display: block; margin-top: 8px; }
.week-outcome { margin: 25px 0 0; padding: 20px 23px; background: var(--accent-soft); color: #3f4b43; font-size: 13px; line-height: 1.65; }
.week-outcome strong { color: var(--accent); }
.week-link { display: inline-flex; gap: 10px; margin-top: 18px; color: var(--accent); font-size: 12px; font-weight: 900; text-underline-offset: 4px; }
.media-section {
padding: 105px max(20px, calc((100vw - 1320px) / 2));
background: #18201c;
color: #f7f4ea;
}
.media-heading { display: grid; grid-template-columns: 1fr minmax(240px, 430px); gap: 40px; align-items: end; }
.media-heading p { margin: 0 0 15px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.media-heading h2 { margin: 0; font-size: clamp(38px, 4.5vw, 62px); letter-spacing: -.055em; }
.media-heading > span { color: #a6b0aa; font-size: 13px; line-height: 1.7; }
.video-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-card { padding: 14px; border: 1px solid #39453f; background: #202a25; }
.video-card video { width: 100%; aspect-ratio: 16/9; display: block; background: #0f1512; object-fit: cover; }
.video-card h3 { margin: 15px 5px 5px; font-size: 15px; }
.video-card p { margin: 0 5px 5px; color: #9ca7a0; font-size: 11px; line-height: 1.6; }
.resource-section {
padding: 105px max(20px, calc((100vw - 1320px) / 2));
display: grid;
grid-template-columns: .8fr 1.2fr;
gap: 8vw;
background: var(--acid);
}
.resource-section h2 { margin: 15px 0 0; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.08; letter-spacing: -.055em; }
.resource-list { display: grid; gap: 8px; }
.resource-list a {
min-height: 74px;
padding: 0 20px;
border: 1px solid rgba(23,33,29,.38);
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
font-size: 13px;
font-weight: 850;
text-decoration: none;
}
.resource-list a:hover { background: var(--ink); color: #fff; }
.course-footer { min-height: 85px; padding: 0 max(20px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #18201c; color: #8e9992; font-size: 11px; }
@media (max-width: 900px) {
.course-hero { grid-template-columns: 1fr; gap: 45px; }
.stat-band { grid-template-columns: repeat(2, 1fr); }
.stat-band div:nth-child(2) { border-right: 0; }
.stat-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.course-layout { grid-template-columns: 1fr; }
.course-nav { position: static; }
.course-nav ol { display: grid; grid-template-columns: repeat(2, 1fr); }
.course-nav li:nth-child(odd) { border-right: 1px solid var(--line); }
.course-nav a { padding: 13px; }
.course-search { max-width: 520px; }
.media-heading, .resource-section { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
.course-header { min-height: 64px; }
.header-repo { display: none; }
.course-hero { min-height: auto; padding-top: 68px; padding-bottom: 68px; }
.course-hero h1 { font-size: 47px; }
.course-intro > p { font-size: 15px; }
.stat-band { padding: 0; }
.stat-band div { min-height: 90px; padding: 17px; }
.stat-band strong { font-size: 17px; }
.course-layout { padding-top: 70px; padding-bottom: 80px; }
.course-nav ol { grid-template-columns: 1fr; }
.course-nav li:nth-child(odd) { border-right: 0; }
.reading-intro { padding: 25px; }
.chapter-heading { grid-template-columns: 44px 1fr; gap: 13px; }
.chapter-number { width: 38px; height: 38px; }
.chapter-body { margin-left: 0; }
.takeaways, .takeaways.three-up, .video-grid, .step-list.compact { grid-template-columns: 1fr; }
.step-list li { grid-template-columns: 1fr; gap: 7px; }
.media-section, .resource-section { padding-top: 76px; padding-bottom: 76px; }
.course-footer { padding-top: 23px; padding-bottom: 23px; align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }