@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/ZillaSlab-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/ZillaSlab-Italic.otf") format("opentype");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/ZillaSlab-Light.otf") format("opentype");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: italic;
  font-weight: 300;
  src: url("fonts/ZillaSlab-LightItalic.otf") format("opentype");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/ZillaSlab-Bold.otf") format("opentype");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: italic;
  font-weight: 700;
  src: url("fonts/ZillaSlab-BoldItalic.otf") format("opentype");
}

@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/SourceCodePro-Regular.ttf") format("truetype");
}




















:root {
  --background: white;
  --font-size: 18px;
  --line-height: 27px;
  --code-background: #1e1e1e;
  --code-size: 14px;
  --code-lineheight: 19px;
  --code-line-mark-background: #43351a;
  --code-line-mark: #ec9d0a;
  --accent-color: #468996;
  --accent-color-hover: #00d5ff;
  --line-color: #ddd;
  --light-text-color: #939393;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font: 400 var(--font-size)/var(--line-height) Zilla Slab;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--background);
}

div#grid-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  position: relative;
}

div#grid {
  margin: 0;
  padding: 0 0 0 48px;
  display: grid;
  grid-template-columns: 264px calc(100% - 312px);
  grid-template-rows: 64px auto;
  grid-template-areas:
    "header header"
    "menu content";
  grid-column-gap: 48px;
  grid-row-gap: 87px;
  width: 100%;
  min-height: 100vh;
}







header {
  grid-area: header;
  border-bottom: 1px solid var(--line-color);
  color: var(--light-text-color);
  display: flex;
}

header > .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 312px;
  padding-right: 96px;
  width: 100%;
}

.menu-button {
  display: none;
}

.menu-button, .close-menu-button {
  background: url("menu-button.svg") no-repeat center/24px;
  margin-top: 1px;
}

.menu-button:hover, .close-menu-button:hover {
  background-image: url("menu-button-hover.svg");
}

header .home {
  font-size: 29px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

header .home a {
  color: var(--light-text-color);
}










aside,
nav {
  padding: 83px 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

aside {
  position: relative;
  grid-area: menu;
}

div.sidebar-wrapper {
  position: fixed;
  display: none;
}

aside::before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  right: 0;
  top: 83px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-color);
}

aside::after {
  content: "";
  position: absolute;
  right: 0;
  top: 163px;
  width: 1px;
  height: calc(100% - 163px);
  background: var(--line-color);
}

aside ul,
nav ul {
  list-style: none outside none;
  margin: 31px 0 0;
  padding: 0;
}

aside li,
nav li {
  display: block;
  font-size: 20px;
  line-height: 40px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  position: relative;
  height: 40px;
}

aside li:not(:first-child),
nav li:not(:first-child) {
  margin-top: -1px;
}

aside li::before,
aside li::after,
nav li::before,
nav li::after {
  content: "";
  display: block;
  height: 1px;
  width: 128px;
  background: var(--line-color);
  left: 0;
  position: absolute;
}

aside li::before,
nav li::before {
  top: 0;
}

aside li::after,
nav li::after {
  bottom: 0;
}

aside > a {
  margin: 32px 0 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  outline: none;
}

a:hover, a:visited:hover {
  color: var(--accent-color-hover);
}

a:active, a:focus {
  outline: none;
}

a:visited {
  color: var(--accent-color);
}












main {
  grid-area: content;
  padding: 0 96px 176px 0;
  position: relative;
}

main::before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  right: 96px;
  bottom: 48px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-color);
}

main::after {
  content: "";
  position: absolute;
  right: 192px;
  bottom: 48px;
  height: 1px;
  width: 184px;
  background: var(--line-color);
}

h1#page-title {
  margin: 0 0 48px;
  letter-spacing: 0.04em;
  font-size: 56px;
  line-height: 67px;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  margin: 40px 0 24px;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 40px;
}

h2 {
  margin: 24px 0 20px;
  font-size: 27px;
  line-height: 32px;
}

h2 > code {
  font-size: 27px;
  line-height: 32px;
}

p {
  margin: var(--line-height) 0 0;
}

p:first-child {
  margin: 0;
}

p.centered {
  text-align: center;
}

pre {
  font: var(--code-size)/var(--code-lineheight) Consolas, 'Courier New', monospace;
  white-space: pre-line;
}

dl {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-auto-rows: fit-content;
}

dd {
  margin: 0;
  padding-left: 20px;
}

ul {
  margin: var(--line-height) 0 0;
  padding: 0 0 0 32px;
  list-style-type: none;
}

ul.space-between li:not(:first-child) {
  margin-top: var(--line-height);
}

li {
  position: relative;
}

