/* ---- Base ---- */
html {
  /* NOTE html is set to 62.5% so that all the REM measurements throughout are based on 10px sizing. So basically 1.5rem = 15px :) */
  font-size: 62.5%;
  /* Part 1/2 of color variable fallback hack */
  --color-fallback: var(--color, #0088aa);
}

body {
  line-height: 1.6;
  font-weight: 400;
  color: #222;
  font-family: Barlow, "HelveticaNeue", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 1.5em;
  /* Part 2/2 of color variable fallback hack */
  --color: var(--color-fallback, #0088aa);
}

html,
body {
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--color);
}

/* ---- Utility ---- */
.centered {
  max-width: 888px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.p0 {
  padding: 0;
}

.p {
  padding: 1.5em;
}

.m0 {
  margin: 0;
}

.m {
  margin: 1.5em;
}

.color {
  color: var(--color);
}

.bgcolor {
  background-color: var(--color);
}

.icon {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: middle;
}

.border {
  border: var(--color) solid 1px;
  border-radius: 0.5em;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
h1 {
  font-size: 4rem;
  line-height: 1.2;
  letter-spacing: -0.1rem;
}
h2 {
  font-size: 3.6rem;
  line-height: 1.25;
  letter-spacing: -0.1rem;
}
h3 {
  font-size: 3rem;
  line-height: 1.3;
  letter-spacing: -0.1rem;
}
h4 {
  font-size: 2.4rem;
  line-height: 1.35;
  letter-spacing: -0.08rem;
}
h5 {
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: -0.05rem;
}
h6 {
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Larger than phablet */
@media (min-width: 550px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 500;
  }
  h1 {
    font-size: 5rem;
  }
  h2 {
    font-size: 4.2rem;
  }
  h3 {
    font-size: 3.6rem;
  }
  h4 {
    font-size: 3rem;
  }
  h5 {
    font-size: 2.4rem;
  }
  h6 {
    font-size: 1.5rem;
  }
}

p {
  margin-top: 0;
}

/* ---- Basic Columning ---- */

.row {
  display: flex;
  flex-direction: row;
}

.row .col {
  display: flex;
  flex: 1;
}

.vertical {
  display: flex;
  flex-direction: column;
}
