/* Placeholders hold text's places while it loads (a project's facts,
   skeleton tiles, file listings), with M3's subtle pulse. */
.skeleton {
	display: block;
	width: 70%;
	height: 12px;
	margin: 4px 0;
	border-radius: 6px;
	background: color-mix(in srgb, var(--text) 12%, transparent);
	animation: skeletonPulse 1s ease-in-out infinite alternate;
}

.skeleton + .skeleton {
	width: 40%;
}

@keyframes skeletonPulse {
	to {
		opacity: 0.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.skeleton {
		animation: none;
	}
}
