/* Look adapted from "Aerial" by HTML5 UP (html5up.net, CCA 3.0) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
	background: #fff;
	color: #fff;
	font: 300 15pt/1.75em -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: -0.025em;
	overflow: hidden;
}

a {
	border-bottom: dotted 1px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease-in-out;
}
a:hover { border-color: transparent; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(1em); } to { opacity: 1; transform: none; } }

#wrapper {
	animation: fade 3s forwards;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		#5a3c22 url("images/living-room.jpg") center / cover;
	inset: 0;
	opacity: 0;
	position: fixed;
}

/* Rows: gap above the title, title down to where the text starts (just under
   where the removed icon was), text, filler, footer at the bottom or below the text */
#main {
	cursor: default;
	display: grid;
	grid-template-rows: 8% calc(55% + 2.1875em) auto 1fr auto;
	inset: 0;
	overflow-y: auto;
	position: fixed;
	text-align: center;
}

#header, #title, #contact {
	animation: rise 1s 2.25s forwards;
	opacity: 0;
	padding: 0 5%;
}
#title { align-self: start; grid-row: 2; }
#contact { grid-row: 3; }

/* 404 page: one block centred on the whole screen */
#header {
	align-self: center;
	grid-row: 1 / -1;
	position: relative;
	top: -1em;
}

h1 {
	font-size: 4.35em;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1em;
}
p {
	font-size: 1.25em;
	margin: 0.75em 0 0.25em;
	opacity: 0.75;
}

#footer {
	background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 75%);
	grid-row: 5;
	height: 6em;
	line-height: 8em;
}

@media (max-width: 1680px) {
	body { font-size: 13pt; }
}

@media (max-width: 1280px) {
	body { font-size: 12pt; }
}

@media (max-width: 736px) {
	body { font-size: 11pt; min-width: 320px; }
	h1 { font-size: 2.5em; }
	p { font-size: 1em; }
}
