/**
 * Global front-end foundation.
 */

:root {
	/* Provisional corporate tokens approved for the TP-002 header direction. */
	--ag-color-brand-primary: #0b1f3a;
	--ag-color-brand-secondary: #152f52;
	--ag-color-brand-accent: #c8202f;
	--ag-color-white: #ffffff;
	--ag-color-neutral-100: #f5f6f8;
	--ag-color-neutral-300: #d8dde5;
	--ag-color-neutral-700: #3c4655;
	--ag-color-text: #152033;

	--ag-layout-content: 48rem;
	--ag-layout-wide: 75rem;
	--ag-layout-gutter: clamp(1rem, 4vw, 2rem);
	--ag-transition-duration: 200ms;
	--ag-transition-timing: ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ag-color-text);
	background: var(--ag-color-white);
}

.skip-link {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 10000;
	padding: 0.75rem 1rem;
	color: var(--ag-color-white);
	background: var(--ag-color-brand-primary);
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

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

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

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

:focus-visible {
	outline: 0.1875rem solid currentColor;
	outline-offset: 0.1875rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
