/* Fonts and brand tokens: taken from apps/passport/assets/passport.css at build time. */

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2");
}

:root {
	color-scheme: light;
	--ivory: #f7f3ed; /* warm-white */
	--panel: #e8e1d8; /* stone */
	--line: #cfc4b8; /* soft-line */
	--ink: #292625; /* graphite */
	--ink-soft: #5f554f; /* umber */
	--plum: #4b1f35; /* plum-700 */
}

/*
 * Holding page styles (apps/site). No colour of its own: every colour is a variable from the
 * passport's :root block, which the build puts above this file (a test checks both). One
 * typeface, Jost, self-hosted. No motion, no dark mode (the passport has none).
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.125rem;
	line-height: 1.55;
}

.page {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 1.25rem;
	overflow-wrap: anywhere;
}

main {
	flex: 1;
}

/* The hero: the wordmark and the tagline, with room to breathe. */
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(4rem, 16vh, 10rem) 0 clamp(3rem, 9vh, 6rem);
	text-align: center;
}

.brand {
	margin: 0;
	line-height: 0;
}

.wordmark {
	display: block;
	width: clamp(11rem, 45vw, 20rem);
	max-width: 100%;
	height: auto;
}

.tagline {
	max-width: 26ch;
	margin: 2.25rem 0 0;
	font-size: clamp(1.375rem, 1rem + 1.75vw, 2.25rem);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

/* No lone word on the last line. */
.tagline,
.product-en,
.product-fr,
.not-found {
	text-wrap: balance;
}

/* The two product names: quiet cards, no links. */
.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: 52rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.product {
	padding: 1.75rem 1.5rem;
	border-top: 3px solid var(--plum);
	border-radius: 0 0 0.75rem 0.75rem;
	background: var(--panel);
}

.product-en {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
}

.product-fr {
	margin: 0.5rem 0 0;
	color: var(--ink-soft);
	font-size: 1rem;
}

.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: clamp(3rem, 10vh, 6rem);
	padding: 1.5rem 0 2rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.875rem;
}

.footer p {
	margin: 0;
}

/* 404 */
.hero-small {
	padding-bottom: 0;
}

.home {
	display: inline-block;
	border-radius: 0.25rem;
}

.not-found {
	margin: 2.5rem 0 0;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.25;
}

.hero-small .tagline {
	margin-top: 1rem;
	color: var(--ink-soft);
	font-size: 1.125rem;
}

a:focus-visible {
	outline: 3px solid var(--plum);
	outline-offset: 4px;
}

@media (min-width: 44rem) {
	.products {
		grid-template-columns: 1fr 1fr;
	}

	.product {
		padding: 2rem;
	}
}

/* Nothing on the page moves. A reader who asks for less motion gets none, even if a later rule adds some
   without its own reduced-motion check (the browser test looks for any animation or transition). */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none;
		transition: none;
		scroll-behavior: auto;
	}
}
