/*
 * Photoroman teaser. Brand roles copied from the app: ground, ink and muted text as the app defines them, the accent as a short rule only. The mark is the page; the word is
 * set in the brand's display face. Fonts are self-hosted so the page makes no third-party request.
 * The one motion is a short fade-in; prefers-reduced-motion shows the page finished.
 */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/newsreader.woff2") format("woff2");
}
@font-face {
	font-family: "Albert Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/albert-sans.woff2") format("woff2");
}
:root {
	color-scheme: light dark;
	--bg: light-dark(#f3f2f0, #121212);
	--ink: light-dark(#1b1b1b, #efedea);
	--muted: light-dark(#555352, #b0adaa);
	--accent: light-dark(#a3201a, #ff8a7a);
	--display: 'Newsreader', Georgia, serif;
	--text: 'Albert Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
	/* Width of the logo. The word is sized from it so the pair scales as one shape. */
	--w: min(82vw, 30rem);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--text); }
body {
	margin: 0;
	min-height: 100svh;
	display: grid;
	grid-template-rows: 1fr auto;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.stage { display: grid; place-items: center; padding: 1.5rem; }

.figure { display: flex; flex-direction: column; align-items: center; gap: calc(var(--w) * 0.1); text-align: center; }
.logo { width: var(--w); height: auto; display: block; }
.logo-d { display: none; }
.rule { width: calc(var(--w) * 0.14); height: 4px; border-radius: 2px; background: var(--accent); }
.word {
	margin: 0;
	font: 600 normal calc(var(--w) * 0.34) / 1 var(--display);
	text-transform: none;
	letter-spacing: -0.02em;
}

.foot {
	display: flex;
	justify-content: center;
	padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
	color: var(--muted);
	font-size: 0.9375rem;
}
.foot a { color: var(--muted); text-underline-offset: 0.2em; }
.foot a:hover { color: var(--ink); text-decoration-thickness: 2px; }
@media (prefers-color-scheme: dark) {
	.logo-l { display: none; }
	.logo-d { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
	.figure > * { opacity: 0; animation: rise .9s ease-out forwards; }
	.figure > .rule { animation-delay: .35s; }
	.figure > .word { animation-delay: .6s; }
}
@keyframes rise {
	from { opacity: 0; transform: translateY(0.4rem); }
	to { opacity: 1; transform: translateY(0); }
}
