@font-face {
	font-display: swap;
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400 700;
	src: url("assets/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 700;
	src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
	--paper: #f7f6f2;
	--navy: #1f315a;
	--blue: #2c639e;
	--slate: #545e75;
	--mist: #eaf1f9;
	--white: #fff;
	--sans: "Figtree", system-ui, sans-serif;
	--display: "Newsreader", Georgia, serif;
}

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

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

body {
	background: var(--paper);
	color: var(--navy);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-variation-settings: "opsz" 16;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
	margin: 0;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

::selection {
	background: #a7cced;
	color: var(--navy);
}

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

.wrap {
	margin-inline: auto;
	max-width: 1240px;
	padding-inline: 1.25rem;
	width: 100%;
}

.prototype-bar {
	background: #ecedf0;
	border-bottom: 1px solid #d6dce5;
	color: var(--slate);
}

.prototype-bar__nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.75rem;
	gap: 0.25rem 1.25rem;
	line-height: 1rem;
	padding-block: 0.375rem;
}

.prototype-bar__label {
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.prototype-bar__intro {
	display: none;
}

.prototype-bar__links {
	align-items: center;
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.prototype-bar__links a {
	text-underline-offset: 4px;
}

.prototype-bar__links a:hover {
	color: var(--navy);
	text-decoration: underline;
}

.prototype-bar__links a[aria-current="page"] {
	color: var(--navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--blue);
	text-decoration-thickness: 2px;
}

.portal {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 34px);
	min-height: calc(100dvh - 34px);
}

.portal__inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding-block: 3rem;
}

.eyebrow {
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

h1 {
	font-family: var(--display);
	font-size: 2.25rem;
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 1rem auto 0;
	max-width: 42rem;
	text-align: center;
	text-wrap: balance;
}

.portal__cards {
	display: grid;
	gap: 1.5rem;
	margin: 3rem auto 0;
	max-width: 64rem;
	width: 100%;
}

.card {
	background: var(--white);
	border: 1px solid color-mix(in srgb, var(--navy) 25%, transparent);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.card:hover {
	border-color: var(--navy);
}

.card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
}

.card__media img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: transform 0.5s ease;
	width: 100%;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__media--text {
	align-items: center;
	background: var(--mist);
	display: flex;
	justify-content: center;
}

.card__media--text span {
	font-family: var(--display);
	font-size: 2.25rem;
	line-height: 1.1;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
}

.card__body p {
	color: var(--slate);
}

.card__logo {
	align-self: flex-start;
	height: 5rem;
	width: auto;
}

.card h2 {
	font-family: var(--display);
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1.25;
}

.btn {
	align-items: center;
	align-self: flex-start;
	background: var(--navy);
	border: 1.5px solid var(--navy);
	border-radius: 0.25rem;
	color: var(--paper);
	display: inline-flex;
	font-size: 0.975rem;
	font-weight: 600;
	gap: 0.5rem;
	justify-content: center;
	line-height: 1.2;
	margin-top: auto;
	min-height: 2.9rem;
	padding: 0.6rem 1.35rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover .btn {
	background: var(--blue);
	border-color: var(--blue);
}

.portal__footer {
	color: var(--slate);
	font-size: 0.875rem;
	padding-bottom: 2rem;
	text-align: center;
}

@media (min-width: 640px) {
	.wrap {
		padding-inline: 2rem;
	}

	.prototype-bar__intro {
		display: inline;
	}

	.portal__inner {
		padding-block: 4rem;
	}

	h1 {
		font-size: 3.75rem;
	}

	.card__media--text span {
		font-size: 3rem;
	}

	.card__body {
		padding: 2rem;
	}
}

@media (min-width: 768px) {
	.portal__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.wrap {
		padding-inline: 2.5rem;
	}

	.portal__cards {
		margin-top: 4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card__media img,
	.card,
	.btn {
		transition: none;
	}

	.card:hover .card__media img {
		transform: none;
	}
}
