/*
 * Passport page styles. Plain CSS, no script, one typeface (Jost, self-hosted: /assets/fonts).
 * Every colour is a brand token from packages/ui/src/design/cashmify-design-tokens.json
 * (a test compares them); contrast on the ivory ground is at least 6.9:1 for text.
 */
@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 */
}

*,
*::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 {
	max-width: 38rem;
	margin: 0 auto;
	padding: 1rem 1.25rem 2.5rem;
	overflow-wrap: anywhere;
}

.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.wordmark {
	display: block;
	width: 10rem;
	max-width: 100%;
	height: auto;
}

.lang {
	display: flex;
	gap: 0.5rem;
}

.lang-link,
.lang-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid var(--plum);
	border-radius: 0.375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.lang-link {
	color: var(--plum);
}

.lang-current {
	background: var(--plum);
	color: var(--ivory);
}

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

h1,
h2 {
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
}

.product {
	padding: 1.5rem 0 1.25rem;
}

h1 {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--ink-soft);
}

h1 .colour {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 2.5rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.dye {
	margin: 0.75rem 0 0;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--plum);
}

dl {
	margin: 0;
}

.overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.overview dt,
.specs dt {
	font-size: 1rem;
	color: var(--ink-soft);
}

.overview dd {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 600;
}

.overview dd.detail {
	font-size: 1rem;
	font-weight: 400;
	color: var(--ink-soft);
}

.block {
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
}

.block h2 {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	color: var(--plum);
}

.intro {
	margin: 0 0 0.5rem;
	font-weight: 500;
}

.steps {
	margin: 0;
	padding-left: 1.25rem;
}

.steps li {
	margin-bottom: 0.625rem;
	padding-left: 0.25rem;
}

.specs > div {
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--line);
}

.specs > div:last-child {
	border-bottom: 0;
}

.specs dd {
	margin: 0;
	font-weight: 500;
}

.note {
	margin: 0.75rem 0 0;
	color: var(--ink-soft);
}

/* Care is the most prominent block: a tinted panel, larger type. */
.prominent {
	margin: 0 -0.75rem;
	padding: 1.5rem 0.75rem;
	border: 0;
	border-top: 3px solid var(--plum);
	border-radius: 0 0 0.5rem 0.5rem;
	background: var(--panel);
	font-size: 1.25rem;
}

.prominent h2 {
	font-size: 1.75rem;
}

footer {
	margin-top: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 1rem;
	color: var(--ink-soft);
}

footer p {
	margin: 0 0 0.5rem;
}

footer .dealer {
	font-weight: 500;
	color: var(--ink);
}

.neutral main {
	padding: 2rem 0;
}

.neutral h1 {
	margin-bottom: 1rem;
	font-size: 1.75rem;
	color: var(--ink);
}

.neutral .tagline {
	margin: 0;
	color: var(--ink-soft);
}

@media (min-width: 40rem) {
	.page {
		padding-top: 2rem;
	}

	h1 .colour {
		font-size: 3rem;
	}

	.prominent {
		margin: 0;
		padding: 1.75rem 1.5rem;
		border-radius: 0.5rem;
	}
}
