/* Font faces */
@font-face {
  font-family: Federo;
  src: url(../fonts/Federo-Regular.ttf);
}

/* Base typography */
html {
  font-size: 62.5%;
}

body {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 400;
  font-family: "Federo", sans-serif;
  color: #272a2e;
}

/* Add letter spacing to body text but not headings */
p, li, blockquote {
  letter-spacing: 0.05em;
}

@media (max-width: 568pt) {
  body {
    font-size: 1.8rem;
  }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Federo", sans-serif;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

h1 {
  font-family: "Federo", sans-serif;
  font-weight: bold;
  line-height: 0.9;
  font-size: 6rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-align: center;
}

h1.big {
  font-size: 6rem;
}

h1.bigger {
  font-size: 8rem;
}

h1.biggerer {
  font-size: 9rem;
}

h1.biggererer {
  font-size: 10rem;
}

h2 {
  font-size: 4.2rem;
  line-height: 1.25;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 3.2rem;
  line-height: 1.3;
}

h4 {
  font-size: 2.8rem;
  line-height: 1.35;
}

h5 {
  font-size: 2.2rem;
  line-height: 1.5;
}

h6 {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Responsive typography */
@media (max-width: 768pt) {
  h1 {
    font-size: 5.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 2rem;
  }

  h1.big {
    font-size: 5rem;
  }

  h1.bigger {
    font-size: 5.5rem;
  }

  h1.biggerer {
    font-size: 6rem;
  }

  h1.biggererer {
    font-size: 7.5rem;
  }
}

@media (max-width: 568pt) {
  h1 {
    font-size: 4.2rem;
    margin-top: 1rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  h3 {
    font-size: 2.2rem;
  }

  h4 {
    font-size: 1.7rem;
  }

  h1.big {
    font-size: 4.7rem;
  }

  h1.bigger {
    font-size: 5rem;
  }

  h1.biggerer {
    font-size: 5.3rem;
  }

  h1.biggererer {
    font-size: 5.6rem;
  }
}

/* Links */
a,
.link {
  text-decoration: none;
  color: #0077b3;
}

a:hover,
.link:hover {
  color: #006699;
  text-decoration: underline;
}

/* Paragraphs */
p {
  margin-top: 0;
}

/* Lists */
ul {
  list-style: disk;
  padding-left: 1em;
  margin-top: 0;
}

ol {
  list-style: decimal inside;
  padding-left: 0;
  margin-top: 0;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%;
}

li {
  margin-bottom: 1rem;
}

ul {
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

/* Code typography */
code {
  font-size: 0.8em;
  line-height: 1.5rem;
  white-space: nowrap;
  background: #f9fafb;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  display: inline-block;
  color: #025002;
  padding: 0 0.3em;
  margin: -1px 0;
}

blockquote code {
  background: #eaedf1;
  border: 1px solid #c9c9c9;
  color: #013701;
}

pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
  background: #002b36;
  border: none;
  color: #e0b6ec;
  font-size: 80%;
  overflow: auto;
}

@media (max-width: 768pt) {
  pre > code {
    padding: 0.5rem 0.5rem;
    font-size: 70%;
  }
}

@media (max-width: 568pt) {
  pre > code {
    padding: 0.1rem 0.1rem;
    font-size: 80%;
  }
}

/* Blockquotes */
blockquote {
  background-color: #d2d5e0;
  padding: 1rem 2% 0.5rem 2%;
  margin: 0 12% 0 5%;
  font-size: 90%;
}

blockquote a {
  color: #006699;
  text-decoration: underline;
}

blockquote h1:first-child,
blockquote h2:first-child,
blockquote h3:first-child,
blockquote h4:first-child,
blockquote h5:first-child {
  margin-top: 0.3em;
}

blockquote p:first-child {
  margin-top: 0.4em;
}

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

blockquote p:last-child {
  margin-bottom: 1rem;
}

blockquote ul {
  margin-top: 1em;
}

blockquote div.highlight {
  margin-top: 0;
  margin-bottom: -1rem;
}

@media (max-width: 768pt) {
  blockquote {
    margin: 0;
  }
  blockquote pre > code {
    font-size: 80%;
  }
}

@media (max-width: 568pt) {
  blockquote {
    margin: 0;
  }
  blockquote pre > code {
    font-size: 80%;
  }
}