summaryrefslogtreecommitdiff
path: root/assets/main.css
blob: abb28765f3549de6de5e6710a4edda064a172509 (plain)
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
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("./fonts/inter-latin-v20.woff2") format("woff2");
    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;
}

:root {
    --font-body: "Inter", system-ui, sans-serif;

    --color-background: #eee;
    --color-text: #333;
    --color-muted: #4a4a4a;
    --color-heading: #000;
    --color-accent: #004a99;
    --color-accent-active: #00366f;
    --color-link-visited: #58465e;

    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-section: 1.25rem;
    --text-title: 2rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--color-background)
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
}

h1, h2 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--text-title); }
h2 { font-size: var(--text-section); }

a:any-link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

a:visited {
    color: var(--color-link-visited);
}

a:any-link:hover, a:any-link:active {
    color: var(--color-accent-active);
    text-decoration-thickness: 0.125em;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

ul li {
    padding-block: 0.25rem;
}

hr {
    margin-block: 1.25rem;
    opacity: 0.5;
    border: 0;
    border-top: 1px solid var(--color-muted);
}

small {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

b, strong { font-weight: 700; }

.padding-x-md {
    padding-inline: 0.75rem
}

.padding-y-md {
    padding-block: 0.75rem
}

.page {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1.5rem 1rem;
}


#renderer {
    position: fixed;
    inset: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -5;
}

#renderer canvas {
    display: block;
    width: 100%;
    height: 100%;
}