Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
502 lines (471 loc) · 26.8 KB
/
Copy pathstyle.css
File metadata and controls
502 lines (471 loc) · 26.8 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
/* ==========================================================
BPMData — the Over/All Flotilla
A dawn harbor for four classroom apps.
========================================================== */
/* ---------- fonts (self-hosted) ----------
Served from /fonts so the site makes no requests to Google. Each face is split into
latin and latin-ext files; a browser only downloads latin-ext if the page uses those
characters. Fraunces has its SOFT axis pinned at 100 and WONK at 1 (fontTools
varLib.instancer), so the rounded, wonky look is built into the files and needs no
font-variation-settings. Only the weight (600-900) and optical-size axes are left. */
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
src: url("/fonts/atkinson-normal-400-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
src: url("/fonts/atkinson-normal-400-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap;
src: url("/fonts/atkinson-italic-400-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap;
src: url("/fonts/atkinson-italic-400-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
src: url("/fonts/atkinson-normal-700-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
src: url("/fonts/atkinson-normal-700-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Fraunces"; font-style: normal; font-weight: 600 900; font-display: swap;
src: url("/fonts/fraunces-normal-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Fraunces"; font-style: normal; font-weight: 600 900; font-display: swap;
src: url("/fonts/fraunces-normal-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Fraunces"; font-style: italic; font-weight: 600 900; font-display: swap;
src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Fraunces"; font-style: italic; font-weight: 600 900; font-display: swap;
src: url("/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
/* type */
--display: "Fraunces", Georgia, "Times New Roman", serif;
--body: "Atkinson Hyperlegible", system-ui, sans-serif;
/* sky & sea (light: dawn) */
--sky-top: #A9DDF0;
--sky-mid: #D9F0F2;
--sky-low: #FFF0D4;
--sun: #FFC845;
--sun-glow: rgba(255, 200, 69, .45);
--hilite: rgba(255, 200, 69, .55);
--ray: rgba(255, 214, 120, .38);
--cloud: #FFFFFF;
--sea-far: #8AD3D9;
--sea-mid: #45AFC6;
--sea-near: #1C76A0;
--deep: #0E3B5E;
--abyss: #0A2A45;
/* paper & ink */
--bg: #FFF8EA;
--panel: #FFFCF4;
--fg: #0F2A43;
--muted: #4A5D70;
--line: #E6DCC6;
--link: #145DA0;
--brass: #C99A3B;
--brass-hi: #F1D08A;
--hull: #FFFDF7;
--mast: #2A3B4F;
--on-sea: #FFFFFF;
--on-deep: #CDE6F1;
/* the fleet */
--overheard: #5843A5; --overheard-ink: #5843A5; --overheard-btn: #5843A5;
--overboard: #145DA0; --overboard-ink: #145DA0; --overboard-btn: #145DA0;
--allaboard: #087F73; --allaboard-ink: #077267; --allaboard-btn: #087F73;
--allhail: #CC5856; --allhail-ink: #A63D3B; --allhail-btn: #A63D3B;
--btn-text: #FFFFFF;
color-scheme: light;
}
/* dark: the night watch */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--sky-top: #07142A; --sky-mid: #10244A; --sky-low: #24396A;
--sun: #F6EBC8; --sun-glow: rgba(246, 235, 200, .22); --hilite: rgba(78, 155, 227, .28); --ray: rgba(246, 235, 200, .05);
--cloud: #2B3F6B;
--sea-far: #1E4E78; --sea-mid: #153C63; --sea-near: #0E2C4C; --deep: #0A2039; --abyss: #06152A;
--bg: #0B1A30; --panel: #12243D; --fg: #EAF2F8; --muted: #A7B9CB; --line: #24395A; --link: #8CC4F2;
--brass: #B98E3E; --brass-hi: #E2C27E; --hull: #EAF0F6; --mast: #C3D2E2;
--on-sea: #EAF2F8; --on-deep: #A7C3D8;
--overheard: #8F7BE6; --overheard-ink: #A595F0; --overheard-btn: #5E47B0;
--overboard: #4E9BE3; --overboard-ink: #7DB8F0; --overboard-btn: #1B64AC;
--allaboard: #2FB5A5; --allaboard-ink: #5DD0C2; --allaboard-btn: #0A8477;
--allhail: #EE7D7A; --allhail-ink: #F49A97; --allhail-btn: #A3383A;
--btn-text: #FFFFFF;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--sky-top: #07142A; --sky-mid: #10244A; --sky-low: #24396A;
--sun: #F6EBC8; --sun-glow: rgba(246, 235, 200, .22); --hilite: rgba(78, 155, 227, .28); --ray: rgba(246, 235, 200, .05);
--cloud: #2B3F6B;
--sea-far: #1E4E78; --sea-mid: #153C63; --sea-near: #0E2C4C; --deep: #0A2039; --abyss: #06152A;
--bg: #0B1A30; --panel: #12243D; --fg: #EAF2F8; --muted: #A7B9CB; --line: #24395A; --link: #8CC4F2;
--brass: #B98E3E; --brass-hi: #E2C27E; --hull: #EAF0F6; --mast: #C3D2E2;
--on-sea: #EAF2F8; --on-deep: #A7C3D8;
--overheard: #8F7BE6; --overheard-ink: #A595F0; --overheard-btn: #5E47B0;
--overboard: #4E9BE3; --overboard-ink: #7DB8F0; --overboard-btn: #1B64AC;
--allaboard: #2FB5A5; --allaboard-ink: #5DD0C2; --allaboard-btn: #0A8477;
--allhail: #EE7D7A; --allhail-ink: #F49A97; --allhail-btn: #A3383A;
--btn-text: #FFFFFF;
color-scheme: dark;
}
/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--fg);
font: 17px/1.6 var(--body);
padding: 40px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}
main { max-width: 960px; margin: 0 auto; }
h1, h2, h3 {
font-family: var(--display); line-height: 1.1; text-wrap: balance;
font-optical-sizing: auto;
}
h1 { font-size: clamp(32px, 7vw, 48px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 24px; font-weight: 700; margin: 40px 0 8px; }
h3 { font-size: 18px; font-weight: 700; margin: 24px 0 4px; }
p, li { max-width: 68ch; }
a { color: var(--link); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 32px; }
.muted { color: var(--muted); }
footer { margin-top: 48px; padding-top: 16px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* ---------- document pages (privacy, terms) ---------- */
.back {
display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: 16px; font-weight: 700;
text-decoration: none; padding: 7px 14px; border-radius: 3px;
border: 1px solid color-mix(in srgb, var(--fg) 30%, var(--line));
color: var(--fg);
background: linear-gradient(180deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 84%, var(--line)) 49%, color-mix(in srgb, var(--panel) 74%, var(--line)) 50%, color-mix(in srgb, var(--panel) 86%, var(--line)) 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.back:hover { border-color: var(--brass); }
.doc {
background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--overboard); border-radius: 4px;
padding: clamp(18px, 4vw, 40px); box-shadow: 0 2px 0 rgba(10, 42, 69, .14);
}
.doc h1 { color: var(--fg); }
.doc h2 { color: var(--overboard-ink); }
.doc h2:first-of-type { margin-top: 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); font-weight: 700; }
.tablewrap { overflow-x: auto; }
code { overflow-wrap: anywhere; }
/* ==========================================================
HOME — the harbor
========================================================== */
body.home { padding: 0; background: var(--abyss); overflow-x: hidden; }
/* ---------- hero: sky ---------- */
.hero {
position: relative; overflow: hidden; isolation: isolate;
background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 100%);
padding: clamp(20px, 3vw, 32px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.hero-inner { position: relative; z-index: 3; max-width: 960px; margin: 0 auto; }
.sun {
appearance: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: scale .25s cubic-bezier(.3,1.6,.5,1);
position: absolute; z-index: 0; right: clamp(-30px, 6vw, 12%); bottom: 34px;
width: clamp(96px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%;
background: radial-gradient(circle at 38% 36%, #FFF6D8 0 12%, var(--sun) 46%);
box-shadow: 0 0 0 18px var(--sun-glow), 0 0 80px 30px var(--sun-glow);
}
.sun:hover { scale: 1.06; }
.sun:active { scale: .96; }
.sun:focus-visible { outline: 4px solid var(--fg); outline-offset: 6px; }
/* let clicks reach the sun through the empty parts of the text block and the sea */
.hero-inner, .scene { pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.sunburst {
pointer-events: none;
position: absolute; z-index: -1; left: 50%; top: 50%; width: 1600px; aspect-ratio: 1;
translate: -50% -50%;
background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 7deg, transparent 7deg 18deg);
-webkit-mask: radial-gradient(circle, transparent 6.8%, #000 7.4%, transparent 46%);
mask: radial-gradient(circle, transparent 6.8%, #000 7.4%, transparent 46%);
animation: spin 160s linear infinite;
}
.stars { display: none; }
.cloud {
position: absolute; z-index: 1; height: 26px; border-radius: 999px; background: var(--cloud); opacity: .9;
animation: drift-x 70s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 44%; aspect-ratio: 1; left: 16%; bottom: 30%; }
.cloud::after { width: 32%; aspect-ratio: 1; left: 48%; bottom: 40%; }
.cloud.c1 { width: 130px; top: 22px; left: 6%; }
.cloud.c2 { width: 100px; top: 74px; left: 58%; animation-duration: 95s; animation-delay: -30s; opacity: .75; }
.cloud.c3 { width: 80px; top: 18px; left: 82%; animation-duration: 120s; animation-delay: -60s; opacity: .65; }
.gull { position: absolute; z-index: 1; width: 26px; color: var(--mast); opacity: .55; animation: glide 9s ease-in-out infinite; }
.gull.g1 { top: 34px; left: 44%; }
.gull.g2 { top: 50px; left: 48%; width: 18px; animation-delay: -3s; }
/* ---------- hero: words ---------- */
.eyebrow {
display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
background: color-mix(in srgb, var(--panel) 86%, transparent);
border: 1px solid color-mix(in srgb, var(--fg) 32%, transparent);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
padding: 6px 12px 6px 9px; border-radius: 2px;
}
.eyebrow .pennants { display: inline-flex; gap: 3px; }
.eyebrow .pennants i { width: 10px; height: 12px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.eyebrow .pennants i:nth-child(1) { background: var(--overheard); }
.eyebrow .pennants i:nth-child(2) { background: var(--overboard); }
.eyebrow .pennants i:nth-child(3) { background: var(--allaboard); }
.eyebrow .pennants i:nth-child(4) { background: var(--allhail); }
.hero h1 {
font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; margin: 0 0 8px; max-width: 22ch;
font-weight: 900; color: var(--fg);
}
.hero h1 em {
font-style: italic; font-weight: 700; color: var(--overboard-ink);
background: linear-gradient(transparent 68%, var(--hilite) 68% 92%, transparent 92%);
padding: 0 .06em;
}
.hero .lede { color: var(--fg); font-size: clamp(17px, 1.8vw, 20px); max-width: 44ch; margin: 0; opacity: .88; }
/* ---------- hero: sea & fleet ---------- */
.scene { position: relative; z-index: 2; height: clamp(96px, 9vw, 124px); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; }
.wave {
position: absolute; left: 0; right: 0; bottom: 0;
-webkit-mask: var(--wave-shape) repeat-x 0 0 / var(--wave-w) 100%;
mask: var(--wave-shape) repeat-x 0 0 / var(--wave-w) 100%;
animation: swell var(--wave-t) linear infinite;
--wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C20 18 25 4 40 4 S60 18 80 18 S100 4 120 4 S140 18 160 18 V60 H0 Z'/%3E%3C/svg%3E");
}
.wave.far { height: 64%; background: var(--sea-far); --wave-w: 220px; --wave-t: 14s; z-index: 1; }
.wave.mid { height: 44%; background: var(--sea-mid); --wave-w: 300px; --wave-t: 10s; z-index: 3; animation-direction: reverse; }
.wave.near { height: 24%; background: var(--sea-near); --wave-w: 380px; --wave-t: 8s; z-index: 5; }
.boat { position: absolute; display: block; pointer-events: auto; cursor: pointer; animation: bob 4.6s ease-in-out infinite; transform-origin: 50% 80%; }
.boat:hover { z-index: 6; }
/* the app's name unrolls beside its boat on hover */
.boat-name {
position: absolute; left: 92%; top: 18%; white-space: nowrap; pointer-events: none;
font: italic 800 clamp(15px, 1.4vw, 19px)/1 var(--display);
color: #FFFFFF; background: var(--cb-boat); padding: 5px 10px 6px; border-radius: 3px;
border: 1px solid rgba(10, 26, 48, .45);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
clip-path: inset(-4px 100% -4px -4px round 3px);
transition: clip-path .45s cubic-bezier(.2,.8,.2,1);
}
.boat:hover .boat-name { clip-path: inset(-4px -4px -4px -4px round 3px); }
.boat.b-allhail .boat-name { left: auto; right: 92%; clip-path: inset(-4px -4px -4px 100% round 3px); }
.boat.b-allhail:hover .boat-name { clip-path: inset(-4px -4px -4px -4px round 3px); }
.boat.b-overheard { --cb-boat: var(--overheard-btn); }
.boat.b-overboard { --cb-boat: var(--overboard-btn); }
.boat.b-allaboard { --cb-boat: var(--allaboard-btn); }
.boat.b-allhail { --cb-boat: var(--allhail-btn); }
.boat svg { display: block; width: 100%; height: auto; overflow: visible; }
.boat:hover svg { scale: 1.12; transition: scale .2s cubic-bezier(.3,1.6,.5,1); }
.boat .mast { fill: var(--mast); }
.boat .hull { fill: var(--hull); stroke: var(--mast); stroke-width: 1.2; }
.boat .board { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1.3; }
.boat .sail, .boat .flag { fill: currentColor; }
.boat .ink { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.boat.b-overheard { color: var(--overheard); width: clamp(48px, 5vw, 70px); left: 8%; bottom: 30%; z-index: 2; animation-delay: -1.2s; }
.boat.b-overboard { color: var(--overboard); width: clamp(64px, 7vw, 96px); left: 30%; bottom: 8%; z-index: 4; animation-delay: -2.6s; }
.boat.b-allaboard { color: var(--allaboard); width: clamp(46px, 4.6vw, 64px); left: 56%; bottom: 34%; z-index: 2; animation-delay: -.4s; }
.boat.b-allhail { color: var(--allhail); width: clamp(60px, 6.4vw, 88px); left: 76%; bottom: 10%; z-index: 4; animation-delay: -3.4s; }
/* ---------- harbor (the cards) ---------- */
.harbor {
max-width: none; margin: 0;
background: linear-gradient(180deg, var(--sea-near) 0, var(--deep) 70%, var(--abyss) 100%);
padding: 8px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px));
}
.harbor > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.anchors {
display: flex; align-items: center; gap: 14px; color: color-mix(in srgb, var(--on-sea) 80%, var(--brass-hi)); margin: 18px auto 26px;
}
.anchors svg { width: 22px; height: 22px; flex: none; }
.anchors i {
flex: 1; height: 4px;
border-top: 1px solid color-mix(in srgb, var(--on-sea) 42%, transparent);
border-bottom: 1px solid color-mix(in srgb, var(--brass-hi) 35%, transparent);
}
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.app {
--c: var(--overboard); --ci: var(--overboard-ink); --cb: var(--overboard-btn);
position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: stretch;
background: var(--panel); color: var(--fg); text-decoration: none;
border: 1px solid color-mix(in srgb, var(--fg) 24%, var(--line));
border-top: 4px solid var(--c);
border-radius: 4px;
padding: 20px 22px 20px;
outline: 1px solid color-mix(in srgb, var(--brass) 28%, transparent);
outline-offset: -5px;
box-shadow: 0 2px 0 rgba(6, 21, 42, .24);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, outline-color .18s ease;
}
.app.overheard { --c: var(--overheard); --ci: var(--overheard-ink); --cb: var(--overheard-btn); }
.app.overboard { --c: var(--overboard); --ci: var(--overboard-ink); --cb: var(--overboard-btn); }
.app.allaboard { --c: var(--allaboard); --ci: var(--allaboard-ink); --cb: var(--allaboard-btn); }
.app.allhail { --c: var(--allhail); --ci: var(--allhail-ink); --cb: var(--allhail-btn); }
a.app:hover, a.app:focus-visible {
transform: translateY(-2px);
border-color: var(--brass);
outline-color: color-mix(in srgb, var(--brass) 65%, transparent);
box-shadow: 0 6px 14px rgba(6, 21, 42, .32);
z-index: 10;
}
a.app:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; }
a.app:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(6, 21, 42, .24); }
.porthole {
position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 70%);
box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.15);
}
.porthole::before { /* rivets */
content: ""; position: absolute; inset: 4px; border-radius: 50%;
border: 3px dotted rgba(0,0,0,.28);
}
.porthole img { position: relative; width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
a.app:hover .porthole img { animation: bob 1.6s ease-in-out infinite; }
.app-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.app .porthole { align-self: start; }
.app h2 { margin: 4px 0 6px; font-size: 28px; font-weight: 800; color: var(--ci); }
.app p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.app .pitch {
margin: -2px 0 8px; color: var(--ci);
font: italic 800 17.5px/1.2 var(--display);
}
/* selling points: a pop-up chart plaque that bursts out of the card's top-right corner */
.features {
--corner: 14px; /* how far past the card's right edge the pop-up reaches */
position: absolute; z-index: 20; right: calc(-1 * var(--corner)); bottom: calc(100% - 18px);
width: min(430px, calc(100vw - 32px));
background: var(--panel); color: var(--fg);
border: 2px solid var(--fg);
border-radius: 4px;
padding: 16px 20px;
box-shadow: 5px 5px 0 var(--c);
pointer-events: none;
clip-path: circle(0 at calc(100% - var(--corner)) 100%);
transition: clip-path .42s cubic-bezier(.2,.8,.2,1);
}
.app.overheard .features { --corner: 120px; } /* spills a little over OverBoard */
a.app:hover .features, a.app:focus-visible .features { clip-path: circle(150% at calc(100% - var(--corner)) 100%); }
@media (max-width: 760px) { .app.overheard .features { --corner: 14px; } }
/* not enough room above (page scrolled down)? drop below the corner instead */
.app.drop .features { bottom: auto; top: calc(100% - 18px); clip-path: circle(0 at calc(100% - var(--corner)) 0); }
a.app.drop:hover .features, a.app.drop:focus-visible .features { clip-path: circle(150% at calc(100% - var(--corner)) 0); }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.features li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--fg); }
.features li::before { /* a little signal pennant for a bullet */
content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 11px; background: var(--c);
clip-path: polygon(0 0, 100% 50%, 0 100%);
}
/* no hover on touch screens: show the points inside the card instead */
@media (hover: none) {
.features { position: static; width: auto; clip-path: none; box-shadow: none; outline: none; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 14px 0 0; grid-column: 1 / -1; }
}
.app .go {
display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
color: var(--btn-text); font-weight: 700; font-size: 15.5px;
padding: 9px 16px; border-radius: 3px;
border: 1px solid color-mix(in srgb, var(--cb) 72%, #000);
background: linear-gradient(
180deg,
color-mix(in srgb, var(--cb) 80%, #fff) 0%,
var(--cb) 49%,
color-mix(in srgb, var(--cb) 84%, #000) 50%,
color-mix(in srgb, var(--cb) 95%, #fff) 100%
);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 1px 2px rgba(6, 21, 42, .22);
}
a.app:hover .go {
background: linear-gradient(
180deg,
color-mix(in srgb, var(--cb) 72%, #fff) 0%,
color-mix(in srgb, var(--cb) 90%, #fff) 49%,
color-mix(in srgb, var(--cb) 90%, #000) 50%,
var(--cb) 100%
);
}
.app .go::after { content: "→"; transition: translate .2s; }
a.app:hover .go::after { translate: 4px 0; }
/* ---------- seabed footer ---------- */
.seabed {
background: var(--abyss); color: var(--on-deep);
padding: 8px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
}
.seabed footer { max-width: 960px; margin: 0 auto; border-top: 2px dashed color-mix(in srgb, var(--on-deep) 30%, transparent); color: var(--on-deep); align-items: center; }
.seabed a { color: var(--on-deep); }
.seabed a:hover { color: #fff; }
.seabed .signoff { margin-right: auto; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; color: var(--brass-hi); }
/* the sign-off is a secret link to the airship stage: no underline, and the Floating Continent (cloud + mountain) drifts in on hover */
.seabed a.signoff { color: var(--brass-hi); text-decoration: none; }
.seabed a.signoff::after { content: "☁️⛰️"; display: inline-block; margin-left: .35em; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.seabed a.signoff:hover::after, .seabed a.signoff:focus-visible::after { opacity: 1; transform: none; }
/* ---------- night watch extras ---------- */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .stars { display: block; }
:root:not([data-theme="light"]) .gull { display: none; }
:root:not([data-theme="light"]) .sun { background: radial-gradient(circle at 74% 30%, var(--sky-mid) 0 30%, transparent 31%), radial-gradient(circle, var(--sun) 0 70%); }
:root:not([data-theme="light"]) .sunburst { display: none; }
}
:root[data-theme="dark"] .stars { display: block; }
:root[data-theme="dark"] .gull { display: none; }
:root[data-theme="dark"] .sun { background: radial-gradient(circle at 74% 30%, var(--sky-mid) 0 30%, transparent 31%), radial-gradient(circle, var(--sun) 0 70%); }
:root[data-theme="dark"] .sunburst { display: none; }
.stars {
position: absolute; inset: 0 0 30% 0; z-index: 0; opacity: .8;
background:
radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
radial-gradient(2px 2px at 44% 12%, #fff 50%, transparent 51%),
radial-gradient(1px 1px at 61% 30%, #fff 50%, transparent 51%),
radial-gradient(1.5px 1.5px at 74% 8%, #fff 50%, transparent 51%),
radial-gradient(1px 1px at 88% 36%, #fff 50%, transparent 51%),
radial-gradient(1.5px 1.5px at 94% 14%, #fff 50%, transparent 51%),
radial-gradient(1px 1px at 52% 52%, #fff 50%, transparent 51%),
radial-gradient(1px 1px at 6% 48%, #fff 50%, transparent 51%);
animation: twinkle 5s ease-in-out infinite alternate;
}
/* ---------- motion ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes swell { to { -webkit-mask-position: var(--wave-w) 0; mask-position: var(--wave-w) 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes drift-x { from { translate: -40vw 0; } to { translate: 60vw 0; } }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -8px); } }
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- small screens ---------- */
@media (max-width: 560px) {
.sun { right: -18px; bottom: 26px; width: 84px; }
.cloud.c3, .gull.g2 { display: none; }
.eyebrow { font-size: 11px; letter-spacing: .1em; }
.boat.b-overheard { left: 2%; }
.boat.b-overboard { left: 24%; }
.boat.b-allaboard { left: 54%; }
.boat.b-allhail { left: 74%; }
.app { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px 18px; }
.porthole { width: 80px; height: 80px; }
.porthole img { width: 60px; height: 60px; }
.seabed .signoff { flex-basis: 100%; }
}