@import url('https://rsms.me/inter/inter.css');


@-ms-viewport{
  width: device-width;
}

:root *, :root *::before, :root *::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 62.5%;
	font-weight: 400;
	color: hsla(215,9%,28%,1.00);
	text-align: center;
	background: hsla(236,3%,92%, 1.00);
	
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: none;
	-ms-text-size-adjust: 100%;
	text-size-adjust: none;
	
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html * {
	margin: 0;
	padding: 0;
}

/* -------- */

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

a {
	text-decoration: none;
}


/* -------- */

nav {
	width: 50%;
	padding: 2.4rem 6.4rem;
	font-size: 1.8rem;
	position: sticky;
	top: 0;
	background: hsla(236,3%,92%, 1.00);
	
	align-self: flex-end;
	
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.nav-logo {
	width: 96px;
	height: 96px;
}

.nav-menu {
	width: 48px;
	height: 48px;
	text-align: center;
	line-height: 48px;
	color: hsla(226,33%,40%,1.00);
	cursor: pointer;
	display: none;
}

nav a {
	color: hsla(226,33%,40%,1.00);
}

@media only screen and (min-width: 1024px) {
	.nav-logo {
		order: 3;
	}

	.nav-1 {
		order: 1;
	}
	.nav-2 {
		order: 2;
	}
	.nav-3 {
		order: 4;
	}
	.nav-4 {
		order: 5;
	}
}

/* -------- */

header {
	width: 50%;
	min-height: 100vh;
	height: auto;
	position: fixed;
	top: 0;
	
	background: hsla(185,8%,34%,1.00);

	overflow: hidden;
	background-image: url("/_img/fpo.hero.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* -------- */

article {
	width: 50%;
	height: 720px;
	align-self: flex-end;
	
	background: gold;
}

/* -------- */

footer {
	width: 50%;
	margin-top: auto;
	padding: 2.4rem 6.4rem;
	text-align: left;
	
	align-self: flex-end;
	background: hsla(236,3%,92%,1.00);
}

.copyright {
	width: 100%;
	padding-top: 2.4rem;
	font-size: 1.6rem;
	border-top: 1px hsla(179, 1%, 81%, 1.00) solid;
}

/* -------- */

@media only screen and (max-width: 480px) {
	nav, header, article, footer {
		width: 100%;
		position: relative;
	}
	
	nav {
		max-height: 80px;
		padding: 1.6rem;
		overflow: hidden;
		position: fixed;
		top: 0;
		z-index: 80;
		transition: all 0.3s ease-in-out;
	}
	nav.active {
		max-height: 320px;
	}
	
	.nav-logo {
		width: 48px;
		height: 48px;
		order: 1;
	}
	
	.nav-menu {
		display: block;
		order: 2;
	}
	
	.nav-link {
		width: 100%;
		padding: 16px 0;
		border-top: 1px hsla(179, 1%, 81%, 1.00) solid;
	}
	
	.nav-1 {
		margin-top: 16px;
		order: 3;
	}
	.nav-2 {
		order: 4;
	}
	.nav-3 {
		order: 5;
	}
	.nav-4 {
		padding-bottom: 0;
		order: 6;
	}
	
	
	header {
		min-height: auto;
		height: 480px;
	}
	
	footer {
		padding: 1.6rem;
		text-align: left;
	}
	.copyright {
		padding-top: 1.6em;
		font-size: 1.4rem;
	}
	
}

@media only screen and (max-width: 350px) {
	.copyright {
		font-size: 1.3rem;
	}
}