/* RESET */
html {
  font: normal 1em/1em sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}
:focus, :active, :hover {
  outline: 0;
}
a, h1, h2, li, ul {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-size: inherit;
  font-style: normal;
  text-decoration: none;
  vertical-align: baseline;
  background: transparent;
}

/* TYPOGRAPHY */
body {
  font: normal 14px/24px helvetica, arial, sans-serif;
  color: #666;
}
h1, h2 {
  font-size: 1.3em;
  line-height: 1.5em;
  color: #ccc;
}
h1 {
  font-size: 1.2em;
  text-align: right;
  padding: 0.2em;
  line-height: 2em;
}
h2 {
  border-bottom: solid 1px #333;
}
a {
  color: #0cf;
}
a:hover {
  color: #f90;
}
ul {
  list-style-position: inside;
  margin-top: 2em;
}
li {
  margin-bottom: 0.5em;
}

/* MAIN LAYOUT */
html {
  position: relative;
  min-height: 100%;
}
body {
  margin: 0 0 80px;
  background: #222;
}
footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #888;
  font-size: 12px;
  text-align: center;
}
footer .inner {
  padding: 20px;
}
.inner {
  padding: 1em;
  overflow: hidden;
  position: relative;
}

/* HEADER */
header {
  background: #fff;
  width: 100%;
  z-index: 50;
  position: fixed;
}
header h1 {
  background: url('../images/logo.png') no-repeat top left;
  background-size: contain;
}

/* MAIN */
main {
  padding-top: 100px;
  overflow: hidden;
}
section {
  background: #222;
  padding: 2em;
  margin-bottom: 1em;
}

/* MEDIA QUERIES */
@media screen and (min-width: 900px) {
  section {
    width: 31.33%;
    margin-right: 3%;
    float: left;
    box-sizing: border-box;
  }
  section:nth-child(3n+0) {
    margin-right: 0;
  }
  section:nth-child(3n+1) {
    clear: both;
  }
}
