:root {
	--color-0: #292418;
	--color-1: #524839;
	--color-2: #73654a;
	--color-3: #8b7d62;
	--color-4: #a48d6a;
	--color-5: #bda583;
	--color-6: #cdba94;
	--color-7: #e6ceac;
}

body {
	margin: 0;
	background-color: var(--color-0);
	color: var(--color-5);
}

h2 {
	text-transform: uppercase;
	font-weight: bold;
}

a {
	color: inherit;
	text-decoration: inherit;
}

header {
	padding: 16px;
	position: absolute;
	width: 100%;
	display: flex;
	gap: 8px;
	box-sizing: border-box;

	& a {
		color: var(--color-7);
		font-weight: bold;
		text-transform: uppercase;
	}
}

main {
	width: min(800px, calc(100% - 40px));
	min-height: calc(100vh - 40px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.profile {
	width: min(350px, calc(100% - 40px));
	margin: 64px 4px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	@media screen and (max-width: 350px) {
		justify-content: center
	}

	background-color: var(--color-2);
	color: var(--color-0);
	border-radius: 5px;

	box-shadow: 3px 3px var(--color-1), inset 3px 3px var(--color-3);
	box-sizing: border-box;

	& > img {
		min-width: 0;
		flex: 0 1 128px;
		aspect-ratio: 1;
		object-fit: contain;
		border-radius: 50%;
		background-color: var(--color-1);
		transform: translate(2px, 2px);
		box-shadow: -4px -4px var(--color-0);

		@media screen and (max-width: 350px) {
			display: none
		}
	}

	& .info {
		flex: 1 0;

		& p { margin: 0; padding: 0; }

		& .name {
			font-size: 2rem;
			margin: 0 0 10px 0;
		}

		& .desc {
			font-style: italic;
			font-size: 1rem;
		}
	}
}

.portfolio-list {
	padding-bottom: 32px;

	& .portfolio {
		padding: 48px 0 64px 0;

		& > h2 {
			color: var(--color-7);
			margin: 4px 0;
		}

		/* &:not(:first-of-type) { */
			border-top: 1px solid var(--color-7);
		/* } */
	}

	& .portfolio-description {
		margin-bottom: 32px;
	}
	
	& .portfolio-images {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		padding: 16px;
	}
	
	& .portfolio-images img {
		max-width: 100%;
		max-height: 50vh;
		border-radius: 5px;
		box-shadow: 2px 2px 2px #000a;
	}

	& .portfolio-status {
		margin-bottom: 16px;
		display: flex;
		justify-content: space-between;
		align-items: center;

		& .status {
			color: var(--color-6);
			text-transform: uppercase;
			font-weight: bold;
			font-style: italic;
			font-family: "Stardos Stencil", system-ui;
			text-decoration: underline;
		}

		& .platform {
			margin: 8px;
			display: inline-block;
			list-style: none;
			height: 32px;
			
			& img {
				height: 32px;
			}
		}
	}
}

footer {
	width: 100%;
	height: 40px;
	background-color: var(--color-1);
	color: var(--color-6);
	text-align: center;
	line-height: 40px;
	font-weight: bold;
}

/* Cross-browser scrollbar styling that follows the theme variables above */
/* WebKit-based browsers */
*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--color-1);
	border-radius: 10px;
	border: 3px solid transparent;
	background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--color-2);
}

/* Firefox */
* {
	scrollbar-color: var(--color-1) transparent;
}