File size: 31,878 Bytes
b43c3a8 378f397 b43c3a8 be9ca13 378f397 be9ca13 378f397 b43c3a8 be9ca13 b43c3a8 6f28f9e b43c3a8 378f397 b43c3a8 be9ca13 b43c3a8 be9ca13 6f28f9e be9ca13 6f28f9e be9ca13 b43c3a8 be9ca13 b43c3a8 be9ca13 b43c3a8 be9ca13 b43c3a8 6f28f9e b43c3a8 6f28f9e b43c3a8 2a2a176 b43c3a8 2a2a176 b43c3a8 be9ca13 b43c3a8 6f28f9e 2a2a176 6f28f9e 2a2a176 6f28f9e 2a2a176 6f28f9e 2a2a176 6f28f9e d1f47f9 378f397 d1f47f9 a59c3c4 d1f47f9 5b3cd1e d1f47f9 ca6e756 5b3cd1e 378f397 d1f47f9 | 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 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | /* Warm grays, one accent for what you can move, no boxes (as on QR Scan Difficulty).
Zone tones are one ordinal ramp (darker = more scanners read it). Your pictures are ink lines, cased in the
page's colour so they stay visible on every tone. */
:root {
color-scheme: light;
--surface: #f5f4f0;
--ink: #1c1b18;
--ink-2: #5c5a53;
--ink-3: #727068;
--rule: #dfddd6;
--accent: #d4541c;
--z-every: #1c1b18;
--z-most: #54524b;
--z-some: #86837a;
--z-none: #aaa79d;
}
@media (prefers-color-scheme: dark) {
:root:where(:not([data-theme="light"])) {
color-scheme: dark;
--surface: #1c1b18;
--ink: #eceae4;
--ink-2: #b9b6ad;
--ink-3: #8a877e;
--rule: #33322e;
--accent: #e0602a;
--z-every: #eceae4;
--z-most: #b2afa6;
--z-some: #7b7870;
--z-none: #55534d;
}
}
:root[data-theme="dark"] {
color-scheme: dark;
--surface: #1c1b18;
--ink: #eceae4;
--ink-2: #b9b6ad;
--ink-3: #8a877e;
--rule: #33322e;
--accent: #e0602a;
--z-every: #eceae4;
--z-most: #b2afa6;
--z-some: #7b7870;
--z-none: #55534d;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); }
body {
color: var(--ink);
font: 17px/1.55 system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
-webkit-font-smoothing: antialiased;
}
.page { max-width: 1040px; margin: 0 auto; padding: 56px 24px 72px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; max-width: 14em; text-wrap: balance; }
.lede { margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); max-width: 52em; }
.block { padding: 56px 0 0; }
.block + .block { margin-top: 40px; border-top: 1px solid var(--rule); }
.yours-block[hidden] + .block { margin-top: 0; border-top: 0; } /* no picture yet: the curve follows the action, as before */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
/* the one action */
.add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; }
.button {
font: inherit; font-size: 15px; font-weight: 600; color: var(--surface); background: var(--ink);
border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer;
}
.button:hover { background: var(--ink-2); }
.add-note { margin: 0; font-size: 14px; color: var(--ink-3); }
/* the bell, then your list under it; beside both, the code or picture at the cursor, kept in view as you scroll on a
wide screen (a narrow one stacks bell, panel, list) */
.spectrum {
display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto auto 1fr; column-gap: 40px;
grid-template-areas: "bell panel" "list panel" ". panel"; align-items: start;
}
.bell-figure { grid-area: bell; margin: 0; }
.your-list { grid-area: list; min-width: 0; }
@media (max-width: 760px) {
.spectrum { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "bell" "panel" "list"; }
.specimen { margin-top: 24px; }
}
.bell-lede { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; } /* the curve's own lede, under the answer */
.chart { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
svg text { fill: var(--ink-2); font: 13px system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif; }
svg .muted { fill: var(--ink-3); }
svg .marker-n { fill: var(--surface); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
svg .marker-n.mine { fill: var(--ink); } /* the open marker of the picture beside the bell */
svg .marker-more { font-size: 11px; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 1px; background: var(--rule); }
.range::-moz-range-track { height: 1px; background: var(--rule); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6.5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.bell-key { margin: 0 0 14px; }
.readout { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 2.9em; } /* two lines (three on a phone), so your list stays put */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.key-title { color: var(--ink-3); }
.specimen { grid-area: panel; display: grid; gap: 10px; align-content: start; scroll-margin-top: 24px; }
.specimen img { width: 100%; max-width: 220px; aspect-ratio: 1; display: block; border-radius: 2px; background: var(--rule); }
.specimen .big { font-size: 22px; line-height: 1.25; font-weight: 600; text-wrap: balance; }
.specimen .small { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.specimen .entry { white-space: nowrap; }
.specimen .src { font-size: 13px; color: var(--ink-3); }
.specimen .scan-it { display: inline-block; margin: 8px 0 4px; font-size: 13px; color: var(--ink-2); }
/* your picture in the measured code's place: whole, with transparent parts on white, as it was read */
.specimen .yours {
width: 100%; max-width: 220px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
border-radius: 2px; background: var(--rule);
}
.specimen .yours img { width: 100%; height: auto; max-height: 100%; aspect-ratio: auto; background: #fff; }
.specimen .yours img.tall { width: auto; height: 100%; max-width: 100%; }
.specimen .yours .unshown { width: 100%; height: 100%; border-radius: 2px; background: var(--rule); }
.specimen .yours-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 8px 0 4px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.yours-name .pic-n { flex: none; }
.yours-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specimen .yours-content { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* kept in view beside the list wherever the panel fits the window; on a short one, with a smaller picture */
@media (min-width: 761px) and (min-height: 560px) { .specimen { position: sticky; top: 24px; } }
.specimen.unstuck { position: static; } /* taller than the window (larger text, say): it scrolls with the page (app.js) */
@media (min-width: 761px) and (max-height: 699px) {
.specimen { top: 16px; scroll-margin-top: 16px; }
.specimen > img, .specimen .yours { max-width: 150px; }
}
.linklike {
font: inherit; font-size: 14px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer;
text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); justify-self: start;
}
.linklike:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
/* your pictures */
.pictures { list-style: none; margin: 36px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.picture { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: center; gap: 8px; border-top: 1px solid var(--rule); }
/* the one beside the bell: a light tint reaching a little past the rules, and an open number, as on the bell */
.picture.chosen {
--tint: color-mix(in srgb, var(--ink) 6%, var(--surface));
background: var(--tint); box-shadow: -10px 0 0 var(--tint), 10px 0 0 var(--tint);
}
.picture.chosen .pic-content { color: var(--ink-2); } /* AA on the tint */
.pic-main {
display: grid; grid-template-columns: 20px 48px minmax(0, 1fr); gap: 14px; align-items: center;
padding: 12px 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0;
}
.pic-main:disabled { cursor: default; }
.pic-n {
width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 11px;
font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.picture.chosen .pic-n, .pic-n.mine { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pic-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--rule); display: block; }
img.pic-thumb { background: #fff; } /* transparent parts on white, as they are read */
.pic-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-what { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pic-content { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picture.waiting .pic-what, .picture.reading .pic-what { color: var(--ink-3); }
.picture.reading .pic-thumb { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .picture.reading .pic-thumb { animation: none; } }
.picture.failed .pic-n { background: var(--ink-3); }
.pic-x {
font: inherit; font-size: 20px; line-height: 1; color: var(--ink-3); background: none; border: 0;
width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
.pic-x:hover { color: var(--ink); }
.picture.lit .pic-name { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.pictures-end { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
/* details */
.more { margin-top: 24px; }
.more + .more { margin-top: 18px; }
.more summary {
cursor: pointer; display: inline-block; font-size: 15px; color: var(--ink-2); list-style: none;
border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; content: " +" / ""; color: var(--ink-3); } /* the sign isn't read as part of the name */
.more[open] summary::after { content: " −"; content: " −" / ""; }
.more summary:hover { color: var(--ink); }
.more-body { padding-top: 20px; }
.method p, .method li { color: var(--ink-2); font-size: 15px; max-width: 46em; }
.method h3 { margin: 28px 0 6px; font-size: 16px; font-weight: 600; }
.method ul { padding-left: 18px; margin: 6px 0; }
.method a { color: var(--ink); text-decoration-color: var(--ink-3); }
.footer { padding-bottom: 8px; padding-top: 32px; }
.button:focus-visible, .linklike:focus-visible, .more summary:focus-visible, .pic-main:focus-visible, .pic-x:focus-visible,
.range:focus-visible, a:focus-visible, .opt input:focus-visible, #yoursTitle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tooltip { /* a mouse or pen can move onto it and it stays (app.js) */
position: fixed; z-index: 20; background: var(--surface); color: var(--ink);
border: 1px solid var(--rule); border-radius: 6px; padding: 7px 10px; font-size: 13px; line-height: 1.35;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10); max-width: 280px;
}
.tooltip .v { font-weight: 600; }
.tooltip .k { color: var(--ink-2); }
.tooltip.by-touch { pointer-events: none; } /* one a finger opened lets the next tap through to the bell */
/* dropping pictures anywhere on the page */
.drop {
position: fixed; inset: 12px; z-index: 30; pointer-events: none; display: grid; place-items: center;
border: 2px dashed var(--ink-3); border-radius: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.drop[hidden] { display: none; }
.drop p { margin: 0; font-size: 22px; font-weight: 600; }
@media (max-width: 560px) {
body { font-size: 16px; }
.page { padding: 36px 16px 56px; }
.lede { font-size: 18px; }
.add-note { flex-basis: 100%; }
.block { padding-top: 40px; }
.specimen { scroll-margin-top: 16px; }
.picture.chosen { box-shadow: -8px 0 0 var(--tint), 8px 0 0 var(--tint); }
.pic-main { grid-template-columns: 20px 44px minmax(0, 1fr); gap: 12px; }
.pic-thumb { width: 44px; height: 44px; }
}
@media (pointer: coarse) { .pic-x { width: 44px; height: 44px; } }
@media print {
.range, .add, .pic-x, .linklike, .tooltip, .drop { display: none !important; }
}
/* ---- levels, confidence and checks --------------------------------------------------------------------------------
The four levels under the bell's axis, the verdict beside it and in each row, and "Your picture" under it all. No
new colours: the warm grays and the one accent. Levels, confidence and statuses are words first; bars and marks
repeat them in shape. */
svg .level-name { fill: var(--ink-2); font-size: 13px; }
svg .level-name.narrow { font-size: 12px; }
svg .level-name.on { fill: var(--ink); font-weight: 600; }
.readout-level { font-weight: 600; }
/* what the four levels mean */
.levels-more { margin-top: 14px; }
.levels-more summary { font-size: 14px; }
.levels-more .more-body { padding-top: 14px; }
.levels-intro { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 46em; }
.levels-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 20px; margin: 12px 0 0; font-size: 14px; }
.levels-list dt { display: grid; align-content: start; }
.lv-name { font-weight: 600; }
.lv-band { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.levels-list dd { margin: 0; color: var(--ink-2); max-width: 40em; }
.levels-relation { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); max-width: 52em; }
/* beside the bell: the verdict, compact (a measured code: its level over its count) */
.specimen p { margin: 0; }
.measured-level { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.measured-level-name { font-weight: 600; color: var(--ink); }
.specimen .verdict { display: grid; gap: 2px; }
.verdict-level { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.verdict-score { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.specimen .verdict-gist { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.specimen .confidence { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.confidence-why { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.to-checks { justify-self: start; font-size: 14px; }
/* confidence: three bars, as many filled as it is high; status: a mark, more ink for more concern */
.conf { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.conf i { width: 4px; border-radius: 1px; border: 1px solid var(--ink-2); }
.conf i:nth-child(1) { height: 5px; }
.conf i:nth-child(2) { height: 8px; }
.conf i:nth-child(3) { height: 11px; }
.conf-high i, .conf-medium i:nth-child(-n + 2), .conf-low i:nth-child(1) { background: var(--ink); border-color: var(--ink); }
.mark {
display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; vertical-align: -1px;
border: 1.5px solid var(--ink);
}
.mark-problem { background: var(--ink); }
.mark-watch { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.mark-ok { border-color: var(--ink-3); }
.mark-none { height: 0; border-radius: 0; border-width: 1.5px 0 0; border-color: var(--ink-3); vertical-align: 4px; }
.mark, .conf i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* your list: the verdict in its own column, right after the name in reading order; the column grows rather than
run under the × when text is spaced wider. A row's Try again sits under its text, so the column stays put in every
row, and the × stands beside both. */
.pic-main { grid-template-columns: 20px 48px minmax(0, 1fr) minmax(150px, max-content); grid-template-rows: auto auto auto; row-gap: 1px; }
.picture { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row; row-gap: 0; }
.picture > .pic-main { grid-column: 1; grid-row: 1; }
.picture > .pic-x { grid-column: 2; grid-row: 1 / span 2; }
.picture > .again { grid-column: 1; grid-row: 2; margin: -10px 0 12px 96px; }
/* with no content line (a failure, or a reading cut short that read no content), the thumbnail doesn't stretch its
row: Try again follows the last line as the lines follow each other (on a phone too: the 560 px block below) */
@media (min-width: 561px) { .picture:has(> .again) > .pic-main:not(:has(> .pic-content)) { grid-template-rows: auto auto 0; } }
.pic-main > .pic-n, .pic-main > .pic-thumb { grid-row: 1 / span 3; }
.pic-name { grid-column: 3; grid-row: 1; min-width: 0; }
.pic-what { grid-column: 3; grid-row: 2; }
.pic-content { grid-column: 3; grid-row: 3; min-width: 0; }
.pic-verdict { grid-column: 4; grid-row: 1 / span 3; align-self: center; display: grid; justify-items: end; gap: 3px; text-align: right; }
.pv-level { font-size: 16px; font-weight: 600; line-height: 1.2; }
.pv-sep { font-size: 0; } /* ", " for screen readers only, inline so no space is read before it */
.pv-conf { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.picture.chosen .pic-x { color: var(--ink-2); } /* 5.58:1 on the tint; ink-3 is 4.01:1 */
/* "Your picture": why, and what to do */
#yourPicture { scroll-margin-top: 24px; }
#yoursTitle, .yours-kicker { scroll-margin: 24px 0; } /* brought into view after a redraw (yours.js), with its focus ring */
.yours-head { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 32px; align-items: start; }
.yours-head.no-view { grid-template-columns: minmax(0, 1fr); }
.yours-head > .yours-intro { grid-column: 2; grid-row: 1; min-width: 0; }
.yours-head.no-view > .yours-intro { grid-column: 1; }
.yours-head > .code-view { grid-column: 1; grid-row: 1; } /* left of the heading on screen, after it in reading order */
.code-view { margin: 0; }
.code-view canvas { display: block; width: 168px; height: 168px; border-radius: 2px; background: #fff; }
.code-view figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-3); max-width: 168px; }
.yours-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.yours-kicker .pic-n { flex: none; }
.kicker-text { min-width: 0; overflow-wrap: anywhere; }
.yours-block h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
.yours-intro > h2 { width: fit-content; } /* its focus ring hugs the words */
.yours-block h2:focus { outline: none; }
.yours-meaning { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.yours-confidence { display: flex; gap: 10px; align-items: baseline; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.yours-confidence strong { color: var(--ink); font-weight: 600; }
.yours-five { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); max-width: 52em; }
.yours-empty { margin: 0; font-size: 15px; color: var(--ink-3); }
/* what the picture shows: native radios; only the explanations and advice follow them */
.placement { margin: 36px 0 0; padding: 0; border: 0; min-width: 0; }
.placement legend { padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.opt { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
/* the radio on the middle of its label's first line, also when the label wraps */
.opt input { accent-color: var(--ink); width: 17px; height: 17px; margin: calc((1.55em - 17px) / 2) 0 0; font-size: inherit; flex: none; cursor: pointer; }
.opt:has(input:checked) { color: var(--ink); }
.placement-hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); max-width: 52em; }
.placement-context { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
/* the checks: a summary, then one quiet table, rules only */
.checks-summary { margin: 36px 0 0; font-size: 18px; font-weight: 600; max-width: 40em; }
.checks-also, .checks-note { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.checks { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 15px; line-height: 1.45; }
.checks th, .checks td { text-align: left; vertical-align: top; padding: 13px 20px 13px 0; border-top: 1px solid var(--rule); font-weight: 400; }
.checks thead th { padding-top: 0; padding-bottom: 8px; border-top: 0; font-size: 13px; color: var(--ink-3); }
.checks tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.checks th[scope="row"] { width: 170px; font-weight: 600; }
.checks .status { width: 128px; white-space: nowrap; }
.checks .measured { width: 250px; font-variant-numeric: tabular-nums; }
.checks.no-advice .measured { width: auto; }
.checks .advice { padding-right: 0; color: var(--ink-2); }
.checks .why, .checks .do { display: block; }
.checks .do { margin-top: 6px; color: var(--ink); } /* the action on its own line */
.checks .do + .why { margin-top: 12px; }
.check.is-problem .status-word { font-weight: 600; }
.check.is-ok .status-word { color: var(--ink-2); }
.check.is-none .status-word, .check.is-none .value { color: var(--ink-3); }
.placement-extra { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.checks-sub { margin-top: 14px; }
.checks-more { margin-top: 16px; }
.checks-defs { margin: 0; }
.checks-defs dt { font-size: 15px; font-weight: 600; }
.checks-defs dd { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.try-title { margin: 36px 0 0; font-size: 18px; font-weight: 600; }
.try { margin: 10px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.try li + li { margin-top: 6px; }
.yours-block .fine { margin-top: 14px; }
.back-up { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--ink-2); text-decoration-color: var(--rule); }
/* narrower than the table: each check stacks, its name and status on one line */
@media (max-width: 899px) {
.checks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.checks, .checks tbody { display: block; }
.checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); }
.checks tbody tr:last-child { border-bottom: 1px solid var(--rule); }
.checks th, .checks td, .checks tbody tr:last-child > * { display: block; border: 0; padding: 0; width: auto; }
.checks th[scope="row"] { grid-column: 1; grid-row: 1; width: auto; }
.checks .status { grid-column: 2; grid-row: 1; width: auto; }
.checks .measured { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; width: auto; }
.checks .advice:not(:empty) { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
.checks .measured, .checks .advice:not(:empty) { max-width: 46em; } /* the measure the rest of the section keeps */
}
/* a short window: the sticky panel stays inside it */
@media (min-width: 761px) and (max-height: 699px) {
.verdict-level { font-size: 26px; }
.specimen .confidence { margin-top: 4px; }
.specimen .verdict-gist { display: none; }
}
@media (max-width: 560px) {
#yourPicture { scroll-margin-top: 16px; }
#yoursTitle, .yours-kicker { scroll-margin: 16px 0; }
.readout { min-height: 4.35em; } /* a level before the curve's shares can take three lines here */
.pv-conf { white-space: normal; }
.picture > .again { margin-left: 88px; }
.pic-main { grid-template-columns: 20px 44px minmax(0, 1fr); }
.pic-main > .pic-n, .pic-main > .pic-thumb { grid-row: 1 / span 4; }
.pic-verdict { grid-column: 3; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; text-align: left; }
.pv-level { font-size: 15px; }
.pic-what { grid-row: 3; }
.pic-content { grid-row: 4; }
.picture:has(> .again) > .pic-main:not(:has(> .pic-content)) { grid-template-rows: auto auto auto 0; }
.yours-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.yours-head > .yours-intro, .yours-head > .code-view { grid-column: 1; grid-row: auto; }
.yours-block h2 { font-size: 26px; }
.yours-meaning { font-size: 16px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.opt { min-height: 28px; }
.levels-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.levels-list dd { margin-bottom: 10px; }
}
@media (pointer: coarse) { .opt { min-height: 28px; } }
@media print { .to-checks, .back-up { display: none !important; } }
/* ---- how wide to print it -------------------------------------------------------------------------------------------
The answer leads "Your picture", the panel and each row; the distance, a file's width and the working sit one step
away, behind "+". No new colours: an invalid entry is marked in ink, in words first. */
.yours-block h2.plan-answer { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; max-width: 32em; text-wrap: pretty; }
.plan-lines p, .plan-cant { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.plan-lines .plan-assume { font-size: 13px; color: var(--ink-3); }
.plan-tools { margin-top: 10px; }
.plan-tools .more { margin-top: 12px; }
.plan-tools .more summary { font-size: 14px; }
.plan-tools .more-body { padding-top: 12px; }
.plan-at { margin: 0; padding: 0; border: 0; min-width: 0; }
.plan-field { display: grid; gap: 6px; justify-items: start; font-size: 14px; color: var(--ink-2); }
.plan-shape .plan-field { margin-top: 12px; }
.plan-shape .plan-field[hidden] { display: none; } /* over .plan-field's grid: only the chosen kind's field shows */
.plan-pair { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-input, .plan-unit {
font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--ink-3); /* 16 px: phones don't zoom on focus */
border-radius: 4px; padding: 6px 8px; min-height: 36px;
}
.plan-input { width: 8em; }
.plan-input[aria-invalid="true"] { border: 2px solid var(--ink); padding: 5px 7px; }
.plan-hint { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 40em; }
.plan-hint.plan-error { color: var(--ink); font-weight: 600; }
.plan-input:focus-visible, .plan-unit:focus-visible, .plan-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 14px; }
.plan-table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.plan-table caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 6px; }
.plan-table th, .plan-table td { text-align: right; padding: 6px 0 6px 18px; border-top: 1px solid var(--rule); font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.plan-table th:first-child { text-align: left; padding-left: 0; }
.plan-table thead th { font-size: 13px; color: var(--ink-3); border-top: 0; white-space: normal; vertical-align: bottom; }
.plan-table tr.on > * { color: var(--ink); font-weight: 600; }
.plan-table .in { display: block; font-size: 12px; color: var(--ink-3); }
.reading-file { margin-top: 32px; }
.reading > .why-title, .reading-file .why-title { margin: 32px 0 0; font-size: 22px; line-height: 1.2; font-weight: 600; }
.reading-file .reading > .why-title { margin-top: 8px; }
.placement-suggest { margin: 10px 0 0; font-size: 15px; color: var(--ink); max-width: 46em; }
/* beside the bell and in the list */
.specimen .panel-plan { font-size: 15px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.specimen .panel-plan.cant { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.specimen .panel-file { margin-top: 0; }
.specimen .panel-file summary { font-size: 13px; }
.specimen .panel-file .verdict { margin-top: 8px; }
.pv-plan { font-size: 16px; font-weight: 600; line-height: 1.2; }
.pv-for { font-size: 13px; color: var(--ink-2); }
@media (max-width: 560px) {
.yours-block h2.plan-answer { font-size: 21px; }
.pv-plan, .pv-for { flex-basis: 100%; }
.pv-plan { font-size: 15px; }
}
@media (max-width: 640px) { /* phones, and 200% zoom: the table fits from about 360 px, and scrolls in its region below */
.plan-table { font-size: 13px; }
.plan-table th, .plan-table td { padding-left: 6px; }
}
/* on paper: the answer and what it rests on, without the controls or a "+" left closed */
@media print {
.plan-tools, .placement-suggest, .placement legend, .placement .opts, .placement-hint { display: none !important; }
.test .test-state.running, .test-hint, .test-size, .test-acts, .test button { display: none !important; }
.pic-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; } /* its disc prints, so its number shows */
#yourPicture details:not([open]) > summary, .specimen details:not([open]) > summary { display: none !important; }
}
/* pictures of one code: whom it matches, then what changed */
.pair:empty { display: none; }
.pair { margin: 22px 0 0; max-width: 46em; }
.pair p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.pair .pair-same { margin-top: 0; color: var(--ink); font-weight: 600; }
/* a file's code as made, under the width's lines (made.js): its facts first, the details behind "+" */
.made { margin-top: 14px; max-width: 46em; }
.made-lines p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.made-lines p:first-child { margin-top: 0; color: var(--ink); }
.made-more { margin-top: 10px; }
.made-more summary { font-size: 14px; }
.made-more .more-body { padding-top: 12px; }
.made:not([hidden]) + .plan-tools, .made:not([hidden]) + .test[hidden] + .plan-tools,
.test:not([hidden]) + .plan-tools { margin-top: 24px; } /* .more's space, so the block's "+" isn't read as a tool */
/* a file's design test, under its as-made lines (test_view.js): its state or answer, line 2, then "+" */
.test { margin-top: 14px; max-width: 46em; }
.test p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.test .test-state { margin-top: 0; color: var(--ink); }
.test-more { margin-top: 10px; }
.test-more summary { font-size: 14px; }
.test-more .more-body { padding-top: 12px; }
/* what a phone sees, behind "+" under the answer (phone.js): the camera's pixels on the picture, the same in both themes */
.phone-view { margin: 0; }
.phone-view canvas { display: block; width: min(336px, 100%); aspect-ratio: 1; border-radius: 2px; background: #fff; }
.phone-view canvas.px { image-rendering: pixelated; } /* each camera pixel stays a square, at any zoom */
.phone-view figcaption, .phone-note { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); max-width: 46em; }
.phone-cant { margin: 0; font-size: 15px; color: var(--ink-2); }
/* Printing always uses the light theme's tokens: paper is light, whatever the screen's theme */
@media print {
:root, :root[data-theme] {
color-scheme: light;
--surface: #f5f4f0;
--ink: #1c1b18;
--ink-2: #5c5a53;
--ink-3: #727068;
--rule: #dfddd6;
--accent: #d4541c;
--z-every: #1c1b18;
--z-most: #54524b;
--z-some: #86837a;
--z-none: #aaa79d;
}
}
|