summaryrefslogtreecommitdiff
path: root/style.css
blob: 795f8f7a34a4044191012d82a1e8704c69ddd702 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
@font-face {
    font-family: "Manuskript Gothisch";
    src: url("fonts/manuskript_gothisch/Manuskript Gothisch UNZ1A.ttf");
}

@font-face {
    font-family: "Roboto Slab";
    src: url("fonts/roboto_slab/RobotoSlab-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 100 200 300 400 500 600 700 800 900;
}

@font-face {
    font-family: "Bodoni Moda";
    src: url("fonts/bodoni_moda/static/BodoniModa_9pt/BodoniModa_9pt-MediumItalic.ttf");
    font-style: italic;  
}

html, body {
    border: 0;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-family: "Roboto Slab";
    font-weight: 350;
    color: #d0d0d0;
    background-color: #0d1015;
}

strong {
    font-family: "Bodoni Moda";
    font-style: italic;
}

a:hover, a:visited, a:active, a:link {
    color: #ff9449;
    text-decoration: none;
}

a:hover {
    background: #fc0daf;
    color: #d0d0d0;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background-color: #272c35;
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.8);
    padding: 0 10px 0 10px;
}

nav > a:link, nav > a:active, nav > a:visited, nav > a:hover {
    flex-grow: 1;
    color: inherit;
    padding: 10px 10px 10px 10px;
}

nav > a:hover {
    background: #fc0daf;
}

nav > .spacer {
    flex-grow: 100;
}

main {
    align-self: center;
    margin-top: -100px;
    padding: 200px 100px 10px 100px;
    max-width: 40em;
    background-color: #272c35;
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.5);
    text-align: justify;
    hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Manuskript Gothisch";
    margin-top: 50px;
    margin-bottom: 8px;
}

body > header {
    z-index: 1;
    margin-top: 100px;
    margin-bottom: 0;
    text-align: center;
}

body > header > h1 {
    text-align: center;
    background-image: linear-gradient(to right, #fc00b9, #ff9449); 
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));

    /* https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/ */
  --min-fs: 3;
  --max-fs: 10;
  --min-vw: 20;
  --max-vw: 40;

  --min-fs-rem: var(--min-fs) * 1rem;
  --max-fs-rem: var(--max-fs) * 1rem;
  --min-vw-rem: var(--min-vw) * 1rem;

  --slope: (var(--max-fs) - var(--min-fs)) * (100vw - var(--min-vw-rem)) / (var(--max-vw) - var(--min-vw));

  font-size: clamp(var(--min-fs-rem), var(--min-fs-rem) + var(--slope), var(--max-fs-rem));
}


main.cards {
    background-color: #1f232a;
}

.card {
    background-color: #272c35;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.2);
    padding: 30px 20px 30px 20px;
    margin-top: 50px;

}

.card > .links {
    margin-left: -20px;
    margin-bottom: -30px;
    border-top: 0.5px dotted rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    width: calc(100% + 40px);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.card > .links > a {
    padding: 10px 10px 10px 10px;
    flex-grow: 1;
    text-align: center;
}

.card > h1,
.card > h2,
.card > h3,
.card > h4,
.card > h5,
.card > h6 {
    margin-top: 0px;
}

footer {
    margin-top: 30px;
    align-self: center;
    margin-bottom: 10px;
}