@font-face {
  font-family: "Geomanist";
  font-weight: 300;
  src: url(/font/Geomanist-Light.otf) format("truetype");
}

@font-face {
  font-family: "Geomanist";
  font-weight: 400;
  src: url(/font/Geomanist-Regular.otf) format("truetype");
}

@font-face {
  font-family: "Geomanist";
  font-weight: 600;
  src: url(/font/Geomanist-Medium.otf) format("truetype");
}

@font-face {
  font-family: "Geomanist";
  font-weight: 700;
  src: url(/font/Geomanist-Bold.otf) format("truetype");
}

@font-face {
  font-family: 'Loew Heavy';
  src: url('/font/loew-heavy.eot');
  src: url('/font/loew-heavy.eot?#iefix') format('embedded-opentype'), url('/font/loew-heavy.woff2') format('woff2'), url('/font/loew-heavy.woff') format('woff'), url('/font/loew-heavy.ttf') format('truetype');
}


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

html, body {
  background: #fff;
}

body {
  background-size: 100px;
  background-repeat: repeat;
  color: #000;
  font-family: "Geomanist", serif;
  min-height: 100vh;
}

a {
  color: #631662;
  text-decoration: none;
  transition: 0.25s ease color;
}

a:hover {
  color: #a53b36;
}

h1 {
  color: #631662;
  font-family: "Loew Heavy";
  letter-spacing: .1em;
}

.hidden {
  display: none;
}

nav {
  height: 72px;
  width: 100%;
}

nav .logo {
  height: 36px;
}

nav .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 760px;
}

.container {
  display: table;
  margin: 0 auto;
}

nav ul {
  display: inline-block;
  list-style-type: none;
  vertical-align: top;
}

nav ul li {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  margin-left: 28px;
  line-height: 72px;
}

nav ul li a {
  color: #631662;
  text-decoration: none;
}

nav ul li.active a {
  color: #f56900;
}

main {
  box-sizing: border-box;
  display: block;
  margin: 24px auto;
  max-width: 960px;
  padding: 0 24px;
  width: 100%;
}

main.skinny {
  max-width: 760px;
}

main h1 {
  margin-bottom: 16px;
}

main h2 {
  margin-bottom: 12px;
  margin-top: 32px;
}

main h2:first-of-type {
  margin-top: 0;
}

main h3 {
  margin-bottom: 8px;
}

main .box-container {
  display: flex;
  width: 960px;
}

main .box {
  flex: 1 1;
  margin: 0;
}

main .box p {
  margin-bottom: 20px;
}

.code {
  background: #ff36bf;
  border-radius: 4px;
  margin: 4px;
  padding: 4px 6px;
}

/* main .box a {
  color: #0c416c;
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
} */

/* main .box p a {
  display: inline;
} */

@media only screen and (max-width: 760px) {
  main .box-container {
    display: block;
    margin: 0 auto;
  }

  main .box {
    flex: none;
    margin: 0;
    width: 100%;
  }

  main .box:nth-child(2) {
    margin-top: 32px;
  }
}

nav.mobile {
  display: none;
}

nav.mobile .container {
  display: table;
}

nav.mobile .logo {
  display: inline-block;
  margin-left: calc(50% - 24px * 3);
  margin-top: 18px;
}

nav.mobile .hamberder {
  display: inline-block;
  margin: 24px 0 0 24px;
  height: 24px;
  vertical-align: top;
}

#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #631662;
  z-index: 100;
}

#mobile-nav ul {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style-type: none;
}

#mobile-nav li {
  text-align: center;
}

#mobile-nav li a {
  color: white;
  font-size: 28px;
  font-weight: bold;
  line-height: 42px;
}

#close {
  height: 24px;
  margin: 24px 0 0 24px;
}

@media only screen and (max-width: 960px) {
  nav.desktop {
    display: none;
  }

  nav.mobile {
    display: block;
  }
}
