@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		opacity: 0.25;
		transform: translateY(25%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html,
body {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.5;
}

body {
	box-sizing: border-box;
	font-family: Lato, Roboto, Helvetica, sans-serif;
}

body *,
body *::before,
body *::after {
	box-sizing: inherit;
	font-weight: inherit;
}

h1,
h2,
h4,
hr,
ul,
li {
	margin: 0;
}

h1 {
	margin-bottom: 1.5rem;
	font-size: 2.5rem;
}

h2 {
	margin-bottom: 1.25rem;
	font-size: 2.25rem;
}

h4 {
	font-size: 1.5rem;
}

hr {
	height: 1px;
	margin: 1rem 0;
	border: none;
	background: linear-gradient(
		to right,
		#00000000,
		var(--color-border) 20% 80%,
		#00000000
	);
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

ul,
ol {
	padding-left: 2rem;
}

li {
	margin-top: 0.25rem;
	line-height: 1.5;
}

.layout {
	display: flex;
	justify-content: center;
}

aside {
	flex: 0 0 25%;
	max-width: 300px;
	padding: 3rem 0 2rem 2rem;
}

.icon {
	width: 2rem;
	height: 2rem;
}

.sticky-content {
	position: sticky;
	top: 3rem;
}

.photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 5px;
	background-color: var(--color-bg-card);
	opacity: 0;
	transition: opacity 500ms;
}

.info {
	margin-top: 2rem;
	padding-left: 1rem;
}

.infobit {
	display: flex;
	align-items: center;
	margin-top: 0.5rem;
	gap: 0.5rem;
}

.infobit .icon {
	width: 1rem;
	height: 1rem;
	color: var(--color-primary);
	transition: transform 150ms;
}

a.infobit:hover .icon {
	transform: scale(1.15);
}

.infobit .text {
	margin-left: 1.5rem;
}

main {
	flex: 1;
	max-width: 800px;
	padding: 3rem 2rem;
}

section {
	margin-top: 3rem;
}

section:first-child {
	margin-top: 0;
}

article {
	margin-bottom: 2rem;
}

article:last-child {
	margin-bottom: 0;
}

section p,
section ul {
	margin-top: 1rem;
}

.name {
	margin-bottom: 0.5rem;
	line-height: 1;
}

.skills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	grid-auto-rows: max-content;
	grid-auto-flow: row;
	gap: 1rem;
}

.skill {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 5px;
	background-color: var(--color-bg-card);
	line-height: 1.25;
	text-align: center;
	opacity: 0;
	animation: fadeIn calc(var(--child) * 300ms) calc(var(--child) * 50ms)
		forwards;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.chip {
	padding: 0.5rem;
	border-radius: 5px;
	border: 1px solid var(--color-border);
	font-size: 0.875rem;
}

.period-location {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	color: var(--color-primary);
}

.stack {
	margin-top: 1rem;
}

.print-visible-flex {
	display: none;
}

@media only screen and (min-width: 769px) {
	main .infobits {
		display: none;
	}
}
/* mobile */
@media only screen and (max-width: 768px) {
	.layout {
		flex-direction: column;
	}
	aside {
		margin: 0 auto;
		padding: 1rem;
	}
	.info {
		display: none;
	}
	main {
		padding: 1rem 1rem 1.5rem;
	}
}

@media print {
	h2 {
		margin-bottom: 1rem;
	}
	hr {
		background: var(--color-border);
	}
	.layout {
		display: block;
	}
	aside {
		float: left;
		padding: 0 2rem 1rem;
	}
	main {
		padding: 0 0 0 2rem;
	}
	section {
		margin-top: 2rem;
	}
	section:first-child {
		margin-top: 0;
	}
	article {
		margin-bottom: 1.5rem;
	}
	article:last-child {
		margin-bottom: 0;
	}
	.sticky-content {
		position: inherit;
	}
	main .infobits {
		display: none;
	}
	.skills {
		/* grid-template-columns: repeat(3, minmax(100px, 1fr)); */
		gap: 0.5rem;
	}
	.skill {
		padding: 0.5rem;
		border: 1px solid var(--color-border);
		background-color: transparent;
	}
	.technologies {
		gap: 0.5rem;
	}
	.stack {
		margin-top: 0.5rem;
	}
	.print-visible-flex {
		display: flex;
	}
	.print-hidden {
		display: none;
	}
}

@media (prefers-color-scheme: dark) {
	.photo {
		filter: brightness(0.8);
	}
}
