/* Reset-ish base + typography. Mobile-first: everything here is the phone view. */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--sl-bg);
	color: var(--sl-text);
	font-family: var(--sl-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	font-weight: 650;
	letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--sl-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover { color: var(--sl-red-hover); }

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

button { font: inherit; color: inherit; }

/* One focus style everywhere. Never remove it — keyboard users need it. */
:focus-visible {
	outline: 2px solid var(--sl-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Tabular numerals: money columns must align vertically. */
.sl-num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sl-positive { color: var(--sl-positive); }
.sl-negative { color: var(--sl-negative); }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 0.75rem 1rem;
	background: var(--sl-surface);
	color: var(--sl-text);
	box-shadow: var(--sl-shadow-lg);
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

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