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

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

::-webkit-scrollbar {
	display: none;
}

#profile {
	padding-bottom: 5rem;
}

html {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
}

body {
	max-width: 768px;
	margin: auto;
	color: white;
	background-color: #111111;
	background-image: url("/img/bg.jpg");
	background-blend-mode: overlay;
	background-position-x: center;
	transition: background-color 500ms ease-out;
}

main {
    scrollbar-width: none;
}

img {
	width: 100%;
}

h1,
h2 {
	font-size: 1.5rem;
	text-align: center;
}

@media (width > 768px) {
	h1,
	h2 {
		font-size: 2rem;
	}
}

h3 {
	font-size: 1rem;
	text-align: left;
}

p {
	text-align: center;
}

a {
	color: whitesmoke;
	text-decoration: none;
}

a:hover {
	color: white;
}

section {
	min-height: 90vh;
	margin-bottom: 3rem;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	gap: 3rem;
}

@media (width > 768px) {
	section.sticky-grid {
		padding: 3rem;
		border-radius: 50px;
    	background-color: rgba(0, 0, 0, 0.3);
		display: grid;
		grid-template-columns: 200px 1fr;
		gap: 2rem;		
	}

	section.sticky-grid > :not(h2) {
		grid-column: 2;
	}

	section.sticky-grid > h2 {
		position: sticky;
		top: 2rem;
		text-align: left;
	}

	section.sticky-grid > p {
		text-align: left;
	}
}


.profile__img {
	max-width: 200px;
	height: auto;
	aspect-ratio: 1/1;
	border-radius: 50%;
	overflow: hidden;
}

.contact {
	display: flex;
	width: 100%;
	justify-content: space-around;
	align-items: center;
}

.contact a {
	width: 100px;
	height: 100px;
	display: grid;
	place-content: center;
	font-size: 3rem;
	border-radius: 50%;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.articles {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.articles > * {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

@media (width > 768px) {
	.articles {
		align-self: flex-start;
	}
	.articles > * {
		justify-content: flex-start;
	}
}

.article__img {
	max-width: 100px;
	padding: 1rem;
	flex-basis: 50%;
	flex-shrink: 0;
	height: auto;
	aspect-ratio: 1/1;
	border-radius: 50%;
	overflow: hidden;
	background-color: whitesmoke;
	display: flex;
	justify-content: center;
	align-items: center;
}

.article__img:hover {
	background-color: white;
}

.article__details {
	padding: 0;
	flex-basis: 50%;
	flex-shrink: 0;
}

.article__details > p {
	text-align: left;
}