-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
217 lines (187 loc) · 5.19 KB
/
Copy pathglobals.css
File metadata and controls
217 lines (187 loc) · 5.19 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
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ---- Fontshare faces (Clash Display + Switzer) ---- */
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&f[]=switzer@400,500,600&display=swap");
:root {
--ink: #10151f;
--paper: #f7f8f6;
--surface: #ffffff;
--blueprint: #1b3fae;
--verified: #0e9f6e;
--slate: #5b6472;
--grid: #e3e7e2;
--font-display: "Clash Display", system-ui, sans-serif;
--font-body: "Switzer", system-ui, sans-serif;
/* --font-mono is injected by next/font (JetBrains Mono) on <html> */
/* Native form controls (the open <select> popup, checkboxes, etc.)
follow the active theme instead of the OS default. */
color-scheme: light;
}
.dark {
--ink: #f2f4f1;
--paper: #0b0f17;
--surface: #121826;
--blueprint: #6f8eff;
--verified: #25c08a;
--slate: #97a1b0;
--grid: #232b3a;
color-scheme: dark;
}
* {
border-color: var(--grid);
}
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}
body {
background-color: var(--paper);
color: var(--ink);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
accent-color: var(--blueprint);
}
::selection {
background: var(--blueprint);
color: #fff;
}
/* Themed dropdown option list (where browsers honor option colors) */
option,
optgroup {
background-color: var(--surface);
color: var(--ink);
}
/* Brand-themed scrollbar (replaces the native one) */
html {
scrollbar-width: thin;
scrollbar-color: var(--slate) var(--paper);
}
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: var(--paper);
}
::-webkit-scrollbar-thumb {
background-color: var(--slate);
border-radius: 999px;
border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--blueprint);
}
::-webkit-scrollbar-corner {
background: var(--paper);
}
/* Scroll-reveal (JS toggles .reveal-in via IntersectionObserver) */
.reveal {
opacity: 0;
transform: translateY(12px);
transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.reveal-in {
opacity: 1;
transform: none;
}
@media (prefers-reduced-motion: reduce) {
.reveal {
opacity: 1;
transform: none;
transition: none;
}
}
/* Visible keyboard focus rings */
:focus-visible {
outline: 2px solid var(--blueprint);
outline-offset: 2px;
border-radius: 2px;
}
@layer components {
.container-x {
@apply mx-auto w-full max-w-container px-5 sm:px-8;
}
.eyebrow {
@apply font-mono text-eyebrow uppercase text-slate;
}
.display-h1 {
font-family: var(--font-display);
font-weight: 600;
line-height: 1.02;
letter-spacing: -0.025em;
font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.display-h2 {
font-family: var(--font-display);
font-weight: 600;
line-height: 1.08;
letter-spacing: -0.02em;
font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}
.display-h3 {
font-family: var(--font-display);
font-weight: 600;
line-height: 1.15;
letter-spacing: -0.01em;
}
.lead {
@apply text-[1.0625rem] leading-[1.7] text-slate;
}
.card {
@apply rounded-card border border-grid bg-surface transition-all duration-300;
}
.card-hover {
@apply hover:-translate-y-0.5 hover:border-blueprint;
}
.btn {
@apply inline-flex items-center justify-center gap-2 rounded-[10px] px-5 py-3 text-[0.95rem] font-medium transition-all duration-200 focus-visible:outline-2;
}
.btn-primary {
@apply btn bg-blueprint text-white hover:opacity-90;
}
.btn-secondary {
@apply btn border border-grid bg-surface text-ink hover:border-blueprint;
}
.badge {
@apply inline-flex items-center rounded-md border border-grid bg-paper px-2 py-1 font-mono text-[0.7rem] text-slate;
}
/* Custom-styled <select> — removes the OS chevron and draws our own so the
control matches the rest of the design system in both themes. */
.field-select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding-right: 2.75rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235b6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.9rem center;
background-size: 1rem;
}
.dark .field-select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2397a1b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.grid-bg {
background-image: var(--tw-bg-blueprint, none);
background-image: linear-gradient(
to right,
var(--grid) 1px,
transparent 1px
),
linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
background-size: 48px 48px;
opacity: 0.4;
}
}