/*
 * Virtuopo Blocks: bold typography (options A, B and D from the prototype's /type-examples/).
 * Salient styles headings globally with high specificity and adds padding to them, so every rule
 * here is doubled up (.vp-display.vp-display) and resets margin and padding.
 * The font is Montserrat as a variable font (weights 100 to 900, latin, 38 KB, OFL licence), under
 * its own name so it never clashes with the Montserrat 500/600 Salient loads from Google Fonts.
 */
@font-face {
	font-family: 'Virtuopo Display';
	src: url('montserrat-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.vp-display.vp-display,
.vp-statement.vp-statement {
	--vp-aubergine: #1F004E;
	--vp-grad-on-dark: linear-gradient(100deg, #A274FF 0%, #E8459A 38%, #F47B3B 70%, #F9D447 100%);
	--vp-grad-on-light: linear-gradient(100deg, #5A00A3 0%, #B5157A 50%, #D9304F 100%);
	font-family: 'Virtuopo Display', Montserrat, 'Helvetica Neue', Arial, sans-serif;
	margin: 0;
	padding: 0;
	text-wrap: balance;
}

/* A: heavy capitals */
.vp-display.vp-display {
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.045em;
	line-height: 0.9;
	font-size: clamp(36px, 16px + 4vw, 70px);
}
.vp-display.vp-display--xl { font-size: clamp(42px, 16px + 5vw, 86px); }
.vp-display.vp-display--m { font-size: clamp(30px, 18px + 2.4vw, 48px); }

/* B: the tilted line */
.vp-display.vp-display .vp-tilt {
	display: block;
	width: fit-content;
	margin-top: 0.25em;
	font-size: 1.12em;
	transform: rotate(-5deg) skewX(-6deg);
	transform-origin: left bottom;
}
.vp-display.vp-center .vp-tilt { margin-inline: auto; transform-origin: center bottom; }

/* D: the statement */
.vp-statement.vp-statement {
	font-weight: 800;
	font-size: clamp(30px, 14px + 3.6vw, 68px);
	line-height: 1.08;
	letter-spacing: -0.035em;
	max-width: 22ch;
}

/* Colours: white on purple, aubergine on white, and the matching gradient for each */
.vp-on-dark.vp-on-dark { color: #fff; }
.vp-on-light.vp-on-light { color: var(--vp-aubergine); }
.vp-display .vp-grad,
.vp-statement .vp-grad {
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.vp-on-dark .vp-grad { background-image: var(--vp-grad-on-dark); }
.vp-on-light .vp-grad { background-image: var(--vp-grad-on-light); }

.vp-center.vp-center { text-align: center; margin-inline: auto; }
