@font-face {
	font-family: fixedsys;

	src: url(assets/FSEX302.woff2) format("woff2");
	font-display: swap;
}

:root {
	--ink: #070707;
	--paper: #FFFFFF;
	--go: #22FF22;

	--title-size: clamp(22px, 8vw, 36px);
	--card-width: min(320px, 100% - 32px);

	--col-width: 360px;
	--col-gap: 48px;
	--grid-cols: 1;
	--grid-width: calc(var(--grid-cols) * var(--col-width) + (var(--grid-cols) - 1) * var(--col-gap));
	--outline: 5px solid var(--ink);
	--text-outline: -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink), 2px 2px var(--ink), 0px -2px var(--ink), -2px 0px var(--ink), 2px 0px var(--ink), 0px 2px var(--ink), -2px 2px 2px var(--ink);
}

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

body {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 16px 0 24px;
}

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

.body {
	background-color: #5fb0f0;
}

.body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: url('assets/back.webp');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	image-rendering: -moz-crisp-edges;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.logo {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 16px;
}

.logo h1 {
	margin: 0;
	font-size: 0;
	line-height: 0;
}

.logo img {
	--logo-w: min(338px, 80vw);
	width: var(--logo-w);

	height: round(nearest, calc(var(--logo-w) * 485 / 1350), 1px);
}

.sublogo {
	margin: 0 auto;
	padding: 0 16px;
	max-width: calc(var(--grid-width) + 32px);
	font-family: fixedsys;
	font-size: var(--title-size);
	line-height: 1.15;
	line-height: round(up, 1.15em, 1px);
	text-align: center;
	color: var(--paper);
	text-shadow: var(--text-outline);
}

.links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(40px, 8vw, 56px);
	margin-top: clamp(32px, 6vw, 48px);
}

.card {
	display: flex;
	flex-direction: column;
	align-items: center;

	justify-content: flex-end;
	gap: 18px;
	width: 100%;
}

@media (min-width: 820px) {
	:root {
		--grid-cols: 2;
	}

	.links {
		display: grid;
		grid-template-columns: repeat(var(--grid-cols), var(--col-width));
		justify-content: center;
		column-gap: var(--col-gap);
		padding: 0 16px;
	}

	.card:last-child:nth-child(2n + 1) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1240px) {
	:root {
		--grid-cols: 3;
	}

	.card:last-child:nth-child(2n + 1) {
		grid-column: auto;
	}

	.card:last-child:nth-child(3n + 1) {
		grid-column: 1 / -1;
	}
}

.center,
.about-link {
	outline: var(--outline);
	border-radius: 12px;
	background: var(--paper);
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	width: var(--card-width);

	text-align: center;
	text-wrap: balance;
	font-family: fixedsys;
	font-size: var(--title-size);
	font-weight: normal;
	line-height: 1.15;

	line-height: round(up, 1.15em, 1px);
	color: var(--paper);
	text-shadow: var(--text-outline);
	box-shadow: 8px 8px 16px var(--ink);
}

.about-link {
	padding: 2px 10px;
	text-decoration: none;
}

.about-link:hover,
.about-link:focus-visible,
.center a:hover,
.center a:focus-visible {
	color: var(--go);
}

header .about-link {
	margin-top: 20px;
}

.center a {
	display: block;
	padding: 2px 10px;
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
}

.center a:focus-visible {
	outline: 4px dashed var(--ink);
	outline-offset: 2px;
}

.clickable {
	margin: 0 auto;
	width: var(--card-width);
	outline: var(--outline);
	border-radius: 12px;
	background: var(--go);
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 8px 8px 16px var(--ink);
	transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}

.image {
	width: 100%;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 12px;
}

.image img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

.placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	aspect-ratio: 1;
	font-family: fixedsys;
	font-size: var(--title-size);
	text-align: center;
	color: var(--paper);
	text-shadow: var(--text-outline);
}

.image:focus-visible {
	outline: 4px dashed var(--paper);
	outline-offset: 6px;
}

@media (hover: hover) {
	.clickable:hover {
		transform: translate(-3px, -3px);
		box-shadow: 11px 11px 16px var(--ink);
	}
}

.clickable:active {
	transform: translate(3px, 3px);
	box-shadow: 4px 4px 10px var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	.clickable {
		transition: none;
	}
}

.blot {
	display: flex;
	justify-content: flex-start;
	margin-top: max(300px, 40vh);
}

.blot a {
	display: block;
	padding: 14px;
	line-height: 0;
}

.blot img {
	image-rendering: pixelated;
	animation: blot-seep 8s ease-in 30s both;
}

@keyframes blot-seep {
	from { opacity: 0; }
	to { opacity: 1; }
}
