-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1742 lines (1642 loc) · 69 KB
/
Copy pathindex.html
File metadata and controls
1742 lines (1642 loc) · 69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Katehuuh / Nekochu</title>
<meta name="description" content="Vibe code, models, and a kitten benchmark.">
<meta name="color-scheme" content="dark">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500&family=Geist+Mono:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ctext%20y%3D%2280%22%20font-size%3D%2280%22%3E%F0%9F%90%B1%3C/text%3E%3C/svg%3E">
<!-- Legacy IE-style "shortcut icon" pointed at the same data URI - Chrome
and Firefox still fall back to GET /favicon.ico when only the modern
rel="icon" is present, which logs a 404 in the console because GitHub
Pages doesn't serve a real .ico file. This second link short-circuits
that default request. -->
<link rel="shortcut icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ctext%20y%3D%2280%22%20font-size%3D%2280%22%3E%F0%9F%90%B1%3C/text%3E%3C/svg%3E">
<style>
/* Design tokens. Warm-tone dark mode, coral-orange primary, soft rose secondary.
Fraunces (display), Manrope (body), Geist Mono (mono). */
:root {
/* === Colors ============================================================ */
--bg: #0a0a0e; /* page bg, slight blue undertone */
--bg-1: #0f0f15; /* cards / panels */
--bg-2: #14141a; /* elevated inputs, popovers */
--bg-3: #1c1c24; /* hover surface */
--line: rgba(255, 255, 255, 0.07); /* hairlines */
--line-2: rgba(255, 255, 255, 0.13); /* dividers */
--text: #f4f4f6; /* primary text */
--text-2: rgba(244, 244, 246, 0.72); /* secondary - bumped from .62 */
--text-3: rgba(244, 244, 246, 0.55); /* muted / labels - bumped from .36 (WCAG AA) */
--accent: #ff6b35; /* coral-orange - primary brand */
--accent-2: #ffa8b8; /* soft rose - secondary highlight */
--accent-3: #f5cf5e; /* warm gold - tertiary, sparingly */
--accent-soft: rgba(255, 107, 53, 0.12);
--accent-line: rgba(255, 107, 53, 0.42);
--danger: #ff6f6f;
--success: #7dd49b;
/* === Fonts ============================================================= */
--serif: "Fraunces", ui-serif, Georgia, serif; /* display */
--sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
--mono: "Geist Mono", ui-monospace, "JetBrains Mono", "SF Mono", Consolas, monospace;
/* === Type - single token for small UI text; headings use inline rem ==== */
--fs-sm: 17px;
--lh-tight: 1.2;
/* === Spacing & radii - only what's used ================================ */
--sp-2: 8px;
--r-sm: 10px;
--r-lg: 22px;
--r-pill: 999px;
/* === Elevation ========================================================= */
--shadow-1: 0 1px 3px rgba(0, 0, 0, 0.3);
--shadow-2: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
--shadow-3: 0 18px 38px -12px rgba(0, 0, 0, 0.6);
--shadow-glow: 0 0 28px -6px rgba(255, 107, 53, 0.36);
--shadow-coral:0 18px 44px -14px rgba(255, 107, 53, 0.42), 0 6px 18px -8px rgba(255, 107, 53, 0.18);
/* === Motion ============================================================ */
--ease-bounce: cubic-bezier(.34, 1.56, .64, 1); /* overshoot - popovers, cards on hover */
/* === Layout ============================================================ */
--max: 980px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg); color: var(--text); font-family: var(--sans);
font-size: 18px; line-height: 1.6;
-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
}
main { max-width: var(--max); margin: 0 auto; padding: 2.4rem 1.4rem 2rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffb98d; }
::selection { background: var(--accent-soft); color: var(--accent); }
.hero { text-align: center; margin-bottom: 2.4rem; }
.avatar-wrap {
/* Block + fit-content + auto margins so the wrapper sits centered on
its own line (mirroring how the bare <img> behaved before the wrap)
and shrinks to the avatar's size, which is what positions the
absolute-positioned badge against the avatar's edge. */
position: relative; display: block;
width: fit-content; margin: 0 auto .9rem;
}
.avatar {
width: 110px; height: 110px; border-radius: 50%; display: block;
box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(255, 107, 53, 0.18);
}
/* Visit counter sits at the bottom-right of the avatar like a status
bubble. No pill background, no border - just inline glyph + number,
subtle tint so it reads as ambient info, not a button. */
.visits-badge {
position: absolute; bottom: 2px; right: -4px;
display: inline-flex; align-items: center; gap: .15rem;
padding: 2px 6px; border-radius: 999px;
font: 600 .8rem/1 ui-sans-serif, system-ui, sans-serif;
font-variant-numeric: tabular-nums;
color: var(--accent); background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(4px);
pointer-events: none; user-select: none;
white-space: nowrap;
}
.visits-badge .emoji { font-size: .95rem; line-height: 1; }
.visits-badge.hidden { display: none; }
/* Wraps rather than overflowing: five 48px circles need 256px, which a
phone at 200% zoom does not have. */
.icon-nav { display: inline-flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }
/* Direct-child selectors only - descendant `.icon-nav a` would also match
popover pills and force them to 48x48 circles. */
.icon-nav > a, .icon-nav > .icon-pop-wrap > a {
display: inline-flex; align-items: center; justify-content: center;
width: 48px; height: 48px; border-radius: 999px;
border: 1px solid var(--line); color: var(--text);
transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.icon-nav > a:hover, .icon-nav > .icon-pop-wrap > a:hover {
border-color: var(--accent-line); background: var(--accent-soft);
color: var(--accent); transform: translateY(-2px);
}
.icon-nav svg { display: block; }
.icon-nav .emoji { font-size: 1.35rem; line-height: 1; display: inline-block; -webkit-text-fill-color: initial; }
/* Popover above icon, sibling of icon-link so item clicks don't fire icon's href.
2-col grid with content-sized columns keeps rows visually balanced (no orphan
long pill stranded on its own row). Section headers + orphan items span both. */
.icon-pop-wrap { position: relative; display: inline-flex; }
.icon-pop-wrap .pop-list {
position: absolute;
bottom: calc(100% + 6px); left: 50%;
width: max-content; max-width: min(540px, calc(100vw - 24px));
max-height: 50vh;
margin: 0; padding: 6px;
list-style: none;
display: grid; grid-template-columns: auto auto;
justify-content: center; justify-items: center;
column-gap: 6px; row-gap: 2px;
background: rgba(22, 22, 26, 0.94);
-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
border: 1px solid var(--accent-line);
border-radius: var(--r-sm);
box-shadow: var(--shadow-3);
font: 400 var(--fs-sm)/var(--lh-tight) var(--sans);
overflow-x: hidden; overflow-y: auto;
opacity: 0; pointer-events: none;
transform: translateX(-50%) translateY(8px) scale(0.96);
transition: opacity .18s ease, transform .22s var(--ease-bounce);
z-index: 200;
}
.icon-pop-wrap .pop-list li {
opacity: 0;
transform: translateY(6px);
transition: opacity .22s ease, transform .32s var(--ease-bounce);
}
.icon-pop-wrap .pop-list a {
display: inline-block;
padding: 3px 12px;
border-radius: var(--r-pill);
background: var(--accent-soft);
border: 1px solid var(--accent-line);
color: var(--text);
white-space: nowrap;
text-decoration: none;
transition: background .14s, color .14s, border-color .14s;
}
.icon-pop-wrap .pop-list a:hover {
background: rgba(255, 107, 53, 0.22);
color: var(--accent);
border-color: var(--accent);
}
.icon-pop-wrap .pop-list .section-header,
.icon-pop-wrap .pop-list .section-orphan {
grid-column: 1 / -1;
}
.icon-pop-wrap .pop-list .section-header {
padding: 2px 0 0;
font: 600 var(--fs-sm)/1 var(--mono);
letter-spacing: .08em;
text-transform: uppercase;
color: var(--accent);
}
.icon-pop-wrap .pop-list .section-header:first-child { padding-top: 0; }
.icon-pop-wrap.show-pop .pop-list,
.icon-pop-wrap:focus-within .pop-list {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) translateY(0) scale(1);
}
.icon-pop-wrap.show-pop .pop-list li,
.icon-pop-wrap:focus-within .pop-list li {
opacity: 1;
transform: translateY(0);
transition-delay: var(--idx, 0ms);
}
/* Decorative chain-line connecting icon to popover. Animated grow on open;
removed when .show-pop is gone (no separate fade-out needed). */
.icon-pop-wrap.show-pop::before {
content: '';
position: absolute;
bottom: 100%; left: calc(50% - 0.5px);
width: 1px; height: 6px;
background-image: linear-gradient(to top, var(--accent), var(--accent) 50%, transparent 50%);
background-size: 100% 3px;
pointer-events: none;
z-index: 199;
transform-origin: bottom;
animation: tree-chain-grow .25s var(--ease-bounce);
}
@keyframes tree-chain-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* Inline search field that lives next to the tag-filter pill */
.inline-search {
appearance: none;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.04);
border-radius: 999px;
padding: .35rem .95rem;
color: var(--text);
font-family: var(--mono);
font-size: var(--fs-sm);
letter-spacing: .04em;
width: 170px;
-webkit-backdrop-filter: blur(12px) saturate(140%);
backdrop-filter: blur(12px) saturate(140%);
outline: none;
transition: border-color .2s ease, background-color .2s ease, width .25s ease;
}
.inline-search::placeholder { color: var(--text-3); }
.inline-search:hover { border-color: rgba(255, 255, 255, 0.18); }
.inline-search:focus {
border-color: var(--accent-line);
background: rgba(255, 138, 76, 0.08);
width: 200px;
}
.is-hidden-by-search { display: none !important; }
section { margin-block: 2rem; }
section h2 {
font-family: var(--serif); font-weight: 500;
font-size: clamp(1.55rem, 3vw, 1.95rem);
letter-spacing: -0.018em; margin: 0 0 .35rem;
display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
}
/* Combined heading: "Katehuuh · vibe code".
.me - display serif name (inherits h2 clamp size + Fraunces).
.topic - small mono lowercase, mirrors the tagline rhythm.
.h2-dot - coral separator, sized between the two for an optical balance.
The asterisk hovers a tooltip revealing the alias (Nekochu) without spelling it out. */
section h2 .vibe-heading { display: inline-flex; align-items: baseline; gap: .35em; flex-wrap: nowrap; }
section h2 .me { color: var(--text); }
section h2 .topic {
color: var(--text-3);
font: 500 var(--fs-sm)/1 var(--mono);
letter-spacing: .12em;
text-transform: lowercase;
align-self: center;
}
section h2 .h2-dot {
color: var(--accent);
font-weight: 500;
align-self: center;
}
section h2 .alias-mark {
position: relative;
top: -0.42em;
display: inline-block;
margin-left: .05em;
color: var(--accent);
font: 500 .42em/1 var(--mono);
letter-spacing: 0;
cursor: help;
text-decoration: none;
border: 0;
transform-origin: bottom left;
animation: mark-pop .55s var(--ease-bounce) .55s both;
}
@keyframes mark-pop {
from { opacity: 0; transform: scale(0) rotate(-25deg); }
to { opacity: 1; transform: scale(1) rotate(0); }
}
/* ─── Liquid-glass tag filter ─────────────────────────────────────────
Three layers stacked to fake Apple's "lip profile" + Snell-law bezel
without a real-time displacement shader:
1. multi-step inset box-shadow for the convex rim (light catches the
top edge twice - outer specular ring + inner highlight - same as a
pinched glass cross-section)
2. ::before conic-gradient specular highlight that tracks the cursor
via the --gloss-angle CSS variable (set by JS)
3. backdrop-filter: blur + saturate for the surface; on Chromium,
additionally `url(#lg-refract)` references an SVG turbulence-based
feDisplacementMap so the actual backdrop distorts at the rim. Safari
ignores the url() and falls back to plain blur.
────────────────────────────────────────────────────────────────────── */
.tag-filter {
display: inline-flex; flex-wrap: wrap; max-width: 100%;
align-items: center;
gap: 2px;
padding: 3px;
position: relative;
isolation: isolate;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
-webkit-backdrop-filter: blur(14px) saturate(170%);
backdrop-filter: blur(14px) saturate(170%) url(#lg-refract);
box-shadow:
/* outer ambient ring */
0 0 0 1px rgba(255, 255, 255, 0.08),
/* outer drop shadow for elevation */
0 6px 24px -6px rgba(0, 0, 0, 0.55),
/* inner top highlight (the key light catching the lip) */
inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
/* inner side bevels - extra hint of glass thickness */
inset 1.5px 0 1px rgba(255, 255, 255, 0.10),
inset -1.5px 0 1px rgba(255, 255, 255, 0.10),
/* inner bottom shadow (back of the lip) */
inset 0 -1px 0 rgba(0, 0, 0, 0.28);
font-family: var(--mono);
font-size: var(--fs-sm);
letter-spacing: .1em;
text-transform: uppercase;
}
/* Mouse-tracked specular sweep */
.tag-filter::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: -1;
background: conic-gradient(
from var(--gloss-angle, 90deg),
transparent 0deg,
transparent 70deg,
rgba(255, 255, 255, 0.38) 100deg,
rgba(255, 255, 255, 0.16) 140deg,
transparent 210deg,
transparent 360deg
);
filter: blur(7px);
mix-blend-mode: screen;
opacity: 0.85;
}
/* Static top arc + bottom slope for the lip cross-section */
.tag-filter::after {
content: '';
position: absolute;
inset: 1px;
border-radius: inherit;
pointer-events: none;
z-index: -1;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.22) 0%,
rgba(255, 255, 255, 0) 38%,
rgba(0, 0, 0, 0) 72%,
rgba(0, 0, 0, 0.07) 100%
);
}
.tag-filter button {
position: relative;
z-index: 1;
appearance: none;
background: transparent;
border: 0;
color: var(--text-3);
padding: 2px 10px;
border-radius: 999px;
font: inherit;
cursor: pointer;
transition: color .2s ease, background-color .25s ease, box-shadow .25s ease;
}
.tag-filter button:hover {
color: var(--text);
background: rgba(255, 255, 255, 0.05);
}
.tag-filter button.active {
color: var(--accent);
background: linear-gradient(180deg,
rgba(255, 138, 76, 0.24),
rgba(255, 138, 76, 0.11)
);
box-shadow:
/* still a tiny lip on the active button */
inset 0 1px 0 rgba(255, 255, 255, 0.22),
inset 0 0 0 1px rgba(255, 138, 76, 0.38),
inset 0 -1px 0 rgba(0, 0, 0, 0.20),
0 0 14px -3px rgba(255, 138, 76, 0.32);
}
/* Separator between filter toggles and the sort toggle */
.tag-filter .sort-sep {
display: inline-block;
width: 1px;
align-self: stretch;
margin: 4px 4px;
background: rgba(255, 255, 255, 0.14);
}
.tag-filter button#sort-by-likes {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
}
.tag-filter button#sort-by-likes .heart-glyph,
.tag-filter button#sort-by-likes .arrow-glyph {
display: block;
width: 13px;
height: 13px;
flex-shrink: 0;
}
.tag-filter button#sort-by-likes .arrow-glyph {
opacity: .55;
transition: opacity .25s ease, transform .25s ease;
}
.tag-filter button#sort-by-likes.active .arrow-glyph {
opacity: 1;
}
.is-hidden-by-filter { display: none !important; }
/* Filter everything out and the cat has the place to itself. No text. It
breathes, its tail sways, it blinks on its own schedule, and its eyes
follow the pointer while you are over it. Nothing snaps. */
.void { display: grid; place-items: center; padding: 1.6rem 0 .5rem; }
.void[hidden] { display: none; }
.void-cat-btn {
background: none; border: 0; padding: 0; cursor: pointer;
color: var(--text-3); line-height: 0;
}
.void-cat { width: 176px; height: 176px; overflow: visible; }
/* Drawn as strokes, not a filled patch: a solid ellipse of accent on a near
black background reads as a smudge of dirt. */
/* The cat blushes when you are on it and the colour drains away when you
leave. Slower going than coming, the way a real blush fades. */
.cat-blush {
stroke: var(--accent); stroke-width: 1.8; fill: none;
opacity: 0; transition: opacity .5s ease;
}
.void-cat-btn.is-petted .cat-blush { opacity: .55; transition: opacity .25s ease; }
.cat-breathe { animation: cat-breathe 4.2s ease-in-out infinite; transform-origin: 100px 168px; }
.cat-tail { animation: cat-tail 5.5s ease-in-out infinite; transform-origin: 140px 168px; }
/* Blink is driven from JS so the gap between blinks can be random. A CSS
animation only repeats on a fixed beat, which reads as a metronome. */
.cat-eyes { transform-origin: 100px 74px; transition: transform .09s ease-in-out; }
.cat-eyes.is-blinking { transform: scaleY(.08); }
/* Short enough to follow the pointer, long enough not to twitch. */
.cat-pupils { transition: transform .18s ease-out; }
@keyframes cat-breathe {
0%, 100% { transform: scale(1, 1); }
50% { transform: scale(1.012, .988); }
}
@keyframes cat-tail {
0%, 100% { transform: rotate(-7deg); }
50% { transform: rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
.cat-breathe, .cat-tail { animation: none; }
.cat-eyes, .cat-pupils { transition: none; }
}
.vibe-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .vibe-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.vibe-card {
background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
overflow: hidden; display: flex; flex-direction: column;
transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
@media (hover: hover) {
.vibe-card:hover {
border-color: var(--accent-line);
transform: translateY(-2px);
box-shadow: var(--shadow-coral);
}
}
.vibe-card a.card-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
.vibe-card a.card-link:hover { color: inherit; }
.thumb-wrap { position: relative; }
.thumb {
aspect-ratio: 16 / 9; background: var(--bg-2);
width: 100%; display: block; object-fit: cover;
border-bottom: 1px solid var(--line);
}
.thumb.placeholder {
display: flex; align-items: center; justify-content: center;
color: var(--text-3); font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
}
/* Title row containing the h3 plus the like button on the right. */
.title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: .8rem;
margin-bottom: .28rem;
}
.title-row h3 { margin: 0; flex: 1; min-width: 0; }
/* Like button - sits next to the title (no longer overlay on thumbnail).
Click adds your like; orange-filled when you've liked. Public count
shown next to the heart. */
.like-btn {
display: inline-flex;
align-items: center;
gap: .35rem;
padding: .22rem .55rem;
background: rgba(20, 20, 24, 0.5);
border: 1px solid rgba(255, 255, 255, 0.14);
color: rgba(244, 244, 246, 0.75);
border-radius: 999px;
font-family: var(--mono);
font-size: .8rem;
font-weight: 500;
cursor: pointer;
flex-shrink: 0;
transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.like-btn:hover {
background: rgba(20, 20, 24, 0.92);
border-color: var(--accent-line);
color: var(--accent);
}
.like-btn:active { transform: scale(0.94); }
.like-btn.liked {
background: rgba(255, 138, 76, 0.14);
border-color: rgba(255, 138, 76, 0.55);
color: var(--accent);
}
.like-btn .heart {
width: 16px; height: 16px;
fill: none; stroke: currentColor; stroke-width: 2;
stroke-linecap: round; stroke-linejoin: round;
transition: fill .18s ease, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.like-btn.liked .heart {
fill: var(--accent);
transform: scale(1.05);
}
.like-btn .count {
font-variant-numeric: tabular-nums;
letter-spacing: 0;
min-width: 1ch;
text-align: right;
}
.card-body { padding: 1.05rem 1.2rem 1.2rem; }
.card-body h3 {
font-family: var(--serif); font-weight: 500; font-size: 1.22rem;
letter-spacing: -0.01em; margin: 0 0 .28rem;
}
.card-body p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.card-meta {
margin-top: .8rem; display: flex; gap: .4rem; flex-wrap: wrap;
font-family: var(--mono); font-size: .8rem; color: var(--text-3);
}
.card-meta span, .card-meta a {
border: 1px solid var(--line); padding: .12rem .55rem;
border-radius: 999px; color: inherit;
}
.card-meta a:hover { border-color: var(--accent-line); color: var(--accent); }
.card-meta time.card-date {
margin-left: auto; border: 0; padding: 0;
color: var(--text-3); font-size: var(--fs-sm);
}
@keyframes rise {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .65s cubic-bezier(.2, .65, .2, 1) both; }
.rise[data-d="1"] { animation-delay: .04s; }
.rise[data-d="2"] { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
@media (max-width: 600px) {
/* Same rhythm as CatBench: 3.5rem at the bottom was dead scroll under
the last line, and the top and the gaps between blocks were carrying
desktop spacing on a screen a fifth as tall. */
main { padding: .6rem .8rem 1rem; }
.hero { margin-bottom: 1rem; }
.avatar { width: 92px; height: 92px; margin-bottom: .6rem; }
section { margin-block: 1rem; }
h2 { margin-block: .4rem .6rem; }
.tag-filter button { padding: 5px 12px; }
/* The search field takes the row to itself rather than squeezing in
beside the pill. The pill's own wrapping is general, see .tag-filter. */
.inline-search { width: 100%; }
}
/* Command palette - Ctrl/Cmd+K opens a centered modal scoped to navigation
jumps and filter toggles (project search lives in the inline search field).
Lazily-built on first open so the cost doesn't hit initial paint. */
.cmd-overlay {
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.55);
-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
display: none; align-items: flex-start; justify-content: center;
padding: 12vh 16px 16px;
z-index: 1000;
opacity: 0; transition: opacity .18s ease;
}
.cmd-overlay.open { display: flex; opacity: 1; }
.cmd-panel {
width: min(560px, 100%);
max-height: 70vh;
background: var(--bg-1);
border: 1px solid var(--accent-line);
border-radius: 14px;
box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 107, 53, 0.10);
display: flex; flex-direction: column;
overflow: hidden;
transform: translateY(-8px) scale(0.98);
transition: transform .22s var(--ease-bounce);
}
.cmd-overlay.open .cmd-panel { transform: translateY(0) scale(1); }
.cmd-input {
appearance: none; width: 100%;
padding: 16px 20px;
background: transparent;
border: 0; border-bottom: 1px solid var(--line);
color: var(--text);
font: 500 18px/1.4 var(--sans);
outline: none;
}
.cmd-input::placeholder { color: var(--text-3); }
.cmd-list {
list-style: none;
margin: 0; padding: 6px;
overflow-y: auto;
scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.cmd-list li {
display: flex; align-items: center; gap: 10px;
padding: 9px 14px;
border-radius: 8px;
cursor: pointer;
font: 500 var(--fs-sm)/1.3 var(--sans);
}
.cmd-list .label { flex: 1; color: var(--text); }
.cmd-list .meta { color: var(--text-3); font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.cmd-list li[aria-selected="true"] { background: var(--accent-soft); }
.cmd-list li[aria-selected="true"] .meta { color: var(--accent); }
.cmd-list .empty { padding: 20px; text-align: center; color: var(--text-3); font: 500 var(--fs-sm)/1.3 var(--sans); cursor: default; }
@media (max-width: 600px) {
.cmd-overlay { padding: 8vh 12px 12px; }
.cmd-panel { max-height: 84vh; }
}
</style>
</head>
<body>
<!-- SVG filter referenced by .tag-filter's backdrop-filter on Chromium.
On Safari the url() is ignored and the blur+saturate still applies. -->
<svg style="position:absolute;width:0;height:0;overflow:hidden" aria-hidden="true">
<defs>
<filter id="lg-refract" x="0%" y="0%" width="100%" height="100%">
<feTurbulence type="fractalNoise" baseFrequency="0.012 0.02" numOctaves="2" seed="4" result="t"/>
<feDisplacementMap in="SourceGraphic" in2="t" scale="3.5" xChannelSelector="R" yChannelSelector="G"/>
</filter>
</defs>
</svg>
<main>
<header class="hero rise" data-d="1">
<span class="avatar-wrap">
<img class="avatar" src="https://avatars.githubusercontent.com/u/133996730?v=4" alt="" loading="eager" width="120" height="120">
<!-- Per-browser-per-day unique visitor counter (Abacus-backed),
displayed as a corner bubble on the avatar so it reads as
ambient info rather than a clickable badge. New browser →
/hit (creates+increments). Returning within 24h → /get only. -->
<span class="visits-badge" id="visits-badge" title="Unique views of this page">
<span class="emoji" aria-hidden="true">👀</span><span id="visit-count">·</span>
</span>
</span>
<nav class="icon-nav" aria-label="profiles">
<a href="https://github.com/Katehuuh" aria-label="GitHub" title="GitHub">
<svg viewBox="0 0 16 16" width="22" height="22" fill="currentColor" aria-hidden="true">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
</a>
<a href="https://huggingface.co/Nekochu" aria-label="Hugging Face" title="Hugging Face"><span class="emoji">🤗</span></a>
<a href="https://websim.com/" aria-label="Websim" title="Websim - more vibe-coded sites">
<img src="https://websim.com/favicon.ico" alt="" width="22" height="22" loading="lazy" style="display:block;border-radius:4px;background:rgba(255,255,255,.04)">
</a>
<a href="demos/CatBench/" aria-label="CatBench" title="CatBench"><span class="emoji">🐱</span></a>
</nav>
</header>
<section class="rise" data-d="2">
<h2><span class="vibe-heading"><span class="me">Katehuuh<abbr class="alias-mark" title="aka Nekochu on Hugging Face">*</abbr></span><span class="h2-dot">·</span><span class="topic">Vibe code</span></span>
<span class="tag-filter" id="tag-filter" role="group" aria-label="filter by tag">
<button data-tag="tool" class="active" aria-pressed="true">tool</button>
<button data-tag="game" class="active" aria-pressed="true">game</button>
<button data-tag="show" class="active" aria-pressed="true">show</button>
<span class="sort-sep" aria-hidden="true"></span>
<button id="sort-by-likes" type="button" aria-pressed="false" title="sort by likes (off = newest first)" aria-label="sort by likes">
<svg class="heart-glyph" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
<svg class="arrow-glyph" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14m-6-6 6 6 6-6"/></svg>
</button>
</span>
<input type="search" id="site-search" class="inline-search" placeholder="search" aria-label="search">
</h2>
<div id="projects-grid" class="vibe-grid">
<noscript><p>Browse <a href="https://github.com/Katehuuh">github.com/Katehuuh</a> directly.</p></noscript>
</div>
<div id="void" class="void" hidden>
<button class="void-cat-btn" type="button" aria-label="bring the projects back">
<svg class="void-cat" viewBox="0 0 200 200" fill="none" stroke="currentColor"
stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<g class="cat-breathe">
<g class="cat-tail"><path d="M140 168c29 3 43-12 41-30-2-15-16-21-24-13-7 7-2 17 7 15"/></g>
<path d="M79 112c-13 17-21 40-18 56h78c3-16-5-39-18-56"/>
<path d="M81 168v-5a8 8 0 0 1 16 0v5M103 168v-5a8 8 0 0 1 16 0v5"/>
<circle cx="100" cy="74" r="35"/>
<path d="M73 54 69 24l26 13M127 54l4-30-26 13"/>
<path d="M76 50 74 34l13 7M124 50l2-16-13 7" stroke-width="1.6" opacity=".5"/>
<path class="cat-blush" d="M78 85l3 5M83 84l3 5M88 85l3 5"/>
<path class="cat-blush" d="M122 85l-3 5M117 84l-3 5M112 85l-3 5"/>
<g class="cat-eyes">
<g class="cat-pupils">
<ellipse cx="88" cy="74" rx="3.2" ry="3.8" fill="currentColor" stroke="none"/>
<ellipse cx="112" cy="74" rx="3.2" ry="3.8" fill="currentColor" stroke="none"/>
</g>
</g>
<path d="M96.6 88h6.8l-3.4 3.5z" fill="currentColor" stroke="none"/>
<path d="M100 91.5v3.2M100 94.7c-1.6 2.6-4.7 2.6-6.3 0M100 94.7c1.6 2.6 4.7 2.6 6.3 0"/>
<path d="M74 87 55 82M74 94 55 96M126 87l19-5M126 94l19 2"/>
</g>
</svg>
</button>
</div>
</section>
</main>
<div class="cmd-overlay" id="cmd-overlay" role="dialog" aria-modal="true" aria-label="command palette" hidden>
<div class="cmd-panel">
<input class="cmd-input" id="cmd-input" type="search" placeholder="search projects, toggle filters, jump…" autocomplete="off">
<ul class="cmd-list" id="cmd-list" role="listbox"></ul>
</div>
</div>
<script>
(async () => {
let data;
try {
data = await fetch('data.json').then(r => r.json());
} catch (e) {
console.error('failed to load data.json', e);
return;
}
const projects = data.projects || [];
await liveAugmentDemos(projects);
renderProjects(projects);
setupSearch();
setupTagFilter();
setupVoid();
setupSortByLikes();
populateHeroPopovers(data);
setupCommandPalette();
})();
// Filter changes used to run inside document.startViewTransition for a
// crossfade. Measured, it cost 350ms of stuttering to animate work that takes
// 0.8ms: p95 frame time 50ms and five frames over 50ms per toggle, against
// zero janky frames without it. On the search box it fired once per keystroke.
// Snapping instantly is the faster feel, so the transition is gone.
function setupTagFilter() {
const root = document.getElementById('tag-filter');
if (!root) return;
// Scope to [data-tag] so the sort-by-likes button (also inside .tag-filter)
// doesn't get treated as a category toggle.
const buttons = [...root.querySelectorAll('button[data-tag]')];
// The three toggles cover these category tags. Cards whose tags don't
// include any of these (descriptive-only tags like "webrtc", "p2p") are
// shown regardless - the toggles don't affect them.
const CATEGORY = new Set(buttons.map(b => b.dataset.tag));
function applyFilter() {
const enabled = new Set();
for (const b of buttons) if (b.classList.contains('active')) enabled.add(b.dataset.tag);
for (const card of document.querySelectorAll('.vibe-card')) {
const tags = [...card.querySelectorAll('.card-meta span')]
.map(s => s.textContent.trim().toLowerCase());
const cardCats = tags.filter(t => CATEGORY.has(t));
// No category tag on this card → always visible. Otherwise hide if all
// of its category tags are currently toggled off.
const visible = cardCats.length === 0 || cardCats.some(t => enabled.has(t));
card.classList.toggle('is-hidden-by-filter', !visible);
}
updateEmptyState();
writeHash();
}
// Hash-route filter state - `#tags=game,show` is shareable and survives reload.
// Empty (all-on) hash drops the param so default URL stays clean.
function writeHash() {
const on = buttons.filter(b => b.classList.contains('active')).map(b => b.dataset.tag);
const all = on.length === buttons.length;
const target = all ? location.pathname + location.search : `#tags=${on.join(',')}`;
if (location.href.endsWith(target) || (all && !location.hash)) return;
history.replaceState(null, '', target);
}
function readHash() {
const m = location.hash.match(/(?:^|[#&])tags=([^&]*)/);
if (!m) return;
const want = new Set(m[1].split(',').filter(Boolean));
let changed = false;
for (const b of buttons) {
const on = want.has(b.dataset.tag);
if (b.classList.contains('active') !== on) {
b.classList.toggle('active', on);
b.setAttribute('aria-pressed', on ? 'true' : 'false');
changed = true;
}
}
if (changed) applyFilter();
}
readHash();
window.addEventListener('hashchange', readHash);
buttons.forEach(btn => {
btn.addEventListener('click', () => {
{
const on = !btn.classList.contains('active');
btn.classList.toggle('active', on);
btn.setAttribute('aria-pressed', on ? 'true' : 'false');
applyFilter();
}
});
});
// Mouse-tracked specular: rotate the conic-gradient highlight on the
// glass pill so it points roughly at the cursor. Listener is on `root`
// (not document) so the gloss only animates when the cursor is actually
// over the pill - no global cursor-following everywhere on the page.
// On leave, the angle eases back to the default 90deg.
let rafId = 0;
const onMove = (e) => {
if (rafId) return;
rafId = requestAnimationFrame(() => {
rafId = 0;
const r = root.getBoundingClientRect();
const cx = r.left + r.width / 2;
const cy = r.top + r.height / 2;
const ang = Math.atan2(e.clientY - cy, e.clientX - cx) * 180 / Math.PI;
root.style.setProperty('--gloss-angle', `${ang + 90}deg`);
});
};
root.addEventListener('mousemove', onMove, { passive: true });
root.addEventListener('mouseleave', () => root.style.setProperty('--gloss-angle', '90deg'));
}
// Sims-4-style flyout: hovers on GitHub / HF icons reveal a tree of
// related links cascading from above the icon. Click any item to follow
// the underlying url - popover is a sibling of the icon-link, not a
// child, so item clicks don't trigger the icon's own href.
function populateHeroPopovers(data) {
const ghLink = document.querySelector('.icon-nav a[aria-label="GitHub"]');
const hfLink = document.querySelector('.icon-nav a[aria-label="Hugging Face"]');
const STAGGER_MS = 55;
const buildItem = (entry, idx) => {
const li = document.createElement('li');
li.style.setProperty('--idx', `${idx * STAGGER_MS}ms`);
const a = document.createElement('a');
a.href = entry.url;
a.target = '_blank';
a.rel = 'noopener';
a.textContent = entry.name;
if (entry.description) a.title = entry.description;
li.appendChild(a);
return li;
};
const buildHeader = (label) => {
const li = document.createElement('li');
li.className = 'section-header';
li.textContent = label;
return li;
};
// Wrap a link element in a `.icon-pop-wrap` with the popover as a sibling.
// Using an inline wrapper preserves the icon-nav's flex layout.
// Hover state is managed in JS (not :hover CSS) so we can keep the popover
// open while the cursor traverses the gap between icon and popover. Pure
// CSS :hover loses state the moment the cursor leaves the icon's box,
// before it can land on a hover-bridge - JS grace period fixes that.
const HIDE_DELAY_MS = 220;
// Only one popover open at a time - opening one closes the others.
const allWraps = [];
const closeOthers = (current) => {
for (const w of allWraps) if (w !== current) w.__closeNow();
};
const wrapWithPopover = (link, ul) => {
const wrap = document.createElement('span');
wrap.className = 'icon-pop-wrap';
link.parentNode.insertBefore(wrap, link);
wrap.appendChild(link);
wrap.appendChild(ul);
let hideTimer = null;
const show = () => {
if (hideTimer) { clearTimeout(hideTimer); hideTimer = null; }
closeOthers(wrap);
// Clamp popover height to available space above the icon so its top
// edge never crosses the viewport top - opens-up positioning means a
// tall popover would otherwise spill off-screen at top on small viewports.
const space = wrap.getBoundingClientRect().top - 6 - 8; // anchor gap + viewport buffer
ul.style.maxHeight = Math.max(120, Math.min(window.innerHeight * 0.5, space)) + 'px';
wrap.classList.add('show-pop');
};
const scheduleHide = () => {
if (hideTimer) clearTimeout(hideTimer);
hideTimer = setTimeout(() => {
wrap.classList.remove('show-pop');
hideTimer = null;
}, HIDE_DELAY_MS);
};
wrap.__closeNow = () => {
if (hideTimer) { clearTimeout(hideTimer); hideTimer = null; }
wrap.classList.remove('show-pop');
};
// Listen on the wrapper - events bubble from icon, popover, and bridge.
wrap.addEventListener('mouseenter', show);
wrap.addEventListener('mouseleave', scheduleHide);
// Touch / focus: tap on icon shows, blur hides
link.addEventListener('focus', show);
link.addEventListener('blur', scheduleHide);
allWraps.push(wrap);
};
// Tag last item of an odd-count section so CSS can span it across both
// grid columns - otherwise it sits alone in column 1 with empty col 2.
const appendItems = (ul, items, startIdx = 0) => {
items.forEach((item, i) => {
const li = buildItem(item, startIdx + i);
if (items.length % 2 === 1 && i === items.length - 1) li.classList.add('section-orphan');
ul.appendChild(li);
});
};
if (ghLink && Array.isArray(data.repos) && data.repos.length) {
const ul = document.createElement('ul');
ul.className = 'pop-list';
appendItems(ul, data.repos);
wrapWithPopover(ghLink, ul);
}
if (hfLink) {
const sets = Array.isArray(data.datasets) ? data.datasets : [];
const models = Array.isArray(data.models) ? data.models : [];
if (sets.length || models.length) {
const ul = document.createElement('ul');
ul.className = 'pop-list';
let idx = 0;
if (sets.length) {
ul.appendChild(buildHeader('Datasets'));
appendItems(ul, sets, idx); idx += sets.length;
}
if (models.length) {
ul.appendChild(buildHeader('Models'));
appendItems(ul, models, idx); idx += models.length;
}
wrapWithPopover(hfLink, ul);
}
}
}
// Ctrl/Cmd+K command palette - keyboard-only navigation list (no visible button).
// Scoped to filter toggles + outbound jumps; project search lives in the inline
// search field. Built lazily on first open.
function setupCommandPalette() {
const overlay = document.getElementById('cmd-overlay');
const input = document.getElementById('cmd-input');
const list = document.getElementById('cmd-list');
if (!overlay || !input || !list) return;
let items = []; // [{label, meta, run}]
let filtered = [];
let cursor = 0;
const buildItems = () => {
items = [];
const root = document.getElementById('tag-filter');
if (root) for (const b of root.querySelectorAll('button[data-tag]')) {
items.push({
label: `toggle: ${b.dataset.tag}`,
meta: 'filter',
run: () => b.click(),
});