Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
527 lines (495 loc) · 19.3 KB
/
Copy pathstyle.css
File metadata and controls
527 lines (495 loc) · 19.3 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
/* melonfleet.dev
Type scale and spacing rhythm from the launch-page design (artboard 1d):
4px base; steps 8 · 12 · 18 · 24 · 32 · 44 · 64 · 112. Section gap 112 desktop, 64 mobile.
Gutter 64 / 20. Content column 1120. */
:root{
--rind:#1B5E20; --stripe:#7CB342; --flesh:#FC4A6B; --flesh-deep:#E63956;
--cantaloupe:#EE7B4D; --honeydew:#A7D98C; --canary:#F2C94C;
--seed:#241F1A; --cream:#FBF7F0; --sand:#EDE6DA; --stone:#C7BFB2; --slate:#6E675C;
--pith:#FFFFFF;
--success:#1D9E75; --warning:#E5A100; --danger:#C9302C; --info:#2C7A7B;
--content:1120px;
--page-pad:clamp(20px, 5vw, 64px);
--section-gap:clamp(64px, 8vw, 112px);
--nav-bp:720px;
--radius:14px;
--radius-lg:18px;
--shadow-sm:0 1px 2px rgba(36,31,26,0.04);
--shadow-md:0 12px 32px rgba(36,31,26,0.08);
--ease:cubic-bezier(0.22, 1, 0.36, 1);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
margin:0;
background:var(--cream);
color:var(--seed);
font-family:'Open Sans',system-ui,sans-serif;
font-size:clamp(1rem, 0.4vw + 0.9rem, 1.0625rem);
line-height:1.65;
-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
/* Centred content column — header, sections, footer */
.wrap{
width:100%;
max-width:calc(var(--content) + var(--page-pad) * 2);
margin-inline:auto;
padding-inline:var(--page-pad);
}
.wrap-narrow{--content:720px;}
/* rind, not flesh-deep. flesh-deep on cream measures 3.87:1 and on white 4.13:1, both under
AA's 4.5:1 for body-sized text; rind is 7.37:1 on cream and 7.87:1 on white. BRAND.md lists
flesh-deep for links, so this is a deliberate departure on contrast grounds and stays inside
the palette rather than inventing a darker pink. */
a{color:var(--rind);text-decoration:none;}
a:hover{text-decoration:underline;}
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible{
outline:2px solid var(--rind);
outline-offset:3px;
border-radius:4px;
}
h1,h2,h3{
font-family:'Ubuntu',sans-serif;
font-weight:500;
color:var(--seed);
text-wrap:pretty;
}
h1{font-size:clamp(1.9375rem, 4.2vw, 3.75rem);font-weight:700;line-height:1.04;letter-spacing:-0.015em;margin:0 0 16px;}
h2{font-size:clamp(1.4375rem, 2.4vw, 2.125rem);line-height:1.2;letter-spacing:-0.015em;margin:0 0 0.5em;}
h3{font-size:clamp(1.0625rem, 1.4vw, 1.25rem);line-height:1.3;letter-spacing:-0.01em;margin:0 0 6px;}
p{margin:0 0 1.1em;}
.lead{font-size:clamp(1.05rem, 2.2vw, 1.1875rem);color:var(--slate);max-width:64ch;line-height:1.6;}
.muted{color:var(--slate);}
code,.mono{
font-family:'Ubuntu Mono',monospace;
font-size:0.9em;
background:var(--sand);
padding:1px 6px;
border-radius:4px;
}
.mono{background:transparent;padding:0;color:var(--seed);}
.code-accent{color:var(--rind);background:transparent;padding:0;font-size:0.88em;}
.mono-link{font-family:'Ubuntu Mono',monospace;font-size:0.92em;}
/* Section eyebrow — mono, tracked, uppercase. */
.eyebrow{
margin:0 0 12px;
font-family:'Ubuntu Mono',monospace;
font-size:0.8125rem;
letter-spacing:0.14em;
text-transform:uppercase;
color:var(--slate);
}
.section{padding-block:var(--section-gap) 0;}
/* Skip link */
.skip-link{
position:absolute;left:var(--page-pad);top:0;
transform:translateY(-120%);
background:var(--rind);color:#fff;
padding:10px 16px;border-radius:0 0 8px 8px;
font-family:'Ubuntu',sans-serif;font-weight:500;font-size:14px;
z-index:100;text-decoration:none;
transition:transform .2s var(--ease);
}
.skip-link:focus{transform:translateY(0);outline-offset:2px;}
/* ── Header / nav ── */
header.site{
border-bottom:1px solid var(--sand);
background:rgba(251,247,240,0.9);
backdrop-filter:saturate(140%) blur(10px);
-webkit-backdrop-filter:saturate(140%) blur(10px);
position:sticky;top:0;z-index:40;
}
.nav{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
min-height:68px;
}
.nav .brand{display:inline-flex;align-items:center;flex-shrink:0;z-index:2;}
.nav .brand img{height:26px;width:auto;max-width:min(100%,168px);}
.nav .brand:hover{opacity:0.85;text-decoration:none;}
.nav .brand:focus-visible{border-radius:6px;}
/* Hamburger — hidden on desktop */
.nav-toggle{
display:none;
align-items:center;
justify-content:center;
width:44px;height:44px;
margin:0;padding:0;
border:1px solid var(--stone);
border-radius:10px;
background:var(--pith);
color:var(--rind);
cursor:pointer;
flex-shrink:0;
z-index:2;
transition:border-color .15s ease, background .15s ease;
}
.nav-toggle:hover{border-color:var(--rind);background:rgba(27,94,32,0.04);}
.nav-toggle-bars{display:block;width:18px;height:12px;position:relative;}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span{
position:absolute;left:0;right:0;
height:2px;background:currentColor;border-radius:1px;
transition:transform .2s var(--ease), top .2s var(--ease), opacity .15s ease;
}
.nav-toggle-bars::before{content:"";top:0;}
.nav-toggle-bars::after{content:"";top:10px;}
.nav-toggle-bars span{top:5px;display:block;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span{opacity:0;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{top:5px;transform:rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{top:5px;transform:rotate(-45deg);}
.nav-links{
display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
gap:0 20px;
}
.nav-links a{
color:var(--slate);
font-family:'Open Sans',sans-serif;
font-size:0.9375rem;
min-height:44px;
display:inline-flex;align-items:center;
transition:color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{color:var(--seed);text-decoration:none;}
.wordmark{height:56px;width:auto;max-width:100%;margin:6px 0 8px;}
/* ── Hero ──
Rhythm: icon → 22 → eyebrow → 18 → headline → 26 → lede → 40 → carousel → 44 → buttons. */
.hero{padding-block:32px 0;}
.hero-head{display:flex;flex-direction:column;align-items:center;text-align:center;}
.hero-icon{height:88px;width:88px;margin:0;}
.hero-eyebrow{
margin:22px 0 0;
font-family:'Ubuntu Mono',monospace;
font-size:0.875rem;
letter-spacing:0.1em;
color:var(--slate);
}
/* The headline, capitalised in rendering only.
Caps need three adjustments or they just shout: extra letter-spacing (capitals set tighter than
lowercase at the same tracking), a smaller size than the equivalent sentence-case h1 (60 rather
than ~72, since caps occupy the full cap-height), and a tighter line-height. */
/* 20ch, not the artboard's 15ch. At 15ch the headline stacks to four lines and pushes the tour
down to y=706, leaving 194px of a 730px screenshot above a 900px fold — 27% of the thing the
page is actually selling. 20ch breaks it to two balanced lines and the carousel starts at 565,
so 335px shows. The 60px size and the +0.015em tracking are kept exactly as specified: the
measure was the cheaper thing to give up. */
.hero-title{
margin:18px 0 0;
text-transform:uppercase;
letter-spacing:0.015em;
line-height:1.04;
max-width:20ch;
}
.hero-lede{
margin:26px 0 0;
font-size:clamp(1rem, 1.1vw + 0.65rem, 1.1875rem);
line-height:1.6;
color:var(--slate);
max-width:64ch;
}
.hero-foot{display:flex;flex-direction:column;align-items:center;}
.hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:44px;}
.hero-status{
margin:18px 0 0;
font-family:'Ubuntu Mono',monospace;
font-size:0.8125rem;
color:var(--slate);
text-align:center;
}
.btn{
display:inline-flex;align-items:center;justify-content:center;gap:8px;
font-family:'Open Sans',sans-serif;font-weight:600;font-size:1rem;
min-height:48px;
padding:14px 28px;border-radius:10px;
border:1px solid transparent;text-decoration:none;
transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover{text-decoration:none;}
.btn-primary{background:var(--rind);color:var(--cream);}
.btn-primary:hover{background:#164A19;color:var(--cream);}
.btn-ghost{background:transparent;color:var(--seed);border-color:var(--stone);}
.btn-ghost:hover{border-color:var(--seed);color:var(--seed);}
/* ── Screenshot tour ──
Built on scroll-snap rather than transforms. Three reasons: with JavaScript off it is still a
scrollable, snapping gallery instead of one frozen image; a trackpad swipe and a touch drag work
for free, which a transform carousel has to reimplement badly; and the browser keeps track of
which slide is showing, so the dots are derived from real scroll position rather than from a
counter that drifts out of sync with what is on screen. */
.carousel{
margin-top:40px;
width:100%;
max-width:calc(var(--content) + var(--page-pad) * 2);
margin-inline:auto;
padding-inline:var(--page-pad);
}
.carousel-track{
display:flex;
overflow-x:auto;
overscroll-behavior-x:contain;
scroll-snap-type:x mandatory;
}
/* The scrollbar is noise once the dots, arrows and counter say where you are — but those only
exist when the script runs, so without it the scrollbar stays as the visible affordance. */
.js .carousel-track{scrollbar-width:none;}
.js .carousel-track::-webkit-scrollbar{display:none;}
.carousel-track:focus-visible{outline:2px solid var(--rind);outline-offset:4px;border-radius:12px;}
.slide{
margin:0;
flex:0 0 100%;
scroll-snap-align:start;
/* Padding rather than gap: a gap on a snapping track leaves a sliver of the neighbour visible at
rest, which reads as a rendering fault rather than a hint. */
padding:0 1px;
display:flex;flex-direction:column;gap:20px;
}
.shot{
width:100%;
aspect-ratio:1440 / 940;
background:var(--pith);
border:1px solid var(--stone);
border-radius:12px;
overflow:hidden;
}
.shot img{width:100%;height:100%;object-fit:cover;object-position:left top;}
.slide figcaption{
margin:0 auto;
max-width:78ch;
text-align:center;
font-size:1rem;
line-height:1.6;
color:var(--slate);
/* Reserves room for the longest caption so the section does not change height between slides. */
min-height:52px;
}
.slide figcaption strong{
font-family:'Ubuntu',sans-serif;font-weight:500;font-size:1.0625rem;color:var(--seed);
}
/* Hidden until the script that drives them has run: an arrow that does nothing is worse than no
arrow, and the scroll-snap strip is still swipeable and scrollable on its own. */
.carousel-controls{display:none;align-items:center;justify-content:center;gap:24px;margin-top:20px;}
.js .carousel-controls{display:flex;}
.carousel-btn{
display:inline-flex;align-items:center;justify-content:center;
width:40px;height:40px;padding:0;
border:1px solid var(--stone);border-radius:99px;
background:var(--pith);color:var(--seed);
font-family:'Ubuntu Mono',monospace;font-size:15px;line-height:1;
cursor:pointer;transition:border-color .15s ease, color .15s ease;
}
.carousel-btn:hover{border-color:var(--rind);color:var(--rind);}
.carousel-dots{display:flex;align-items:center;gap:8px;}
/* Inactive dots are slate, not stone. Stone on cream measures 1.71:1 — below the 3:1 WCAG asks
of a user-interface component, so the dot would be a control you cannot reliably see. Slate is
5.23:1 and still reads as secondary, because the active dot is separated by width as well as
colour rather than by colour alone. */
.dot{
width:8px;height:8px;padding:0;border:none;border-radius:99px;
background:var(--slate);cursor:pointer;
transition:width .12s cubic-bezier(0.2,0,0,1), background .12s ease;
}
.dot:hover{background:var(--seed);}
.dot[aria-current="true"]{width:26px;background:var(--rind);}
.carousel-counter{
font-family:'Ubuntu Mono',monospace;font-size:0.8125rem;letter-spacing:0.08em;
color:var(--slate);margin-left:8px;
}
/* ── What it does ── */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:80px;align-items:start;}
.split-lead{display:flex;flex-direction:column;}
.split-lead h2{margin:0;}
.split-lead-body{margin:24px 0 0;color:var(--slate);}
.terminal{
margin:24px 0 0;
/* Two separate things, both needed. min-width:0 lets the box shrink inside its flex/grid parent
instead of forcing the column open to the width of a line that must not wrap — at 360px that
pushed the whole page into horizontal scroll. width:max-content stops the reverse problem:
a full-width box with the command ending well short of its right edge. */
min-width:0;
width:max-content;
max-width:100%;
font-family:'Ubuntu Mono',monospace;
font-size:0.875rem;
line-height:1.7;
color:var(--cream);
background:var(--seed);
border-radius:10px;
padding:16px 18px;
overflow-x:auto;
white-space:nowrap;
}
.terminal-prompt{color:var(--stripe);}
.points{display:flex;flex-direction:column;}
.point{padding:28px 0;}
.point:first-child{padding-top:0;}
.point + .point{border-top:1px solid var(--sand);}
.point:last-child{padding-bottom:0;}
.point h3{margin:0 0 8px;}
.point p{margin:0;color:var(--slate);}
/* ── Requirements ── */
.req{
background:var(--pith);
border:1px solid var(--sand);
border-radius:16px;
padding:48px 52px;
}
.req-head h2{margin:0;}
.req-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:32px;}
.req-item{display:flex;flex-direction:column;gap:10px;padding-right:36px;}
.req-item + .req-item{border-left:1px solid var(--sand);padding-left:36px;}
.req-item:last-child{padding-right:0;}
.req-num{font-family:'Ubuntu Mono',monospace;font-size:0.8125rem;color:var(--rind);}
.req-item h3{margin:0;}
.req-item p{margin:0;color:var(--slate);font-size:1rem;}
.req-note{
margin:32px 0 0;
padding-top:24px;
border-top:1px solid var(--sand);
font-size:0.9375rem;
line-height:1.6;
color:var(--slate);
}
/* ── Teaser ── */
.teaser{
border-top:1px solid var(--sand);
padding-top:48px;
display:grid;
grid-template-columns:minmax(0,0.8fr) minmax(0,1.2fr);
gap:80px;
align-items:start;
}
.teaser h2{margin:0;}
.teaser p{margin:0;color:var(--slate);max-width:62ch;}
/* ── Cards and grids — the brand page ── */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:8px 0 0;}
.card{
background:var(--pith);
border:1px solid var(--sand);
border-radius:var(--radius-lg);
padding:22px;
display:flex;flex-direction:column;gap:12px;
min-height:100%;min-width:0;
box-shadow:var(--shadow-sm);
transition:border-color .2s ease, box-shadow .25s var(--ease);
}
.card:hover{border-color:var(--stone);box-shadow:var(--shadow-md);}
.card-icon{width:52px;height:52px;max-width:52px;border-radius:12px;flex-shrink:0;}
.card h3{margin:0;}
.card p{margin:0;color:var(--slate);font-size:0.95rem;flex:1;line-height:1.6;}
.icon-card{align-items:center;text-align:center;padding:18px;}
.icon-card .card-icon{margin-inline:auto;}
.icon-card h3{font-size:1rem;}
.swatches{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 8px;}
.sw{width:64px;}
.sw i{display:block;height:48px;border-radius:10px;border:0.5px solid var(--sand);box-shadow:var(--shadow-sm);}
.sw span{font-family:'Ubuntu Mono',monospace;font-size:10px;color:var(--slate);display:block;margin-top:6px;line-height:1.3;}
.name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:16px 0 8px;padding:0;list-style:none;}
.name-grid li{
background:var(--pith);border:1px solid var(--sand);
border-radius:12px;padding:16px 18px;min-width:0;
transition:border-color .2s ease, box-shadow .2s ease;
}
.name-grid li:hover{border-color:var(--stone);box-shadow:var(--shadow-sm);}
.name-grid strong{display:block;font-family:'Ubuntu',sans-serif;font-weight:500;margin-bottom:4px;}
.name-grid span{color:var(--slate);font-size:0.92rem;}
/* ── Text pages ── */
.page-intro{padding:56px var(--page-pad) 12px;}
.page-intro .lead{margin-bottom:0;}
.page-body h2{margin-top:2em;}
.page-body h2:first-of-type{margin-top:1.5em;}
.page-links{margin-top:2.5em;padding-top:1.5em;border-top:1px solid var(--sand);}
/* ── Footer ── */
footer.site{
border-top:1px solid var(--sand);
margin-top:var(--section-gap);
padding:40px 0;
}
footer.site .wrap{
display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;
gap:16px 32px;color:var(--slate);font-size:0.9375rem;
}
.footer-brand{display:flex;flex-direction:column;gap:8px;}
.footer-brand img{height:20px;width:auto;opacity:0.85;}
.footer-brand span{font-family:'Ubuntu Mono',monospace;font-size:0.8125rem;}
.footer-links{display:flex;flex-wrap:wrap;gap:0 28px;align-items:center;}
.footer-links a{color:var(--slate);min-height:44px;display:inline-flex;align-items:center;}
.footer-links a:hover{color:var(--seed);text-decoration:none;}
/* ── Responsive ── */
@media (max-width:1000px){
.split,.teaser{grid-template-columns:minmax(0,1fr);gap:48px;}
.req{padding:32px 28px;}
.req-grid{grid-template-columns:1fr;margin-top:24px;}
.req-item{padding-right:0;padding-bottom:24px;}
.req-item + .req-item{border-left:none;border-top:1px solid var(--sand);padding-left:0;padding-top:24px;}
.req-item:last-child{padding-bottom:0;}
.grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Hamburger breakpoint ~720px */
@media (max-width:720px){
.nav-toggle{display:inline-flex;}
.nav{min-height:56px;}
/* Full-bleed under header.site (sticky = containing block), no negative offsets */
.nav-links{
display:none;
position:absolute;top:100%;left:0;right:0;width:auto;
flex-direction:column;align-items:stretch;gap:2px;
padding:12px var(--page-pad) 16px;
background:rgba(251,247,240,0.98);
border-bottom:1px solid var(--sand);
box-shadow:0 16px 28px rgba(36,31,26,0.08);
}
.nav-links.is-open{display:flex;}
.nav-links a{width:100%;padding:12px 0;font-size:1rem;justify-content:flex-start;}
.hero{padding-block:32px 0;}
.hero-icon{height:72px;width:72px;}
.hero-eyebrow{margin-top:18px;font-size:0.75rem;}
.hero-title{margin-top:12px;letter-spacing:0.01em;line-height:1.08;max-width:none;}
.hero-lede{margin-top:18px;}
.hero-actions{flex-direction:column;align-self:stretch;gap:12px;margin-top:32px;}
.hero-actions .btn{width:100%;}
/* A 1440px-wide UI screenshot scaled to 390 is a grey smear, so the phone gets a full-bleed
crop of the top-left of the window instead — where the real rows and controls are. */
.carousel{padding-inline:0;margin-top:28px;}
.slide{gap:14px;}
.shot{
aspect-ratio:390 / 300;
border-left:none;border-right:none;
border-radius:0;
border-color:var(--sand);
}
.slide figcaption{
padding-inline:var(--page-pad);
text-align:left;
font-size:0.9375rem;
min-height:112px;
}
.js .carousel-controls{justify-content:space-between;padding-inline:var(--page-pad);gap:12px;margin-top:16px;}
.carousel-btn{width:44px;height:44px;}
.carousel-counter{display:none;}
.carousel-dots{order:-1;}
/* 12px, not 12.5: at 12.5 the line measures 331px of ink and needs 359 with its padding, which
is 9px more than a 390px phone can give it — so the command scrolled inside its own box on the
commonest screen there is. At 12px it fits. Below 390 it scrolls, which is honest for a command
line and no longer drags the page sideways with it. */
.terminal{font-size:0.75rem;padding:14px;}
.point{padding:20px 0;}
}
@media (max-width:620px){
.grid,.name-grid{grid-template-columns:1fr;}
.card{padding:18px;}
footer.site .wrap{align-items:flex-start;}
.footer-links{gap:0 20px;}
}
@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto;}
.btn,.card,.card-icon,.dot,.carousel-btn,
.nav-toggle-bars::before,.nav-toggle-bars::after,.nav-toggle-bars span,.skip-link{
transition:none;
}
}