/* ============================================
   MONTPC DESIGN SYSTEM - BASE RESET
   Universal reset and body base styles
   ============================================ */

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

/* Body Base Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Image defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button reset */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Form element defaults */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   SECTION SPACING
   Consistent vertical rhythm - margin between sections
   ============================================ */

/* Add vertical spacing between sections */
section + section {
  margin-top: var(--space-3xl);
}

/* Hero immediately after header needs no extra space */
.header + .hero {
  margin-top: 0;
}

/* Responsive section spacing */
@media (max-width: 968px) {
  section + section {
    margin-top: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  section + section {
    margin-top: var(--space-xl);
  }
}
