/* Page background as a dithered grain (Jordan, Nov 24): tools/grain.py. Low contrast, and
   one grain pixel per device pixel: each 1x/2x/3x tile is its own dither at that density.
   Replaces grain.png wherever the page colour carries the texture. */
html[data-bg="dither"] body, html[data-bg="dither"] .mast, html[data-bg="dither"] .tb__cell {
  background-image: url("../img/grain-dither@1x.png");
  background-image: -webkit-image-set(url("../img/grain-dither@1x.png") 1x, url("../img/grain-dither@2x.png") 2x, url("../img/grain-dither@3x.png") 3x);
  background-image: image-set(url("../img/grain-dither@1x.png") 1x, url("../img/grain-dither@2x.png") 2x, url("../img/grain-dither@3x.png") 3x);
  background-size: 320px 320px;
}
/* Preview options: "plain" drops the texture; "grain" leaves the soft grain.png from site.css. */
html[data-bg="plain"] body, html[data-bg="plain"] .mast, html[data-bg="plain"] .tb__cell { background-image: none; }
