cabotia / cabotia.dev/ assets/main.scss5ad18d288e7820745d7e6d055e52f9245d81031c
1.5 KB | 105 lines Raw
1
@import 'fonts.scss';
2

3
$font-size-1: 0.8rem;
4
$font-size-2: 19px;
5
$font-size-3: 1.4rem;
6
$font-size-4: 1.7rem;
7
$font-size-5: 2.1rem;
8
$font-size-6: 2.5rem;
9

10
$color-main: #b91c1c;
11
$color-main-lighter: lighten($color-main, 10%);
12
$color-text: #111;
13
$color-lighter: lighten($color-text, 10%);
14
$color-gray: #60606f;
15
$color-lightgray: lighten($color-gray, 30%);
16

17
$landing-size-value: 2.2;
18
$landing-line-height: 1.4em;
19

20
$font-family-body: 'Castoro', serif;
21

22
* {
23
	box-sizing: border-box;
24
}
25

26
html {
27
	font-family: $font-family-body;
28
	font-weight: 500;
29
	font-size: $font-size-2;
30
	line-height: 1.4;
31
}
32

33
body {
34
	max-width: 900px;
35
	margin: 0 auto;
36
	padding: 2rem 1rem;
37
}
38

39
a {
40
	color: $color-main;
41
	&:hover {
42
		color: $color-main-lighter;
43
	}
44
}
45

46
header {
47
	display: flex;
48
	flex-wrap: nowrap;
49
	flex: 1 0 67%;
50
	align-items: center;
51

52
	.logo {
53
		flex-grow: 0;
54
		flex-shrink: 0;
55
	}
56

57
	nav {
58
		text-align: right;
59
		margin-left: auto;
60
		padding-left: 2.5vw;
61

62
		flex-grow: 1;
63
		flex-shrink: 1;
64

65
		a {
66
			font-family: sans-serif;
67
			font-weight: 700;
68

69
			&:not(:first-child) {
70
				margin-left: 2.5vw;
71
			}
72
		}
73
	}
74
}
75

76
.fine-line {
77
	color: $color-lightgray;
78
}
79

80
footer {
81
	text-align: center;
82
	margin-top: 2rem;
83
	color: $color-gray;
84

85
	display: flex;
86
	flex-direction: column;
87
	justify-content: center;
88

89
	.links {
90
		display: flex;
91
		justify-content: center;
92
	}
93

94
	a {
95
		color: $color-gray;
96
	}
97
}
98

99
.landing p {
100
	font-style: normal;
101
	font-size: calc(calc(2.2 - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
102
	font-weight: 400;
103
	line-height: calc(1.4em * (1 + (1 - 2.2)/25));
104
	text-align: justify;
105
}