/* Reset and element defaults (D-071). Sizes, spaces and colours come from tokens.css only. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-font-sans);
	font-size: var(--lp-fs-2);
	font-weight: var(--lp-weight-regular);
	line-height: var(--lp-lh-body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0;
	color: var(--lp-text);
	font-family: var(--lp-font-heading);
	font-weight: var(--lp-heading-weight);
	letter-spacing: var(--lp-track-heading);
	text-wrap: balance;
}

h1 { font-size: var(--lp-fs-6); line-height: var(--lp-lh-display); }
h2 { font-size: var(--lp-fs-5); line-height: var(--lp-lh-heading); }
h3 { font-size: var(--lp-fs-4); line-height: var(--lp-lh-snug); letter-spacing: 0; }
h4 { font-size: var(--lp-fs-3); line-height: var(--lp-lh-snug); letter-spacing: 0; }

p { margin: 0 0 var(--lp-s-4); }

strong, b { font-weight: var(--lp-weight-bold); }

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--lp-ease);
}

a:hover { color: var(--lp-primary-text); }

/* One visible focus style everywhere; components only change the colour on dark surfaces. */
:focus-visible {
	outline: 2px solid var(--lp-focus);
	outline-offset: 2px;
	border-radius: var(--lp-radius-sm);
}

img, svg, video {
	display: block;
	max-width: 100%;
	height: auto;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	top: var(--lp-s-2);
	left: var(--lp-s-2);
	z-index: 1000;
	padding: var(--lp-s-3) var(--lp-s-4);
	border-radius: var(--lp-radius-pill);
	background: var(--lp-primary);
	color: var(--lp-on-primary);
	font-weight: var(--lp-weight-bold);
}
