:root {
	--iconsize: clamp(0.82rem, 2.5vw, 1.1em)
}

html {
	font-size: 16px
}

p {
	font-size: clamp(1rem,2.5vw,1.3em);
	line-height: 1.6;
	color: #ddd
}

#table {
	color: #31008f
}

h1 {
	font-family: "Trattatello";
	font-size: clamp(2rem,16vw,4rem);
	text-align: center;
	position: fixed;
	top: 64px;
	left: 50%;
	transform: translateX(-50%);
	z-index: -10;
	transition: opacity .5s ease-out;
	width: 100%;
	max-width: 84%;
	line-height: 1.1
}

h2 {
	color: var(--deepred);
	font-size: clamp(1.4rem,8vw,2rem)
}

body,header {
	display: flex;
	flex-direction: column
}

body,h1 {
	color: #ddd;
	margin: 0
}

body {
	font-family: "iA Writer Mono",monospace;
	background-color: #500;
	padding: 0;
	align-items: center;
	height: 100%;
	overflow-x: hidden
}

header {
	background-color: #400;
	box-shadow: 0 2px 5px rgba(0,0,0,.1);
	font-size: var(--iconsize);
	padding: 8px 20px;
	width: 82%;
	position: fixed;
	border-radius: 12px;
	top: 0;
	z-index: 1000
}

a:not(.no-resize) {
	font-size: clamp(1rem,2.5vw,1.3em)
}

.nav-list {
	list-style: none;
	display: flex;
	justify-content: space-around;
	padding: 0;
	margin: 0
}

.nav-list li a {
	text-decoration: none;
	color: #ddd;
	font-weight: 400;
	transition: color .3s
}

.nav-list li a:hover {
	font-weight: 700
}

.about-link::before,.homes-link::before,.journal-link::before,.sources-link::before {
	display: inline-block;
	width: var(--iconsize);
	height: var(--iconsize);
	background-size: contain;
	background-position: center;
	margin-right: 4px;
	vertical-align: bottom
}

.homes-link::before {
	content: "";
	background-image: url(white-house.svg)
}

.journal-link::before {
	content: "";
	background-image: url(whitepen.svg)
}

.sources-link::before {
	content: "";
	background-image: url(white-box.svg)
}

.about-link::before {
	content: "";
	background-image: url(whiteusers.svg)
}

.container {
	max-width: clamp(80%,60vw,60%);
	width: 100%;
	padding: .5rem clamp(20px,4vw,30px);
	background-color: #400;
	border-radius: 15px;
	box-shadow: 0 4px 10px rgba(0,0,0,.24),0 8px 20px rgba(0,0,0,.15);
	text-align: left;
	margin-top: 150px;
	margin-bottom: 20px
}

@media (max-width:620px) {
	.container {
		margin-bottom: 100px;
		max-width: 84%;
		margin-top: 110px
	}

	p {
		font-size: 18px
	}

	h1 {
		font-size: 4rem;
		top: 34px;
		line-height: 1
	}

	header {
		top: auto;
		bottom: 0;
		padding: 12px;
		width: 100%;
		background-color: #400;
		font-size: .8rem;
		box-shadow: 0-2px 5px rgba(0,0,0,.1);
		transition: all .4s linear
	}

	header.shrink {
		padding: 0;
		font-size: 0
	}

	.nav-list {
		justify-content: space-around;
		list-style: none;
		display: flex;
		padding: 0;
		margin: 0
	}

	.nav-list a {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-decoration: none;
		color: inherit;
		font-size: inherit
	}

	.about-link::before,.homes-link::before,.journal-link::before,.sources-link::before {
		width: 1.6rem;
		height: 1.6rem
	}
}