main
css 477 lines 10.3 KB
Raw
1 @import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");
2 @import "tailwindcss";
3 @plugin "@tailwindcss/typography";
4
5 @theme {
6 --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
7 }
8
9 :root {
10 --sea-ink: #173a40;
11 --sea-ink-soft: #416166;
12 --lagoon: #4fb8b2;
13 --lagoon-deep: #328f97;
14 --palm: #2f6a4a;
15 --sand: #e7f0e8;
16 --foam: #f3faf5;
17 --surface: rgba(255, 255, 255, 0.74);
18 --surface-strong: rgba(255, 255, 255, 0.9);
19 --line: rgba(23, 58, 64, 0.14);
20 --inset-glint: rgba(255, 255, 255, 0.82);
21 --kicker: rgba(47, 106, 74, 0.9);
22 --bg-base: #e7f3ec;
23 --header-bg: rgba(251, 255, 248, 0.84);
24 --chip-bg: rgba(255, 255, 255, 0.8);
25 --chip-line: rgba(47, 106, 74, 0.18);
26 --link-bg-hover: rgba(255, 255, 255, 0.9);
27 --hero-a: rgba(79, 184, 178, 0.36);
28 --hero-b: rgba(47, 106, 74, 0.2);
29 }
30
31 :root[data-theme="dark"] {
32 --sea-ink: #d7ece8;
33 --sea-ink-soft: #afcdc8;
34 --lagoon: #60d7cf;
35 --lagoon-deep: #8de5db;
36 --palm: #6ec89a;
37 --sand: #0f1a1e;
38 --foam: #101d22;
39 --surface: rgba(16, 30, 34, 0.8);
40 --surface-strong: rgba(15, 27, 31, 0.92);
41 --line: rgba(141, 229, 219, 0.18);
42 --inset-glint: rgba(194, 247, 238, 0.14);
43 --kicker: #b8efe5;
44 --bg-base: #0a1418;
45 --header-bg: rgba(10, 20, 24, 0.8);
46 --chip-bg: rgba(13, 28, 32, 0.9);
47 --chip-line: rgba(141, 229, 219, 0.24);
48 --link-bg-hover: rgba(24, 44, 49, 0.8);
49 --hero-a: rgba(96, 215, 207, 0.18);
50 --hero-b: rgba(110, 200, 154, 0.12);
51 }
52
53 @media (prefers-color-scheme: dark) {
54 :root:not([data-theme="light"]) {
55 --sea-ink: #d7ece8;
56 --sea-ink-soft: #afcdc8;
57 --lagoon: #60d7cf;
58 --lagoon-deep: #8de5db;
59 --palm: #6ec89a;
60 --sand: #0f1a1e;
61 --foam: #101d22;
62 --surface: rgba(16, 30, 34, 0.8);
63 --surface-strong: rgba(15, 27, 31, 0.92);
64 --line: rgba(141, 229, 219, 0.18);
65 --inset-glint: rgba(194, 247, 238, 0.14);
66 --kicker: #b8efe5;
67 --bg-base: #0a1418;
68 --header-bg: rgba(10, 20, 24, 0.8);
69 --chip-bg: rgba(13, 28, 32, 0.9);
70 --chip-line: rgba(141, 229, 219, 0.24);
71 --link-bg-hover: rgba(24, 44, 49, 0.8);
72 --hero-a: rgba(96, 215, 207, 0.18);
73 --hero-b: rgba(110, 200, 154, 0.12);
74 }
75 }
76
77 * {
78 box-sizing: border-box;
79 }
80
81 html,
82 body,
83 #app {
84 min-height: 100%;
85 }
86
87 body {
88 margin: 0;
89 color: var(--sea-ink);
90 font-family: var(--font-sans);
91 background-color: var(--bg-base);
92 background:
93 radial-gradient(1100px 620px at -8% -10%, var(--hero-a), transparent 58%),
94 radial-gradient(1050px 620px at 112% -12%, var(--hero-b), transparent 62%),
95 radial-gradient(720px 380px at 50% 115%, rgba(79, 184, 178, 0.1), transparent 68%),
96 linear-gradient(
97 180deg,
98 color-mix(in oklab, var(--sand) 68%, white) 0%,
99 var(--foam) 44%,
100 var(--bg-base) 100%
101 );
102 overflow-x: hidden;
103 -webkit-font-smoothing: antialiased;
104 -moz-osx-font-smoothing: grayscale;
105 }
106
107 body::before {
108 content: "";
109 position: fixed;
110 inset: 0;
111 pointer-events: none;
112 z-index: -1;
113 opacity: 0.28;
114 background:
115 radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.8), transparent 34%),
116 radial-gradient(circle at 78% 26%, rgba(79, 184, 178, 0.2), transparent 42%),
117 radial-gradient(circle at 42% 82%, rgba(47, 106, 74, 0.14), transparent 36%);
118 }
119
120 body::after {
121 content: "";
122 position: fixed;
123 inset: 0;
124 pointer-events: none;
125 z-index: -1;
126 opacity: 0.14;
127 background-image:
128 linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
129 linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
130 background-size: 28px 28px;
131 mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
132 }
133
134 a {
135 color: var(--lagoon-deep);
136 text-decoration-color: rgba(50, 143, 151, 0.4);
137 text-decoration-thickness: 1px;
138 text-underline-offset: 2px;
139 }
140
141 a:hover {
142 color: #246f76;
143 }
144
145 code {
146 font-size: 0.9em;
147 border: 1px solid var(--line);
148 background: color-mix(in oklab, var(--surface-strong) 82%, white 18%);
149 border-radius: 7px;
150 padding: 2px 7px;
151 }
152
153 pre code {
154 border: 0;
155 background: transparent;
156 padding: 0;
157 border-radius: 0;
158 font-size: inherit;
159 color: inherit;
160 }
161
162 .page-wrap {
163 width: min(1080px, calc(100% - 2rem));
164 margin-inline: auto;
165 }
166
167 .display-title {
168 font-family: "Fraunces", Georgia, serif;
169 }
170
171 .island-shell {
172 border: 1px solid var(--line);
173 background: linear-gradient(165deg, var(--surface-strong), var(--surface));
174 box-shadow:
175 0 1px 0 var(--inset-glint) inset,
176 0 22px 44px rgba(30, 90, 72, 0.1),
177 0 6px 18px rgba(23, 58, 64, 0.08);
178 backdrop-filter: blur(4px);
179 }
180
181 .feature-card {
182 background: linear-gradient(
183 165deg,
184 color-mix(in oklab, var(--surface-strong) 93%, white 7%),
185 var(--surface)
186 );
187 box-shadow:
188 0 1px 0 var(--inset-glint) inset,
189 0 18px 34px rgba(30, 90, 72, 0.1),
190 0 4px 14px rgba(23, 58, 64, 0.06);
191 }
192
193 .feature-card:hover {
194 transform: translateY(-2px);
195 border-color: color-mix(in oklab, var(--lagoon-deep) 35%, var(--line));
196 }
197
198 .demo-page {
199 width: min(1080px, calc(100% - 2rem));
200 margin-inline: auto;
201 padding-block: clamp(2.25rem, 6vw, 4.5rem);
202 color: var(--sea-ink);
203 }
204
205 .demo-page-wide {
206 width: min(1280px, calc(100% - 2rem));
207 }
208
209 .demo-center {
210 min-height: calc(100vh - 13rem);
211 display: flex;
212 align-items: center;
213 justify-content: center;
214 }
215
216 .demo-panel,
217 .demo-card {
218 border: 1px solid var(--line);
219 background: linear-gradient(165deg, var(--surface-strong), var(--surface));
220 box-shadow:
221 0 1px 0 var(--inset-glint) inset,
222 0 18px 34px rgba(30, 90, 72, 0.1),
223 0 4px 14px rgba(23, 58, 64, 0.06);
224 backdrop-filter: blur(4px);
225 }
226
227 .demo-panel {
228 border-radius: 1.25rem;
229 padding: clamp(1.25rem, 4vw, 2rem);
230 }
231
232 .demo-card {
233 border-radius: 1rem;
234 padding: 1rem;
235 }
236
237 .demo-title {
238 margin: 0;
239 color: var(--sea-ink);
240 font-size: clamp(1.75rem, 4vw, 2.75rem);
241 line-height: 1.05;
242 font-weight: 800;
243 letter-spacing: 0;
244 }
245
246 .demo-section-title {
247 margin: 0;
248 color: var(--sea-ink);
249 font-size: 1rem;
250 font-weight: 700;
251 }
252
253 .demo-muted {
254 color: var(--sea-ink-soft);
255 }
256
257 .demo-input,
258 .demo-select,
259 .demo-textarea {
260 width: 100%;
261 border: 1px solid var(--line);
262 border-radius: 0.75rem;
263 background: color-mix(in oklab, var(--surface-strong) 88%, white 12%);
264 color: var(--sea-ink);
265 outline: none;
266 transition:
267 border-color 180ms ease,
268 box-shadow 180ms ease,
269 background-color 180ms ease;
270 }
271
272 .demo-input,
273 .demo-select {
274 padding: 0.7rem 0.9rem;
275 }
276
277 .demo-input-fit {
278 width: auto;
279 }
280
281 .demo-textarea {
282 min-height: 7rem;
283 padding: 0.8rem 0.9rem;
284 resize: vertical;
285 }
286
287 .demo-input:focus,
288 .demo-select:focus,
289 .demo-textarea:focus {
290 border-color: color-mix(in oklab, var(--lagoon-deep) 58%, var(--line));
291 box-shadow: 0 0 0 3px color-mix(in oklab, var(--lagoon) 24%, transparent);
292 }
293
294 .demo-button {
295 display: inline-flex;
296 align-items: center;
297 justify-content: center;
298 gap: 0.5rem;
299 border: 1px solid color-mix(in oklab, var(--lagoon-deep) 34%, var(--line));
300 border-radius: 0.85rem;
301 background: color-mix(in oklab, var(--lagoon) 22%, var(--surface-strong));
302 color: var(--sea-ink);
303 padding: 0.72rem 1rem;
304 font-size: 0.9rem;
305 font-weight: 700;
306 line-height: 1;
307 cursor: pointer;
308 }
309
310 .demo-button:hover {
311 transform: translateY(-1px);
312 background: color-mix(in oklab, var(--lagoon) 30%, var(--surface-strong));
313 }
314
315 .demo-button:disabled {
316 cursor: not-allowed;
317 opacity: 0.55;
318 transform: none;
319 }
320
321 .demo-button-secondary {
322 border-color: var(--line);
323 background: color-mix(in oklab, var(--surface-strong) 74%, transparent);
324 color: var(--sea-ink-soft);
325 }
326
327 .demo-button-danger {
328 border-color: rgba(196, 71, 71, 0.28);
329 background: rgba(196, 71, 71, 0.1);
330 color: #9f3030;
331 }
332
333 .demo-list-item {
334 border: 1px solid var(--line);
335 border-radius: 0.9rem;
336 background: color-mix(in oklab, var(--chip-bg) 82%, transparent);
337 padding: 0.9rem 1rem;
338 }
339
340 .demo-pill {
341 display: inline-flex;
342 align-items: center;
343 gap: 0.35rem;
344 border: 1px solid var(--chip-line);
345 border-radius: 999px;
346 background: var(--chip-bg);
347 color: var(--sea-ink-soft);
348 padding: 0.35rem 0.65rem;
349 font-size: 0.75rem;
350 font-weight: 700;
351 }
352
353 .demo-alert {
354 border: 1px solid rgba(193, 126, 42, 0.3);
355 border-radius: 1rem;
356 background: rgba(193, 126, 42, 0.1);
357 color: var(--sea-ink);
358 padding: 1rem;
359 }
360
361 .demo-alert-danger {
362 border-color: rgba(196, 71, 71, 0.3);
363 background: rgba(196, 71, 71, 0.1);
364 }
365
366 .demo-code-block {
367 border: 1px solid var(--line);
368 border-radius: 1rem;
369 background: color-mix(in oklab, var(--chip-bg) 88%, transparent);
370 color: var(--sea-ink);
371 padding: 1rem;
372 }
373
374 .demo-table-shell {
375 overflow-x: auto;
376 border: 1px solid var(--line);
377 border-radius: 1rem;
378 background: color-mix(in oklab, var(--surface-strong) 78%, transparent);
379 }
380
381 .demo-table {
382 width: 100%;
383 border-collapse: collapse;
384 color: var(--sea-ink);
385 }
386
387 .demo-table th,
388 .demo-table td {
389 border-bottom: 1px solid var(--line);
390 padding: 0.75rem 1rem;
391 text-align: left;
392 }
393
394 .demo-table th {
395 background: color-mix(in oklab, var(--chip-bg) 88%, transparent);
396 color: var(--sea-ink);
397 font-weight: 700;
398 }
399
400 .demo-table tr:hover td {
401 background: color-mix(in oklab, var(--lagoon) 8%, transparent);
402 }
403
404 button,
405 .island-shell,
406 a {
407 transition:
408 background-color 180ms ease,
409 color 180ms ease,
410 border-color 180ms ease,
411 transform 180ms ease;
412 }
413
414 .island-kicker {
415 letter-spacing: 0.16em;
416 text-transform: uppercase;
417 font-weight: 700;
418 font-size: 0.69rem;
419 color: var(--kicker);
420 }
421
422 .nav-link {
423 position: relative;
424 display: inline-flex;
425 align-items: center;
426 text-decoration: none;
427 color: var(--sea-ink-soft);
428 }
429
430 .nav-link::after {
431 content: "";
432 position: absolute;
433 left: 0;
434 bottom: -6px;
435 width: 100%;
436 height: 2px;
437 transform: scaleX(0);
438 transform-origin: left;
439 background: linear-gradient(90deg, var(--lagoon), #7ed3bf);
440 transition: transform 170ms ease;
441 }
442
443 .nav-link:hover,
444 .nav-link.is-active {
445 color: var(--sea-ink);
446 }
447
448 .nav-link:hover::after,
449 .nav-link.is-active::after {
450 transform: scaleX(1);
451 }
452
453 @media (max-width: 640px) {
454 .nav-link::after {
455 bottom: -4px;
456 }
457 }
458
459 .site-footer {
460 border-top: 1px solid var(--line);
461 background: color-mix(in oklab, var(--header-bg) 84%, transparent 16%);
462 }
463
464 .rise-in {
465 animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
466 }
467
468 @keyframes rise-in {
469 from {
470 opacity: 0;
471 transform: translateY(12px);
472 }
473 to {
474 opacity: 1;
475 transform: translateY(0);
476 }
477 }