@font-face {
	font-family: Titillium Web;
	src: url(/fonts/titillium_web_roman.ttf);
}

@font-face {
	font-family: Titillium Web;
	src: url(/fonts/titillium_web_italic.ttf);
	font-style: italic;
}

:root {
	--primary-colour: #d3cdc1;
	--secondary-colour: #262626;
}

@media (prefers-color-scheme: dark) {
	:root {
		--primary-colour: #262626;
		--secondary-colour: #d3cdc1;
	}
}

html {
	background: var(--primary-colour);
	color: var(--secondary-colour);
	font-family: Titillium Web;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-y: auto;

	@media (max-width: 1285px) {
		& {
			font-size: 14px;
		}
	}

	@media (max-width: 768px) {
		& {
			font-size: 13px;
		}
	}

	@media (max-width: 568px) {
		& {
			font-size: 12px;
		}
	}

	@media (max-width: 320px) {
		& {
			font-size: 11px;
		}
	}
}

body {
	position: relative;
	display: grid;
	grid-template-rows: 4.5rem 1fr;
	width: 100vw;
	min-height: 100vh;
	margin: 0 .5rem;
	box-sizing: border-box;
	max-width: 1100px;
	justify-self: center;
}

strong {
	font-weight: 600;
}

main {
	display: flex;
	flex-direction: column;
	padding-bottom: 5rem;
	padding: 3.5rem;

	@media screen and (max-width: 768px) {
		padding: 1rem;
	}
}

nav {
	display: flex;
	position: sticky;
	top: 0;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: .75rem 0;
	background: var(--primary-colour);
	z-index: 1;

	>#logo {
		height: 100%;
		min-height: 0;
		color: inherit;
	}

	.link {
		display: none;
		width: fit-content;
		opacity: .75;
		transition: opacity .3s ease, margin .3s ease;
		color: inherit;
		text-decoration: none;
		line-height: 1.1;
		margin-bottom: 0px;

		&:hover {
			opacity: 1;
			margin-bottom: 5px;
		}
	}
}

h1 {
	font-size: 4rem;
	font-weight: 300;
	margin: 0;
	margin-bottom: 1.5rem;
	line-height: 1.1;

	&.centered {
		text-align: center;
	}
}

h2 {
	font-size: 1.6rem;
	font-weight: 400;
	margin: 0;
	line-height: 1.1;
	transition: font-size .3s ease, gap .3s ease;
	transition-delay: .6s;
}

p {
	margin: 0;
	font-size: 1.3rem;
}



footer {
	height: 2rem;
	background: var(--secondary-colour);
	position: fixed;
	left: 0;
	bottom: .75rem;
	width: fit-content;
	left: 50%;
	transform: translateX(-50%);
	border-radius: .25rem;
	padding: .1rem .75rem;
	color: var(--primary-colour);
	text-align: center;
}