/* FONTS----------------------------------------------------------- */
@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-Oblique.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-MediumOblique.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Ronzino";
	src: url("/assets/fonts/Ronzino-BoldOblique.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "PP Playground";
	src: url("/assets/fonts/PPPlayground-Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* DOCUMENT-------------------------------------------------------- */
html {
	scrollbar-gutter: stable;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	background-color: white;
	display: flex;
	flex-direction: column;
	font-family: "Ronzino", "Helvetica", "Arial", sans-serif;
	font-size: 1.2rem;
	color: #443731;
	line-height: 1.6;
	font-kerning: normal;
	max-width: 104rem;
	margin: auto;
	padding-inline: 1rem;
	min-height: 100vh;
}

::selection {
	background: #ec5447;
	color: white;
}

/* TYPOGRAPHY+LINKS------------------------------------------------ */
h1 {
	font-size: inherit;
	margin: 0 0 3rem;
}

h2 {
	font-size: inherit;
	margin: 0.2rem 0 0.4rem;
}

p {
	margin: 0;
}

a {
	color: #443731;
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.1em;
}

a:hover {
	color: #ec5447;
	text-decoration: underline;
	text-decoration-style: wavy;
}

/* LAYOUT---------------------------------------------------------- */
header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	padding: 1rem 0 0;
	border-bottom: 2px solid #443731;
}

nav {
	font-weight: 700;
}

nav ul {
	display: flex;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

nav a {
	text-decoration: none;
}

main {
	margin: 0.6rem 0 auto;
}

footer {
	margin: 3rem 0 0.8rem;
}

/* COMPONENTS------------------------------------------------------ */
.site-title {
	color: #443731;
	text-decoration: none;
	font-family:
		"PP Playground", "Edwardian Script ITC", "Snell Roundhand", cursive;
	font-size: 1.8rem;
	display: block;
	width: fit-content;
	margin: 0 4rem 0 -0.2em;
	font-feature-settings: "ss02" 1;

	& .swash {
		font-feature-settings: "swsh" 1;
	}

	&:hover {
		color: #ec5447;
		text-decoration: none;
	}

	& h1 {
		font-size: inherit;
		font-weight: inherit;
		margin: 0;
	}
}

.body-text {
	max-width: 44rem;
	margin: 0 0 1rem;
}

.footer-text {
	width: fit-content;
	margin: 0 0 0 auto;
	font-weight: 700;
}

.copyright {
	cursor: pointer;
}

.copyright-name {
	display: none;
}

.copyright:hover .copyright-name {
	display: inline;
}

/* PAGE-SPECIFIC--------------------------------------------------- */
.cv {
	max-width: 74rem;

	& time {
		font-variant-numeric: tabular-nums;
		letter-spacing: -0.04em;
	}

	& ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	& li {
		display: grid;
		margin: 0 0 1rem;
		border-top: 1px solid transparent;
		border-bottom: 1px solid transparent;

		& > * {
			padding-right: 1rem;
			margin: 0;
		}
	}
}

.cv--3col li {
	grid-template-columns: minmax(10rem, 15%) 45% 40%;
}

.cv--2col li {
	grid-template-columns: minmax(10rem, 15%) 85%;
}

/* RESPONSIVE------------------------------------------------------ */
@media (hover: hover) {
	.cv li:hover {
		border-top: 1px solid #443731;
		border-bottom: 1px solid #443731;
	}
}

@media screen and (max-width: 58em) {
	.cv--3col li,
	.cv--2col li {
		grid-template-columns: 10rem 1fr;
	}

	.cv--3col li > :first-child {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.cv--3col li > :nth-child(2),
	.cv--3col li > :nth-child(3) {
		grid-column: 2;
	}
}

@media screen and (max-width: 44em) {
	.cv--3col li,
	.cv--2col li {
		grid-template-columns: 10rem 1fr;
	}
}

@media screen and (max-width: 38em) {
	header {
		position: sticky;
		top: 0;
		background-color: white;
		z-index: 1;
	}

	nav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: white;
		padding-inline: 1rem;
		z-index: 1;
	}

	nav ul {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 0;
		padding: 0.6rem 0 0.8rem;
		border-top: 2px solid #443731;
	}

	nav li:last-child {
		justify-self: end;
	}

	body {
		padding-bottom: 4rem;
	}

	.cv--3col li,
	.cv--2col li {
		grid-template-columns: 1fr;
	}

	.cv--3col li > :first-child {
		grid-row: auto;
	}

	.cv--3col li > :nth-child(2),
	.cv--3col li > :nth-child(3) {
		grid-column: 1;
	}
	.cv--3col li > :not(:first-child, :nth-child(2)) {
		padding-left: 1.8rem;
	}
}

/* PRINT----------------------------------------------------------- */
@media print {
	html {
		font-size: 10pt;
	}
	@page {
		size: letter;
		margin: 0.5in;
	}
	header,
	footer {
		display: none;
	}

	body {
		font-size: 1rem;
		min-height: 0;
		max-width: none;
		padding-inline: 0;
	}

	main {
		margin: 0;
	}

	.cv li {
		break-inside: avoid;
	}
}
