about summary refs log tree commit diff homepage
path: root/style.css
blob: 8120cea22ab835298705e10c2679dafb2959493d (plain) (blame)
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
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1b19;
        --fg: #fce8c3;
    }
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: white;
        --fg: #2e3436;
    }
}

html {
    background-color: var(--bg);
    box-sizing: border-box;
    color: var(--fg);
    font-size: clamp(100%, 3vw, 150%);
    margin: auto;
    max-width: calc(1024px + 2ch);
    scroll-padding-top: 3rem;
}
body { margin: 0 1ch }
a[href] {
    color: var(--fg);
    font-weight: bold;
    text-decoration: none;
}
h1 { margin: 0.5ex 0 }
h2 { margin: 0 0 0.5ex 0 }
img { max-width: 100% }
article + article { margin-top: 1rem }
nav {
    align-items: center;
    background-color: var(--bg);
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
}
footer { margin-bottom: 1ch }
footer svg { height: 1.5ex }
footer svg + svg { padding-left: 0.5ex }