@import url('https://fonts.googleapis.com/css2?family=Metamorphous&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');

:root {
	--fg: #edf4f5ea;
	--bg: #1d2021;
	--title: #d8ce3c;
}

body {
	background-image: url("../img/bg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: "Metamorphous", serif;
	color: var(--fg);
}

main {
	margin: auto;
	text-align: center;
	width: 90%;
}

h1 {
	font-size: clamp(2.5rem, 8vw, 8rem);
	margin-bottom: 0;
	color: var(--title);
}

h2 {
	font-size: 1.5rem;
	margin-bottom: 4rem;
}

.topBar {
	display: flex;
	justify-content: flex-end;
	padding: 1rem;
}
  
.topBar img, .card a img {
	width: 2rem;
	height: 2rem;
}

@media (min-width: 768px) {
	.links {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
		justify-items: center;
	}
}

.links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

.card {
	width: 100%;
	max-width: 24rem;
	background: var(--fg);
	border-radius: 12px;
	box-shadow: 0 2px 6px var(--bg);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border: 2px solid var(--bg);
	position: relative;
}

.card a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	text-decoration: none;
	color: var(--bg);
	font-family: "Figtree", sans-serif;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px var(--bg);
}

footer {
	text-align: center;
	margin-top: 4rem;
}