Repository navigation
Expand file tree
/
Copy pathapp.css
More file actions
583 lines (519 loc) · 16.5 KB
/
Copy pathapp.css
File metadata and controls
583 lines (519 loc) · 16.5 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
@import "tailwindcss";
/* ==========================================================================
Inkloom design system
--------------------------------------------------------------------------
The visual language is a LOGO SPECIFICATION SHEET, because that is what
Inkloom's subject matter actually is: construction circles, hairline measure
rules, counters, clear space.
Two rules hold the whole system together:
1. Containers are strictly rectilinear (radius 0). Marks are perfect
circles. That contrast is the system, and it comes straight from the
wordmark, where every letter is geometric and the "oo" is two fused
circles.
2. The loop orange appears on exactly two things: the mark itself, and the
single primary action on a page. Scarcity is what makes it read as
brand rather than decoration.
No shadows anywhere. Depth comes from paper tone and hairlines.
========================================================================== */
@theme {
/* --- Paper and ink, sampled from the approved wordmark ----------------- */
--color-paper: #f1ede3;
--color-paper-deep: #e8e3d6;
--color-panel: #fbf9f4;
--color-ink: #12110e;
--color-ink-soft: #3a3630;
--color-muted: #6b6558;
/**
* `--color-rule` is for LINES ONLY — borders, dividers, construction marks.
* It measures 1.4:1 on paper, so any text set in it is unreadable and fails
* WCAG at every size. Use `--color-faint` for de-emphasised type instead:
* 3.6:1, which passes AA for the large numerals it is meant for.
*/
--color-rule: #cfc7b5;
--color-rule-soft: #e0dacb;
--color-faint: #877f69;
/* The loop. A hot vermilion, not a clay terracotta.
Sampled from the approved wordmark rather than chosen: the artwork's loop
is exactly #ff6124, and one brand orange beats two similar ones. */
--color-loop: #ff6124;
--color-loop-deep: #d8410f;
/* Hover LIGHTENS rather than darkens, because the label on it is ink.
Darkening would drop the text contrast below AA. */
--color-loop-lift: #ff7a45;
--color-loop-wash: #ffe6dc;
/* Orange as TYPE, on paper.
The brand orange is a fill and a stroke colour: against paper it measures
2.57:1, which is fine for the mark (aria-hidden, with a text alternative)
and nowhere near enough for words. This is the same hue darkened until it
reaches 4.6:1 — AA for body text. Anything orange that a person has to
READ uses this, never --color-loop. */
--color-loop-text: #c23a0c;
/* Status. Kept desaturated so they never compete with the loop. */
--color-positive: #2f6b46;
--color-positive-wash: #e2eee7;
--color-caution: #8a5a12;
--color-caution-wash: #f6ecd9;
--color-critical: #a32c1c;
--color-critical-wash: #f7e2de;
/* --- Type -------------------------------------------------------------- */
/* Jost is a geometric grotesque built on perfect circles, so it shares the
wordmark's construction. Instrument Sans carries running text, where a
geometric face would tire the eye. */
--font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
--font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
/* A modular scale at 1.25, per Elements of Typographic Style. */
--text-micro: 0.6875rem;
--text-fine: 0.8125rem;
--text-base: 0.9375rem;
--text-lead: 1.125rem;
--text-h4: 1.375rem;
--text-h3: 1.875rem;
--text-h2: 2.75rem;
--text-h1: 4rem;
--text-hero: 6.5rem;
--radius-none: 0;
--spacing-measure: 34rem;
}
/* --- Self-hosted variable fonts, latin subset (SIL Open Font License) ----- */
@font-face {
font-family: "Jost";
src: url("/fonts/jost-latin.woff2") format("woff2-variations");
font-weight: 300 700;
font-style: normal;
font-display: swap;
/* Latin subset only: the whole face would be ~4x the size for glyphs the
English UI never renders. */
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212,
U+2215;
}
@font-face {
font-family: "Instrument Sans";
src: url("/fonts/instrument-sans-latin.woff2") format("woff2-variations");
font-weight: 400 700;
font-style: normal;
font-display: swap;
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212,
U+2215;
}
/* ==========================================================================
Base
========================================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
/* Lenis drives smooth scroll on marketing pages only; the app must keep
native scrolling so assistive tech and keyboards behave normally. */
scroll-behavior: auto;
}
body {
margin: 0;
/* A last line of defence: a single mis-sized child must never give the whole
document a horizontal scrollbar. Wide content scrolls inside its own
`.table-scroll` container instead. */
overflow-x: clip;
background: var(--color-paper);
color: var(--color-ink);
font-family: var(--font-sans);
font-size: var(--text-base);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
/* Prevents layout shift when a page grows past the viewport. */
scrollbar-gutter: stable;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-display);
font-weight: 600;
/* Geometric faces set tight; this is what makes the headings look drawn
rather than typed. */
letter-spacing: -0.03em;
line-height: 1.05;
margin: 0;
text-wrap: balance;
}
p {
margin: 0;
/* Under 80 characters, per the brief's typographic guidance. */
max-width: var(--spacing-measure);
text-wrap: pretty;
}
a {
color: inherit;
text-decoration-color: var(--color-rule);
text-underline-offset: 0.2em;
}
img,
svg {
display: block;
max-width: 100%;
}
/* --- Focus ---------------------------------------------------------------
A visible, high-contrast focus ring on every interactive element. Never
removed, never replaced by a colour change alone. */
:focus-visible {
outline: 2px solid var(--color-loop);
outline-offset: 2px;
}
/* Only suppress the ring for pointer users who did not tab here. */
:focus:not(:focus-visible) {
outline: none;
}
/* --- Reduced motion ------------------------------------------------------
Honoured globally, not per-component, so a new animation cannot forget. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* ==========================================================================
Components
========================================================================== */
/* --- Measure rules -------------------------------------------------------
The hairlines that bracket the content column. They are not decoration:
they mark the measure, the way trim marks do on a spec sheet. */
.measure {
width: 100%;
max-width: 78rem;
margin-inline: auto;
padding-inline: 1.5rem;
}
@media (min-width: 900px) {
.measure {
padding-inline: 3rem;
}
}
.rule {
border: 0;
border-top: 1px solid var(--color-rule-soft);
margin: 0;
}
/* --- Buttons -------------------------------------------------------------
Rectilinear, unshadowed, no arrow glyph in the label. The label states what
happens: "Join early access", not "Get started →". */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
/* 44px minimum touch target. */
min-height: 2.75rem;
padding: 0.625rem 1.375rem;
border: 1px solid transparent;
border-radius: var(--radius-none);
font-family: var(--font-sans);
font-size: var(--text-base);
font-weight: 600;
letter-spacing: -0.01em;
cursor: pointer;
transition:
background-color 140ms ease,
color 140ms ease,
border-color 140ms ease;
text-decoration: none;
}
.btn:disabled,
.btn[aria-disabled="true"] {
opacity: 0.45;
cursor: not-allowed;
}
/* The one place the loop orange is allowed outside the mark itself.
-------------------------------------------------------------------------
The label is INK, not white. White on this vermilion measures 3.5:1, which
fails WCAG AA for normal text; ink on the same colour measures 5.4:1. That
keeps the exact brand orange the wordmark uses AND passes — the alternative
was darkening the brand colour, which would have been the wrong thing to
compromise. Now that the orange is sampled from the artwork it measures
6.28:1. Verified by the axe pass in `accessibility.spec.ts`. */
.btn-primary {
background: var(--color-loop);
color: var(--color-ink);
}
.btn-primary:hover:not(:disabled) {
background: var(--color-loop-lift);
}
.btn-ink {
background: var(--color-ink);
color: var(--color-paper);
}
.btn-ink:hover:not(:disabled) {
background: var(--color-ink-soft);
}
.btn-outline {
background: transparent;
color: var(--color-ink);
border-color: var(--color-ink);
}
.btn-outline:hover:not(:disabled) {
background: var(--color-ink);
color: var(--color-paper);
}
.btn-quiet {
background: transparent;
color: var(--color-ink-soft);
border-color: var(--color-rule);
}
.btn-quiet:hover:not(:disabled) {
border-color: var(--color-ink);
color: var(--color-ink);
}
.btn-danger {
background: transparent;
color: var(--color-critical);
border-color: var(--color-critical);
}
.btn-danger:hover:not(:disabled) {
background: var(--color-critical);
color: #fff;
}
/* --- Surfaces ------------------------------------------------------------ */
.panel {
background: var(--color-panel);
border: 1px solid var(--color-rule-soft);
border-radius: var(--radius-none);
}
/* --- Forms --------------------------------------------------------------- */
.field-label {
display: block;
font-size: var(--text-fine);
font-weight: 600;
color: var(--color-ink);
margin-bottom: 0.375rem;
}
.field-hint {
font-size: var(--text-fine);
color: var(--color-muted);
margin-top: 0.375rem;
max-width: none;
}
.field-error {
font-size: var(--text-fine);
color: var(--color-critical);
margin-top: 0.375rem;
font-weight: 500;
max-width: none;
}
.input {
width: 100%;
min-height: 2.75rem;
padding: 0.625rem 0.875rem;
background: #fff;
border: 1px solid var(--color-rule);
border-radius: var(--radius-none);
font-family: var(--font-sans);
font-size: var(--text-base);
color: var(--color-ink);
transition: border-color 140ms ease;
}
.input:hover {
border-color: var(--color-muted);
}
.input:focus {
border-color: var(--color-ink);
outline: 2px solid var(--color-loop);
outline-offset: -1px;
}
.input[aria-invalid="true"] {
border-color: var(--color-critical);
}
.input::placeholder {
color: #a09a8d;
}
/* --- Status pills --------------------------------------------------------
Never colour alone: each carries a word, so meaning survives a colour-vision
difference or a greyscale print. */
.pill {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.125rem 0.5rem;
border: 1px solid currentColor;
font-size: var(--text-micro);
font-weight: 600;
letter-spacing: 0.01em;
white-space: nowrap;
}
.pill-positive {
color: var(--color-positive);
background: var(--color-positive-wash);
}
.pill-caution {
color: var(--color-caution);
background: var(--color-caution-wash);
}
.pill-critical {
color: var(--color-critical);
background: var(--color-critical-wash);
}
.pill-neutral {
color: var(--color-muted);
background: var(--color-paper-deep);
}
/* --- Tabular data --------------------------------------------------------
Monospace and tabular figures are used for AMOUNTS and IDENTIFIERS, where
digit alignment carries meaning — not as a decorative treatment for labels. */
.numeric {
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum";
}
.identifier {
font-family: var(--font-mono);
font-size: var(--text-fine);
color: var(--color-muted);
word-break: break-all;
}
/* --- Screen-reader only -------------------------------------------------- */
.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: visible the moment it takes focus. */
.skip-link {
position: absolute;
left: 0.5rem;
top: -4rem;
z-index: 100;
padding: 0.75rem 1rem;
background: var(--color-ink);
color: var(--color-paper);
font-weight: 600;
transition: top 120ms ease;
}
.skip-link:focus {
top: 0.5rem;
}
/* --- The hero loop -------------------------------------------------------
The single orchestrated motion moment on the site: the infinity loop draws
itself once, as a mark being constructed. It does not repeat, and it does
not run for anyone who has asked for reduced motion. */
/* The path carries `pathLength="100"`, which tells SVG to report its length as
100 whatever its real geometry is. That makes the dash maths independent of
the curve — an earlier version hardcoded a measured length of 165 against a
path that was actually 226 units long, so the loop only ever drew two-thirds
of itself. Normalising removes the whole class of bug. */
/* --- The loading figure ---------------------------------------------------
A dash travelling the infinity path. `stroke-dashoffset` alone would make it
jump when it wraps, so the dash is a fixed length and only the offset moves
through one full path length per cycle — the travel is continuous and the
loop genuinely has no end. */
.infinity-trace {
stroke-dasharray: 26 74;
animation: trace-infinity 1400ms linear infinite;
}
@keyframes trace-infinity {
from {
stroke-dashoffset: 100;
}
to {
stroke-dashoffset: 0;
}
}
/* --- The mark forming -------------------------------------------------
8D86
-----
The hero's reveal: one sweep along the contour, once, on arrival. `forwards`
matters — without it the mask snaps back to nothing at the end and the mark
disappears. */
.infinity-form {
stroke-dasharray: 100;
stroke-dashoffset: 100;
/* Slow, and evenly paced. An ease-out curve put most of the sweep in the
first few hundred milliseconds, which reads as the mark appearing and then
hesitating rather than being drawn. */
animation: form-infinity 2200ms cubic-bezier(0.6, 0.02, 0.35, 1) 150ms forwards;
}
@keyframes form-infinity {
to {
stroke-dashoffset: 0;
}
}
@media (prefers-reduced-motion: reduce) {
/* Frozen mid-sweep both of these are a fragment of a logo, so they show
whole rather than merely stopping. */
.infinity-trace {
stroke-dasharray: none;
animation: none;
}
.infinity-form {
stroke-dashoffset: 0;
animation: none;
}
}
/* --- Construction grid ---------------------------------------------------
The faint circle-and-crosshair layer behind the hero mark, borrowed from a
real logo spec sheet. Purely a backdrop; hidden from assistive tech. */
.construction {
stroke: var(--color-rule);
stroke-width: 1;
fill: none;
vector-effect: non-scaling-stroke;
}
/* --- Tables -------------------------------------------------------------- */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: var(--text-fine);
}
.data-table th {
text-align: left;
font-weight: 600;
color: var(--color-muted);
padding: 0.625rem 0.75rem;
border-bottom: 1px solid var(--color-rule);
white-space: nowrap;
}
.data-table td {
padding: 0.75rem;
border-bottom: 1px solid var(--color-rule-soft);
vertical-align: top;
}
.data-table tbody tr:hover {
background: var(--color-paper);
}
/* Wide tables scroll inside their own container; the page never scrolls
horizontally. */
.table-scroll {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/*
Who you are signed in as, under the dashboard heading.
Two groups with a wrap between them rather than one sentence separated by
middle dots: strung together, it broke mid-phrase on a phone and left a line
starting with a lone "·", which reads as a bullet in a list that is not
there. An address is also the one string here with no spaces in it, so it
gets permission to break inside a word rather than push the page sideways.
*/
.identity-line {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.75rem;
margin-top: -1.25rem;
margin-bottom: 1.75rem;
font-size: var(--text-fine);
color: var(--color-muted);
}
.identity-line strong {
color: var(--color-ink);
font-weight: 500;
overflow-wrap: anywhere;
}