/* 

TODO

- responsive lol
- typography
- show eyeballs at scroll end
- subtle parallax on face so it scoots a little bit with scroll
- add animation to glasses

*/

:root {
	--colors-dark: #252425;
	--colors-light: #efefef;

	--colors-blue: #3676f5;
	--colors-green: #d8fb9a;
	--colors-pink: #f5c2ca;
	--colors-orange: #f09236;

	--unit: 20px;
	--unit-fluid: clamp(2rem, 2vw, 3rem);

	--mouse-x: -50%;
	--mouse-y: -50%;
}
*,
*::before,
*::after {
	box-sizing: border-box; /* Includes padding/border in element width/height */
	margin: 0;
	padding: 0;
}
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%; /* Prevents images from overflowing containers */
}
body {
	background-color: var(--colors-dark);
	color: var(--colors-light);
	font-size: var(--unit-fluid);
	font-family: "peridot-pe-variable", sans-serif;
	font-variation-settings:
		"ital" 0,
		"wdth" 100,
		"wght" 400;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 0;
}
::selection {
	background-color: rgba(255, 140, 0, 0.579);
	color: var(--colors-dark);
}
em {
	font-variation-settings:
		"ital" 50,
		"wdth" 100,
		"wght" 700;
}
/* nav */
section.intro {
	background: var(--colors-blue);
	overflow: hidden;
	padding-bottom: 2rem;
}
h1 {
	color: var(--colors-orange);
}
h1,
footer .name {
	font-weight: 900;
	font-size: clamp(3rem, 13vw, 500px);
	font-variation-settings:
		"ital" 0,
		"wdth" 100,
		"wght" 800;
	letter-spacing: 0.05em;
	line-height: 1;
	margin-top: 0;
	text-align: center;
	text-transform: uppercase;
}
@supports (text-box: trim-both cap alphabetic) {
	h1,
	footer .name {
		text-box: trim-both cap alphabetic;
		font-size: clamp(3.25rem, 14.2vw, 500px);
		margin-left: -0.06em;
		white-space: nowrap;
	}
}
nav {
	margin-bottom: 0.2em;
}
nav ul {
	line-height: 1;
	list-style-type: none;
	max-width: fit-content;
	margin-right: 20%;
	margin-left: auto;
}
nav a {
	color: var(--colors-green);
	font-size: 0.9em;
	text-transform: lowercase;
	text-decoration: none;
}
nav a:hover {
	color: var(--colors-orange);
}
/* content */
.content {
	z-index: 8;
}
.skills h2 {
	color: var(--colors-green);
	font-size: 1.5rem;
	font-variation-settings:
		"ital" 0,
		"wdth" 100,
		"wght" 800;
	font-weight: bolder;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.skills ul {
	color: var(--colors-dark);
	list-style-type: none;
	margin-bottom: 1.5em;
	padding: 1em;
}
.skills ul:first-of-type {
	background: var(--colors-green);
}
.skills ul:last-of-type {
	background: var(--colors-pink);
}
.skills li {
	line-height: 1.15;
	margin-bottom: 0.5em;
}
/* footer */
footer {
	background: var(--colors-orange);
	display: flex;
	flex-direction: column-reverse;
	overflow: hidden;
	padding-top: 2rem;
}
footer nav {
	z-index: 2;
}
footer nav a {
	color: var(--colors-dark);
}
footer nav a:hover {
	color: var(--colors-blue);
}
footer .name {
	color: var(--colors-blue);
}
/* fun stuff */
.bg-face {
	background: 100% / contain url(/assets/jmp-graphic-cutout-bw.png) no-repeat;
	z-index: -10;
}
.front-face {
	background: 100% / contain url(/assets/jmp-graphic-cutout-bw-eyes.png) no-repeat;
	z-index: 10;
}
@media (min-width: 1000px) {
	.face {
		background-position: top center;
		/* border: 1px solid; */
		position: fixed;
		left: 5vw;
		top: 10vw;
		width: clamp(200px, 30vw, 600px);
		height: clamp(300px, 50vw, 900px);
	}
	.skills h2 {
		margin: 0.25em 10% 0.45em 0;
		text-align: right;
	}
	.skills ul:first-of-type {
		padding-left: 39vw;
	}
	.skills ul:last-of-type {
		padding-left: 49vw;
	}
}
