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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Pixelify Sans", "Courier New", monospace;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #f4f7fb;
	background: #0f2244;
	-webkit-font-smoothing: none;
	overflow-x: hidden;
}

h1, h2, h3,
.section-title,
.about-section-title,
.site-logo span,
.tagline,
.art-label,
.breakdown,
.card-label,
.credits-table caption {
	font-family: "Press Start 2P", "Courier New", monospace;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

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

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

a:focus-visible,
button:focus-visible {
	outline: 3px solid #ee9a8b;
	outline-offset: 2px;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.5rem;
	background: #0f2244;
	border-bottom: 3px solid #ee9a8b;
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.site-logo img {
	height: 40px;
	width: auto;
	image-rendering: pixelated;
}

.site-logo span {
	letter-spacing: 0.08em;
	font-size: 0.72rem;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 3px solid #f4f7fb;
	background: #0e67a4;
	color: #f4f7fb;
	box-shadow: 3px 3px 0 #000;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.1s steps(1), color 0.1s steps(1), transform 0.1s steps(1), box-shadow 0.1s steps(1);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
	background: #ee9a8b;
	color: #0f2244;
}

.nav-toggle:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 #000;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 1.15rem;
	height: 3px;
	background: currentColor;
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -6px;
}

.nav-toggle-bars::after {
	top: 6px;
}

.site-header.is-nav-open .nav-toggle-bars {
	background: transparent;
}

.site-header.is-nav-open .nav-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	justify-content: flex-end;
	align-items: center;
}

.site-nav a {
	font-size: 0.95rem;
	padding: 0.55rem 0.75rem;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	border: 2px solid transparent;
	opacity: 0.95;
	transition: background 0.1s steps(1), color 0.1s steps(1), border-color 0.1s steps(1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	opacity: 1;
	background: #ee9a8b;
	color: #0f2244;
	border-color: #0f2244;
	box-shadow: 3px 3px 0 #000;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	background: #000;
	border-top: 3px solid #0e67a4;
}

.site-footer p {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.8;
}

.footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.footer-attr {
	color: #ffd2c8;
	text-decoration: none;
	border-bottom: 2px solid #ee9a8b;
	opacity: 1;
}

.footer-attr:hover {
	background: #ee9a8b;
	color: #0f2244;
}

.footer-about img {
	height: 48px;
	width: auto;
	image-rendering: pixelated;
	transition: opacity 0.1s steps(1);
}

.footer-about:hover img {
	opacity: 0.75;
}

.container {
	width: min(1100px, 92%);
	margin-inline: auto;
}

.section-title {
	margin: 0 0 0.75rem;
	font-size: clamp(0.95rem, 2.4vw, 1.35rem);
	letter-spacing: 0.04em;
	line-height: 1.55;
}

.section-lead {
	margin: 0 0 1.5rem;
	max-width: 42rem;
	opacity: 0.9;
	font-size: 1.05rem;
}

.info-card {
	background: rgba(14, 103, 164, 0.45);
	border: 3px solid #f4f7fb;
	box-shadow: 6px 6px 0 #000;
	padding: 1.5rem 1.75rem;
}

.info-card ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.info-card li + li {
	margin-top: 0.25rem;
}

.info-card .tagline {
	font-size: 0.78rem;
	color: #ee9a8b;
	margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
	.site-header {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0.65rem 0.75rem;
		padding: 0.75rem 1rem;
	}

	.site-logo {
		justify-content: flex-start;
		min-width: 0;
	}

	.site-logo img {
		height: 34px;
	}

	.site-logo span {
		font-size: 0.65rem;
	}

	.nav-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.site-nav {
		display: none;
		grid-column: 1 / -1;
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0.4rem;
		padding: 0.35rem 0 0.15rem;
		border-top: 2px solid rgba(238, 154, 139, 0.35);
	}

	.site-header.is-nav-open .site-nav {
		display: flex;
	}

	.site-nav a {
		width: 100%;
		min-height: 2.75rem;
		justify-content: center;
		font-size: 0.92rem;
		padding: 0.55rem 0.75rem;
		border: 2px solid rgba(255, 255, 255, 0.35);
		background: rgba(14, 103, 164, 0.25);
	}

	.site-nav a:hover,
	.site-nav a[aria-current="page"] {
		background: #ee9a8b;
		color: #0f2244;
		border-color: #0f2244;
	}

	.site-footer {
		flex-direction: column;
		text-align: center;
		gap: 0.85rem;
		padding: 1.25rem 1rem;
	}

	.site-footer p {
		font-size: 0.8rem;
		max-width: 22rem;
	}

	.info-card {
		padding: 1.15rem 1.1rem;
		box-shadow: 4px 4px 0 #000;
	}

	.section-lead {
		font-size: 0.98rem;
	}

	.container {
		width: min(1100px, 94%);
	}
}

@media (max-width: 380px) {
	.site-nav a {
		font-size: 0.85rem;
	}

	.site-logo span {
		font-size: 0.58rem;
	}
}
