@import url('https://fonts.googleapis.com/css?family=Spectral|IBM+Plex+Mono');

body {
  cursor: default;
  font-size: 1.2rem;
}

.content {
  padding: 1rem;
  font-family: 'Spectral', serif;
}

h1 {
  line-height: 1.2;
  font-family: baskerville, serif;
  font-weight: 500;
  font-size: 2rem;
}

h2 {
  margin-top: 4rem;
}

.content > h1:first-child,
.content > h2:first-child,
.content > h3:first-child,
.content > h4:first-child {
  margin-top: 0;
}

/* pre, code { */
/*   background-color: rgba(250, 250, 250, 0.5); */
/* } */

pre {
  margin: 2rem -1rem;
  padding: 0.70rem 1rem;
  border-top: 1px solid #b7b7b7;
  border-bottom: 1px solid #b7b7b7;
}

.hljs {
  padding: 0.70rem 1rem !important;
}

pre:hover {
  width: 100vw;
}

pre > code {
  display: block;
  overflow: auto;
  line-height: 1.5;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .92rem;
}

p {
  line-height: 1.5;
}

a {
  color: #357edd;
}

/* small */
@media screen and (max-width: 45em) {
}

/* not small */
@media screen and (min-width: 45em) {
  h1 {
    font-size: 2.75rem;
  }
}

/* medium */
@media screen and (min-width: 45em) and (max-width: 60em) {
  .content img {
    transform: scale(0.75);
  }
}

/* large */
@media screen and (min-width: 60em) {
  .content {
    padding: 4rem;
  }

  .content img {
    transform: scale(0.65);
  }

  pre:hover {
    width: calc(100vw - 6rem);
  }
}
