@font-face {
	font-family: "ElectricBlue";
	src: url('font/ElectricBlue-VF.woff2');
}
@font-face {
	font-family: "Very Bauble";
	src: url('font/LTRVeryBaubleVF-Inline.woff2');
}

html {
	font-family: "ElectricBlue", "Very Bauble", impact, sans-serif;
	font-weight: 300;
	text-rendering: optimizeLegibility;
	text-transform: uppercase;
	background: hsla(117,79%,77%,.1);
	line-height: 1.4;
	font-feature-settings: "aalt" on;
	font-variation-settings: "SERF" 263;
}
body {
	padding: 11.1111vh 11.1111vw 22.2222vh;
	margin: 0;
	display: flex;
	align-items: center;
	min-height: 100dvh;
	box-sizing: border-box;
}
@media (max-aspect-ratio: 1/1) {
	body {
		padding: 5.5555vh 11.1111vw 11.1111vh;
	}
}
h1 {
	margin: 0;
}
ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

li {
	margin: 0;
	padding: 0;
	font-size: calc(1.4vw + 1.5vh + 1.5vmin);
	flex-grow: 1;
	text-align: center;
	display: flex;
	align-items: stretch;
	align-content: center;
}
a {
	--color:  hsla(var(--h),calc(var(--s) * 1%), calc(var(--l) * 1%),1); 
	background:var(--color);
	box-shadow: 0 0 0 calc(var(--box) * .1em) var(--color);
	color: black;
	mix-blend-mode: multiply;
	
	font-weight: var(--wght-start);
	text-decoration: none;
	
	display: block;
	flex-grow: 1;
	padding: .5em;
	z-index: 4;
	position: relative;
	transform: rotate(calc(var(--wobble) * -.3deg));
	
	transition: transform .2s !important;
	animation-name: h1, wght, bump;
	animation-duration: calc(var(--duration) * 1s), 2s, 1s;
	animation-timing-function: linear, ease-out, cubic-bezier(.5,0,1,.25);
	animation-delay: calc(var(--duration) * -1s), 0s, calc(var(--index) * .05s);
	animation-iteration-count: infinite, 1, 1;
	animation-direction: alternate, normal, normal;
	animation-fill-mode: forwards, forwards, forwards;
}
h1 a {
	font-size: 8.9vw;
	font-weight: var(--wght-end);
	text-align: center;
	white-space: nowrap;
	letter-spacing: .1vw;
	box-shadow: 
		0 calc(var(--box) * -.1rem) 0 0 var(--color),
		0 calc(var(--box) * .1rem) 0 0 var(--color);
	
	padding: 1.5rem .1em 1rem;
	transform: rotate(calc(var(--wobble) * .1deg));
}
@media (max-width: 50em) {
	h1 a {
		font-size: 8vw;
	}
}

a:focus-visible {
	transition: .2s;
	outline: dashed black;
}
a:hover,
a:focus { 
	--color:  hsla(calc(var(--h) + 180),calc(var(--s) * 1%), calc(var(--l) * 1%),1); 
	transition: 2s;
	transform: rotate(calc(var(--wobble) * -.2deg));
	animation-name: h1, wght, bump;
	animation-duration: calc(var(--duration) * 1s), 2s, 1s;
	animation-timing-function: linear, ease-out, cubic-bezier(0,.74,.25,1);
	animation-delay: calc(var(--duration) * -1s), 0s, 0s;
	animation-iteration-count: infinite, 1, 1;
	animation-direction: alternate, normal, reverse;
	animation-fill-mode: forwards, forwards, forwards;
}

a::before {
	content: attr(aria-label);
	position: absolute;
	z-index: 1;
	mix-blend-mode: difference;
	font-weight: 100;
	opacity: 0;
	color: wheat;
	transition: .2s;
}
a:hover::before {
	opacity: 1;
}

a:hover::before {
	font-weight: var(--wght-start);
}
li:nth-of-type(1n + 9) a:hover {
	color: hsla(calc(var(--h)),calc(var(--s) * 1%), calc(var(--l) * 1%),1); ;
}
li:nth-of-type(1n + 9) a::before {
	z-index: -1;
}
li:nth-of-type(1) a {
	letter-spacing: .02em;
}

@keyframes wght {
	100% {
		font-weight: var(--wght-end);
	}
}
@keyframes h1 {
	100% { filter: hue-rotate(344deg)}
}
@keyframes bump {
	0% {
		transform: rotate(calc(var(--wobble) * -.3deg));
	}
	100% {
		transform: rotate(calc(var(--wobble) * .3deg));
	}
}
@media (prefers-reduced-motion) {
	@keyframes wght {
		0%, 100% {
			font-weight: var(--wght-end);
		}
	}
	@keyframes bump {
		0%, 100% {
			transform: rotate(calc(var(--wobble) * -.3deg));
		}
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background: hsla(117,79%,3%,1);
	}
	a {
		mix-blend-mode: screen;
	}
}


@media print {
	body {
		padding: .5cm;
	}
	a {
		display: flex;
		flex-direction: column;
		line-height: 1;
	}
	a::after {
		content: attr(href);
		font-size: 10pt;
		display: block;
		font-weight: 400;
	}
	h1 a {
		display: block;
	}
}