@@ -12,19 +12,23 @@ body {
12
12
13
13
p {
14
14
margin-block : 1rem ;
15
+ max-inline-size : 60ch ;
16
+ text-wrap : pretty;
15
17
}
16
18
17
19
18
20
h1 , h2 , h3 , h4 , h5 , h6 {
19
21
font-weight : $emphasis ;
20
- line-height : 1.2 ;
21
- // margin: 0 0 1rem;
22
22
}
23
23
24
24
h1 {
25
25
margin-block-start : 0 ;
26
26
}
27
27
28
+ :where(h1 , h2 , h3 , h4 ) {
29
+ text-wrap : balance ;
30
+ }
31
+
28
32
:where(h2 , h3 , h4 , h5 , h6 ) {
29
33
margin-block-end : 1rem ;
30
34
margin-block-start : 2em ;
@@ -36,22 +40,30 @@ h1, h2, h3, h4, h5, h6 {
36
40
37
41
:where(h1 , .h1 .venus ) {
38
42
font-size : var (--w3c-text-5 );
43
+ line-height : 1.2 ;
44
+ max-inline-size : 20ch ;
39
45
}
40
46
41
47
:where(h2 , .h2 , .txt-earth ) {
42
48
font-size : var (--w3c-text-4 );
49
+ line-height : 1.2 ;
50
+ max-inline-size : 35ch ;
43
51
}
44
52
45
53
:where(h3 , .h3 , .txt-mars ) {
46
54
font-size : var (--w3c-text-3 );
55
+ line-height : 1.2 ;
56
+ max-inline-size : 35ch ;
47
57
}
48
58
49
59
:where(h4 , .h4 , .txt-jupiter ) {
50
60
font-size : var (--w3c-text-2 );
61
+ line-height : 1.2 ;
51
62
}
52
63
53
64
:where(h5 , .h5 , .txt-saturn ) {
54
65
font-size : var (--w3c-text-1 );
66
+ line-height : 1.2 ;
55
67
}
56
68
57
69
:where(h6 , .h6 ) {
@@ -61,6 +73,7 @@ h1, h2, h3, h4, h5, h6 {
61
73
.lead {
62
74
font-size : var (--w3c-text-2 );
63
75
line-height : 1.4 ;
76
+ text-wrap : balance ;
64
77
}
65
78
66
79
:where(.txt-pluto , .txt-eris , .text-sm ) {
0 commit comments