@import url("https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap");

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* ── Global ── */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Fira Mono", monospace;
	background-color: #201e1f;
	color: #dcdde1;
	overflow-x: hidden;
}

section {
	padding: 2rem 12rem;
}

hr {
	height: 0.3125rem;
	border-width: 0;
	background-color: #00a4bd;
}

@media only screen and (max-width: 1200px) {
	section {
		padding: 2rem 2rem;
	}
}

/* ── Navbar ── */

.nav {
	position: fixed;
	z-index: 1000;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 5rem;
	padding: 0;
}

.navlist {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	width: min(100%, 100rem);
	height: 5rem;
	padding: 0 max(2.5rem, 1.5625rem);
	background: linear-gradient(
		90deg,
		rgba(32, 30, 31, 0) 0%,
		rgba(32, 30, 31, 0.2) 5%,
		rgba(32, 30, 31, 0.3) 15%,
		rgba(32, 30, 31, 0.5) 45%,
		rgba(32, 30, 31, 0.5) 100%
	);
	box-shadow: 1rem 0.125rem 1.25rem 0.0625rem #201e1f6d;
}

.navlist li a {
	text-decoration: none;
	color: #dcdde1;
}

@media only screen and (max-width: 450px) {
	.nav {
		justify-content: center;
		align-items: center;
	}
	.navlist {
		width: 100%;
		justify-content: space-around;
		padding: 1rem;
	}
}

/* ── Hero ── */

.heroDiv {
	padding: 7rem 12rem 4rem;
	display: block;
}

.heroDiv > div {
	width: min(100%, 100rem);
	max-width: 52rem;
	margin: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.heroDiv > div:first-child > * {
	padding: 0;
}

.heroDiv h1 {
	font-size: clamp(1.6rem, 6rem, 3.5rem);
	line-height: 1.05;
	margin-bottom: 0.2rem;
}

.heroDiv p {
	line-height: 1.5;
	font-size: 1.05rem;
}

.heroDiv .heroAbout {
	max-width: 43rem;
	letter-spacing: 0.02rem;
	opacity: 0.95;
	margin-top: 0.8rem;
}

@media only screen and (max-width: 1200px) {
	.heroDiv {
		padding: 6rem 2rem 3rem;
	}
	.heroDiv > div {
		max-width: 100%;
	}
}

/* ── About ── */
.aboutSection {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}

.aboutSection div {
	max-width: 90rem;
	padding: 2rem;
}

.aboutSection h2 {
	font-size: clamp(1.5rem, 5rem, 2.5rem);
	margin-bottom: 3rem;
}

.aboutSection p {
	text-align: justify;
	line-height: 1.4rem;
	letter-spacing: 0.02rem;
	max-width: 37.5rem;
}

@media only screen and (max-width: 1200px) {
	.aboutSection {
		margin: 0;
		padding: 0;
	}
}

/* ── Projects ── */

.projectSection {
	width: 100%;
	max-width: 100rem;
	margin: 0 auto;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.projectGrid {
	width: min(100%, 100rem);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4rem;
}

.projectTile {
	display: flex;
	flex-direction: row;
	gap: 3rem;
	justify-content: space-between;
	align-items: flex-start;
	width: min(100%, 93.75rem);
	padding: 3.5rem 2.5rem;
	border: 0.5rem solid #6f67f0;
	box-shadow: 0.75rem 1.25rem 0 #5339b8;
	background-color: rgba(15, 15, 15, 0.148);
}

.projectTile {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	gap: 3rem;
}

.projectTile .tileMedia {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	flex: 0 1 34rem;
	min-width: 0;
}

.projectTile .tileLinks {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 1rem;
	width: 100%;
	flex-wrap: nowrap;
}

.projectTile .tileLinks > div {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	max-width: none;
	gap: 1rem;
}

.projectTile .tileLinks a {
	font-size: 2rem;
	color: #dcdde1;
}

.projectTile .tileLinks a:hover {
	transform: scale(1.2);
}

.projectTile .tileLinks p {
	font-size: 1.1rem;
	line-height: 1.15rem;
}

.projectTile .tileInfo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	flex: 1 1 26rem;
	max-width: 36rem;
	min-width: 0;
	line-height: 1.15rem;
}

.projectTile .tileInfo h3 {
	font-size: 1.3rem;
}

.projectTile img {
	box-shadow: 0.3125rem 0.3125rem 0.3125rem black;
	transition: transform 200ms ease-in-out;
}

.projectTile img:hover {
	transform: scale(1.02);
}

.projectThumbnail {
	width: 100%;
	max-width: 34rem;
	height: auto;
}

pre {
	overflow-x: auto;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
	word-wrap: break-word;
}

@media only screen and (max-width: 1200px) {
	.projectGrid {
		gap: 4rem;
	}
	.projectTile {
		padding: 2.5rem 1.5rem;
		margin: 0.5rem 0;
		border: 0.25rem solid #6f67f0;
		box-shadow: 0.375rem 0.625rem 0 #5339b8;
		background-color: rgba(15, 15, 15, 0.148);
	}
	.projectTile a {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.projectTile {
		flex-direction: column;
		gap: 2.5rem;
		align-items: stretch;
	}
	.projectTile .tileMedia {
		gap: 2rem;
		flex: 1 1 auto;
	}
	.projectTile .tileInfo {
		max-width: 100%;
		flex: 1 1 auto;
	}
	.projectTile .tileInfo h3 {
		margin-bottom: 0.8rem;
	}
	.projectTile .tileInfo p {
		text-align: left;
		padding: 0.6rem 0;
	}
	.projectTile img {
		max-width: 90%;
	}
}

/* ── Contact ── */

.contactSection {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.contactSection > div {
	width: min(100%, 100rem);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contactSection ul {
	display: flex;
	justify-content: center;
	gap: 5rem;
}

.contactSection h3 {
	font-size: 1.3rem;
	padding: 1rem 0;
	text-align: center;
}

.contactSection a {
	text-decoration: none;
	font-size: 3rem;
	color: #dcdde1;
}

/* ── Footer ── */

.footer {
	display: flex;
	justify-content: center;
	align-items: center;
	width: min(100%, 100rem);
	margin: 0 auto;
	padding-top: 5rem;
}
