/* VOICE   playful and spooky, a toy you keep poking at; honest about what the maths can and cannot do
   IDEA    a haunted darkroom: every tool is a developing tray under an amber safelight, and a pixel ghost lives in the prints
   PICTURE the photos themselves (before/after, heat map, three challenge prints) plus the ghost mascot who reacts to everything
   COLOUR  near-black darkroom #0d0a09, safelight amber #ffb43d glows, ember red #ff4f5e for danger and detections, paper #f4e8d8 text
   TYPE    Jersey 15 (display, buttons, numbers) + Schibsted Grotesk (body); JetBrains Mono only for raw bits and hex
   LAYOUT  sticky header with station tabs; hero; one station at a time: print (stage) left, controls right; phones stack print then controls */

:root{
  color-scheme:dark;
  --void:#0d0a09; --tray:#16110e; --tray2:#1f1814; --line:#3b2d25; --line2:#5a463a;
  --paper:#f4e8d8; --smoke:#ad9d8f; --amber:#ffb43d; --amber-d:#b46d0c; --amber-g:rgba(255,180,61,.28);
  --ember:#ff4f5e; --ember-d:#a8202e; --ghost:#f1f6ee; --ok:#9fe2b4;
  --disp:"Jersey 15","Pixelify Sans",ui-monospace,monospace;
  --body:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
}
:root[data-theme=light],:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:84px;background:var(--void)}
body{margin:0;background:var(--void);color:var(--paper);font:17px/1.55 var(--body);overflow-x:clip;min-height:100vh}
/* safelight glow + film grain + scanlines (fixed, never catch clicks) */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(70vw 50vh at 78% -8%,rgba(255,150,40,.16),transparent 70%),radial-gradient(50vw 40vh at 0% 110%,rgba(255,79,94,.07),transparent 70%)}
body::after{content:"";position:fixed;inset:-50%;pointer-events:none;z-index:90;opacity:.09;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
  repeating-linear-gradient(0deg,rgba(0,0,0,.5) 0 1px,transparent 1px 3px);
  animation:grain 1.2s steps(4) infinite}
@keyframes grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-1%,-2%)}100%{transform:translate(0,0)}}
h1,h2,h3,.disp{font-family:var(--disp);font-weight:400;letter-spacing:0;line-height:1.05;margin:0;text-wrap:balance}
h2{font-size:clamp(42px,5.8vw,70px)}
h3{font-size:28px}
p{margin:0 0 12px;max-width:62ch}
a{color:var(--amber)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.muted{color:var(--smoke)}
.small{font-size:15px}
.nowrap{white-space:nowrap}
.mono{font-family:var(--mono)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
[hidden]{display:none!important}
