-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommon.css
More file actions
192 lines (171 loc) · 4.55 KB
/
Copy pathcommon.css
File metadata and controls
192 lines (171 loc) · 4.55 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
:root {
--ink: #1a1a2e;
--muted: #596174;
--paper: #fffefc;
--paper-soft: #f7f4ef;
--accent: #c44536;
--accent-soft: rgba(196, 69, 54, 0.09);
--line: rgba(26, 26, 46, 0.12);
--nav-bg: rgba(255, 254, 252, 0.88);
--shadow: 0 18px 50px rgba(36, 28, 48, 0.10);
--container: 1080px;
}
[data-theme="dark"] {
--ink: #f0edf4;
--muted: #b5afbf;
--paper: #171622;
--paper-soft: #211f2c;
--accent: #ec8676;
--accent-soft: rgba(236, 134, 118, 0.10);
--line: rgba(255, 255, 255, 0.13);
--nav-bg: rgba(23, 22, 34, 0.88);
--shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--ink);
background:
radial-gradient(760px 360px at 14% 0%, var(--accent-soft), transparent 68%),
var(--paper);
font-family: "Work Sans", system-ui, sans-serif;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.skip-link {
position: fixed;
left: 16px;
top: 12px;
z-index: 1000;
padding: 9px 14px;
border-radius: 6px;
color: var(--paper);
background: var(--ink);
transform: translateY(-150%);
transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
position: fixed;
inset: 0 0 auto;
z-index: 100;
border-bottom: 1px solid var(--line);
background: var(--nav-bg);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.nav-inner {
width: min(var(--container), calc(100% - 48px));
min-height: 70px;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
}
.logo {
color: var(--ink);
font-family: "Playfair Display", Georgia, serif;
font-size: 1.18rem;
font-weight: 600;
text-decoration: none;
white-space: nowrap;
transition: color 0.2s ease;
}
.logo:hover { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
position: relative;
color: var(--muted);
font-size: 0.92rem;
font-weight: 500;
text-decoration: none;
transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
content: "";
position: absolute;
left: 50%;
bottom: -8px;
width: 18px;
height: 2px;
border-radius: 2px;
background: var(--accent);
transform: translateX(-50%);
}
.theme-toggle,
.menu-toggle {
border: 1px solid var(--line);
color: var(--muted);
background: transparent;
cursor: pointer;
}
.theme-toggle {
width: 38px;
height: 38px;
border-radius: 50%;
font-size: 1rem;
transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
color: var(--accent);
border-color: var(--accent);
transform: rotate(-10deg);
}
.theme-toggle:active { transform: rotate(0) scale(0.96); }
.menu-toggle { display: none; width: 42px; height: 38px; border-radius: 8px; padding: 9px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:active { transform: scale(0.96); }
footer {
padding: 34px 24px 42px;
border-top: 1px solid var(--line);
color: var(--muted);
text-align: center;
font-size: 0.78rem;
}
@media (max-width: 860px) {
.nav-inner { width: min(100% - 36px, var(--container)); }
.menu-toggle { display: block; }
.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
padding: 22px;
border-bottom: 1px solid var(--line);
background: var(--paper);
box-shadow: var(--shadow);
flex-direction: column;
align-items: stretch;
gap: 0;
}
.nav-links.open { display: flex; }
.nav-links a { padding: 11px 4px; font-size: 1rem; }
.nav-links a.active::after { left: 4px; bottom: 7px; transform: none; }
.theme-toggle { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}