/* Light snowfall kept behind the layout panels. */
body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	background-repeat: repeat;
	pointer-events: none;
}

/* Small, distant flakes. Each layer wraps seamlessly after one tile. */
body::before {
	opacity: .55;
	background-image:
		radial-gradient(1.5px 1.5px at 28px 34px, rgba(235, 244, 255, .82) 98%, transparent),
		radial-gradient(1px 1px at 112px 76px, rgba(220, 235, 255, .66) 98%, transparent),
		radial-gradient(1.5px 1.5px at 64px 145px, rgba(248, 251, 255, .72) 98%, transparent);
	background-size: 180px 180px, 240px 230px, 310px 290px;
	background-position: 0 0, 45px 0, 120px 0;
	animation: winter-snow-distant 14s linear infinite;
}

/* A few larger flakes give the snowfall depth without obscuring the page. */
body::after {
	opacity: .34;
	background-image:
		radial-gradient(2.5px 2.5px at 46px 58px, rgba(245, 250, 255, .9) 98%, transparent),
		radial-gradient(2px 2px at 178px 151px, rgba(225, 239, 255, .82) 98%, transparent);
	background-size: 330px 300px, 440px 390px;
	background-position: 10px 0, 95px 0;
	animation: winter-snow-near 10s linear infinite;
}

@keyframes winter-snow-distant {
	to { background-position: 0 180px, 45px 230px, 120px 290px; }
}

@keyframes winter-snow-near {
	to { background-position: 10px 300px, 95px 390px; }
}

/* Keep the complete site layout above the decorative background layer. */
.page {
	position: relative;
	z-index: 2;
}

@media (max-width: 760px) {
	body::before { opacity: .38; }
	body::after { opacity: .22; }
}

@media (prefers-reduced-motion: reduce) {
	body::before,
	body::after { display: none; animation: none; }
}
