/* Playfair Display 400 — self-hosted subsets (latin + cyrillic).
   unicode-range lets the browser fetch only the subset a message needs. */
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/playfair-display-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/playfair-display-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

div.centered {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 95vh;
	font-family: 'Playfair Display', serif;
	font-size: 24px;
}

/* Fade in only — the text is never left invisible if a timer is throttled. */
div.centered.fade-in {
	animation: fade-in 600ms ease;
}

@keyframes fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	div.centered.fade-in {
		animation: none;
	}
}
