/* Shared by public Alki Sites pages and their navigable demonstrations. */
:root {
	--alki-sites-sheen: radial-gradient(
		ellipse at 65% -18%,
		rgb(255 255 255 / 0.15),
		rgb(255 255 255 / 0.04) 44%,
		transparent 70%
	);
	--alki-sites-depth:
		0 4px 10px rgb(0 0 0 / 0.22), 0 20px 48px rgb(0 0 0 / 0.3);
	--alki-sites-recess:
		inset 0 1px rgb(255 255 255 / 0.07), inset 0 -12px 30px rgb(0 0 0 / 0.12);
	--alki-sites-rim: rgb(255 255 255 / 0.14);
	--alki-sites-arrive: cubic-bezier(0.2, 0.75, 0.25, 1);
}

@keyframes alki-sites-page-arrive {
	from {
		opacity: 0.84;
	}
	to {
		opacity: 1;
	}
}

@keyframes alki-sites-detail-arrive {
	from {
		opacity: 0.68;
	}
	to {
		opacity: 1;
	}
}

@keyframes alki-sites-drawer-arrive {
	from {
		opacity: 0.5;
		translate: 0.4rem 0;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes alki-sites-scene {
	0% {
		opacity: 0.73;
		translate: 0 0.375rem;
	}
	21%,
	78% {
		opacity: 1;
		translate: 0 0;
	}
	100% {
		opacity: 0.78;
		translate: 0 -0.25rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	main {
		animation: alki-sites-page-arrive 180ms var(--alki-sites-arrive);
	}

	details[data-sites-disclosure][open] > :not(summary) {
		animation: alki-sites-detail-arrive 150ms var(--alki-sites-arrive) both;
	}

	dialog[data-sites-drawer][open] {
		animation: alki-sites-drawer-arrive 200ms var(--alki-sites-arrive) both;
	}

	@supports (animation-timeline: view()) and
		(animation-range: cover 0% cover 100%) {
		[data-sites-scene] [data-sites-art] {
			animation: alki-sites-scene 1ms linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
	}
}
