/* Page-specific additions, loaded after the verbatim template stylesheet
   (love-is-a-game-style.css), which must stay an exact copy. */

/* Pinyon Script ships only a 400 face. The template's headings ask for 500,
   which Chromium renders as the 400 face but Safari and Firefox embolden
   synthetically, thickening the hairlines. Ask for the real face only. */
.primary-title h2 {
	font-weight: 400;
	font-synthesis: none;
}

/* Hero photo: always the template's 857 × 1283 box, cropped rather than stretched. */
.top-image img {
	aspect-ratio: 857 / 1283;
	object-fit: cover;
}

/* Phones: with the inherited 4px letter-spacing, the ink of "Dora & Leonard" at 12rem is
   ~396 px wide and its swashes clip at 390 (the template's shorter names fit). Tighten the
   tracking instead of the size, so the names keep 51.84 px and the vertical layout, and below
   390 px shrink them with the viewport so they stay on one line. */
@media (width < 48.0625em) {
	.primary-title h2 {
		letter-spacing: 2px;
		font-size: min(12rem, 13.3vw);
	}
}

/* Reveal start state for every [data-reveal] element (see src/scripts/reveal.ts).
   Only applies once the head script has marked the document JS-enabled (html.js),
   so nothing flashes, and no-JS or a failed reveal script shows all. */
.js [data-reveal]:not(.visible) {
	opacity: 0;
}

/* Reduced motion: revealed elements fade in instead of sliding or scaling. */
@media (prefers-reduced-motion: reduce) {
	.js .slide-in-bottom,
	.js .scale-in-center {
		animation-name: fade-in;
	}
}
