11@import url ("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" );
22
3- * ,
4- * ::before ,
5- * ::after {
6- box-sizing : border-box;
7- }
8-
93: root {
104 --background : # 181825 ;
115 --background-below : # 11111b ;
126 --background-above : # 1e1e2e ;
137 --background-above-above : # 363a4f ;
148
159 --accent-color : # beabee ;
16- --accent-color-faded : # a18ed1 ;
10+ --accent-color-darker : lch (from var (--accent-color ) calc (l - 15 ) c calc (h - 5 ));
11+ --accent-color-lighter : lch (from var (--accent-color ) calc (l + 15 ) c calc (h + 5 ));
1712
1813 --text-color : whitesmoke;
19- --darker-text-color : rgb (179 , 178 , 178 );
14+ --text-color-title : hsl (from var (--accent-color ) calc (h + 5 ) calc (s - 5 ) calc (l + 10 ));
15+ --text-color-dark : hsl (from var (--accent-color ) calc (h - 5 ) calc (s - 50 ) calc (l - 25 ));
2016
2117 --border-width : 2px ;
2218
2319 --ease-out-quint : cubic-bezier (0.23 , 1 , 0.32 , 1 );
2420 --ease-out-circ : cubic-bezier (0.075 , 0.82 , 0.165 , 1 );
21+ }
22+
23+ * ,
24+ * ::before ,
25+ * ::after {
26+ box-sizing : border-box;
27+ }
2528
29+ html ,
30+ body {
31+ /* text */
2632 font-family : "Inter" , sans-serif;
27- color : whitesmoke;
28- background-color : var (--background );
2933 font-size : 16px ;
3034 line-height : 1.5 ;
35+
36+ /* colours */
37+ color : var (--text-color );
38+ background-color : var (--background-below );
39+
40+ /* screen */
41+ width : 100% ;
42+ height : 100% ;
43+ margin : 0 ;
44+ padding : 0 ;
3145}
3246
3347body {
34- height : 97vh ;
35-
3648 display : flex;
3749 flex-direction : column;
3850}
3951
52+ header {
53+ text-align : left;
54+ padding : 0.5rem 1rem ;
55+ }
56+
57+ footer {
58+ text-align : right;
59+ padding : 0.5rem 1rem ;
60+ }
61+
62+ dialog {
63+ background-color : var (--background );
64+ border : var (--border-width ) solid var (--background-above );
65+ color : inherit;
66+ max-width : 25vw ;
67+ }
68+
4069p , h1 , h2 , h3 , h4 , h5 {
41- margin : 0.5rem ;
70+ margin : 0.5rem 0 ;
71+ }
72+
73+ h1 , h2 , h3 , h4 , h5 {
74+ font-weight : 800 ;
75+ color : var (--text-color-title );
4276}
4377
4478a {
79+ color : inherit;
4580 text-decoration : underline transparent var (--border-width );
4681 font-weight : bolder;
47- transition : all var (--ease-out-circ ) 0.5s ;
4882
49- & : hover {
50- text-decoration : underline var (--accent-color-faded ) var (--border-width );
51- }
83+ transition : all var (--ease-out-circ ) 0.75s ;
84+
5285 & : link {
5386 color : var (--accent-color );
5487 }
5588 & : visited {
56- color : var (--accent-color-faded );
89+ color : var (--accent-color );
90+ }
91+ & : hover {
92+ color : var (--accent-color-lighter );
93+ text-decoration : underline var (--accent-color-lighter ) var (--border-width );
5794 }
5895}
59-
60- footer {
61- text-align : center;
62- }
63-
64- dialog {
65- background-color : var (--background );
66- border : var (--border-width ) solid var (--background-above );
67- color : inherit;
68- max-width : 25vw ;
69- }
0 commit comments