*,
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted",
    "Segoe UI", "Liberation Sans", sans-serif;
  background-color: #111;
  line-height: 170%;
  text-align: start;
  width: auto;
  word-break: break-word;
  @include media-query($on-palm) {
    font-size: 105%;
  }
}

h1 {
  font-style: normal;
  letter-spacing: -0.5px;
  line-height: 130%;
}

nav {
  background-color: #071039;
  padding: 0.5em 0 0.5em 0;
  text-align: right;
  a {
    color: white;
    text-decoration: none;
    padding-right: 2em;
    &:visited {
      color: hsl(330, 50, 50);
    }
    &:hover {
      color: orange;
    }
  }
}

#start {
  padding-top: 2em;
  padding-bottom: 5em;
  background-color: #071039;
  @media only screen and (min-width: 768px) {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
}

#start #logo {
  display: block;
  max-width: 250px;
  margin: 0 auto 2em auto;
}

#start #pitch {
  color: #e9e9e9;
  margin: 2em auto;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
  font-size: 1.5em;
  padding: 0 1em;
  @media only screen and (min-width: 768px) {
    font-size: 1.8em;
  }
}

#start #campaign {
  text-align: center;
  padding: 0 2em;
}

#projects {

  padding-top: 10em;

  h1 {
    color: #eee;
    text-align: center;
  }

  section {
    margin: 0 auto;
    padding: 0 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  section.project {
    margin-top: 14rem;
    margin-bottom: 14rem;
  }

  section.project img {
    display: block;
    max-width: 100%;
    margin-bottom: 1em;
  }

  /* Project name */
  section.project h2 {
    color: #e9e9e9;
    font-size: 2rem;
    margin-bottom: 25px;
  }

  section.project .links {
    text-align: center;
    margin-bottom: 25px;
  }

  section.project .links a {
    color: cyan;
  }

  /* Description */
  section.project h3 {
    margin: 0;
    max-width: 400px;
    font-size: 120%;
    font-weight: normal;
    font-style: italic;
    color: #eee;
    text-align: center;
    line-height: 140%;
  }


  /* GitHub icon before GitHub links */
  a[href*="github.com"]::before {
    content: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.11.82-.26.82-.577 0-.285-.01-1.04-.015-2.04-3.338.725-4.042-1.61-4.042-1.61-.546-1.38-1.332-1.747-1.332-1.747-1.09-.745.084-.73.084-.73 1.205.084 1.84 1.237 1.84 1.237 1.07 1.835 2.805 1.305 3.49.997.108-.775.42-1.305.763-1.605-2.665-.3-5.467-1.335-5.467-5.932 0-1.31.465-2.38 1.235-3.22-.125-.303-.535-1.523.115-3.176 0 0 1.005-.322 3.3 1.23a11.48 11.48 0 013.003-.404c1.02.004 2.045.138 3.004.404 2.28-1.552 3.285-1.23 3.285-1.23.655 1.653.245 2.873.12 3.176.77.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.922.43.37.815 1.1.815 2.222 0 1.606-.015 2.896-.015 3.286 0 .32.21.694.825.577C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12z"/></svg>');
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4em;
    width: 16px;
    height: 16px;
  }

  /* Docs icon before Docs links */
  a.docs-link::before {
    content: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="16"><path d="M6 2h9a2 2 0 012 2v16a2 2 0 01-2 2H6a2 2 0 01-2-2V4a2 2 0 012-2zm0 2v16h9V4H6zm3 3h3v2H9V7zm0 3h3v2H9v-2z"/></svg>');
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4em;
    width: 16px;
    height: 16px;
  }

}
