* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #ccc; background: #191a19; font-synthesis: none; }
body { margin: 0; min-width: 280px; font-size: 1.25rem; line-height: 1.6; }
a { color: inherit; text-decoration: none; text-underline-offset: .3em; }
a:hover { color: #fff; text-decoration: underline; }
a:focus-visible { outline: 1px solid #eee; outline-offset: 6px; }
.site-header { padding: 24px 20px; }
nav { display: flex; justify-content: center; flex-wrap: wrap; column-gap: clamp(12px, 4vw, 48px); row-gap: 0; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.home { min-height: calc(100svh - 92px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 24px 60px; }

.content { max-width: 800px; margin: 50px auto 100px; padding: 0 24px; }
h1 { text-align: center; margin: 48px 0 32px; font-family: "Chakra Petch", "Helvetica Neue", sans-serif; font-size: clamp(4.5rem, 13vw, 8rem); line-height: 1.2; font-weight: 400; letter-spacing: normal; }
p { max-width: 55ch; }
.muted { color: #999; }
.text-link { text-decoration: underline; }
.catalogue-list { list-style: none; padding: 0; margin: 0; }
.catalogue-list li { padding: 24px 0; border-top: 1px solid #292929; }
.catalogue-list h2 { font-size: 1.25rem; font-weight: 400; margin: 0; }
.catalogue-list p { margin: 8px 0 0; color: #999; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 20px; background: #191a19; padding: 10px; }
.skip-link:focus { top: 10px; }
@media (min-width: 700px) { .site-header { padding: 32px 40px; } .home { min-height: calc(100svh - 108px); } .content { margin-top: 80px; } }

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("assets/paper-grain.svg") repeat; opacity: .22; }
body { isolation: isolate; }
.scramble-glyph { display: inline-block; text-align: center; white-space: pre; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

.home-title { margin: 0; font-size: clamp(3.5rem, 12vw, 7rem); }
.detector-screen { position: relative; width: min(100%, 610px); overflow: hidden; border-radius: 8px; aspect-ratio: 1; isolation: isolate; }
.detector-screen::before, .detector-screen::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.detector-screen::before { inset: -20%; background: url("assets/crt-noise.svg") repeat; opacity: .16; mix-blend-mode: screen; animation: crt-grain .24s steps(3, end) infinite; }
.detector-screen::after { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, #0004 2px 3px); opacity: .45; }
.about-content { text-align: center; }
.about-content p { margin: 0 auto 32px; max-width: 52ch; text-wrap: pretty; }
@keyframes crt-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-5%, 3%); } 66% { transform: translate(4%, -4%); } 100% { transform: translate(-3%, -2%); } }
@media (prefers-reduced-motion: reduce) { .detector-screen::before { animation: none; } }

#detector-canvas { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 3px #ffffff18); }
.detector-fallback { position: absolute; inset: 40% 10%; text-align: center; font-size: 1rem; }
h1 { letter-spacing: -.035em; font-weight: 400; }
