sass/main.scss
284 lines · 8294 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: 28px;
106 line-height: 1.25;
107 letter-spacing: -0.025em;
108 font-weight: 500;
109 max-width: 19ch;
110 margin: 0 0 72px;
111}
112
113// ---- Numbered sections -----------------------------------------------------
114.sec { counter-increment: sec; margin: 0 0 64px; }
115.sec:last-child { margin-bottom: 0; }
116
117.sec-label {
118 display: flex;
119 align-items: baseline;
120 gap: 14px;
121 font-size: 11px;
122 font-weight: 700;
123 text-transform: uppercase;
124 letter-spacing: 0.16em;
125 color: var(--fg);
126 margin: 0 0 16px;
127 padding-bottom: 10px;
128 border-bottom: 1px solid var(--fg);
129}
130.sec-label::before { content: counter(sec, decimal-leading-zero); color: var(--ac); }
131
132.sec-sub {
133 font-size: 11px;
134 font-weight: 600;
135 text-transform: uppercase;
136 letter-spacing: 0.14em;
137 color: var(--dim);
138 margin: 32px 0 2px;
139}
140.dir-group:first-of-type .sec-sub { margin-top: 20px; }
141
142// ---- Directory rows --------------------------------------------------------
143// The name column is fixed so names align down the page; long descriptions
144// wrap inside their own cell rather than pushing the grid out of true.
145.dir { list-style: none; margin: 0; padding: 0; }
146.dir-grid { display: grid; grid-template-columns: 1fr; column-gap: 48px; }
147.dir-item { border-bottom: 1px solid var(--line); }
148
149.dir-row {
150 display: grid;
151 grid-template-columns: 150px 1fr auto;
152 align-items: baseline;
153 gap: 4px 20px;
154 padding: 11px 8px 11px 0;
155}
156.dir-name { font-weight: 600; letter-spacing: -0.01em; }
157.dir-desc { color: var(--mut); font-size: 14px; }
158.dir-host { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
159.dir-item:hover { background: var(--hov); }
160.dir-item:hover .dir-name { color: var(--ac); }
161
162.dir-item-app { display: flex; align-items: baseline; gap: 24px; }
163.dir-item-app .dir-row { flex: 1; grid-template-columns: 150px 1fr; min-width: 0; }
164.dir-actions {
165 display: flex;
166 gap: 20px;
167 font-size: 12px;
168 font-weight: 600;
169 text-transform: uppercase;
170 letter-spacing: 0.08em;
171 white-space: nowrap;
172}
173.dir-actions a { color: var(--ac); }
174.dir-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
175
176@media (min-width: 1000px) {
177 .dir-grid { grid-template-columns: 1fr 1fr; }
178}
179
180@media (max-width: 760px) {
181 :root { --gut: 20px; }
182 .tagline { font-size: 22px; max-width: none; margin-bottom: 48px; }
183 .dir-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
184 .dir-item-app { display: block; }
185 .dir-item-app .dir-row { grid-template-columns: 1fr; }
186 .dir-actions { padding: 0 0 12px; }
187}
188
189// ---- Prose (app detail, privacy, home about) -------------------------------
190.prose { max-width: 64ch; }
191.prose p { margin: 0 0 14px; }
192.prose a { color: var(--ac); text-decoration: underline; text-underline-offset: 3px; }
193.prose strong { font-weight: 600; }
194.prose ul { list-style: none; padding-left: 0; margin: 14px 0; }
195.prose li { margin: 6px 0; padding-left: 20px; position: relative; color: var(--mut); }
196.prose li::before {
197 content: ""; position: absolute; left: 0; top: 0.62em;
198 width: 8px; height: 1px; background: var(--ac);
199}
200.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
201
202.page-label {
203 font-size: 11px;
204 font-weight: 700;
205 text-transform: uppercase;
206 letter-spacing: 0.16em;
207 margin: 0 0 16px;
208 padding-bottom: 10px;
209 border-bottom: 1px solid var(--fg);
210}
211.prose h2 {
212 font-size: 11px;
213 font-weight: 700;
214 text-transform: uppercase;
215 letter-spacing: 0.14em;
216 color: var(--dim);
217 margin: 40px 0 10px;
218}
219.lede {
220 font-size: 22px;
221 line-height: 1.3;
222 letter-spacing: -0.02em;
223 font-weight: 500;
224 color: var(--fg);
225 margin: 0 0 24px;
226 max-width: 34ch;
227}
228
229.back { font-size: 12px; font-weight: 600; text-transform: uppercase;
230 letter-spacing: 0.1em; margin: 0 0 28px; }
231.back a { color: var(--mut); }
232.back a:hover { color: var(--ac); }
233
234// ---- App page: actions + screenshots ---------------------------------------
235.app-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 8px; }
236.btn {
237 display: inline-block;
238 font-family: var(--sans);
239 font-size: 12px;
240 font-weight: 600;
241 text-transform: uppercase;
242 letter-spacing: 0.08em;
243 padding: 10px 18px;
244 border: 1px solid var(--hair);
245 color: var(--fg);
246}
247.btn:hover { border-color: var(--fg); }
248.btn-primary { background: var(--ac); border-color: var(--ac); color: #fff; }
249.btn-primary:hover { opacity: 0.88; border-color: var(--ac); }
250.prose a.btn { color: var(--fg); text-decoration: none; }
251.prose a.btn-primary { color: #fff; }
252.privacy-link { font-size: 13px; margin: 12px 0 0; }
253
254.shots {
255 display: flex;
256 gap: 14px;
257 overflow-x: auto;
258 margin: 20px 0 8px;
259 padding-bottom: 12px;
260 scroll-snap-type: x mandatory;
261 -webkit-overflow-scrolling: touch;
262}
263.shots figure { flex: 0 0 auto; width: 176px; margin: 0; scroll-snap-align: start; }
264.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
265.shots figcaption { color: var(--dim); font-size: 12px; margin-top: 8px; line-height: 1.4; }
266
267// ---- Plain list (privacy index) --------------------------------------------
268.plainlist { list-style: none; padding: 0; margin: 20px 0 0; }
269.plainlist li { padding: 11px 0; border-bottom: 1px solid var(--line); }
270.plainlist li:last-child { border-bottom: 0; }
271.pl-name { font-weight: 600; }
272.pl-desc { display: block; color: var(--mut); font-size: 14px; }
273
274// ---- Footer ----------------------------------------------------------------
275.site-footer {
276 max-width: var(--max);
277 width: 100%;
278 margin: 0 auto;
279 padding: 20px var(--gut) 40px;
280 border-top: 1px solid var(--line);
281}
282.foot-links { font-size: 12px; color: var(--dim); margin: 0; }
283.foot-links a { color: var(--mut); }
284.foot-links a:hover { color: var(--ac); }