/*
 * Base: reset, document defaults and the nine type roles (tangens-tokens.md §2, §10).
 * Keep selectors low-specificity so component rules never have to fight them.
 */

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

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

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
	margin: 0;
}

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

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

/* Links inherit their context (§10.5). */
a {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* Type roles. Elements get sensible defaults; components use the classes. */
h1,
.t-h1 {
	font-size: var(--fs-h1);
	font-weight: 300;
	line-height: var(--lh-h1);
}

h2,
.t-h2 {
	font-size: var(--fs-h2);
	font-weight: 300;
	line-height: var(--lh-h2);
}

h3,
.t-h3 {
	font-size: var(--fs-h3);
	font-weight: 300;
	line-height: var(--lh-h3);
}

h4,
.t-h4 {
	font-size: var(--fs-h4);
	font-weight: 500;
	line-height: var(--lh-h4);
}

.t-display {
	font-size: var(--fs-display);
	font-weight: 300;
	line-height: var(--lh-display);
}

.t-lead {
	font-size: var(--fs-lead);
	font-weight: 400;
	line-height: var(--lh-lead);
}

.t-body {
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: var(--lh-body);
}

.t-meta {
	font-size: var(--fs-meta);
	font-weight: 400;
	line-height: var(--lh-meta);
}

.t-eyebrow {
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

.t-label {
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}

/* Layout */
.container {
	padding-inline: var(--container-pad);
}

/* A media slot's element for one width only (inc/media.php). */
@media (max-width: 767px) {
	.u-only-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.u-only-mobile {
		display: none !important;
	}
}

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