:root {
	--color-primary: hsl(75, 94%, 57%);
	--color-white: hsl(0, 0%, 100%);
	--color-off-white: hsl(0, 0%, 80%);
	--color-md-gray: hsl(0, 0%, 50%);
	--color-gray: hsl(0, 0%, 20%);
	--color-dark-gray: hsl(0, 0%, 12%);
	--color-off-black: hsl(0, 0%, 8%);
	--length-xs: 0.5em;
	--length-sm: 1em;
	--length-md: 1.5em;
	--length-lg: 2em;
	--time-sm: 0.1s;
	--time-md: 0.25s;
	--time-lg: 0.5s;
	--time-xl: 0.75s;
}

* {
	transition: all var(--time-sm);
}

*:hover {
	transition: all var(--time-sm);
}


html {
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
}

body {
	display: block;
	position: relative;
	background: var(--color-off-black);
	height: 100vh;
	padding: 0;
	margin: 0;
	overflow: hidden;
	animation: floatIn var(--time-xl) ease-out;
}

main {
	position: relative;
	height: 100%;
	margin: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	animation: floatIn var(--time-xl) ease-out;
}

.card {
	display: block;
	position: relative;
	width: calc(var(--length-lg) * 8);
	margin: auto;
	background: var(--color-dark-gray);
	padding: var(--length-lg);
	border-radius: calc(var(--length-xs) * 1.5);
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
}

.card * {
	text-align: center;
}

.card-header,
.social-links {
	display: block;
	position: relative;
	margin: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: auto;
}

.profile-img {
	border-radius: 50%;
	justify-self: center;
	width: 4.5rem;
	padding: 0;
	margin-bottom: var(--length-sm);
}

.profile-img:hover {
	transform: scale(1.1);
}

.card h2 {
	color: var(--color-white);
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	padding: 0;
}

.location {
	color: var(--color-primary);
	font-weight: 600;
	font-size: 12px;
	margin: var(--length-xs) 0 var(--length-md) 0;
}

.description {
	color: var(--color-off-white);
	font-size: 12px;
	margin: var(--length-lg) auto;
}

.social-links {
	width: 100%;
}

.social-links a {
	display: block;
	width: auto;
	background: var(--color-gray);
	color: var(--color-white);
	text-decoration: none;
	padding: var(--length-sm);
	border-radius: calc(var(--length-xs) * 1.25);
	font-size: 12px;
	font-weight: 700;
}

.social-links a:not(:last-of-type) {
	margin-bottom: var(--length-sm);
}

.social-links a:hover {
	background: var(--color-md-gray);
}

.social-links a:active {
	/* border: 3px solid var(--color-off-black); */
	/* box-shadow: 0 0 0 7px var(--color-off-white); */
	color: var(--color-off-black);
	background: var(--color-primary);
}

footer {
	display: block;
	position: fixed;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: var(--length-xs) 0;
	bottom: 0;
}

.attribution {
	text-align: center;
	font-size: 10px;
	color: var(--color-md-gray);
}

.attribution a {
	color: var(--color-off-white);
	text-decoration: none;
}

.attribution a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

@media screen and (max-width: 375px) {
	.card {
		width: calc(var(--length-lg) * 7);
		padding: var(--length-md);
	}
}

@keyframes floatIn {
	0% {
		transform: translateY(5%);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opactity: 1;
	}
}