html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 62.5%;
  overflow-y: scroll;
}
.site-bg {
  display: none
}

@media (min-width: 321px) {
  .site-bg {
    position: fixed;
    display: block;
    overflow: hidden;
    z-index: -1;
    height: 110%;
    width: 110%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    background: center/cover no-repeat;
    -webkit-filter: blur(5px);
    filter: blur(5px);
    opacity: .9;
  }

}
main {
  width: 320px;
  margin: 0 auto;
  position: relative;
  display: block;
}
.cover {
  width: 320px;
  height: 320px;
  top: 0;
  position: static;
  z-index: 1;
  overflow: hidden;
  background: center/cover no-repeat;
}
.cover.sticky {
  position: fixed;
}

header {
  background-color: #181818;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 2
}
.sticky ~ header {
  top: 312px
}
header.sticky {
  position: fixed;
  width: 320px;
}

header:after {
  content: "";
  display: inline-block;
  left: 50%;
  margin-left: -12px;
  margin-bottom: -12px;
  width: 0;
  height: 0;
  bottom: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #181818;
  position: absolute
}

header h1 {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3em;
  margin: 0;
  color: inherit
}

header p {
  margin: 5px 0 0;
  font-size: 1.4rem;
  color: inherit
}

header a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.6rem 2rem 2rem;
  cursor: default
}

nav {
  position: relative;
  width: 100%;
  z-index: 0;
  padding: 0;
  margin: 0;
}

.sticky + nav {
  padding-top: 110px;
}

nav div {
  margin: 0;
  border-bottom: 1px solid #eaeaea;
  background: #fff;
  -webkit-box-shadow: inset 0 -2px 9px 0 rgb(0 0 0 / 6%);
  box-shadow: inset 0 -2px 9px 0 rgb(0 0 0 / 6%);
  display: inline-table;
  -webkit-transition: background-color .3s ease,-webkit-box-shadow .3s ease;
  transition: background-color .3s ease,-webkit-box-shadow .3s ease;
  transition: background-color .3s ease,box-shadow .3s ease;
  transition: background-color .3s ease,box-shadow .3s ease,-webkit-box-shadow .3s ease;
  padding: 1.2rem;
  position: relative;
}
nav div:active,
nav div:hover {
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 -2px 9px 0 rgb(0 0 0 / 6%);
  box-shadow: inset 0 -2px 9px 0 rgb(0 0 0 / 6%);
}
nav img {
  float: left;
  margin: .5rem;
  width: 12.5rem;
  height: 4rem;
}

footer {
  position: relative;
  margin: 0 auto;
  min-height: 50px;
  width: 320px;
  padding: 10px;
  line-height: 1.2;
  box-sizing: border-box;
  text-align: center;
}
footer a {
  color: inherit;
}
hr {
  border-style: dotted;
}
