// Body resets
//
// Update the foundational and global aspects of the page.

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.preload,
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

html,
body {
  margin: 0;
}

html {
  font-family: $font-family-copy;
  font-size: $font-size-mobile;
  line-height: 1.5;
  padding: 0;

  @media (min-width: $break-point-desktop) {
    font-size: $font-size-desktop;
  }
}

body {
  padding: 80px 0 0;
  color: $type-color-primary;
  background: #FFF url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAASUlEQVQYV2NkQAPGxsasIKGzZ8/+RpZiROaAFMEUILNBauAK0SVAkshiYIXYFMFsgskx4lOErJh4hURbje4WXKFAevAgm4wtwAHhNEFHB5O5SQAAAABJRU5ErkJggg==) repeat;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;

  -webkit-transition: padding-top 0.5s ease;
     -moz-transition: padding-top 0.5s ease;
       -o-transition: padding-top 0.5s ease;
          transition: padding-top 0.5s ease;

  @media (min-width: $break-point-desktop) {
    padding: 250px 0 0;
  }
}

body.sticky-header {
  @media (min-width: $break-point-desktop) {
    padding-top: 200px;
  }
}

// No `:visited` state is required by default (browsers will use `a`)
a {
  color: $link-color-primary;
  text-decoration: none;
  
  &:hover,
  &:focus {
      text-decoration: none;
  }
  
  @media (min-width: $break-point-desktop) {
    border-bottom: 1px solid $base-color-muted;
    -webkit-transition: border-bottom .2s ease-in-out;
       -moz-transition: border-bottom .2s ease-in-out;
            transition: border-bottom .2s ease-in-out;
  
    // `:focus` is linked to `:hover` for basic accessibility
    &:hover,
    &:focus {
      border-color: $base-color;
    }
  }
  
  strong {
    color: inherit;
  }
}

img {
  max-width: 100%;
}

// Typography
//
// Headings, body text, lists, and other misc typographic elements.

// Headings
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025rem;
  color: #313131;
  text-rendering: optimizeLegibility;
}
h1, h2 {
  font-size: 1.5rem;
}
h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}
h4, h5, h6 {
  margin-top: 1rem;
  font-size: 1rem;
}

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

strong {
  color: #303030;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

// Lists
ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

dt {
  font-weight: bold;
}
dd {
  margin-bottom: .5rem;
}

// Misc
hr {
  position: relative;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #fff;
}

abbr {
  font-size: 85%;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
}
abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #e5e5e5;
}

/* Quotes */
blockquote {
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #7a7a7a;
  border-left: .25rem solid #e5e5e5;

  @media (min-width: 30em) {
    padding-right: 5rem;
    padding-left: 1.25rem;
  }
}

small {
  color: #B2DFDB;
}

blockquote p:last-child {
  margin-bottom: 0;
}

