@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #edeff1; --ink: #141b22; --muted: #5c6873; --line: #c9d0d6;
  --stage: #10161c; --stage-ink: #e9edf0;
  --person: #f2a516; --vehicle: #1fa3a6; --other: #8a98a8;
  --focus: #0b6e71;
  --person-ink: #9a5800; --vehicle-ink: #0b6e71; --other-ink: #5c6873;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0e1317; --ink: #e6eaee; --muted: #9aa6b1; --line: #263038; --focus: #1fa3a6; --person-ink: #f2a516; --vehicle-ink: #1fa3a6; --other-ink: #8a98a8; }
}
:root[data-theme="dark"] { --paper: #0e1317; --ink: #e6eaee; --muted: #9aa6b1; --line: #263038; --focus: #1fa3a6; --person-ink: #f2a516; --vehicle-ink: #1fa3a6; --other-ink: #8a98a8; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; font-weight: 450; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 22px 0 10px; }
.mark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none; position: relative; padding-left: 22px; }
.mark::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 14px; height: 14px; border: 3px solid var(--person); border-right: 0; border-bottom: 0; }
.mark::after { content: ""; position: absolute; left: 6px; top: 0.46em; width: 10px; height: 10px; border: 3px solid var(--person); border-left: 0; border-top: 0; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.top a { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
nav.top a[aria-current="page"], nav.top a:hover { color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0.5em 0 0.35em; max-width: 22ch; }
h2 { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.015em; margin: 2.2em 0 0.5em; max-width: 30ch; }
h3 { font-weight: 700; font-size: 1.05rem; margin: 1.4em 0 0.3em; }
p, li { max-width: 68ch; }
p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 1.4em; }
.note { color: var(--muted); font-size: 0.95rem; }
/* the stage */
.stage-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .stage-grid { grid-template-columns: 1fr; } }
.stage { position: relative; background: var(--stage); color: var(--stage-ink); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { touch-action: none; object-fit: contain; }
.stage video { object-fit: contain; }
.stage .status { position: absolute; left: 12px; bottom: 10px; font-size: 0.85rem; font-weight: 600; background: rgba(16, 22, 28, 0.72); color: var(--stage-ink); padding: 4px 8px; border-left: 3px solid var(--person); }
.stage .status[hidden] { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; align-items: center; }
.btn { font: inherit; font-weight: 700; font-size: 0.95rem; padding: 10px 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn.quiet { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: default; }
a.btn { display: inline-block; text-decoration: none; }
a.btn.offer { background: var(--person); border-color: var(--person); color: #141b22; }
section#offers h3 { font-size: 1.2rem; margin-top: 1.4em; }
.btn[aria-pressed="true"] { border-color: var(--person); background: var(--person); color: #141b22; }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* the counts panel */
.counts { border-top: 3px solid var(--ink); padding-top: 10px; font-variant-numeric: tabular-nums; }
.counts h2 { margin: 0 0 8px; font-size: 1.05rem; }
.counts dl[hidden] { display: none; }
.counts dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.counts dt { color: var(--muted); font-weight: 500; }
.counts dd { margin: 0; font-weight: 700; }
.counts .big { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.counts .person { color: var(--person-ink); } .counts .vehicle { color: var(--vehicle-ink); }
.counts .seen { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.counts .seen ul { list-style: none; margin: 0; padding: 0; columns: 2; font-size: 0.9rem; }
.counts .seen li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 2px solid currentColor; margin-right: 6px; vertical-align: -1px; }
.legend .person { color: var(--person-ink); } .legend .vehicle { color: var(--vehicle-ink); } .legend .other { color: var(--other-ink); }
/* sections */
section.plain { padding: 8px 0 0; }
.measure { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; max-width: 760px; margin: 10px 0; }
.measure div { border-top: 1px solid var(--line); padding-top: 8px; }
.measure b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.measure span { color: var(--muted); font-size: 0.9rem; }
.classes { list-style: none; padding: 0; margin: 10px 0; max-width: 68ch; font-size: 0.95rem; line-height: 1.7; }
.classes li { display: inline; max-width: none; }
.classes li::after { content: ", "; color: var(--muted); }
.classes li:last-child::after { content: "."; }
table.csv { border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
table.csv th, table.csv td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); }
footer.bottom { margin-top: 56px; padding: 22px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* the record pages of version 1 */
.meta { color: var(--muted); font-size: 0.9rem; } img.hero { width: 100%; height: auto; margin: 14px 0; } .rule { height: 1px; background: var(--line); margin: 22px 0; } ul.posts { list-style: none; padding: 0; } ul.posts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