li::before {
  content: "";
  position: absolute;
  height: 6px;
  width: 6px;
  background: black;
  top: calc(var(--line-height) / 2 - 3px);
  left: -19px;
}
































.code-wrapper {
  position: relative;
  background: var(--code-background);
  width: 100%;
  margin: var(--line-height) 0;
}

.code-wrapper:first-child {
  margin-top: 0;
}

.code-wrapper pre, code, .line-numbers {
  font: 400 var(--code-size)/var(--code-lineheight) Consolas, "Source Code Pro", monospace;
  color: #d4d4d4;
}

.code-wrapper pre, code {
  margin: 0;
  padding: 0;
  z-index: 2;
  position: relative;
}

:not(pre) > code {
  background: var(--code-background);
  padding: 4px 6px;
  white-space: pre;
  border-radius: 2px;
}

.code-wrapper pre {
  padding: 20px 20px 20px 60px;
  overflow-x: auto;
  display: block;
  width: 100%;
  white-space: pre;
}

.line-numbers {
  counter-reset: linenumber;
  position: absolute;
  top: 20px;
  width: 100%;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

.line-numbers span {
  counter-increment: linenumber;
  display: block;
  height: var(--code-lineheight);
  z-index: 2;
}

.line-numbers span::before {
  box-sizing: border-box;
  content: counter(linenumber);
  position: absolute;
  padding-left: 16px;
  width: 60px;
  border-left: 4px solid var(--code-background);
  display: block;
  z-index: 3;
  background: var(--code-background);
}

.line-numbers span.mark::before {
  background: var(--code-line-mark-background);
  color: var(--code-line-mark);
  border-left-color: var(--code-line-mark);
}

.line-numbers span.mark::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  width: 100%;
  display: block;
  z-index: 0;
  background: var(--code-line-mark-background);
  height: var(--code-lineheight);
}

code .mod {
  color: #569cd6;
}

code .type {
  color: #4ec9b0;
}

code .method {
  color: #dcdcaa;
}

code .comment {
  color: #608b4e;
}

code .var {
  color: #9cdcfe;
}

code .keyword {
  color: #c586c0;
}

code .number {
  color: #b5cea8;
}

code .string {
  color: #ce9178;
}














@media (min-width: 1280px) {
  div#grid {
    grid-template-columns: 1fr 264px 888px 1fr;
    grid-template-areas:
      "header header header header"
      ". menu content .";
    padding: 0 auto;
  }

  header {
    justify-content: center;
  }

  header > .header-content {
    width: 1200px;
    padding-left: 312px;
  }
}

@media (max-width: 1079px) {
  div#grid {
    grid-template-columns: 100%;
    grid-template-rows: 48px auto auto;
    grid-template-areas:
      "header"
      "content"
      "menu";
    grid-row-gap: 48px;
    padding: 0;
  }

  header {
    justify-content: center;
  }

  header > .header-content {
    width: 100%;
    padding: 0 32px;
    justify-content: flex-start;
  }

  header .slogan {
    display: none;
  }

  header .menu-button {
    display: block;
    height: 32px;
    width: 32px;
    margin-right: 24px;
  }

  aside {
    padding: 0 32px 64px;
    align-items: center;
  }

  aside::before,
  aside::after {
    display: none;
  }

  aside ul {
    width: 100%;
    margin: 0;
  }

  aside li {
    text-align: center;
  }

  aside li::before,
  aside li::after {
    left: calc(50% - 64px);
  }

  main {
    padding: 0 32px 64px;
  }

  main::before {
    box-sizing: border-box;
    content: "";
    position: absolute;
    right: calc(50% - 8px);
    bottom: 16px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line-color);
    background: var(--background);
    outline: 16px solid var(--background);
    z-index: 3;
  }

  main::after {
    content: "";
    position: absolute;
    right: calc(50% - 88px);
    bottom: 23px;
    height: 1px;
    width: 176px;
    background: var(--line-color);
    z-index: 2;
  }

  h1#page-title {
    font-size: 34px;
    line-height: 41px;
    margin: 0 0 32px;
  }

  div.sidebar-wrapper {
    height: 100%;
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
  }

  nav {
    height: 100%;
    width: 100%;
    max-width: 264px;
    border-right: 1px solid var(--line-color);
    left: 0;
    background: var(--background);
    overflow-y: auto;
    z-index: 1000;
    padding: 0 32px;
    pointer-events: all;
    flex: none;
  }

  .close-menu-button {
    display: block;
    height: 32px;
    width: 32px;
    margin-top: 8px;
  }

  #close-area {
    flex: 1 1 auto;
  }

  nav > a {
    margin-top: auto;
    margin-bottom: 32px;
  }

  body.sidebar-open div.sidebar-wrapper {
    display: flex;
  }
}
