summaryrefslogtreecommitdiff
path: root/sass/_layout.scss
blob: eac8eaa3ff91f858ffd220a1268a2fb41517f37b (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
.site-container {
  width: min(calc(100% - 2rem), var(--site-max));
  max-width: calc(100% - 2rem);
  margin-inline: auto;
}

.site-main {
  flex: 1 0 auto;
  min-height: 0;
}

.narrow,
.prose,
.related-content {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.home-intro {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: var(--rule);
}

.home-intro p {
  max-width: 38rem;
}

.home-sections,
.listing-page,
.editorial-page,
.article-page {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.home-sections {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--rule);
}

.section-heading a {
  white-space: nowrap;
}

.home-about {
  width: min(100%, var(--content-max));
  padding-top: 1.5rem;
  border-top: var(--rule);
}

.home-about h2,
.home-about p {
  margin-bottom: 0.8rem;
}

.page-header {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.page-header h1 {
  margin-bottom: 0.8rem;
}

.editorial-page .page-header {
  margin-bottom: 1.75rem;
}

.error-page {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.error-page .error-code {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.error-page h1,
.error-page > p {
  margin-bottom: 1rem;
}

.error-page nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 38rem) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}