File size: 12,286 Bytes
b43c3a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
be9ca13
 
 
 
 
 
 
 
 
 
 
 
 
b43c3a8
 
 
 
 
be9ca13
b43c3a8
 
 
 
 
 
 
be9ca13
b43c3a8
 
 
 
be9ca13
b43c3a8
be9ca13
 
 
b43c3a8
 
be9ca13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b43c3a8
 
 
 
 
 
 
 
 
be9ca13
 
 
 
 
 
b43c3a8
 
 
 
 
 
 
 
 
be9ca13
b43c3a8
be9ca13
b43c3a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
be9ca13
 
b43c3a8
 
 
 
 
 
 
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
/* 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); }
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; }
.specimen { grid-area: panel; }
.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-figure { margin: 0; }
.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, 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 { 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; 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; } }
@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-text { display: grid; gap: 1px; min-width: 0; }
.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: " +"; color: var(--ink-3); }
.more[open] summary::after { 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 { outline: 2px solid var(--accent); outline-offset: 3px; }

.tooltip {
  position: fixed; z-index: 20; pointer-events: none; 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); }

/* 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; }
}