aboutsummaryrefslogtreecommitdiff
path: root/internal/web/static/base.css
blob: f99b4b55904106a1f88df4a6a665ab3b66a5c51f (plain) (blame)
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
/* base.css -- lectio-web layout and typography, ALL of it.
 *
 * This file owns every non-colour rule: font stack, sizing, spacing,
 * line-height, borders' width/style (not colour), and layout. It must
 * never set a colour (background, foreground, border-color, etc.) -- that
 * is entirely the theme file's job (see docs/THEMES.md). Themes set colour
 * only and must never touch layout/type, so any lectio-web theme can be
 * swapped onto this same structure without reflow surprises.
 */

:root {
  --font-reading: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 42rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-reading);
  font-size: 1.125rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
}

.page {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-3) var(--space-2) var(--space-4);
}

/* Controls bar (date/version/theme/lookup) -- structure only; B2 fills it
 * in with actual controls, this just reserves the layout. */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.controls input,
.controls select,
.controls button {
  font: inherit;
  padding: 0.3rem 0.5rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 0; /* no rounded chrome */
}

/* Reading pane */
.reading-section {
  margin: 0 0 var(--space-4);
}

.reading-section + .reading-section {
  padding-top: var(--space-3);
  border-top-width: 1px;
  border-top-style: solid;
}

.heading {
  display: block;
  font-family: var(--font-reading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-1);
}

.citation {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-style: italic;
  margin: 0 0 var(--space-2);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--measure)), 1fr));
  gap: var(--space-3) var(--space-4);
  align-items: start;
}

.column {
  min-width: 0;
}

.version-label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
  padding-bottom: 0.35rem;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.block {
  margin: 0 0 var(--space-1);
  max-width: var(--measure);
}

.block.refrain {
  font-style: italic;
}

.vnum {
  display: inline-block;
  min-width: 2.5em;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  vertical-align: super;
  margin-right: 0.35em;
}

a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.error {
  font-family: var(--font-ui);
}

@media (max-width: 40rem) {
  .page {
    padding: var(--space-2) var(--space-1) var(--space-3);
  }
  .heading {
    font-size: 1.25rem;
  }
}