:root {
--one: #381D2A;
--two: #3E6990;
--three: #DB4C40;
--four: #F39B6D;
--five: #035E7B;
--sec: #E9E3B4;
}

body {
	font-family: system-ui, sans-serif;
	font-size: 100%;
	line-height: 1.5em;
	margin: 0;
	color: var(--one)
}

.index body {
	background-color:var(--two);	
}

.portfolio body {
	background-color:var(--three);
}

.about body{
background-color:var(--five);
}

header {
text-align: center;
min-height: 30vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}

h1{ 
font-size: 1.5em;
}

h2 {
font-size: 8vw;
}


.index section, .about section {
background-color:var(--sec);
	padding: 1em 2em;
}

.index .topnav a[href*="index"] {pointer-events: none;}
.portfolio .topnav a[href*="portfolio"] {pointer-events: none;}
.about .topnav a[href*="about"] {pointer-events: none;}

ul.topnav {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
}

.topnav li {
	margin: .3em 0;
}

.topnav a {
	display: inline-block;
	text-decoration: none;
	background-color: var(--four);
	border-radius: 2em;
	padding: .25em 1em;
	width: 8em;
}

.about figure img {
width: 400px;
}

.portfolio main {
	display: flex;
	flex-direction: column;
}

.portfolio section.card {
	width: 80%;
	margin: 2em;
	padding: .2em;
	background-color: #0004;
}
.portfolio section.card img {
	width: 100%;
}
.portfolio section.card p {
	padding: 0 1em;
}


@media (min-width: 600px) {
	ul.topnav {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 1em;
	}
	
	ul.topnav a {
	width: initial;
	}
	
	.index main {
	display: flex;
	flex-direction: row;
	padding: 0 2em;
	gap: 1em;
}


.index section:first-child {
	flex: 3;
}

.index section:last-child {
	flex: 2;
	}
	

.index figure.video {
	margin: 0;
	position: relative;
}

.index iframe {
	width: 100%;
	height: 80%;
}

	
	.about section {
		width: 400px;
		margin: 2em auto;
	}
	
	.portfolio main {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 5%;
		padding: 0 2em;
	}
	
	.portfolio section.card {
		width: 300px;
		margin: 5% 0;
	}
}



@media (prefers-color-scheme: dark) {
:root {
--one: #E9E3B4;
--sec: #381D2A;
}
}