@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto Mono Italic'), local('RobotoMono-Italic'),
       url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-400i.woff2') format('woff2'),
       url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-400i.woff') format('woff');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    local('Roboto Mono Bold'), local('RobotoMono-Bold'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-700.woff2') format('woff2'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-700.woff') format('woff');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local('Roboto Mono'), local('RobotoMono-Regular'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-400.woff2') format('woff2'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-400.woff') format('woff');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    local('Roboto Mono Bold Italic'), local('RobotoMono-BoldItalic'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-700i.woff2') format('woff2'),
    url('/asset?u=https%3A%2F%2Fduijf.io%2Fassets%2Ffont%2Froboto-mono-700i.woff') format('woff');
}

:root {
  font-family: "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  background: #fdfdfd;
  color: #333;
  margin: 10vw;
}

span.invert {
  background: #333;
  color: #fdfdfd;
  padding: 0 10px;
  margin: 0 -5px;
  font-style: italic;
}

span.right {
  float: right;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: 40px;
  line-height: 1.4;
}

h2 {
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 2.33333;
}

h3 {
  margin: 28px 0 14px 0;
  font-size: 19px;
  line-height: 1.47368;
}

nav {
  font-size: 19px;
  line-height: 1.47368;
  margin-top: 0;
  margin-bottom: 42px;
  margin-left: -2px; /* Offset padding of underline */
  overflow-x: scroll;
  white-space: nowrap;
}

nav a {
  margin-right: 10px;
  margin-bottom: 28px;
}

a {
  text-decoration: none;
  font-weight: bold;
  border: 1px dashed transparent;
  border-bottom: 1px dashed;
  padding: 0 2px;
  transition: 150ms border;
}

p {
  hyphens: auto;
}

a:hover {
  border: 1px dashed;
}

a.invert:hover {
  text-decoration: none;
}

p {
  margin: 0 0 28px 0;
  font-size: 16px;
  line-height: 1.75;
  max-width: 600px;
}

p.standalone {
  margin-top: 28px;
}

ul {
  list-style: square;
}

li {
  max-width: 600px;
  line-height: 1.75;
}

dd {
  max-width: 600px;
}

img {
  margin-left: -5vw;
  margin-bottom: 28px;
  max-width: 800px;
}

pre, code {
  font-family: "Roboto Mono", monospace;
  background: #f0f5f7;
  border: 1px solid #E9F0F2;
}

pre {
  margin-left: -4vw;
  margin-right: -4vw;
  padding-left: 4vw;
  padding-right: -4vw;
  line-height: 1.75;
  max-width: 700px;
  overflow-x: auto;
}

@media screen and (max-width: 800px) {
  body {
    margin: 4vw;
  }
  h1 {
    font-size: 30px;
  }
  h1 br {
    display: none;
  }
  img {
    width: 97vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -49vw;
    margin-right: -49vw;
  }
}
