Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
61 lines (53 loc) · 4.62 KB
/
Copy pathstyle.css
File metadata and controls
61 lines (53 loc) · 4.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
/* Shared by every page except the home page (which carries its own styles): the same light design. */
:root {
--bg: #ffffff; --soft: #f5f8fc; --card: #ffffff; --text: #0f172a; --muted: #5b6578; --line: #e3e9f2;
--accent: #2563eb; --accent-d: #1d4ed8; --accent-l: #dbe8ff; --accent-text: #ffffff; --good: #16a34a; --code: #f1f5fb;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
font: 17px/1.7 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
header, main, footer { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
header { position: sticky; top: 0; z-index: 20; max-width: none; display: flex; align-items: center; justify-content: space-between;
height: 66px; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px);
border-bottom: 1px solid rgba(15,23,42,.06); padding: 0 max(24px, calc((100% - 1132px) / 2)); }
header .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
header .brand::before { content: ""; width: 30px; height: 30px; border-radius: 9px;
background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='14' fill='%231f2329'/><rect x='12' y='14' width='40' height='7' rx='3.5' fill='%233b82f6'/><rect x='12' y='25' width='30' height='7' rx='3.5' fill='%23f59e0b'/><rect x='12' y='36' width='22' height='7' rx='3.5' fill='%2334d399'/><rect x='12' y='47' width='12' height='5' rx='2.5' fill='%239ca3af'/></svg>") center/cover no-repeat;
box-shadow: 0 2px 8px rgba(0,0,0,.18); }
header nav a { margin-left: 26px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
header nav a:hover { color: var(--text); }
main { padding-bottom: 20px; }
.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 14px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 700px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 13px 24px; border-radius: 12px;
font-weight: 600; text-decoration: none; box-shadow: 0 10px 26px rgba(37,99,235,.25); }
.button:hover { background: var(--accent-d); color: #fff; }
.button.secondary { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 36px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -24px rgba(15,23,42,.25); }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.6px; line-height: 1.2; margin: 52px 0 12px; }
h3 { letter-spacing: -.2px; }
ul.ticks { padding-left: 0; list-style: none; }
ul.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
code, pre { background: var(--code); border-radius: 8px; font-family: "Cascadia Code", Consolas, monospace; font-size: 14.5px; }
code { padding: 2px 7px; }
pre { padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); }
.note { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 12px; color: var(--muted); }
.shot img, figure img { border-radius: 14px; border: 1px solid var(--line); }
article { max-width: 780px; }
article h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 48px 0 14px; }
article h3 { margin-top: 28px; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 80px; padding-top: 28px; padding-bottom: 48px; }
footer a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--text); }
footer .official { flex-basis: 100%; margin: 12px 0 0; font-size: 13px; }
footer .official a { margin-right: 0; text-decoration: underline; }
@media (max-width: 700px) { header nav a { margin-left: 16px; font-size: 14px; } }