-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathethical-data-science.css
More file actions
179 lines (161 loc) · 12.1 KB
/
Copy pathethical-data-science.css
File metadata and controls
179 lines (161 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
/* ============================================================
Ethical Data Science — Styles
Edit colours via the :root custom properties below.
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #faf8f2;
--text: #2a2828;
--text-light: #5a5757;
--primary: #1a6b5a;
--primary-dark: #134e42;
--primary-light:#e6f4f0;
--accent: #c0622b;
--accent-light: #fdf0e8;
--card-bg: #ffffff;
--card-border: #d5e8e3;
--rule: #d5cfc3;
--sidebar-bg: #134e42;
--sidebar-w: 270px;
--max-w: 700px;
--serif: Georgia, 'Times New Roman', serif;
--sans: 'Helvetica Neue', Arial, sans-serif;
--mono: 'Courier New', monospace;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.78; }
/* ── Sidebar ── */
#sidebar {
position: fixed; top: 0; left: 0; bottom: 0;
width: var(--sidebar-w); background: var(--sidebar-bg);
color: #c8e8e0; overflow-y: auto; z-index: 100;
padding: 24px 0 40px; display: flex; flex-direction: column;
}
#sidebar .logo {
font-family: var(--sans); font-size: 11px; font-weight: 700;
letter-spacing: .12em; text-transform: uppercase; color: #7ecbbf;
padding: 0 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px;
}
#sidebar nav a {
display: flex; align-items: baseline; gap: 10px;
padding: 7px 20px; text-decoration: none;
font-family: var(--sans); font-size: 12.5px; color: #a8d4cc;
transition: background .15s, color .15s; border-left: 3px solid transparent;
}
#sidebar nav a .num { font-size: 10px; font-weight: 700; color: #5fb8a8; min-width: 18px; }
#sidebar nav a:hover, #sidebar nav a.active {
background: rgba(255,255,255,.08); color: #fff; border-left-color: #7ecbbf;
}
#sidebar .progress-section {
margin-top: auto; padding: 18px 20px 0;
border-top: 1px solid rgba(255,255,255,.1);
}
#sidebar .progress-label { font-family: var(--sans); font-size: 11px; color: #7ecbbf; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
#sidebar .progress-bar-outer { background: rgba(255,255,255,.15); border-radius: 4px; height: 6px; overflow: hidden; }
#sidebar .progress-bar-inner { background: #7ecbbf; height: 100%; border-radius: 4px; transition: width .4s ease; width: 0%; }
#sidebar .progress-text { font-family: var(--sans); font-size: 11px; color: #7ecbbf; margin-top: 5px; }
/* ── Main ── */
#main { margin-left: var(--sidebar-w); padding: 60px 52px 120px; max-width: calc(var(--sidebar-w) + var(--max-w) + 104px); }
.content-inner { max-width: var(--max-w); }
/* ── Hero ── */
.hero { margin-bottom: 64px; padding-bottom: 40px; border-bottom: 2px solid var(--rule); }
.hero .series-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: 40px; font-weight: normal; line-height: 1.22; color: var(--text); margin-bottom: 18px; }
.hero h1 em { color: var(--primary); font-style: italic; }
.hero .byline { font-family: var(--sans); font-size: 14px; color: var(--text-light); }
.hero .byline strong { color: var(--text); }
.hero .intro-note { margin-top: 18px; font-family: var(--sans); font-size: 14px; color: var(--text-light); background: var(--primary-light); border-radius: 8px; padding: 14px 18px; border: 1px solid var(--card-border); }
/* ── Section headings ── */
.lecture-section { margin-top: 72px; }
.lecture-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.lecture-section > h2 { font-family: var(--serif); font-size: 30px; font-weight: normal; color: var(--text); line-height: 1.28; margin-bottom: 4px; }
.lecture-section > .lecture-subtitle { font-family: var(--sans); font-size: 14px; color: var(--text-light); margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
h3 { font-family: var(--serif); font-size: 22px; font-weight: normal; color: var(--text); margin: 42px 0 14px; line-height: 1.32; }
h4 { font-family: var(--serif); font-size: 18px; font-weight: normal; color: var(--text); margin: 24px 0 10px; }
p { margin-bottom: 20px; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
code { font-family: var(--mono); font-size: 15px; background: #f0ede4; padding: 1px 5px; border-radius: 3px; }
/* ── Callout ── */
.callout { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 26px 0; }
.callout .callout-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 7px; }
.callout p { margin-bottom: 0; font-size: 17px; }
.callout-accent { background: var(--accent-light); border-left-color: var(--accent); }
.callout-accent .callout-label { color: var(--accent); }
.callout-dark { background: #1a2e2a; border-left-color: #7ecbbf; }
.callout-dark .callout-label { color: #7ecbbf; }
.callout-dark p { color: #c8e8e0; }
/* ── Case Study ── */
.case-study { background: #fffdf8; border: 1px solid #e8dfc8; border-radius: 10px; padding: 22px 26px; margin: 26px 0; }
.case-study .case-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case-study h4 { font-family: var(--serif); font-size: 18px; font-weight: normal; margin-bottom: 10px; margin-top: 0; }
.case-study p { font-size: 16px; margin-bottom: 10px; }
.case-study p:last-child { margin-bottom: 0; }
/* ── Grid layouts ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 24px 0; }
.one-col { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
.grid-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 16px 18px; }
.grid-card h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 8px; margin-top: 0; }
.grid-card p { font-size: 15px; margin-bottom: 0; color: var(--text-light); }
.grid-card.accent h4 { color: var(--accent); }
.grid-card.accent { border-color: #e8dfc8; }
.full-width { grid-column: 1 / -1; }
/* ── Lists ── */
ol.styled, ul.styled { padding-left: 0; margin: 14px 0 22px; list-style: none; }
ol.styled { counter-reset: item; }
ol.styled li { counter-increment: item; padding: 10px 0 10px 50px; position: relative; border-bottom: 1px solid var(--rule); font-size: 17px; }
ol.styled li::before { content: counter(item); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; font-weight: 700; }
ol.styled li:last-child { border-bottom: none; }
ol.styled li strong { color: var(--primary-dark); }
ul.styled li { padding: 8px 0 8px 26px; position: relative; font-size: 17px; border-bottom: 1px solid var(--rule); }
ul.styled li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-family: var(--sans); }
ul.styled li:last-child { border-bottom: none; }
ul.styled li strong { color: var(--primary-dark); }
/* ── Math/formula ── */
.formula { background: #f0ede4; border-radius: 6px; padding: 12px 18px; margin: 14px 0; font-family: var(--mono); font-size: 15px; line-height: 1.6; color: #2a2828; border-left: 3px solid var(--primary); }
.formula p { margin: 0; }
/* ── Blockquote ── */
blockquote { border-left: 4px solid var(--accent); margin: 26px 0; padding: 12px 22px; font-style: italic; color: var(--text-light); font-size: 19px; line-height: 1.6; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sans); font-size: 13px; color: #9a9490; }
/* ── Table ── */
table.styled { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
table.styled th { background: var(--primary); color: white; font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 10px 14px; text-align: left; letter-spacing: .05em; }
table.styled td { padding: 9px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.styled tr:last-child td { border-bottom: none; }
table.styled tr:nth-child(even) td { background: #f6f4ef; }
/* ── Divider ── */
.divider { border: none; border-top: 2px solid var(--rule); margin: 60px 0; }
/* ── Quiz Cards ── */
.quiz-section { background: linear-gradient(135deg, #f0f9f6 0%, #e8f5ef 100%); border: 1px solid #b8ddd5; border-radius: 14px; padding: 26px 30px; margin: 42px 0; }
.quiz-section-title { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.quiz-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; transition: border-color .2s; }
.quiz-card:last-child { margin-bottom: 0; }
.quiz-question { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--text); margin-bottom: 0; }
.quiz-answer { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.65; color: var(--text-light); }
.quiz-answer.visible { display: block; }
.quiz-answer strong { color: var(--text); }
.quiz-controls { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn-reveal { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 6px; cursor: pointer; transition: all .15s; border: 2px solid var(--primary); background: transparent; color: var(--primary); }
.btn-reveal:hover { background: var(--primary); color: white; }
.btn-remembered { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 6px; cursor: pointer; transition: all .15s; border: 2px solid #c8e8e0; background: transparent; color: var(--primary); display: none; }
.btn-remembered:hover { background: var(--primary-light); }
.btn-remembered.visible { display: inline-flex; align-items: center; gap: 5px; }
.btn-forgot { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 6px; cursor: pointer; transition: all .15s; border: 2px solid #f0ddd4; background: transparent; color: var(--accent); display: none; }
.btn-forgot:hover { background: var(--accent-light); }
.btn-forgot.visible { display: inline-flex; align-items: center; gap: 5px; }
.quiz-card.remembered { border-color: #7ecbbf; background: #f6fcfa; }
.quiz-card.forgotten { border-color: #e8b89a; background: #fef8f4; }
/* ── Responsive ── */
@media (max-width: 920px) {
#sidebar { transform: translateX(-270px); transition: transform .3s; }
#sidebar.open { transform: translateX(0); width: 270px; }
#main { margin-left: 0; padding: 32px 24px 80px; }
.two-col, .three-col { grid-template-columns: 1fr; }
.full-width { grid-column: 1; }
#menu-toggle { display: flex; position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--primary); color: white; border: none; border-radius: 8px; padding: 9px 13px; font-size: 18px; cursor: pointer; }
}
@media (min-width: 921px) { #menu-toggle { display: none; } }
#scroll-top { position: fixed; bottom: 28px; right: 28px; background: var(--primary); color: white; border: none; border-radius: 50%; width: 42px; height: 42px; font-size: 20px; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(26,107,90,.3); transition: background .15s; z-index: 50; }
#scroll-top:hover { background: var(--primary-dark); }
#scroll-top.visible { display: flex; }