/* variables */

:root {
  --background: #ffffff;
  --text: #404143;
  --highlight: #579cef;
  --glow: #04F8FC;
}

@font-face {
	font-family: 'PinyonScript';
	src: url('PinyonScript-Regular.ttf') format('truetype');
}

/* main settings */

* {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

a {
  color: var(--highlight);
  text-decoration: none;
  border-bottom: 1px dotted var(--highlight);
}

a:hover, a:focus {
  text-shadow: 0 0 10px var(--glow);
}

img {
	max-width: 100%;
	height: auto;
	width: auto\9; /* ie8 */
}

/* header */

h1 {
  color: var(--highlight);
  margin: 10px;
  text-align: center;
  font-family: 'PinyonScript', sans-serif;
  font-size: 5em;
  text-shadow: 0 0 5px var(--glow);
}

/* navigation */

nav {
  width: 70%;
  max-width: 900px;
  margin: 20px auto 0 auto;
}

nav ul {
  list-style-type: none;
  font-family: 'PinyonScript', sans-serif;
  font-size: 2em;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  border: 0;
}

/* main content */

main {
  width: 70%;
  max-width: 900px;
  height: 70%;
  margin: 0 auto 0 auto;
  border: 1px solid var(--highlight);
  overflow-y: hidden;
  padding: 0 20px;
  overflow-y: auto;
  box-sizing: border-box;
  background-image: url('mountain.jpg');
  background-position: fixed;
  background-size: cover;
}

h2, h3, main p {
  margin: 16px 0;
}

h2 {
  color: var(--highlight);
}

main ul {
  padding-left: 30px;
  list-style-type: circle;
}

main ol {
  padding-left: 40px;
}

main hr {
  border: 0;
  border-top: 1px dotted var(--text);
}

/* smaller screens */

@media screen and (max-width: 850px) {

  body {
    overflow-y: visible;
    overflow-x: hidden;
  }

  h1 {
    font-size: 3em;
    margin: 0 16px;
  }

  main {
    width: 100%;
    height: auto;
    border-width: 1px 0 0 0;
    overflow: visible;
  }

  nav {
    width: 100%;
    margin: 0 16px;
  }

  nav ul li {
    display: block;
  }
}
