aboutsummaryrefslogtreecommitdiffstats
path: root/styles/main.css
blob: c4bd01c52a3e32e62c7601bf0592d5b20f927270 (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
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
@font-face {
    font-family: "Kawkab Mono";
    src: url(/fonts/KawkabMono-Regular.woff2);
    font-weight: normal;
}

@font-face {
    font-family: "Kawkab Mono";
    src: url(/fonts/KawkabMono-Bold.woff2);
    font-weight: bold;
}

* {
    unicode-bidi: plaintext;
}

html {
    color: black;
    background-color: white;
}

body {
    font-family: "Kawkab Mono";
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    padding: 4rem 0;
    min-height: 100%;
    overflow-wrap: break-word;
}

h1,
header,
footer {
    text-align: center;
}

main {
    text-align: left;
}

main,
header,
footer {
    max-width: 800px;
    margin-inline: auto;
    padding: 0 2rem;
}

@media (max-width: 600px) {
    body {
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 0.8em;
    }

    h1 {
        font-size: 1.6em;
    }
}

p,
h2,
h3,
h4 {
    margin: 1em 0 0 0;
}

ul,
ol {
    margin: 0;
}

img {
    max-width: 100%;
}

header {
    margin-bottom: 1em;
}

footer {
    margin-top: 3em;
}

@media (prefers-color-scheme: dark) {
    html {
        filter: invert(1);
    }

    img {
        filter: invert(1);
    }
}