/* Paper: a uniform colour with a fine grain (small noise), drawn as SVG so nothing is loaded. The 240px tile repeats without a
   seam: stitchTiles fits a whole number of noise periods in it (0.85 * 240 = 204). Light mode only; dark paper is a uniform colour
   with no image. Every surface that paints the paper (body, top bar, side panels) sets background-image: var(--paper-grain). */

:root {
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0 0.14 0 0 0 0.22 -0.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root { --paper-grain: none; }
}
