sass/main.scss
533 lines · 16088 bytes
1// krz. Swiss/systematic. System sans, light-first, one red accent.
2//
3// Tokens. Contrast against the matching --bg, WCAG AA needs 4.5:1 for the
4// small text this design uses throughout:
5// light fg 18.9 mut 6.9 dim 5.3 ac 4.9
6// dark fg 17.2 mut 7.4 dim 5.6 ac 6.3
7// The accent carries 11-12px uppercase text, so it cannot be lightened
8// toward poster red without dropping below 4.5.
9
10@mixin light {
11 --bg: #ffffff;
12 --fg: #111113;
13 --mut: #5a5a60;
14 --dim: #6b6b72;
15 --line: #e3e3e0;
16 --hair: #cfcfca;
17 --ac: #d9291f;
18 --hov: #f6f6f4;
19}
20
21@mixin dark {
22 --bg: #0e0e10;
23 --fg: #f2f2f0;
24 --mut: #a0a0a6;
25 --dim: #8a8a92;
26 --line: #26262a;
27 --hair: #3a3a40;
28 --ac: #ff5a4d;
29 --hov: #17171a;
30}
31
32:root { @include light; }
33@media (prefers-color-scheme: dark) { :root { @include dark; } }
34
35:root {
36 --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
37 "Helvetica Neue", Arial, sans-serif;
38 --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
39 --max: 1200px;
40 --gut: 40px;
41}
42
43* { box-sizing: border-box; }
44html { -webkit-text-size-adjust: 100%; }
45@media (prefers-reduced-motion: no-preference) {
46 html { scroll-behavior: smooth; }
47}
48
49body {
50 margin: 0;
51 background: var(--bg);
52 color: var(--fg);
53 font-family: var(--sans);
54 font-size: 15px;
55 line-height: 1.55;
56 min-height: 100vh;
57 display: flex;
58 flex-direction: column;
59 counter-reset: sec;
60 -webkit-font-smoothing: antialiased;
61}
62
63a { color: inherit; text-decoration: none; }
64::selection { background: var(--ac); color: #fff; }
65:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
66
67// Anchored sections must clear the sticky-free header on jump.
68:target { scroll-margin-top: 24px; }
69
70// ---- Header ----------------------------------------------------------------
71.site-header {
72 display: flex;
73 align-items: baseline;
74 justify-content: space-between;
75 gap: 1rem;
76 flex-wrap: wrap;
77 max-width: var(--max);
78 width: 100%;
79 margin: 0 auto;
80 padding: 28px var(--gut) 20px;
81 border-bottom: 2px solid var(--fg);
82}
83.brand { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
84.site-nav {
85 display: flex;
86 gap: 26px;
87 font-size: 12px;
88 font-weight: 600;
89 text-transform: uppercase;
90 letter-spacing: 0.12em;
91}
92.site-nav a { color: var(--mut); }
93.site-nav a:hover { color: var(--ac); }
94
95// ---- Main ------------------------------------------------------------------
96.site-main {
97 flex: 1;
98 max-width: var(--max);
99 width: 100%;
100 margin: 0 auto;
101 padding: 56px var(--gut) 72px;
102}
103
104.tagline {
105 font-size: clamp(34px, 5.2vw, 60px);
106 line-height: 1.05;
107 letter-spacing: -0.045em;
108 font-weight: 700;
109 max-width: 17ch;
110 margin: 8px 0 80px;
111 text-wrap: balance;
112}
113
114// ---- Numbered sections -----------------------------------------------------
115.sec { counter-increment: sec; margin: 0 0 64px; }
116.sec:last-child { margin-bottom: 0; }
117
118.sec-label {
119 display: flex;
120 align-items: baseline;
121 gap: 14px;
122 font-size: 11px;
123 font-weight: 700;
124 text-transform: uppercase;
125 letter-spacing: 0.16em;
126 color: var(--fg);
127 margin: 0 0 16px;
128 padding-bottom: 10px;
129 border-bottom: 1px solid var(--fg);
130}
131.sec-label::before { content: counter(sec, decimal-leading-zero); color: var(--ac); }
132
133.sec-sub {
134 font-size: 11px;
135 font-weight: 600;
136 text-transform: uppercase;
137 letter-spacing: 0.14em;
138 color: var(--dim);
139 margin: 32px 0 10px;
140}
141.svc-group:first-of-type .sec-sub { margin-top: 20px; }
142
143// ---- Home: app rows -------------------------------------------------------
144.app-rows { list-style: none; margin: 0; padding: 0; }
145.app-rows li { border-bottom: 1px solid var(--line); }
146.app-row {
147 display: grid;
148 grid-template-columns: 44px 160px 1fr auto;
149 align-items: center;
150 gap: 4px 20px;
151 padding: 12px 0;
152}
153.app-row-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
154.app-row-desc { color: var(--mut); }
155.app-row-go { color: var(--dim); }
156.app-row:hover .app-row-name, .app-row:hover .app-row-go { color: var(--ac); }
157@media (prefers-reduced-motion: no-preference) {
158 .app-row-go { transition: transform 0.2s; }
159 .app-row:hover .app-row-go { transform: translateX(4px); }
160}
161
162// ---- Services: cards -------------------------------------------------------
163.svc-group + .svc-group { margin-top: 8px; }
164.svc-cards {
165 list-style: none;
166 margin: 0;
167 padding: 0;
168 display: grid;
169 grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
170 gap: 0 32px;
171}
172.svc-card {
173 display: flex;
174 flex-direction: column;
175 height: 100%;
176 padding: 14px 0 16px;
177 border-top: 1px solid var(--line);
178}
179.svc-name { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
180.svc-desc { color: var(--mut); font-size: 14px; margin: 2px 0 10px; }
181.svc-host { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
182.svc-card:hover { border-top-color: var(--ac); }
183.svc-card:hover .svc-name, .svc-card:hover .svc-host { color: var(--ac); }
184
185@media (max-width: 760px) {
186 :root { --gut: 20px; }
187 .app-row { grid-template-columns: 44px 1fr auto; gap: 0 14px; }
188 .app-row .app-icon { grid-row: span 2; }
189 .app-row-go { grid-row: span 2; grid-column: 3; }
190 .app-row-desc { grid-column: 2; font-size: 14px; line-height: 1.35; }
191}
192
193// ---- Prose (app detail, privacy, home about) -------------------------------
194.prose { max-width: 64ch; }
195.prose p { margin: 0 0 14px; }
196.prose a { color: var(--ac); text-decoration: underline; text-underline-offset: 3px; }
197.prose strong { font-weight: 600; }
198.prose ul { list-style: none; padding-left: 0; margin: 14px 0; }
199.prose li { margin: 6px 0; padding-left: 20px; position: relative; color: var(--mut); }
200.prose li::before {
201 content: ""; position: absolute; left: 0; top: 0.62em;
202 width: 8px; height: 1px; background: var(--ac);
203}
204.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
205.prose pre { overflow-x: auto; }
206
207.page-label {
208 font-size: 11px;
209 font-weight: 700;
210 text-transform: uppercase;
211 letter-spacing: 0.16em;
212 margin: 0 0 16px;
213 padding-bottom: 10px;
214 border-bottom: 1px solid var(--fg);
215}
216.prose h2 {
217 font-size: 11px;
218 font-weight: 700;
219 text-transform: uppercase;
220 letter-spacing: 0.14em;
221 color: var(--dim);
222 margin: 40px 0 10px;
223}
224.lede {
225 font-size: 22px;
226 line-height: 1.3;
227 letter-spacing: -0.02em;
228 font-weight: 500;
229 color: var(--fg);
230 margin: 0 0 24px;
231 max-width: 34ch;
232}
233
234.back { font-size: 12px; font-weight: 600; text-transform: uppercase;
235 letter-spacing: 0.1em; margin: 0 0 28px; }
236.back a { color: var(--mut); }
237.back a:hover { color: var(--ac); }
238
239// ---- Buttons ---------------------------------------------------------------
240.btn {
241 display: inline-block;
242 font-family: var(--sans);
243 font-size: 12px;
244 font-weight: 600;
245 text-transform: uppercase;
246 letter-spacing: 0.08em;
247 padding: 10px 18px;
248 border: 1px solid var(--hair);
249 color: var(--fg);
250}
251.btn:hover { border-color: var(--fg); }
252
253// Black-on-light / white-on-dark, after Apple's badge proportions.
254.btn-store {
255 display: inline-flex;
256 align-items: center;
257 gap: 8px;
258 height: 44px;
259 padding: 0 16px 0 12px;
260 border-radius: 9px;
261 background: var(--fg);
262 color: var(--bg);
263 font-size: 19px;
264 font-weight: 600;
265 letter-spacing: -0.02em;
266 line-height: 1;
267}
268.btn-store svg { width: 20px; height: 24px; flex: none; }
269.btn-store small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
270.btn-store:hover { opacity: 0.85; }
271
272// ---- App: shared pieces ----------------------------------------------------
273// --tint is per app (front matter). It only colors art and fallback icons;
274// text keeps the site tokens so contrast holds.
275.app, .app-card { --tint: var(--fg); }
276
277.app-icon {
278 flex: none;
279 display: block;
280 width: 112px;
281 height: 112px;
282 border-radius: 22.5%;
283 object-fit: cover;
284 box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.35);
285 background: var(--bg);
286}
287.app-icon-sm { width: 64px; height: 64px; }
288.app-icon-xs { width: 44px; height: 44px; }
289.app-icon-mono {
290 display: grid;
291 place-items: center;
292 color: #fff;
293 font-weight: 700;
294 font-size: 0.48em;
295 letter-spacing: -0.04em;
296 background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 70%, #fff), var(--tint) 60%);
297}
298.app-icon.app-icon-mono { font-size: 62px; }
299.app-icon-sm.app-icon-mono { font-size: 36px; }
300.app-icon-xs.app-icon-mono { font-size: 24px; }
301
302.app-art {
303 position: relative;
304 overflow: hidden;
305 aspect-ratio: 12 / 5;
306 background: var(--tint);
307}
308.app-art > img:only-child { width: 100%; height: 100%; object-fit: cover; display: block; }
309.app-art-composed {
310 background:
311 radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tint) 55%, #fff) 0%, transparent 60%),
312 linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 60%, #000));
313}
314// Sized by height so each screenshot's top (where marketing shots carry
315// their headline) stays in frame; the bottom runs off the edge.
316.app-art .fan {
317 position: absolute;
318 left: 50%;
319 top: 22%;
320 height: 120%;
321 width: auto;
322 border-radius: 18px;
323 box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.12);
324}
325.app-art .fan-1 { transform: translateX(-50%); z-index: 2; top: 12%; }
326.app-art .fan-2 { transform: translateX(-112%) rotate(-6deg); }
327.app-art .fan-3 { transform: translateX(12%) rotate(6deg); }
328.app-art-mark {
329 position: absolute;
330 inset: auto 0 -0.18em 0.04em;
331 color: rgb(255 255 255 / 0.16);
332 font-size: clamp(64px, 14vw, 180px);
333 font-weight: 700;
334 letter-spacing: -0.05em;
335 line-height: 1;
336 white-space: nowrap;
337}
338
339.app-id { min-width: 0; }
340.app-name { font-size: 32px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 0; }
341.app-tagline { font-size: 17px; line-height: 1.35; color: var(--mut); margin: 6px 0 0; letter-spacing: -0.01em; }
342.app-meta {
343 font-size: 11px;
344 font-weight: 600;
345 text-transform: uppercase;
346 letter-spacing: 0.12em;
347 color: var(--dim);
348 margin: 10px 0 0;
349}
350
351// ---- App: detail page ------------------------------------------------------
352.app-hero { aspect-ratio: 12 / 4.2; }
353
354.app-head {
355 display: flex;
356 align-items: flex-end;
357 gap: 24px;
358 padding: 20px 0 28px;
359 border-bottom: 2px solid var(--fg);
360}
361.app-head .app-icon {
362 margin: -76px 0 0 28px;
363 position: relative;
364 box-shadow: 0 0 0 4px var(--bg), 0 12px 32px -10px rgb(0 0 0 / 0.45);
365}
366.app-head .app-id { flex: 1; padding-bottom: 2px; }
367.app-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
368
369.app-highlights {
370 list-style: none;
371 margin: 0;
372 padding: 0;
373 display: grid;
374 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
375 border-bottom: 1px solid var(--line);
376}
377.app-highlights li { padding: 22px 24px 24px 0; }
378.app-highlights li + li { padding-left: 24px; border-left: 1px solid var(--line); }
379.app-highlights h2 {
380 font-size: 15px;
381 font-weight: 700;
382 letter-spacing: -0.01em;
383 margin: 0 0 4px;
384 padding-top: 12px;
385 border-top: 2px solid var(--ac);
386 display: inline-block;
387}
388.app-highlights p { margin: 0; color: var(--mut); font-size: 14px; }
389
390.shots {
391 display: flex;
392 gap: 20px;
393 overflow-x: auto;
394 margin: 0 calc(var(--gut) * -1);
395 padding: 32px var(--gut) 20px;
396 scroll-snap-type: x mandatory;
397 scroll-padding: 0 var(--gut);
398 -webkit-overflow-scrolling: touch;
399 scrollbar-width: thin;
400}
401.shots figure { flex: 0 0 auto; width: 220px; margin: 0; scroll-snap-align: start; }
402.shots img {
403 display: block;
404 width: 100%;
405 aspect-ratio: 640 / 1390;
406 object-fit: cover;
407 border-radius: 24px;
408 box-shadow: 0 0 0 1px var(--line), 0 16px 32px -20px rgb(0 0 0 / 0.5);
409 background: var(--hov);
410}
411.shots figcaption { color: var(--mut); font-size: 13px; margin-top: 12px; line-height: 1.4; }
412
413.app-body { margin-top: 24px; }
414.app-foot {
415 display: flex;
416 gap: 24px;
417 flex-wrap: wrap;
418 margin: 48px 0 0;
419 padding-top: 14px;
420 border-top: 1px solid var(--line);
421 font-size: 12px;
422 font-weight: 600;
423 text-transform: uppercase;
424 letter-spacing: 0.08em;
425}
426.app-foot a { color: var(--ac); }
427.app-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
428
429// ---- App: index cards ------------------------------------------------------
430.apps-intro { margin-bottom: 32px; }
431.app-cards {
432 list-style: none;
433 margin: 0;
434 padding: 0;
435 display: grid;
436 grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
437 gap: 40px 32px;
438}
439.app-card {
440 position: relative;
441 display: flex;
442 flex-direction: column;
443 border-bottom: 1px solid var(--line);
444}
445.app-card .app-art { aspect-ratio: 16 / 9; }
446.app-card-body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0 0; }
447.app-card .app-name { font-size: 22px; }
448.app-card .app-tagline { font-size: 15px; margin-top: 2px; }
449.app-card .app-meta { margin-top: 8px; }
450.app-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
451.app-card-actions {
452 display: flex;
453 justify-content: space-between;
454 margin: 16px 0 0;
455 padding: 12px 0 14px;
456 font-size: 12px;
457 font-weight: 600;
458 text-transform: uppercase;
459 letter-spacing: 0.08em;
460 color: var(--mut);
461}
462.app-card-actions a { position: relative; z-index: 2; color: var(--ac); }
463.app-card-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
464.app-card .app-art .fan { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
465.app-card:hover .app-name { color: var(--ac); }
466.app-card-more { margin-left: auto; }
467.app-card:hover .app-card-more { color: var(--ac); }
468@media (prefers-reduced-motion: no-preference) {
469 .app-card:hover .fan-1 { transform: translateX(-50%) translateY(-4%); }
470 .app-card:hover .fan-2 { transform: translateX(-122%) rotate(-9deg); }
471 .app-card:hover .fan-3 { transform: translateX(22%) rotate(9deg); }
472}
473
474.dir-more { margin: 14px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
475.dir-more a { color: var(--ac); }
476.dir-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
477
478@media (max-width: 760px) {
479 .app-hero { aspect-ratio: 4 / 3; margin: 0 calc(var(--gut) * -1); }
480 .app-head { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
481 .app-head .app-icon { width: 96px; height: 96px; margin: -64px 0 0 0; }
482 .app-head .app-icon-mono { font-size: 54px; }
483 .app-head .app-id { flex-basis: 100%; }
484 .app-name { font-size: 28px; }
485 .app-highlights li, .app-highlights li + li { padding: 18px 0; border-left: 0; }
486 .app-highlights li + li { border-top: 1px solid var(--line); }
487 .shots figure { width: 62vw; }
488}
489
490// ---- Plain list (privacy index) --------------------------------------------
491.plainlist { list-style: none; padding: 0; margin: 20px 0 0; }
492.plainlist li {
493 position: relative;
494 display: flex;
495 align-items: center;
496 gap: 16px;
497 padding: 12px 0;
498 border-bottom: 1px solid var(--line);
499}
500.plainlist li:last-child { border-bottom: 0; }
501.pl-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
502.pl-name::after { content: ""; position: absolute; inset: 0; }
503.plainlist li:hover .pl-name { color: var(--ac); }
504.pl-desc { display: block; color: var(--mut); font-size: 14px; }
505
506// ---- App reference strip (privacy policy pages) -----------------------------
507.app-ref {
508 display: grid;
509 grid-template-columns: 44px 1fr;
510 align-items: center;
511 gap: 0 14px;
512 max-width: 64ch;
513 margin: 0 0 32px;
514 padding: 14px 16px;
515 border-left: 3px solid var(--tint, var(--ac));
516 background: var(--hov);
517}
518.app-ref .app-icon { grid-row: span 2; }
519.app-ref-name { font-weight: 700; letter-spacing: -0.015em; }
520.app-ref-desc { color: var(--mut); font-size: 14px; }
521.app-ref:hover .app-ref-name { color: var(--ac); }
522
523// ---- Footer ----------------------------------------------------------------
524.site-footer {
525 max-width: var(--max);
526 width: 100%;
527 margin: 0 auto;
528 padding: 20px var(--gut) 40px;
529 border-top: 1px solid var(--line);
530}
531.foot-links { font-size: 12px; color: var(--dim); margin: 0; }
532.foot-links a { color: var(--mut); }
533.foot-links a:hover { color: var(--ac); }