/*Common*/
h1, h2, h3 {
	font-weight: 500;
    filter: url(#shadow);
    text-shadow: 4px 4px 1px var(--theme);
	margin: 0;
}
h2 {
	margin-bottom: 5vh;
}
h3 {
	font-size: 3vh;
}
p, a, li {
	color: var(--highlight);
}
article {
	margin-bottom: 15vh;
}
article p {
	text-shadow: 0 0 10px rgb(0,0,0,.5);
}
article *, #navWrap span {
	animation: ease-in-out bottom-in;
	animation-timeline: view();
}
article::after {
	content: '';
	display: block;
	width: 2vh;
	height: 2vh;
	border-radius: 50%;
	background: var(--highlight);
	box-shadow: 6vh 0 0 var(--highlight), 12vh 0 0 var(--highlight);
	margin-top: 5vh;
}
img {
	border-radius: 4vh;
	max-height: 50vh;
	max-width: 100%;
	margin-bottom: 3vh;
}
article a {
	text-decoration: underline;
}
#cont, #contNav {
	height: 100dvh;
	box-sizing: border-box;
	overflow: auto;
}
#cont, #navWrap {
	animation: fade-in 1s;
}
#cont::after {
	content: '';
	background: linear-gradient(transparent 0%, var(--bg) 100%);
    display: block;
    height: 20%;
    position: fixed;
    bottom: 0;
    left: 0;
	opacity: .5;
    z-index: 2;
    pointer-events: none;
}
#contNav {
	background: var(--theme);
	background-image: var(--grain);
	box-shadow: inset 0 -20px 100px 0px rgb(0,0,0,0.2);
	display: flex;
    z-index: 3;
}
#navWrap {
	margin: auto 0;
	max-height: 80vh;
	overflow: auto;
}
#navWrap span {
	display: flex;
	font-size: var(--small);
	padding: 0 2vh 2vh 0;
	align-items: center;
	cursor: pointer;
	transition: .4s;
}
#navWrap span::before {
	content: '';
	width: 1vh;
	height: 1vh;
	display: block;
	border: var(--highlight) solid .3vh;
	border-radius: 50%;
	margin: 0 6vh;
	position: relative;
	flex: none;
	transition: .4s;
}
#navWrap span:hover::before{
	background: var(--highlight);
	border: transparent solid .3vh;
}
#navWrap span.active::before {
	will-change: transform;
	border: transparent solid .3vh;
	background: var(--highlight);
	transform: scale(1.5);
}
@keyframes bottom-in {
	entry 0%  {transform: translateY(10vh);}
	entry 100%  {transform: translateY(0);}
}

/*Large*/
@media (orientation: landscape) {
	body {
		overflow-y: hidden;
	}
	h1 {
		font-size: 7vh;
	}
	h2 {
		font-size: var(--large);
	}
	plus-icon {
		display: none;
	}
	#mainWrap {
		display: grid;
		grid-template-columns: 70vw 30vw;
	}
	#cont {
		padding: 10vh 30vh 0 10vh;
	}
	#cont::after {
		content: '';
		width: 70vw;
	}
	#contNav {
		border-left: .2vh solid;
	}
	#back {
		right: 3vh;
		z-index: 3;
	}
	a img {
		will-change: transform;
		transition: .4s;
		&:hover {
			filter: saturate(1.2);
		}
	}
}

/*Small*/
@media (orientation: portrait) {
	h1 {
		font-size: var(--large);
		margin-bottom: 2vh;
	}
	h2 {
		font-size: 3vh;
	}
	plus-icon {
		position: fixed;
		width: 3.5vh;
		bottom: 3vh;
		right: 3vh;
		color: var(--highlight);
		transition: .4s;
	}
	#phoneNav:checked + #contNav {
		top: 0;
	}
	#phoneNav:checked + #contNav plus-icon {
		transform: rotate(-225deg);
	}
	#cont {
		padding: 4vh 3vh;
	}
	#cont::after {
		content: '';
		width: 100%;
	}
	#contNav {
		position: fixed;
		left: 0;
		top: -100vh;
		width: 100vw;
		transition: .4s;
	}
}