-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
2003 lines (1886 loc) Β· 62 KB
/
Copy pathstyle.css
File metadata and controls
2003 lines (1886 loc) Β· 62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Linear Design System β extracted tokens from popular-web-designs
Reused for a cleaner, modern look.
========================================================= */
/* --- Token layer --- */
:root {
--bg: #08090a;
--panel: #0f1011;
--surface: #191a1b;
--surface-hover: #28282c;
--fg: #f7f8f8;
--fg2: #d0d6e0;
--fg3: #8a8f98;
--fg4: #62666d;
--accent: #5e6ad2;
--accent-bright: #7170ff;
--accent-hover: #828fff;
--green: #10b981;
--border: rgba(255,255,255,0.05);
--border2: rgba(255,255,255,0.08);
}
/* --- Reset & base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
font-feature-settings: "cv01", "ss03";
background: var(--bg);
color: var(--fg2);
line-height: 1.60;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* Ensure Linear's signature OpenType features reach every element,
including those with own font-family (monospace, headings). */
h1, h2, h3, h4, h5, h6 {
font-feature-settings: "cv01", "ss03";
}
/* --- Hero atmosphere: radial glow + fine dot grid --- */
.hero {
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -40%;
left: 50%;
transform: translateX(-50%);
width: 640px;
height: 640px;
background: radial-gradient(
circle,
rgba(94, 106, 210, 0.12) 0%,
rgba(94, 106, 210, 0.04) 40%,
transparent 70%
);
pointer-events: none;
z-index: 0;
}
.hero::after {
content: '';
position: absolute;
inset: 0;
background-image: radial-gradient(
circle,
rgba(255, 255, 255, 0.03) 1px,
transparent 1px
);
background-size: 24px 24px;
pointer-events: none;
z-index: 0;
mask-image: radial-gradient(
ellipse 70% 60% at 50% 40%,
black 20%,
transparent 100%
);
-webkit-mask-image: radial-gradient(
ellipse 70% 60% at 50% 40%,
black 20%,
transparent 100%
);
}
.hero > * {
position: relative;
z-index: 1;
}
/* --- Navigation --- */
nav {
position: sticky; top: 0; z-index: 100;
background: var(--panel);
border-bottom: 1px solid var(--border);
padding: 0 24px;
backdrop-filter: blur(12px);
}
nav .inner {
max-width: 960px; margin: 0 auto;
display: flex; align-items: center; justify-content: space-between;
height: 52px;
}
nav .logo {
font-weight: 510; font-size: 14px; color: var(--fg);
letter-spacing: -0.01em; text-decoration: none;
display: flex; align-items: center; gap: 8px;
}
nav .logo span { font-size: 16px; }
nav .logo .logo-mark {
display: inline-flex; align-items: center; justify-content: center;
width: 22px; height: 22px; border-radius: 5px;
background: var(--accent); color: #fff;
font-size: 11px; font-weight: 600; letter-spacing: 0;
font-family: 'Inter', system-ui, sans-serif;
}
nav .links { display: flex; gap: 24px; align-items: center; }
nav .links a {
font-size: 13px; font-weight: 510; color: var(--fg3);
text-decoration: none; transition: color 0.15s;
}
nav .links a:hover { color: var(--fg); }
nav .cta {
background: var(--accent); color: #fff;
border: none; border-radius: 6px;
padding: 6px 14px; font-size: 13px; font-weight: 510;
font-family: inherit;
text-decoration: none; cursor: pointer;
transition: background 0.15s;
}
nav .cta:hover { background: var(--accent-hover); }
/* Current-page indicator β "you are here" on a multi-page site.
nav.js adds .is-current to whichever link matches the page's
path, in BOTH the desktop bar and the mobile collapse panel.
Linear's state-is-the-signal rule: the current section reads at
full primary ink (--fg) where the rest stay muted (fg3), and a
single 2px accent underline β reusing the existing --accent token,
the same width as the .progress-bar β anchors it. No new box,
icon, or pill; the ink shift IS the hierarchy, the rule IS the
location. hover is intentionally suppressed on the current link
so the "you are here" state can not flicker as the cursor passes. */
nav .links a.is-current {
color: var(--fg);
position: relative;
}
nav .links a.is-current::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: -16px;
height: 2px;
background: var(--accent);
border-radius: 1px 1px 0 0;
}
/* Keep the CTA out of the current-link treatment β it is an
outbound action (Hermes Agent repo), never a section we are
"on," so it never receives .is-current from nav.js. The rule
above is scoped to plain .links a, not .links a.cta. */
nav .links a.is-current:hover { color: var(--fg); }
/* Keyboard focus on primary site-level interactive elements.
Reuses the same --accent-bright inset 2px ring recipe already
established for .post-row /.topic-chip /.project-card, so every
clickable surface on the site reads as focusable in the same
register. Linear is meticulous about keyboard focus visibility β
without these rules a keyboard user navigating the hero CTAs, the
desktop nav links, the nav CTA, or the article "Back" link sees
no focus indicator at all (the browser default outline is
suppressed visually against the dark panel). Two shapes only:
text links get an inset offset ring; solid buttons get a 2px
outline ring outside their own fill so the indicator is visible
against the accent fill. No new tokens, no new boxes. */
nav .links a:focus-visible,
.btn-ghost:focus-visible,
.back:focus-visible,
.back-link a:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
border-radius: 4px;
color: var(--fg);
}
nav .cta:focus-visible,
.btn-primary:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
border-radius: 6px;
}
/* Keep the same ring for the logo so heading-brand navigation
is reachable by keyboard the same way as the page links. */
nav .logo:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
border-radius: 4px;
color: var(--fg);
}
/* Footer links close the loop β same recipe, scoped so the
site-wide footer reads consistently with the rest of the chrome. */
footer .right a:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
border-radius: 2px;
color: var(--fg);
}
/* --- Footer --- */
footer {
max-width: 960px; margin: 0 auto;
padding: 32px 24px;
border-top: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: center;
}
footer .left { font-size: 13px; color: var(--fg4); }
footer .right { display: flex; gap: 20px; }
footer .right a {
font-size: 13px; font-weight: 510; color: var(--fg3);
text-decoration: none; transition: color 0.15s;
}
footer .right a:hover { color: var(--fg); }
/* --- Shared components --- */
.pill {
display: inline-block;
background: transparent; color: var(--fg4);
border: 1px solid rgba(255,255,255,0.06); border-radius: 9999px;
padding: 2px 10px 2px 8px;
font-size: 12px; font-weight: 510;
letter-spacing: -0.01em;
transition: border-color 0.15s, color 0.15s;
}
.post-row:hover .pill {
border-color: rgba(255,255,255,0.08);
color: var(--fg3);
}
/* =========================================================
HOME PAGE β updated with enhanced spacing and better typography hierarchy
========================================================= */
/* Hero β no decorative top strip. Linear reserves brand indigo
for interactive/CTA elements only, never as a decorative rail.
The "Active" status badge above the headline carries the brand
accent where it earns its place. Replaced with a whisper-thin
hairline that reads as a document edge, not a decoration. */
.hero {
max-width: 720px; margin: 0 auto;
padding: 140px 24px 100px;
text-align: center;
}
.hero-label {
display: inline-flex; align-items: center; gap: 8px;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px; font-weight: 500;
color: var(--accent-bright);
letter-spacing: 0.05em; text-transform: uppercase;
margin-bottom: 32px;
}
.hero-label .dot {
width: 6px; height: 6px; border-radius: 50%;
background: var(--green);
}
.hero h1 {
font-size: 64px; font-weight: 510; line-height: 1.00;
letter-spacing: -1.408px; color: var(--fg);
margin-bottom: 24px;
}
.hero .subtitle {
font-size: 18px; font-weight: 400; line-height: 1.60;
letter-spacing: -0.165px; color: var(--fg3);
max-width: 520px; margin: 0 auto 40px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; }
/* Buttons */
.btn-primary {
background: var(--accent); color: #fff; border: none;
border-radius: 6px; padding: 10px 20px;
font-family: inherit; font-size: 15px; font-weight: 510;
cursor: pointer; text-decoration: none;
transition: background 0.15s;
letter-spacing: -0.165px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
background: rgba(255,255,255,0.02); color: var(--fg2);
border: 1px solid var(--border2); border-radius: 6px;
padding: 10px 20px; font-family: inherit;
font-size: 15px; font-weight: 510; cursor: pointer;
text-decoration: none; transition: all 0.15s;
letter-spacing: -0.165px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
/* Sections */
.section {
max-width: 960px; margin: 0 auto;
padding: 0 24px 80px;
}
.section-title {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px; font-weight: 500; color: var(--fg4);
letter-spacing: 0.05em; text-transform: uppercase;
margin-bottom: 32px;
}
/* Section dividers β Linear-style hairline opener.
The home page is a Decide/Learn surface that stacks four
content sections. Without distinction they read as one
undifferentiated scroll. A hairline top rule + a tiny mono
index ("01 β Capabilities") gives each section a clear
visual opening, exactly the editorial rhythm Linear uses
on its landing pages. Inherits the existing hairline token
(--border2) already used by .post-year and .projects-cat-label;
no new boxes, icons, or colors. */
.has-divider {
padding-top: 56px;
margin-top: 24px;
position: relative;
}
.has-divider::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--border2);
}
/* The numbered index β Linear's "01 β Capabilities" rhythm.
The mono label already sets font/size/weight; the only
addition is putting the index in accent-bright so it reads
as the section's anchor while the title stays muted. The
em-dash separator inherits the muted tone automatically.
One tiny span, one color swap, no new box. */
.section-index {
color: var(--accent-bright);
}
/* Capabilities */
.capability {
padding: 24px 0;
border-bottom: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: baseline;
gap: 24px;
transition: padding 0.2s ease, border-color 0.2s ease;
border-radius: 0;
}
.capability:first-of-type { padding-top: 0; }
.capability:last-of-type { border-bottom: none; }
.capability:hover {
padding-left: 12px;
border-color: var(--border2);
}
.capability-name {
font-size: 20px; font-weight: 590; color: var(--fg);
letter-spacing: -0.24px; white-space: nowrap;
}
.capability-desc {
font-size: 15px; font-weight: 400; color: var(--fg3);
line-height: 1.60; letter-spacing: -0.165px;
max-width: 480px; text-align: right;
}
/* Tech stack */
.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; }
/* About */
.about {
max-width: 720px; margin: 0 auto;
padding: 0 24px 80px;
}
.about p {
font-size: 16px; font-weight: 400; color: var(--fg2);
line-height: 1.50; margin-bottom: 16px;
}
.about a { color: var(--accent-bright); text-decoration: none; }
.about a:hover { color: var(--accent-hover); }
/* =========================================================
BLOG INDEX
========================================================= */
.page-header {
max-width: 720px; margin: 0 auto;
padding: 96px 24px 64px;
}
.page-header h1 {
font-size: 48px; font-weight: 510; line-height: 1.00;
letter-spacing: -1.056px; color: var(--fg);
margin-bottom: 12px;
}
.page-header p {
font-size: 18px; color: var(--fg3);
letter-spacing: -0.165px; font-weight: 400;
line-height: 1.60;
}
/* Year heading β top-level grouping */
.post-year {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px; font-weight: 500; color: var(--accent-bright);
letter-spacing: 0.08em; text-transform: uppercase;
margin-bottom: 32px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border2);
}
/* Month heading β secondary grouping */
.post-month {
font-size: 13px; font-weight: 510; color: var(--fg4);
letter-spacing: 0.04em; text-transform: uppercase;
margin: 40px 0 16px;
padding-bottom: 0;
scroll-margin-top: 72px;
}
/* Month navigation β compact in-page jump links.
Explore-surface affordance: lets the reader see the content's
time span at a glance and skip to a month without scrolling.
Linear-style restraint: hairline separator dots, muted mono
rhythm, no boxes or accent fills. */
.month-nav {
display: flex;
align-items: center;
gap: 10px;
margin-top: 20px;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
font-weight: 500;
color: var(--fg4);
letter-spacing: 0.02em;
}
.month-nav a {
color: var(--fg3);
text-decoration: none;
transition: color 0.15s;
padding: 2px 0;
}
.month-nav a:hover {
color: var(--fg);
}
.month-nav a:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
border-radius: 2px;
}
.month-nav span {
color: var(--fg4);
opacity: 0.5;
font-size: 10px;
}
/* Empty month indicator */
.post-empty {
font-size: 14px; color: var(--fg4);
padding: 8px 0 24px;
font-style: normal;
}
/* =========================================================
TOPIC FILTER CHIPS
The filter affordance for the blog index. Two states only:
default (outline, muted) and active (solid accent). No
third hover-decoration state, no gradient, no shadow β the
state itself is the signal. Linear-style restraint.
========================================================= */
.topics {
max-width: 720px;
margin: 0 auto;
padding: 0 24px 16px;
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.topic-chip {
font-family: 'Inter', system-ui, sans-serif;
font-size: 13px;
font-weight: 510;
letter-spacing: -0.01em;
color: var(--fg3);
background: transparent;
border: 1px solid var(--border2);
border-radius: 9999px;
padding: 5px 14px;
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
line-height: 1.4;
-webkit-appearance: none;
appearance: none;
}
.topic-chip:hover {
color: var(--fg);
border-color: rgba(255, 255, 255, 0.16);
}
.topic-chip:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
}
.topic-chip.is-active {
color: #fff;
background: var(--accent);
border-color: var(--accent);
}
.topic-chip.is-active:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
color: #fff;
}
/* Filter result count β small mono label next to the chips */
.topic-count {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
font-weight: 500;
color: var(--fg4);
letter-spacing: 0.02em;
margin-left: auto;
padding-left: 8px;
}
@media (max-width: 640px) {
.topic-count { display: none; }
}
/* Empty filter state β when a topic has zero matches.
Uses the existing .post-empty tone but scoped to the
filtered result region so it reads as "no results," not
a missing page section. */
.filter-empty {
text-align: center;
padding: 48px 24px;
color: var(--fg4);
font-size: 15px;
line-height: 1.6;
}
.filter-empty .filter-empty-hint {
font-size: 13px;
margin-top: 8px;
color: var(--fg4);
}
/* When a topic filter is active, fade year/month dividers that
have no visible rows beneath them. Keeps the filtered view
tidy without collapsing layout. */
[data-divider].is-dimmed {
opacity: 0.3;
}
/* Respect reduced motion for chip state transitions */
@media (prefers-reduced-motion: reduce) {
.topic-chip { transition: none; }
}
/* Post list β Linear issue-list pattern, two-column layout */
.posts {
max-width: 720px; margin: 0 auto;
padding: 0 24px 80px;
}
.post-row {
display: flex;
text-decoration: none;
padding: 16px 0;
border-bottom: 1px solid var(--border);
transition: background 0.15s ease;
align-items: flex-start;
gap: 20px;
}
/* Keep Reading section β Align with post list styling */
.keep-reading {
max-width: 720px; margin: 0 auto;
padding: 0 24px 80px;
}
/* Keep Reading section β the "where next" moment after an article.
This is the only section heading on the site that previously broke
the established Linear mono-label + hairline rhythm used by the home
page ("01 β Capabilities"), the blog index (.post-year), and the
projects page (.projects-cat-label). Promoting it to the same recipe
means a reader finishing any of the 50+ articles sees a consistent
section-opening cue across the whole site, with no HTML changes β
the <h2 class="keep-reading-title"> already exists, injected by
keep-reading.js. The "Keep reading" label in JetBrains Mono caps +
accent-bright, sitting above a hairline, reads as the start of a new
surface rather than a heading floating in the middle of one. */
.keep-reading {
padding-top: 24px;
}
.keep-reading .keep-reading-title {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px; font-weight: 500;
color: var(--accent-bright);
letter-spacing: 0.08em; text-transform: uppercase;
margin-bottom: 28px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border2);
}
.keep-reading .post-row {
/* reuse existing post-row styling for consistency */
}
.post-row:first-child { padding-top: 0; }
.post-row:last-child { border-bottom: none; }
.post-row:hover {
background: rgba(255,255,255,0.02);
margin: 0 -16px;
padding-left: 16px;
padding-right: 16px;
border-radius: 6px;
}
.post-row:hover .post-title { color: var(--fg); }
.post-row:active {
background: rgba(255,255,255,0.04);
}
/* Keyboard focus β currently absent. Linear's issue list rows show a
clear focus treatment so keyboard users know which row they'd open.
This is an Explore-surface affordance: the affordance IS the signal.
Inset accent ring + tightened surface, no icon or color slop. */
.post-row:focus-visible {
outline: none;
background: rgba(255,255,255,0.02);
border-radius: 6px;
margin: 0 -16px;
padding-left: 16px;
padding-right: 16px;
box-shadow: inset 0 0 0 2px rgba(113, 112, 255, 0.45);
}
/* Post type distinction β daily news vs feature articles
Daily news rows use a slightly muted treatment so feature
articles stand out by contrast. Typography-first: lighter
title weight, not a different color or box. */
.post-row.is-news .post-title {
font-weight: 400;
color: var(--fg3);
}
.post-row.is-news:hover .post-title {
color: var(--fg2);
}
/* daily-news pill β accent tint to signal recurring series */
.pill-news {
color: var(--accent-bright);
border-color: rgba(94, 106, 210, 0.20);
}
/* =========================================================
FRESHNESS INDICATOR β newest post only
A small emerald status dot + mono "new" micro-label,
shown next to the date on the single most-recent post
in the blog index. Follows Linear's status-dot + Mono
Label pattern (emerald #27a644 for "in progress"), fired
for ~3 days after publish so it self-maintains as new
posts land. No new boxes, icons, or color slop β just
a dot the eye can land on when returning to the list.
========================================================= */
.fresh {
display: inline-flex;
align-items: center;
gap: 5px;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
font-weight: 500;
color: var(--green);
letter-spacing: 0.04em;
text-transform: lowercase;
margin-left: 8px;
vertical-align: 2px;
white-space: nowrap;
}
.fresh .fresh-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
flex-shrink: 0;
}
.fresh.is-stale { display: none; }
.post-date {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px; font-weight: 500;
color: var(--fg4);
letter-spacing: 0.02em;
padding-top: 5px;
min-width: 56px;
flex-shrink: 0;
}
/* Content column β title, excerpt, tags */
.post-content {
flex: 1;
min-width: 0;
}
.post-title {
font-size: 16px; font-weight: 510; color: var(--fg2);
letter-spacing: -0.01em; line-height: 1.40;
margin-bottom: 4px;
transition: color 0.15s;
}
.post-excerpt {
font-size: 14px; color: var(--fg3); line-height: 1.55;
letter-spacing: -0.01em; font-weight: 400;
margin-bottom: 8px;
max-width: 540px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* =========================================================
ARTICLE PAGES β unified reading experience
========================================================= */
/* Back link */
.back-link {
max-width: 720px; margin: 0 auto;
padding: 0 24px 32px;
}
.back-link a {
font-size: 14px; font-weight: 510; color: var(--fg3);
text-decoration: none; transition: color 0.15s;
display: inline-flex; align-items: center; gap: 6px;
}
.back-link a:hover { color: var(--fg); }
/* Legacy .back selector (for old-style posts) */
.back {
font-size: 13px; font-weight: 510; color: var(--fg4);
text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
margin-bottom: 32px; transition: color 0.15s;
}
.back:hover { color: var(--fg2); }
/* Article header β the unified pattern */
.article-header {
max-width: 720px; margin: 0 auto;
padding: 64px 24px 40px;
}
.article-header .meta {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 13px; font-weight: 500; color: var(--fg4);
letter-spacing: 0.02em;
margin-bottom: 20px;
display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
/* De-emphasize the read-time as the secondary half of the pair,
so the date reads as the anchored label and "X min read" recedes.
Linear's Mono Label spec: the primary token carries the row,
the secondary one dims. No new box, color, or icon β just opacity.
The real middot separator turns the two spans into one typographic
pair, matching Linear's "label Β· detail" rhythm. */
.article-header .meta .read { opacity: 0.7; }
.article-header .meta .read::before {
content: 'Β·';
margin-right: 2px;
opacity: 0.5;
color: var(--fg4);
}
.article-header h1 {
font-size: 40px; font-weight: 510; line-height: 1.10;
letter-spacing: -0.704px; color: var(--fg);
margin-bottom: 16px;
}
.article-header .subtitle {
font-size: 18px; color: var(--fg3);
letter-spacing: -0.165px; font-weight: 400;
line-height: 1.60; margin-bottom: 16px;
}
.article-header .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
/* Legacy inline article styles (old-style posts using <article> + bare elements) */
article {
max-width: 720px; margin: 0 auto;
padding: 64px 24px 48px;
}
article .meta {
font-size: 13px; color: var(--fg4); margin-bottom: 24px;
display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
article .meta .read { opacity: 0.7; }
article .meta .read::before {
content: 'Β·';
margin-right: 2px;
opacity: 0.5;
color: var(--fg4);
}
article h1 {
font-size: 40px; font-weight: 510; line-height: 1.10;
letter-spacing: -0.704px; color: var(--fg);
margin-bottom: 16px;
}
/* Article body β shared reading typography */
.article-body {
max-width: 720px; margin: 0 auto;
padding: 0 24px 80px;
}
/* Also target bare article child elements for old-style posts */
.article-body h2,
article h2,
.article-body h3,
article h3 {
position: relative;
}
/* H2 β section anchors. A heading-level permalink glyph that stays
muted by default and sharpens on hover/focus, so it never competes
with the prose until the reader reaches for it. Pure Linear: a mono
token, the quaternary text tone, no box, no icon, no color slop.
The anchor shifts the heading right by its own width on hover so
the glyph occupies space ahead of the title rather than colliding
with it β Linear's "compressed headline, expanded surroundings" at
the section level. */
.article-body h2,
article h2 {
font-size: 24px; font-weight: 590; color: var(--fg);
letter-spacing: -0.288px; line-height: 1.30;
margin: 56px 0 16px;
scroll-margin-top: 72px;
transition: padding-left 0.15s ease;
}
.article-body h3,
article h3 {
font-size: 17px; font-weight: 590; color: var(--fg2);
letter-spacing: -0.204px; line-height: 1.33;
margin: 36px 0 12px;
scroll-margin-top: 72px;
transition: padding-left 0.15s ease;
}
/* H4 β the missing fourth tier of the article reading ladder.
h1/h2/h3 each step down deliberately (40 β 24 β 17px, --fg β --fg2,
weight 590 holding to 17px, then hierarchy handed to scale + ink).
h4 had no rule at all, so any article using <h4> fell through to
the browser default β a bold black 16-ish px block that broke the
rhythm the three tiers above it had established. This closes the
gap with one more tier in the same register: smaller than h3, ink
one step dimmer (fg3), the same weight discipline (510, matching
nav/section-label weight), tighter leading to read as a compact
sub-heading rather than a new section. No box, no icon, no color β
scale and ink carry the hierarchy, exactly the way h2 and h3 do.
Margin is compressed versus h3 (28px top / 10px bottom) so a run
of h4s under one h2/h3 reads as a list of sub-points, not a fresh
section each. */
.article-body h4,
article h4 {
font-size: 15px; font-weight: 510; color: var(--fg3);
letter-spacing: -0.18px; line-height: 1.40;
margin: 28px 0 10px;
scroll-margin-top: 72px;
}
/* The permalink glyph β rendered via ::before on a JS-inserted <a>
wrapper so it is keyboard-focusable and copies a real anchor URL.
Lives outside the heading text flow as an absolutely-positioned
mono mark on its leading edge, mirroring how Linear places a mono
label to the left of a section title. */
.article-body h2 > .heading-anchor,
article h2 > .heading-anchor,
.article-body h3 > .heading-anchor,
article h3 > .heading-anchor {
position: absolute;
left: 0;
transform: translateX(-100%);
padding-right: 8px;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.75em;
font-weight: 500;
line-height: inherit;
color: var(--fg4);
text-decoration: none;
opacity: 0;
transition: opacity 0.15s ease, color 0.15s ease;
-webkit-user-select: none;
user-select: none;
}
/* Shift the heading text right to make room for the glyph on hover, so
the title never reflows or jumps β the glyph opens a slot for itself. */
.article-body h2:hover,
article h2:hover,
.article-body h3:hover,
article h3:hover {
padding-left: 22px;
}
.article-body h2:hover > .heading-anchor,
article h2:hover > .heading-anchor,
.article-body h3:hover > .heading-anchor,
article h3:hover > .heading-anchor,
.article-body h2 > .heading-anchor:focus-visible,
article h2 > .heading-anchor:focus-visible,
.article-body h3 > .heading-anchor:focus-visible,
article h3 > .heading-anchor:focus-visible {
opacity: 1;
color: var(--accent-bright);
}
.article-body h2 > .heading-anchor:focus-visible,
article h2 > .heading-anchor:focus-visible,
.article-body h3 > .heading-anchor:focus-visible,
article h3 > .heading-anchor:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 4px;
border-radius: 2px;
}
.article-body p,
article p {
font-size: 16px; font-weight: 400; color: var(--fg2);
line-height: 1.70; margin-bottom: 24px;
letter-spacing: -0.01em;
}
.article-body a,
article a:not(.back):not(.back-link a):not(.cta):not(.logo):not(.post-row):not(footer a):not(nav a) {
color: var(--accent-bright); text-decoration: none;
transition: color 0.15s;
}
.article-body a:hover,
article a:not(.back):not(.back-link a):not(.cta):not(.logo):not(.post-row):not(footer a):not(nav a):hover {
color: var(--accent-hover);
}
.article-body ul, .article-body ol,
article ul, article ol {
margin: 0 0 24px 20px;
font-size: 16px; color: var(--fg2); line-height: 1.70;
letter-spacing: -0.01em;
}
.article-body li,
article li { margin-bottom: 8px; }
/* Inline code β Linear accent violet on dark surface */
.article-body code,
article code {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 14px; background: var(--surface);
border: 1px solid var(--border2);
border-radius: 4px; padding: 2px 6px;
color: var(--accent-bright);
}
/* Code blocks β refined for readability with language labels */
.article-body pre,
article pre {
background: var(--surface);
border: 1px solid var(--border2);
border-radius: 8px;
padding: 20px 24px;
margin: 28px 0;
overflow-x: auto;
position: relative;
}
.article-body pre code,
article pre code {
background: none; border: none; padding: 0;
font-size: 13px; line-height: 1.65;
color: var(--fg2);
display: block;
}
/* Code block language label β Linear Mono Label spec */
.article-body pre[data-lang]::before,
article pre[data-lang]::before {
content: attr(data-lang);
position: absolute; top: 10px; right: 14px;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px; font-weight: 500;
color: var(--fg4);
text-transform: lowercase;
letter-spacing: 0.02em;
pointer-events: none;
}
/* Blockquote β Linear full-enclosure treatment, no left-border accent rail.
The prior border-left: 3px solid accent was an accent-rail slop tell
(decoration pretending to be organization). Linear encloses callouts
with a uniform hairline border and lets indentation + muted ink carry
the "this is a quote" grammar. Indentation is preserved via the left
padding so the row reads as set-off prose, not as a colored strip. */
.article-body blockquote,
article blockquote {
border: 1px solid var(--border2);
border-radius: 8px;
padding: 14px 20px;
margin: 28px 0;
color: var(--fg3);
}
.article-body blockquote p,
article blockquote p {
margin-bottom: 0; font-size: 15px; color: var(--fg3);
font-style: normal; line-height: 1.70;
}
.article-body blockquote p + p,
article blockquote p + p {
margin-top: 8px;
}
/* Article end-tags */