/* ==========================================================================
   Launch Suit DS base: reset, body type, links, focus and the italic interplay.
   All values come from tokens.css.
   ========================================================================== */

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

html {
	background: var(--canvas);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--size-body);
	line-height: var(--leading);
	letter-spacing: var(--tracking);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--text);
	color: var(--canvas);
}

h1, h2, p, ul {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

/* The interplay: any italic switches to the serif */
em,
i {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: calc(1em * var(--italic-boost));
	line-height: 0;
	letter-spacing: 0;
}

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	text-decoration-color: var(--faint);
	transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

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

:focus-visible {
	outline: 1px solid var(--text);
	outline-offset: var(--space-2xs);
	border-radius: 2px;
}

/* Section label: IBM Plex Mono caps in --muted, like the CV's. The letter
   spacing stays small, so text extraction still reads the label as one word. */
.label {
	margin-bottom: var(--space-xs);
	font-family: var(--font-mono);
	font-size: var(--size-small);
	font-weight: 500;
	line-height: var(--leading-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
