*, *:before, *:after { box-sizing: inherit; }

html {
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: scroll;
  /* Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #E7FFFA;
  background-image: url('../img/bg-top.svg');
  background-repeat: no-repeat;
  background-size: contain;
  color: #454545;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  counter-reset: section
}

@media (min-width: 700px) {
  body {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1000px) {
  body {
    font-size: 1.125rem;
  }
}

:focus {
  outline: none;
  outline-offset: 1px;
}

.is-using-mouse .site *:focus {
  outline: 0;
}

::selection {
  background-color: #FFEDF3;
  color: #454545
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 1rem;
  color: #121212;
  letter-spacing: 0.03rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: 900;
}

@media (min-width: 700px) {
  h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1000px) {
  h1 {
    font-size: 2.625rem;
  }
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1.125rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

p a {
  color: #454545;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid #ddd;
  transition: all .2s;
}

p a:hover {
  border-color: #454545;
  background-color: #FFEDF3;
}

.site {
  min-height: 100vh;
}

.container {

  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.site-header {
  margin-top: 20px;
  margin-bottom: 40px;
}

.site-header p {
  /* color: rgba(0, 0, 0, .6); */
  /* font-weight: 500; */
}

.site-main {
  margin-bottom: 48px;
}

@media (min-width: 700px) {
  .container {
    max-width: 460px;
  }

  .site-header {
    margin-top: 50px;
    margin-bottom: 48px;
  }
}

@media (min-width: 1000px) {
  .container {
    max-width: 550px;
  }

  .site-header {
    margin-top: 90px;
    margin-bottom: 56px;
  }
}
