| 1 | /* A fixed-page edition sized for the Kindle Scribe's portrait screen. */ |
| 2 | @page { |
| 3 | size: 156mm 208mm; |
| 4 | margin: 13mm 12mm 16mm; |
| 5 | |
| 6 | @bottom-center { |
| 7 | content: "the-valley · " counter(page) " / " counter(pages); |
| 8 | font-family: "DejaVu Sans", sans-serif; |
| 9 | font-size: 8pt; |
| 10 | color: #333; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | @page cover { |
| 15 | margin: 0; |
| 16 | |
| 17 | @bottom-center { |
| 18 | content: none; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | html { |
| 23 | font-family: "DejaVu Serif", serif; |
| 24 | font-size: 12pt; |
| 25 | line-height: 1.38; |
| 26 | color: #111; |
| 27 | } |
| 28 | |
| 29 | body { |
| 30 | margin: 0; |
| 31 | } |
| 32 | |
| 33 | .pdf-cover { |
| 34 | page: cover; |
| 35 | height: 208mm; |
| 36 | text-align: center; |
| 37 | break-after: page; |
| 38 | } |
| 39 | |
| 40 | .pdf-cover img { |
| 41 | display: block; |
| 42 | width: 156mm; |
| 43 | height: 208mm; |
| 44 | object-fit: contain; |
| 45 | } |
| 46 | |
| 47 | p { |
| 48 | margin: 0 0 0.75em; |
| 49 | orphans: 3; |
| 50 | widows: 3; |
| 51 | } |
| 52 | |
| 53 | h1, |
| 54 | h2, |
| 55 | h3, |
| 56 | h4 { |
| 57 | font-family: "DejaVu Sans", sans-serif; |
| 58 | font-weight: bold; |
| 59 | line-height: 1.2; |
| 60 | text-align: left; |
| 61 | break-after: avoid; |
| 62 | hyphens: none; |
| 63 | } |
| 64 | |
| 65 | h1 { |
| 66 | break-before: page; |
| 67 | font-size: 23pt; |
| 68 | margin: 0 0 1em; |
| 69 | bookmark-level: 1; |
| 70 | } |
| 71 | |
| 72 | h2 { |
| 73 | font-size: 16pt; |
| 74 | margin: 1.35em 0 0.7em; |
| 75 | bookmark-level: 2; |
| 76 | } |
| 77 | |
| 78 | h3 { |
| 79 | font-size: 13pt; |
| 80 | margin: 1.2em 0 0.65em; |
| 81 | bookmark-level: 3; |
| 82 | } |
| 83 | |
| 84 | h4 { |
| 85 | font-size: 12pt; |
| 86 | margin: 1.1em 0 0.6em; |
| 87 | bookmark-level: none; |
| 88 | } |
| 89 | |
| 90 | a { |
| 91 | color: inherit; |
| 92 | text-decoration: underline; |
| 93 | text-decoration-thickness: 0.5pt; |
| 94 | } |
| 95 | |
| 96 | ul, |
| 97 | ol { |
| 98 | padding-left: 1.4em; |
| 99 | margin: 0.6em 0 0.9em; |
| 100 | } |
| 101 | |
| 102 | li { |
| 103 | margin-bottom: 0.5em; |
| 104 | } |
| 105 | |
| 106 | li > p:last-child { |
| 107 | margin-bottom: 0.4em; |
| 108 | } |
| 109 | |
| 110 | blockquote { |
| 111 | margin: 1em 0 1em 0.5em; |
| 112 | padding-left: 0.8em; |
| 113 | border-left: 1pt solid #777; |
| 114 | } |
| 115 | |
| 116 | code, |
| 117 | pre, |
| 118 | .repository-path { |
| 119 | font-family: "DejaVu Sans Mono", monospace; |
| 120 | font-size: 0.87em; |
| 121 | overflow-wrap: anywhere; |
| 122 | } |
| 123 | |
| 124 | pre { |
| 125 | white-space: pre-wrap; |
| 126 | margin: 1em 0; |
| 127 | padding: 0.7em; |
| 128 | border: 0.5pt solid #777; |
| 129 | line-height: 1.35; |
| 130 | } |
| 131 | |
| 132 | pre code { |
| 133 | font-size: inherit; |
| 134 | } |
| 135 | |
| 136 | .table-record { |
| 137 | margin: 1em 0; |
| 138 | padding: 0 0 0.5em; |
| 139 | border-bottom: 0.5pt solid #aaa; |
| 140 | } |
| 141 | |
| 142 | .record-title { |
| 143 | font-weight: bold; |
| 144 | break-after: avoid; |
| 145 | } |
| 146 | |
| 147 | .record-title p { |
| 148 | margin-bottom: 0.5em; |
| 149 | } |
| 150 | |
| 151 | .record-field p { |
| 152 | margin-bottom: 0.5em; |
| 153 | } |
| 154 | |
| 155 | table { |
| 156 | width: 100%; |
| 157 | table-layout: fixed; |
| 158 | border-collapse: collapse; |
| 159 | margin: 1em 0; |
| 160 | font-size: 10.5pt; |
| 161 | line-height: 1.35; |
| 162 | } |
| 163 | |
| 164 | th, |
| 165 | td { |
| 166 | padding: 0.4em; |
| 167 | text-align: left; |
| 168 | vertical-align: top; |
| 169 | overflow-wrap: anywhere; |
| 170 | hyphens: auto; |
| 171 | border-bottom: 0.5pt solid #aaa; |
| 172 | } |
| 173 | |
| 174 | th { |
| 175 | font-family: "DejaVu Sans", sans-serif; |
| 176 | border-bottom: 1pt solid #333; |
| 177 | } |
| 178 | |
| 179 | tr { |
| 180 | break-inside: avoid; |
| 181 | } |
| 182 | |
| 183 | #TOC { |
| 184 | break-before: page; |
| 185 | break-after: page; |
| 186 | font-family: "DejaVu Sans", sans-serif; |
| 187 | font-size: 11pt; |
| 188 | line-height: 1.35; |
| 189 | } |
| 190 | |
| 191 | #TOC h2 { |
| 192 | font-size: 23pt; |
| 193 | margin-top: 0; |
| 194 | bookmark-level: 1; |
| 195 | } |
| 196 | |
| 197 | #TOC ul { |
| 198 | list-style: none; |
| 199 | padding-left: 0; |
| 200 | } |
| 201 | |
| 202 | #TOC ul ul { |
| 203 | padding-left: 1em; |
| 204 | font-size: 10pt; |
| 205 | } |
| 206 | |
| 207 | #TOC li { |
| 208 | margin-bottom: 0.65em; |
| 209 | } |
| 210 | |
| 211 | #TOC a { |
| 212 | text-decoration: none; |
| 213 | } |
| 214 | |
| 215 | #TOC a::after { |
| 216 | content: leader(".") target-counter(attr(href), page); |
| 217 | } |
| 218 | |
| 219 | .footnote-ref { |
| 220 | font-family: "DejaVu Sans", sans-serif; |
| 221 | font-size: 0.8em; |
| 222 | line-height: 0; |
| 223 | text-decoration: none; |
| 224 | } |
| 225 | |
| 226 | .footnotes { |
| 227 | font-size: 10.5pt; |
| 228 | } |
| 229 | |
| 230 | .footnotes li { |
| 231 | break-inside: avoid; |
| 232 | } |
| 233 | |
| 234 | .footnote-back { |
| 235 | margin-left: 0.3em; |
| 236 | } |
| 237 | |
| 238 | img, |
| 239 | svg { |
| 240 | max-width: 100%; |
| 241 | } |