:root {
	--bg: #f4f7fb;
	--bg-raised: #ffffff;
	--ink: #1a2744;
	--muted: #526078;
	--line: #d5deea;
	--accent: #3a56e8;
	--accent-deep: #2436b0;
	--accent-soft: #e7edff;
	--header: rgba(244, 247, 251, 0.94);
	--shadow: 0 1px 0 rgba(26, 24, 20, 0.06);
	--serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
	--sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
	--content: 72rem;
	--measure: 40rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

a {
	color: inherit;
}

a:hover {
	color: var(--accent);
}

code {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.92em;
}

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

.skip {
	position: absolute;
	left: 1rem;
	top: -3rem;
	background: var(--ink);
	color: var(--bg);
	padding: 0.4rem 0.7rem;
}

.skip:focus {
	top: 1rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.9rem 1.5rem;
	background: var(--header);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 560;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var(--ink);
}

.wordmark img {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.45rem;
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-size: 0.95rem;
}

.site-header nav a {
	text-decoration: none;
}

.site-header nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.35rem;
}

.wrap {
	width: min(100%, var(--content));
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.hero {
	padding: 4.5rem 0 3rem;
	border-bottom: 1px solid var(--line);
}

.kicker {
	margin: 0 0 0.8rem;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 520;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-wrap: wrap;
}

h1 {
	max-width: none;
	margin: 0;
	font-size: clamp(2.15rem, 3.1vw, 3.05rem);
}

.lede,
.section-intro,
.summary {
	text-wrap: wrap;
}

.lede {
	margin: 1.25rem 0 0;
	font-size: 1.2rem;
	line-height: 1.55;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.8rem;
}

.button {
	display: inline-block;
	padding: 0.65rem 0.95rem;
	border: 1px solid var(--accent);
	text-decoration: none;
	background: var(--accent);
	color: #fff;
}

.button:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: #fff;
}

.button.secondary {
	background: transparent;
	color: var(--accent-deep);
}

.button.secondary:hover {
	background: var(--accent);
	color: #fff;
}

section {
	padding: 3.5rem 0;
	border-bottom: 1px solid var(--line);
}

section h2 {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.section-head {
	display: block;
	margin-bottom: 1.35rem;
}

.section-head h2 {
	margin: 0 0 0.5rem;
}

.section-intro {
	margin: 0;
	color: var(--muted);
}

.layers,
.criteria,
.projects,
.tiers {
	display: grid;
	gap: 1rem;
}

.layers {
	grid-template-columns: repeat(3, 1fr);
}

.criteria {
	grid-template-columns: repeat(5, 1fr);
}

.tiers {
	grid-template-columns: repeat(4, 1fr);
}

.projects {
	grid-template-columns: 1fr 1fr;
}

.card,
.tier,
.criterion {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-width: 0;
	height: 100%;
	background: var(--bg-raised);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: 1.15rem 1.2rem 1.25rem;
}

.card h3,
.tier h3,
.criterion h3 {
	margin: 0.3rem 0 0.45rem;
	min-height: 1.2em;
	font-size: 1.35rem;
	line-height: 1.2;
	text-wrap: wrap;
}

.card p,
.tier p,
.criterion p,
.note {
	margin: 0;
	color: var(--muted);
}

.card p + p {
	margin-top: 0.75rem;
}

.label {
	margin: 0;
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tier-num {
	display: block;
	font-family: var(--serif);
	font-size: 1.7rem;
	line-height: 1;
}

.tier.critical {
	background: var(--accent-soft);
	border-color: #c9d4ff;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
}

.tags li {
	margin: 0;
}

.tags a,
.tags span {
	display: inline-block;
	padding: 0.18rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: 0.78rem;
	line-height: 1.35;
	text-decoration: none;
}

.tags a {
	color: var(--accent-deep);
}

.tags a:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
}

.card:has(.tags) > p:not(.label) {
	flex-grow: 1;
}

.notice {
	margin: 0;
	padding: 0.75rem 1.5rem;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: 0.95rem;
}

.notice[hidden] {
	display: none;
}

.notice[data-kind="error"] {
	background: #f8e8e4;
}

.site-header .button {
	white-space: nowrap;
}

.site-footer {
	padding: 2rem 0 3rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.site-footer p {
	margin: 0;
}

.site-footer p + p {
	margin-top: 0.7rem;
}

.page-head {
	padding-block: 3.2rem 0.5rem;
}

.page-head h1 {
	max-width: none;
	font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.project {
	padding: 2.25rem 0;
	border-bottom: 1px solid var(--line);
}

.project .wrap {
	display: block;
}

.project .label {
	margin: 0 0 0.45rem;
}

.project h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.project .summary {
	margin: 0;
	font-size: 1.1rem;
}

.project .button {
	margin-top: 0.9rem;
}

@media (max-width: 980px) {
	.layers,
	.tiers,
	.projects {
		grid-template-columns: 1fr 1fr;
	}

	.criteria {
		grid-template-columns: 1fr 1fr;
	}

}

@media (max-width: 680px) {
	.wrap {
		padding-inline: 1rem;
	}

	.site-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.6rem;
	}

	.hero {
		padding-top: 2.6rem;
	}

	.layers,
	.criteria,
	.tiers,
	.projects {
		grid-template-columns: 1fr;
	}
}
