<style>

:global(.links_grid a:nth-child(4n)),
:global(.links_grid a:nth-child(4n) svg){
	background-color: var(--nord4);
	fill: var(--nord11);
}
:global(.links_grid a:nth-child(4n+1)),
:global(.links_grid a:nth-child(4n+1) svg){
	background-color: var(--nord6);
	fill: var(--nord10);
}
:global(.links_grid a:nth-child(4n+2)){
	background-color: var(--nord5);
}
:global(.links_grid a:nth-child(4n+3)){
	background-color: var(--nord5);
}

:global(a){
	text-decoration: unset;
	color: var(--nord0);
	transition: 200ms;
}
:global(.links_grid a:hover){
	box-shadow: 1em 1em 2em 1em rgba(0,0,0, 0.3);
}
:global(.links_grid a){
	box-shadow: 0.2em 0.2em 1em 1em rgba(0,0,0, 0.1);
}
.links_grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin-inline: auto;
	padding: 2rem 1rem;
}
:global(.links_grid a){
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: unset;
	color: var(--nord0);
	transition: 200ms;
	width: 100%;
	padding: 1rem;
}
:global(.links_grid a:hover){
	scale: 1.02;
}
:global(.links_grid a :is(svg, img)){
	height: 120px;
	fill: var(--nord0);
}
:global(.links_grid h3){
	font-size: 1.5rem;
}

@media (prefers-color-scheme: dark){
	:global(.links_grid h3){
		color: white;
	}
	:global(.links_grid a:nth-child(4n)),
	:global(.links_grid a:nth-child(4n) svg){
		background-color: var(--nord6-dark);
		fill: var(--nord11);
	}
	:global(.links_grid a:nth-child(4n+1)),
	:global(.links_grid a:nth-child(4n+1) svg){
		background-color: var(--accent-dark);
		fill: var(--nord9);
	}
	:global(.links_grid a:nth-child(4n+2)),
	:global(.links_grid a:nth-child(4n+2) svg){
		background-color: var(--nord1);
		fill: var(--nord8);

	}
	:global(.links_grid a:nth-child(4n+3)),
	:global(.links_grid a:nth-child(4n+3) svg){
		background-color: var(--background-dark);
		fill: var(--nord7);
	}
}
</style>

<div class=links_grid>
	<slot></slot>
</div>
