-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.css
More file actions
110 lines (102 loc) · 4.72 KB
/
Copy pathhome.css
File metadata and controls
110 lines (102 loc) · 4.72 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
:root {
--ink: #1c1917;
--muted: #6b6459;
--faint: #97907f;
--bg: #faf8f4;
--card: #ffffff;
--line: #e8e2d6;
--accent: #a76618;
--accent-ink: #7c4a0e;
--accent-soft: #f6ead6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--ink);
background: var(--bg);
}
main { max-width: 980px; margin: 0 auto; padding: 0 20px 64px; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d9c9a8; }
a:hover { text-decoration-color: var(--accent); }
.site-head {
max-width: 980px; margin: 0 auto; padding: 18px 20px;
display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.brand em { font-style: normal; color: var(--accent); font-weight: 600; }
.site-head nav { display: flex; gap: 18px; font-size: 14px; }
.site-head a { text-decoration: none; color: var(--muted); }
.site-head a:hover { color: var(--accent-ink); }
h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; letter-spacing: -0.8px; margin: 40px 0 18px; }
h2 { font-size: 26px; letter-spacing: -0.4px; margin: 56px 0 14px; }
h3 { font-size: 19px; margin: 36px 0 8px; }
.gcount { font-size: 13px; font-weight: 500; color: var(--faint); margin-left: 8px; white-space: nowrap; }
p { margin: 0 0 16px; max-width: 74ch; }
.lede { font-size: 18px; color: #3d382f; }
strong { color: var(--ink); }
.stats {
display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 10px; margin: 26px 0 30px;
}
.stats div {
background: var(--card); border: 1px solid var(--line); border-radius: 12px;
padding: 14px 16px; text-align: center;
}
.stats b { display: block; font-size: 24px; letter-spacing: -0.5px; }
.stats span { font-size: 12.5px; color: var(--muted); }
.group { margin-bottom: 10px; }
.group > p { color: var(--muted); font-size: 15px; }
.cat-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
gap: 10px; margin: 14px 0 26px;
}
.cat {
display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
gap: 2px 8px; align-items: start;
background: var(--card); border: 1px solid var(--line); border-radius: 12px;
padding: 13px 15px; text-decoration: none;
transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat:hover {
border-color: #d8b978; transform: translateY(-1px);
box-shadow: 0 6px 18px -10px rgba(124, 74, 14, 0.35);
}
.cat-name { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.cat:hover .cat-name { color: var(--accent-ink); }
.cat-count {
font-size: 12px; font-weight: 700; color: var(--accent-ink);
background: var(--accent-soft); border-radius: 999px; padding: 1px 8px;
justify-self: end;
}
.cat-desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.bars { margin: 18px 0 8px; display: grid; gap: 8px; }
.bar-row {
display: grid; grid-template-columns: minmax(150px, 220px) 1fr 44px;
gap: 12px; align-items: center; font-size: 14px;
}
.bar-row a { text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row a:hover { color: var(--accent-ink); }
.bar-track { background: #efe9dc; border-radius: 999px; height: 14px; overflow: hidden; }
.bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c98a2e, var(--accent)); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.tablewrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; white-space: nowrap; }
thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--faint); border-bottom: 1px solid var(--line); }
tbody tr:not(:last-child) td { border-bottom: 1px solid #f1ece1; }
tbody td:first-child { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
footer {
max-width: 980px; margin: 0 auto; padding: 22px 20px 40px;
border-top: 1px solid var(--line);
display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
font-size: 13.5px; color: var(--muted);
}
footer nav { display: flex; gap: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent-ink); }
@media (max-width: 560px) {
.bar-row { grid-template-columns: minmax(110px, 150px) 1fr 40px; gap: 8px; }
h2 { font-size: 22px; }
}