Commit 35fb24b45a

35fb24b45a0715b0ccd0e057961ae3d36723e210

parent: ba4c0b6f23

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-12 04:39 UTC

Put spacing, type, weight and radius on token scales

- Spacing: 4px-based --s-1..--s-9 plus fluid section, gutter and top steps
- Type: --t-2xs..--t-lg and fluid feature, title and display sizes
- Weights: five named weights; 550 folded into 500
- Radius: --r-xs/sm/md/lg/icon/pill, screen radius derived from --r-device
- Breakpoints reduced to 560, 900 and 1100px; bands stack with the hero
- Drop rules orphaned when the bands moved off the home page

Layout: unified · split

theme/static/styles.css +148 −138
@@ -3,254 +3,264 @@
33 src: url("fonts/onest-latin.woff2") format("woff2");
44 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;
55}
6/* Scales. Spacing, type, weight and radius come from the tokens below; use them rather
7 than literal values. Breakpoints cannot be variables, so the set is fixed here:
8 560px (phone), 900px (columns stack), 1100px (home widgets go to two columns). */
69:root {
710 --bg: #f1f1ef; --fg: #1c1e24; --soft: #6a6d75; --raise: #ffffff; --rule: #dedfdb; --link: #2a5db0; --visited: #6a3a99; --focus: #2a5db0;
811 --font: "Onest", ui-sans-serif, system-ui, -apple-system, sans-serif;
912 --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
1013 --wide: 1160px; --read: 42rem; --pad: clamp(1rem, 4vw, 3rem);
14
15 --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
16 --s-section: clamp(3rem, 7vw, 5rem); --s-gutter: clamp(2rem, 5vw, 5rem); --s-top: clamp(2rem, 6vw, 4rem);
17 --hit: .6rem;
18
19 --t-2xs: .7rem; --t-xs: .8rem; --t-sm: .9rem; --t-base: 1.0625rem; --t-md: 1.2rem; --t-lg: 1.5rem;
20 --t-feature: clamp(1.6rem, 2.8vw, 2.2rem); --t-title: clamp(2rem, 4.5vw, 3rem); --t-display: clamp(2.4rem, 5vw, 4.2rem);
21
22 --w-regular: 400; --w-medium: 500; --w-semi: 600; --w-heading: 650; --w-bold: 700;
23
24 --r-xs: 6px; --r-sm: 16px; --r-md: 20px; --r-lg: 30px; --r-icon: 22%; --r-pill: 999px; --r-device: 54px;
25 --ease-out: cubic-bezier(.2, .7, .2, 1);
1126}
1227@media (prefers-color-scheme: dark) {
1328 :root { --bg: #111317; --fg: #ebebe6; --soft: #9a9da4; --raise: #1b1d23; --rule: #2a2c33; --link: #8db6f2; --visited: #c79bf2; --focus: #8db6f2; }
1429}
1530* { box-sizing: border-box; }
1631html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
17body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
32body { margin: 0; background: var(--bg); color: var(--fg); font: var(--w-regular) var(--t-base)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
1833a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
1934:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
2035.band, .screen, .w-audit, .w-hosted { --focus: #ffffff; }
2136article a:visited { color: var(--visited); }
2237img { max-width: 100%; height: auto; }
2338.skip-link { position: absolute; left: -999px; }
24.skip-link:focus { left: 1rem; top: 1rem; background: var(--raise); padding: .5rem 1rem; border-radius: 8px; z-index: 5; }
39.skip-link:focus { left: var(--s-4); top: var(--s-4); background: var(--raise); padding: var(--s-2) var(--s-4); border-radius: var(--r-xs); z-index: 5; }
2540
2641/* Header and footer */
27header.site, footer.site { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
28header.site .mark { display: inline-block; padding: .55rem 0; color: var(--fg); font-weight: 650; text-decoration: none; }
29header.site ul, footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
30header.site nav a { display: inline-block; padding: .55rem 0; color: var(--soft); text-decoration: none; }
42header.site, footer.site { max-width: var(--wide); margin: 0 auto; padding: var(--s-5) var(--pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
43header.site .mark { display: inline-block; padding: var(--hit) 0; color: var(--fg); font-weight: var(--w-heading); text-decoration: none; }
44header.site ul, footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
45header.site nav a { display: inline-block; padding: var(--hit) 0; color: var(--soft); text-decoration: none; }
3146header.site nav a:hover, header.site nav a[aria-current] { color: var(--fg); }
3247header.site nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
33footer.site { background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--pad)) 1px no-repeat; margin-top: clamp(3rem, 7vw, 5rem); padding-bottom: 3rem; color: var(--soft); font-size: .95rem; }
34footer.site a { display: inline-block; padding: .55rem 0; color: var(--soft); }
48footer.site { background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--pad)) 1px no-repeat; margin-top: var(--s-section); padding-bottom: var(--s-7); color: var(--soft); font-size: var(--t-sm); }
49footer.site a { display: inline-block; padding: var(--hit) 0; color: var(--soft); }
3550footer.site a:hover { color: var(--fg); }
3651footer.site .built { margin: 0; }
3752
3853/* Reading pages */
39.page { max-width: calc(var(--read) + 2 * var(--pad)); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--pad) 0; }
40h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; font-weight: 650; text-wrap: balance; }
41.page h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
42.page h2 { margin: 2.75rem 0 .75rem; font-size: 1.5rem; }
43.page h3 { margin: 2rem 0 .5rem; font-size: 1.2rem; }
44.page h4 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
45[class^="section-number"] { color: var(--soft); font-weight: 500; margin-right: .25em; font-variant-numeric: tabular-nums; }
46.meta { color: var(--soft); margin: 0 0 1rem; }
54.page { max-width: calc(var(--read) + 2 * var(--pad)); margin: 0 auto; padding: var(--s-top) var(--pad) 0; }
55h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; font-weight: var(--w-heading); text-wrap: balance; }
56.page h1 { margin: 0 0 var(--s-4); font-size: var(--t-title); line-height: 1.05; letter-spacing: -.035em; }
57.page h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--t-lg); }
58.page h3 { margin: var(--s-6) 0 var(--s-2); font-size: var(--t-md); }
59.page h4 { margin: var(--s-5) 0 var(--s-2); font-size: var(--t-base); }
60[class^="section-number"] { color: var(--soft); font-weight: var(--w-medium); margin-right: .25em; font-variant-numeric: tabular-nums; }
61.meta { color: var(--soft); margin: 0 0 var(--s-4); }
4762time { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
48.page ul.tags { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
49ul.tags a { display: inline-block; padding: .55rem .9rem; border-radius: 999px; background: var(--raise); color: var(--fg); text-decoration: none; font-size: .9rem; }
63.page ul.tags { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2); }
64ul.tags a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-pill); background: var(--raise); color: var(--fg); text-decoration: none; font-size: var(--t-sm); }
5065ul.tags a:hover { background: var(--fg); color: var(--bg); }
51.page ul, .page ol { padding-left: 1.25rem; }
52.page li { margin: .25rem 0; }
66.page ul, .page ol { padding-left: var(--s-5); }
67.page li { margin: var(--s-1) 0; }
5368.page li::marker { color: var(--soft); }
54blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--rule); color: var(--soft); }
55blockquote p { margin: .5rem 0; }
56hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
57figure { margin: 2rem 0; }
58figure img { border-radius: 14px; display: block; }
59figcaption { color: var(--soft); font-size: .92rem; margin-top: .6rem; }
60.figure-number { font-weight: 600; }
61table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
62th, td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--rule); }
63th { font-weight: 600; }
69blockquote { margin: var(--s-5) 0; padding: var(--s-1) 0 var(--s-1) var(--s-5); border-left: 3px solid var(--rule); color: var(--soft); }
70blockquote p { margin: var(--s-2) 0; }
71hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }
72figure { margin: var(--s-6) 0; }
73figure img { border-radius: var(--r-sm); display: block; }
74figcaption { color: var(--soft); font-size: var(--t-sm); margin-top: var(--s-3); }
75.figure-number { font-weight: var(--w-semi); }
76table { border-collapse: collapse; width: 100%; margin: var(--s-5) 0; font-size: var(--t-sm); display: block; overflow-x: auto; }
77th, td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--rule); }
78th { font-weight: var(--w-semi); }
6479
6580/* Code */
66code { font-family: var(--mono); font-size: .88em; background: var(--raise); padding: .1em .35em; border-radius: 6px; }
67pre { background: var(--raise); border-radius: 16px; padding: 1rem 1.25rem; overflow: auto; white-space: pre; font-size: .9rem; line-height: 1.55; margin: 1.5rem 0; }
81code { font-family: var(--mono); font-size: .88em; background: var(--raise); padding: .1em .35em; border-radius: var(--r-xs); }
82pre { background: var(--raise); border-radius: var(--r-sm); padding: var(--s-4) var(--s-5); overflow: auto; white-space: pre; font-size: var(--t-sm); line-height: 1.55; margin: var(--s-5) 0; }
6883pre code, pre .code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
6984pre code { color: #323232; }
7085@media (prefers-color-scheme: dark) { pre code { color: #c0c5ce; } }
7186
7287/* Table of contents, as a raised card */
73#table-of-contents { background: var(--raise); border-radius: 20px; padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; }
74#table-of-contents h2 { margin: 0 0 .5rem; font-size: 1rem; color: var(--soft); font-weight: 500; letter-spacing: 0; }
88#table-of-contents { background: var(--raise); border-radius: var(--r-md); padding: var(--s-5); margin: 0 0 var(--s-7); }
89#table-of-contents h2 { margin: 0 0 var(--s-2); font-size: var(--t-base); color: var(--soft); font-weight: var(--w-medium); letter-spacing: 0; }
7590#table-of-contents ul { list-style: none; padding-left: 0; margin: 0; }
76#table-of-contents ul ul { padding-left: 1.25rem; }
77#table-of-contents li { margin: .15rem 0; }
91#table-of-contents ul ul { padding-left: var(--s-5); }
92#table-of-contents li { margin: var(--s-1) 0; }
7893#table-of-contents a { color: var(--fg); text-decoration: none; }
7994#table-of-contents a:hover { text-decoration: underline; }
8095
8196/* Org blocks: a detour post's property drawer, and #+begin_seealso */
82.detour, .seealso { background: var(--raise); border-radius: 20px; padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; }
83.detour dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.25rem; margin: 0; }
97.detour, .seealso { background: var(--raise); border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-5) 0 var(--s-6); }
98.detour dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-5); margin: 0; }
8499.detour dt { color: var(--soft); }
85100.detour dd { margin: 0; }
86101.seealso p { margin: 0; }
87.project { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--soft); }
102.project { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule); color: var(--soft); }
88103.project i { font-style: normal; }
89104
90105/* Lists of posts and tags */
91.post-list, .detour-list, .tag-toc { list-style: none; padding: 0 !important; margin: 1.5rem 0 0; }
92.post-list-item { display: flex; gap: 1.25rem; align-items: baseline; padding: .65rem 0; border-top: 1px solid var(--rule); margin: 0 !important; }
93.post-list-item time { flex: 0 0 6.5rem; font-size: .92rem; }
94.post-list-item a { color: var(--fg); text-decoration: none; font-weight: 500; }
106.post-list, .detour-list, .tag-toc { list-style: none; padding: 0 !important; margin: var(--s-5) 0 0; }
107.post-list-item { display: flex; gap: var(--s-5); align-items: baseline; padding: var(--s-3) 0; border-top: 1px solid var(--rule); margin: 0 !important; }
108.post-list-item time { flex: 0 0 6.5rem; font-size: var(--t-sm); }
109.post-list-item a { color: var(--fg); text-decoration: none; font-weight: var(--w-medium); }
95110.post-list-item a:hover { text-decoration: underline; }
96.post-list-year { margin: 2.5rem 0 .5rem !important; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
111.post-list-year { margin: var(--s-7) 0 var(--s-2) !important; font-size: var(--t-lg); font-weight: var(--w-heading); letter-spacing: -.02em; }
97112.post-list-year:first-child { margin-top: 0 !important; }
98.detour-list li { padding: .75rem 0; border-top: 1px solid var(--rule); margin: 0 !important; }
99.detour-list a { color: var(--fg); font-weight: 500; text-decoration: none; }
113.detour-list li { padding: var(--s-3) 0; border-top: 1px solid var(--rule); margin: 0 !important; }
114.detour-list a { color: var(--fg); font-weight: var(--w-medium); text-decoration: none; }
100115.detour-list a:hover { text-decoration: underline; }
101.detour-meta { display: block; color: var(--soft); font-size: .92rem; }
102.tag-toc { display: flex; flex-wrap: wrap; gap: .5rem; }
103.tag-toc li { margin: 0 !important; display: flex; align-items: baseline; border-radius: 999px; background: var(--raise); }
104.tag-toc a { display: inline-block; padding: .55rem .25rem .55rem 1rem; border-radius: 999px; color: var(--fg); text-decoration: none; }
116.detour-meta { display: block; color: var(--soft); font-size: var(--t-sm); }
117.tag-toc { display: flex; flex-wrap: wrap; gap: var(--s-2); }
118.tag-toc li { margin: 0 !important; display: flex; align-items: baseline; border-radius: var(--r-pill); background: var(--raise); }
119.tag-toc a { display: inline-block; padding: var(--hit) var(--s-1) var(--hit) var(--s-4); border-radius: var(--r-pill); color: var(--fg); text-decoration: none; }
105120.tag-toc li:hover { background: var(--fg); }
106121.tag-toc li:hover a, .tag-toc li:hover .tag-count { color: var(--bg); }
107.tag-count { color: var(--soft); font-size: .88rem; padding-right: 1rem; font-variant-numeric: tabular-nums; }
122.tag-count { color: var(--soft); font-size: var(--t-sm); padding-right: var(--s-4); font-variant-numeric: tabular-nums; }
108123@media (max-width: 560px) { .post-list-item { flex-direction: column; gap: 0; } .post-list-item time { flex: none; } }
109124
110125/* Home: hero with the tablet */
111126.home { padding: 0; }
112.hero { max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
113.hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; }
114.hero p { margin: 1.5rem 0 0; color: var(--soft); font-size: 1.15rem; max-width: 30rem; }
115.hero .hint { font-size: .95rem; margin-top: 2rem; }
127.hero { max-width: var(--wide); margin: 0 auto; padding: var(--s-section) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-gutter); align-items: center; }
128.hero h1 { margin: 0; font-size: var(--t-display); line-height: 1.02; letter-spacing: -.035em; }
129.hero p { margin: var(--s-5) 0 0; color: var(--soft); font-size: var(--t-md); max-width: 30rem; }
130.hero .hint { font-size: var(--t-sm); margin-top: var(--s-6); }
116131@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
117.tablet { justify-self: center; width: 100%; max-width: 520px; padding: 12px; border-radius: 54px; background: var(--raise); box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -30px rgba(10, 20, 40, .45); position: relative; }
132.tablet { justify-self: center; width: 100%; max-width: 520px; padding: var(--s-3); border-radius: var(--r-device); background: var(--raise); box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -30px rgba(10, 20, 40, .45); position: relative; }
118133.tablet::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--rule); }
119.screen { aspect-ratio: 5 / 6; border-radius: 42px; padding: 2rem 1.5rem 1.25rem; display: flex; flex-direction: column; overflow: hidden;
134.screen { aspect-ratio: 5 / 6; border-radius: calc(var(--r-device) - var(--s-3)); padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; overflow: hidden;
120135 background: radial-gradient(60% 50% at 15% 10%, #4338ca 0, transparent 70%), radial-gradient(55% 45% at 90% 30%, #c2410c 0, transparent 70%), radial-gradient(70% 55% at 30% 95%, #5b7a2e 0, transparent 70%), radial-gradient(50% 50% at 85% 90%, #1c57bd 0, transparent 70%), #10141f; }
121.screen .status { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 600; padding: 0 .5rem 1.5rem; }
136.screen .status { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .85); font-size: var(--t-xs); font-weight: var(--w-semi); padding: 0 var(--s-2) var(--s-5); }
122137.screen ul { list-style: none; margin: 0; padding: 0; }
123.screen .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem .75rem; }
124.screen .apps a, .screen .apps li > div { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; font-size: .78rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
125.screen .apps img, .screen .blank { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 14px -6px rgba(0, 0, 0, .6); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
138.screen .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-3); }
139.screen .apps a, .screen .apps li > div { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; font-size: var(--t-xs); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
140.screen .apps img, .screen .blank { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: var(--r-icon); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 14px -6px rgba(0, 0, 0, .6); transition: transform .25s var(--ease-out); }
126141.screen .apps a:hover img { transform: scale(1.06); }
127.screen .apps span:not(.blank) { margin-top: .4rem; white-space: nowrap; }
142.screen .apps span:not(.blank) { margin-top: var(--s-2); white-space: nowrap; }
128143.screen .blank { display: block; background: rgba(255, 255, 255, .18); border: 1px dashed rgba(255, 255, 255, .5); }
129.screen .dock { margin-top: auto; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 30px; padding: .9rem; display: flex; justify-content: space-around; }
130.screen .dock a { color: #fff; text-decoration: none; font-size: .78rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
131.screen .dock i { width: 56px; height: 56px; border-radius: 22%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.2rem; color: #fff; }
144.screen .dock { margin-top: auto; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--r-lg); padding: var(--s-4); display: flex; justify-content: space-around; }
145.screen .dock a { color: #fff; text-decoration: none; font-size: var(--t-xs); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); }
146.screen .dock i { width: 56px; height: 56px; border-radius: var(--r-icon); display: grid; place-items: center; font-style: normal; font-weight: var(--w-bold); font-size: var(--t-md); color: #fff; }
132147.d-blog { background: #f3efe6; color: #1c1e24 !important; }
133148.d-garden { background: #2e6b3c; }
134149.d-now { background: #6a3a99; }
135150.d-uses { background: #1c1e24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
136@media (max-width: 480px) { .screen { padding: 1.5rem 1rem 1rem; border-radius: 36px; } .screen .apps span { font-size: .68rem; } .screen .dock i { width: 46px; height: 46px; } }
151@media (max-width: 560px) { .screen { padding: var(--s-5) var(--s-4) var(--s-4); border-radius: calc(var(--r-device) - var(--s-4)); } .screen .apps span:not(.blank) { font-size: var(--t-2xs); } .screen .dock i { width: 46px; height: 46px; } }
137152@media (prefers-reduced-motion: reduce) { .screen .apps img { transition: none; } }
138153
139154/* A band per app: the top of each app page */
140.band { background: color-mix(in srgb, var(--tint) 80%, #000); color: #f2f4f8; scroll-margin-top: 0; }
141.band-in { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
142.band.flip .band-in { grid-template-columns: 7fr 5fr; }
143.band.flip .band-copy { order: 2; }
144.band-head { display: flex; align-items: center; gap: 1rem; }
145.band-head img, .band-head .blank { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 20px -8px rgba(0, 0, 0, .5); }
146.band-head .blank { display: block; border: 1px dashed rgba(255, 255, 255, .5); }
147.band h1, .band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
148.band-tag { margin: 1rem 0 0; font-size: 1.25rem; opacity: .85; }
149.band dl { margin: 2rem 0 0; display: grid; gap: 1rem; }
150.band dt { font-weight: 600; }
155.band { background: color-mix(in srgb, var(--tint) 80%, #000); color: #f2f4f8; }
156.band-in { max-width: var(--wide); margin: 0 auto; padding: var(--s-section) var(--pad); display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-gutter); align-items: center; }
157.band-head { display: flex; align-items: center; gap: var(--s-4); }
158.band-head img { width: 64px; height: 64px; border-radius: var(--r-icon); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 20px -8px rgba(0, 0, 0, .5); }
159.band h1 { margin: 0; font-size: var(--t-title); letter-spacing: -.03em; }
160.band-tag { margin: var(--s-4) 0 0; font-size: var(--t-md); opacity: .85; }
161.band dl { margin: var(--s-6) 0 0; display: grid; gap: var(--s-4); }
162.band dt { font-weight: var(--w-semi); }
151163.band dd { margin: 0; opacity: .78; }
152.band-meta { margin: 1.75rem 0 0; font-size: .92rem; opacity: .82; }
153.band-links { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
154.band-links a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 500; }
164.band-meta { margin: var(--s-6) 0 0; font-size: var(--t-sm); opacity: .82; }
165.band-links { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
166.band-links a { display: inline-block; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: var(--w-medium); }
155167.band-links li:first-child a { background: #f2f4f8; color: var(--tint); }
156168.band-links a:hover { background: rgba(255, 255, 255, .26); }
157169.band-links li:first-child a:hover { background: #fff; }
158.band-shot img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
159.band-teaser { background: repeating-linear-gradient(135deg, #2f4858 0 16px, #34505f 16px 32px); }
160.band-teaser .band-in { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3rem; }
161@media (max-width: 820px) { .band-in, .band.flip .band-in { grid-template-columns: 1fr; } .band.flip .band-copy { order: 0; } }
170.band-shot img { display: block; width: 100%; border-radius: var(--r-sm); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
171@media (max-width: 900px) { .band-in { grid-template-columns: 1fr; } }
162172
163.back { margin: 0 0 1.5rem; font-size: .95rem; }
173.back { margin: 0 0 var(--s-5); font-size: var(--t-sm); }
164174.back a { color: inherit; opacity: .75; text-decoration: none; }
165175.back a::before { content: "\2190\00a0"; }
166176.back a:hover { opacity: 1; }
167177
168178/* App pages: screenshots and write-up */
169179.app { padding: 0; }
170.shots { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
171.shots ul { list-style: none; margin: 0; padding: 0 var(--pad) 1rem; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); }
180.shots { max-width: var(--wide); margin: 0 auto; padding: var(--s-section) 0 0; }
181.shots ul { list-style: none; margin: 0; padding: 0 var(--pad) var(--s-4); display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); }
172182.shots li { flex: 0 0 auto; width: min(260px, 66vw); scroll-snap-align: start; }
173183.shots figure { margin: 0; }
174.shots img { display: block; width: 100%; border-radius: 22px; background: var(--raise); }
175.shots figcaption { margin-top: .75rem; font-size: .92rem; color: var(--soft); }
176.shots figcaption strong { display: block; color: var(--fg); font-weight: 600; }
177.app-body { padding-top: clamp(1.5rem, 4vw, 3rem); }
178.app-body .lede { font-size: 1.3rem; line-height: 1.45; letter-spacing: -.01em; margin-top: 0; }
184.shots img { display: block; width: 100%; border-radius: var(--r-md); background: var(--raise); }
185.shots figcaption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--soft); }
186.shots figcaption strong { display: block; color: var(--fg); font-weight: var(--w-semi); }
187.app-body { padding-top: var(--s-top); }
188.app-body .lede { font-size: var(--t-md); line-height: 1.45; letter-spacing: -.01em; margin-top: 0; }
179189
180190/* Home: widgets */
181.widgets { max-width: var(--wide); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) var(--pad) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
182.w { border-radius: 30px; padding: 1.5rem 1.6rem; background: var(--raise); min-width: 0; display: flex; flex-direction: column; }
183.w h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--soft); }
191.widgets { max-width: var(--wide); margin: 0 auto; padding: var(--s-6) var(--pad) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
192.w { border-radius: var(--r-lg); padding: var(--s-5); background: var(--raise); min-width: 0; display: flex; flex-direction: column; }
193.w h2 { margin: 0 0 var(--s-4); font-size: var(--t-base); font-weight: var(--w-semi); letter-spacing: 0; color: var(--soft); }
184194.w h2 a { color: inherit; text-decoration: none; }
185195.w h2 a:hover { text-decoration: underline; }
186196.w ul, .w ol { list-style: none; margin: 0; padding: 0; }
187197.w-writing { grid-column: span 2; grid-row: span 2; }
188.w-lead { display: block; color: var(--fg); text-decoration: none; padding-bottom: 1.25rem; }
189.w-lead strong { display: block; margin-top: .35rem; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
190.w-lead span { display: block; margin-top: .6rem; color: var(--soft); }
198.w-lead { display: block; color: var(--fg); text-decoration: none; padding-bottom: var(--s-5); }
199.w-lead strong { display: block; margin-top: var(--s-1); font-size: var(--t-feature); line-height: 1.1; letter-spacing: -.03em; font-weight: var(--w-heading); }
200.w-lead span { display: block; margin-top: var(--s-2); color: var(--soft); }
191201.w-lead:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
192.w-writing li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
193.w-writing li strong { font-weight: 500; }
202.w-writing li a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
203.w-writing li strong { font-weight: var(--w-medium); }
194204.w-writing li a:hover strong { text-decoration: underline; }
195.w-writing li time { font-size: .88rem; }
196.w-more { margin-top: auto; padding-top: 1rem; font-weight: 500; text-decoration: none; }
205.w-writing li time { font-size: var(--t-sm); }
206.w-more { margin-top: auto; padding-top: var(--s-4); font-weight: var(--w-medium); text-decoration: none; }
197207.w-more::after { content: "\00a0\2192"; }
198208.w-audit { grid-column: span 2; background: #115e59; color: #e6f4f1; }
199209.w-audit h2, .w-audit p { color: #a7d3cc; }
200.w-audit p { margin: 0 0 1.25rem; font-size: .95rem; }
210.w-audit p { margin: 0 0 var(--s-5); font-size: var(--t-sm); }
201211.w-audit p a { color: #fff; }
202.w-audit ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: auto; counter-reset: step; }
203.w-audit ol a { display: flex; flex-direction: column; height: 100%; padding: .75rem .8rem; border-radius: 18px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; position: relative; }
212.w-audit ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: auto; counter-reset: step; }
213.w-audit ol a { display: flex; flex-direction: column; height: 100%; padding: var(--s-3); border-radius: var(--r-md); background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
204214.w-audit ol a:hover { background: rgba(255, 255, 255, .2); }
205.w-audit ol span { font-size: .8rem; color: #a7d3cc; counter-increment: step; }
215.w-audit ol span { font-size: var(--t-xs); color: #a7d3cc; counter-increment: step; }
206216.w-audit ol span::before { content: counter(step) ". "; }
207.w-audit ol strong { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; margin-top: .15rem; }
217.w-audit ol strong { font-weight: var(--w-semi); font-size: var(--t-sm); overflow-wrap: anywhere; margin-top: var(--s-1); }
208218.w-hosted { background: #4c2a85; color: #efe7fb; }
209219.w-hosted h2, .w-hosted p { color: #c9b6ec; }
210.w-hosted .w-num { margin: 0; font-size: 3.4rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: #fff; }
211.w-hosted p { margin: .3rem 0 1rem; font-size: .92rem; }
212.w-hosted ul { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
213.w-hosted ul a { display: inline-block; padding: .6rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: .85rem; }
220.w-hosted .w-num { margin: 0; font-size: var(--t-title); line-height: 1; font-weight: var(--w-bold); letter-spacing: -.04em; color: #fff; }
221.w-hosted p { margin: var(--s-1) 0 var(--s-4); font-size: var(--t-sm); }
222.w-hosted ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
223.w-hosted ul a { display: inline-block; padding: var(--hit) var(--s-3); border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: var(--t-xs); }
214224.w-hosted ul a:hover { background: rgba(255, 255, 255, .24); }
215.w-elsewhere li { padding: .3rem 0; }
216.w-elsewhere a { color: var(--fg); text-decoration: none; font-weight: 500; }
225.w-elsewhere li { padding: var(--s-1) 0; }
226.w-elsewhere a { color: var(--fg); text-decoration: none; font-weight: var(--w-medium); }
217227.w-elsewhere a:hover { text-decoration: underline; }
218.w-elsewhere a.sub { color: var(--soft); font-weight: 400; font-size: .88rem; margin-left: .35rem; }
228.w-elsewhere a.sub { color: var(--soft); font-weight: var(--w-regular); font-size: var(--t-sm); margin-left: var(--s-2); }
219229.w-software { grid-column: 1 / -1; }
220.w-software ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
230.w-software ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
221231.w-software a { display: flex; flex-direction: column; color: var(--fg); text-decoration: none; }
222.w-software i { width: 56px; height: 56px; border-radius: 22%; background: var(--tint); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.4rem; margin-bottom: .65rem; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
232.w-software i { width: 56px; height: 56px; border-radius: var(--r-icon); background: var(--tint); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: var(--w-bold); font-size: var(--t-lg); margin-bottom: var(--s-3); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); transition: transform .25s var(--ease-out); }
223233.w-software a:hover i { transform: translateY(-3px); }
224.w-software strong { font-weight: 600; }
225.w-software span { color: var(--soft); font-size: .88rem; }
226@media (max-width: 1000px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w-writing, .w-audit { grid-column: 1 / -1; grid-row: auto; } .w-software ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
234.w-software strong { font-weight: var(--w-semi); }
235.w-software span { color: var(--soft); font-size: var(--t-sm); }
236@media (max-width: 1100px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w-writing, .w-audit { grid-column: 1 / -1; grid-row: auto; } .w-software ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
227237@media (max-width: 560px) { .widgets { grid-template-columns: 1fr; } .w-audit ol { grid-template-columns: 1fr 1fr; } .w-software ul { grid-template-columns: 1fr 1fr; } .w-writing li a { flex-direction: column; gap: 0; } }
228238@media (prefers-reduced-motion: reduce) { .w-software i { transition: none; } }
229239
230240/* Blog index */
231.wide { max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--pad) 0; }
232.blog-head h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
233.blog-head p { margin: 1rem 0 0; color: var(--soft); font-size: 1.15rem; max-width: 38rem; }
234kbd { font-family: var(--mono); font-size: .85em; background: var(--raise); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; color: var(--fg); }
235.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
236.chips a { display: inline-block; padding: .4rem .95rem; border-radius: 999px; background: var(--raise); color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; }
241.wide { max-width: var(--wide); margin: 0 auto; padding: var(--s-top) var(--pad) 0; }
242.blog-head h1 { margin: 0; font-size: var(--t-display); line-height: 1; letter-spacing: -.04em; }
243.blog-head p { margin: var(--s-4) 0 0; color: var(--soft); font-size: var(--t-md); max-width: 38rem; }
244kbd { font-family: var(--mono); font-size: .85em; background: var(--raise); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-xs); padding: .05em .4em; color: var(--fg); }
245.chips { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
246.chips a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-pill); background: var(--raise); color: var(--fg); text-decoration: none; font-weight: var(--w-medium); font-size: var(--t-sm); }
237247.chips a:hover { background: var(--fg); color: var(--bg); }
238.post-cards { list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3rem) 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
239.post-cards a { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.6rem 1.75rem; border-radius: 30px; background: var(--raise); color: var(--fg); text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
248.post-cards { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); }
249.post-cards a { display: flex; flex-direction: column; height: 100%; padding: var(--s-5) var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--raise); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease-out); }
240250.post-cards li:first-child a { background: var(--fg); color: var(--bg); }
241251.post-cards li:first-child time, .post-cards li:first-child span { color: var(--bg); opacity: .7; }
242252.post-cards a:hover { transform: translateY(-3px); }
243.post-cards strong { margin-top: .5rem; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
244.post-cards li:first-child strong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
245.post-cards span { margin-top: .75rem; color: var(--soft); font-size: .95rem; }
246.year { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
247.year h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; position: sticky; top: 1.5rem; align-self: start; font-variant-numeric: tabular-nums; }
248.year h2 span { display: block; margin-top: .5rem; font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--soft); }
253.post-cards strong { margin-top: var(--s-2); font-size: var(--t-lg); line-height: 1.15; letter-spacing: -.02em; font-weight: var(--w-heading); }
254.post-cards li:first-child strong { font-size: var(--t-feature); }
255.post-cards span { margin-top: var(--s-3); color: var(--soft); font-size: var(--t-sm); }
256.year { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-section); }
257.year h2 { margin: 0; font-size: var(--t-title); line-height: 1; letter-spacing: -.04em; position: sticky; top: var(--s-5); align-self: start; font-variant-numeric: tabular-nums; }
258.year h2 span { display: block; margin-top: var(--s-2); font-size: var(--t-sm); font-weight: var(--w-regular); letter-spacing: 0; color: var(--soft); }
249259ul.post-rows { list-style: none; margin: 0; padding: 0; }
250.post-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; padding: .9rem 0; border-top: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
251.post-rows strong { font-weight: 550; font-size: 1.08rem; }
252.post-rows span { grid-column: 1; color: var(--soft); font-size: .95rem; margin-top: .15rem; }
253.post-rows time { grid-column: 2; grid-row: 1; font-size: .9rem; }
260.post-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
261.post-rows strong { font-weight: var(--w-medium); }
262.post-rows span { grid-column: 1; color: var(--soft); font-size: var(--t-sm); margin-top: var(--s-1); }
263.post-rows time { grid-column: 2; grid-row: 1; font-size: var(--t-sm); }
254264.post-rows a:hover strong { text-decoration: underline; }
255@media (max-width: 900px) { .post-cards { grid-template-columns: 1fr; } .year { grid-template-columns: 1fr; gap: 1rem; } .year h2 { position: static; } }
265@media (max-width: 900px) { .post-cards { grid-template-columns: 1fr; } .year { grid-template-columns: 1fr; gap: var(--s-4); } .year h2 { position: static; } }
256266@media (prefers-reduced-motion: reduce) { .post-cards a { transition: none; } }