@font-face {
  font-family: "Space Grotesk";
  src: url(./SG-Linear.woff2) format("woff2");
  font-weight: 100 700;
  font-display: block;
}

@font-face {
  font-family: "Fancy";
  src: url(./fancy.woff2) format("woff2");
  font-weight: 100 700;
  font-display: block;
}

::selection {
  background: #6666ff;
  color: white;
}

html,
body {
  background: black;
  color: white;
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk";
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: 1500px;
  min-width: 350px;
  margin: auto;
  font-size: 100%;
  padding-bottom: 5rem;
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: #6666ff;
}

a:focus {
  outline: 1px dotted #777;
}

a[disabled] {
  color: #666;
  cursor: not-allowed;
}

a[disabled]::after {
  content: " ⏳"
}

hr {
  border: none;
  background: #212121;
  height: 2px;
  margin: 2rem auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 200;
  position: relative;
  z-index: 10;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  text-decoration: none;
}

.story h3 span {
  color: currentColor;
  display: inline-block;
  font-style: normal;
}

h1 a::before,
/* h2 a::before, */
h3 a::before,
h5 a::before,
h6 a::before {
  content: "# ";
  color: #777;
  font-weight: bold;
}

h4 a::before,
h5 a::before,
h6 a::before {
  content: "→ ";
  color: #777;
  font-weight: bold;
}

h1 {
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 700;
  margin: auto;
  text-shadow: 3px 3px 0 black;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  margin-bottom: 4rem;
  text-shadow: 2px 2px 0 black;
  font-weight: 500;
}

h3 {
  font-size: 200%;
  margin: 0 auto;
}

h4 {
  font-size: 150%;
  margin: 0 auto;
}

#site-header {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#site-nav {
  display: block;
  flex: 1 1 100%;
  text-align: center;
  align-items: center;
  padding: 1rem 0 0;
  flex-wrap: wrap;
}

#site-header a {
  margin: auto;
}

#site-nav a {
  margin: auto 0.5rem;
}

#github {
  text-decoration: none;
  animation: flash 2s infinite;
  padding: 0.5em 1em;
  border: 2px solid currentColor;
  border-radius: 2em;
}

#github:hover,
#github:focus {
  color: white;
  background: #6666ff;
  animation: none;
}

@keyframes flash {
  to {
    background: black;
  }

  from {
    background: #6666ff;
  }
}

blockquote {
  margin: 0;
  padding: 1rem;
  background: #6666ff;
  border-radius: 0.5rem;
  margin-bottom: 2em;
  font-size: 90%;
  display: inline-block;
}

.page blockquote p {
  margin-bottom: 0;
}

.logo {
  align-items: center;
  text-decoration: none;
  text-transform: initial;
  color: inherit;
  font-size: 160%;
  font-weight: 600;
}

.logo {
  margin: auto;
  width: 80px;
  height: 80px;
  background: #1a1a1a;
  border-radius: 50%;
}

.logo:focus {
  outline: none;
}

section.home {
  text-align: left;
  padding: 0;
  margin: 0;
}

.home figure {
  position: relative;
  padding: 0rem 0 0rem;
}

.home svg {
  width: 50%;
  height: 50%;
  max-width: 150px;
}

.home img {
  position: absolute;
  height: 90%;
  width: 40%;
  object-fit: cover;
  border-radius: 1rem;
}

.home img:first-of-type {
  top: 0;
  left: 0;
}

.home img:last-of-type {
  bottom: 0;
  right: 0;
}

code {
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 80%;
  line-height: 1em;
  background: #1a1a1a;
  padding: 0.2em 0.4em;
  border-radius: 0.5em;
  box-sizing: border-box;
  max-width: 100%;
  overflow: auto;
}

code::-webkit-scrollbar {
  display: none;
}

.story {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.story p {
  margin: 1em 0;
  color: #aeaeae;
  display: block;
}

.story h3:first-of-type,
.page h2 {
  font-family: "Fancy";
  font-size: clamp(2em, 5vw, 4em);
  color: #aeaeae;
  text-align: center;
  padding: 1rem 0;
  margin: 0 auto;
}

@media (min-width: 800px) {
  #github {
    position: fixed;
    z-index: 20;
    right: 1rem;
    top: 1rem;
  }

  .story figure {
    display: flex;
    align-items: center;
  }

  .story figure img {
    width: 80% !important;
  }

  .story figure p {
    width: 50%;
  }
}

.story figure img {
  width: 100%;
  aspect-ratio: 227 / 332;
  object-fit: cover;
  border-radius: 1em;
  margin: auto;
  display: block;
}

.story figure p {
  text-align: left;
}

.story strong {
  font-weight: 800;
  color: white;
}

.story span {
  color: #6666ff;
  font-weight: 800;
  font-style: italic;
}

.story figure:nth-of-type(odd) {
  flex-direction: row-reverse;
}

@media (min-width: 650px) {
  .story figure {
    display: flex;
    align-items: center;
  }

  .story figure img {
    width: 80%;
  }

  .story figure p {
    width: 50%;
  }
}

figure {
  padding: 0;
  margin: 0;
}

.page {
  padding: 2rem 1rem;
  box-sizing: border-box;
  max-width: 100%;
  flex-grow: 1;
}

.page p,
.page small {
  max-width: 80ch;
  margin: 0 0 2rem;
  line-height: 1.7rem;
  display: block;
}

.page small {
  color: #aaa;
  margin-top: 2rem;
}

ul {
  padding: 0 0 0 2em;
}

.page ul li {
  display: list-item;

  margin-bottom: 0.5em;
}

.page.philosophy ul li {
  list-style-type: "✅ ";
}

.page.docs ul li {
  list-style-type: "- ";
}

.page ul li:last-of-type {
  margin-bottom: 0;
}

.page h1 {
  margin-bottom: 2rem;
}

.page h3,
.page h4 {
  padding: 2rem 0 1rem;
  margin: 0;
}

pre {
  max-width: 100%;
  overflow: auto;
  display: block;
  max-width: 800px
}

pre code {
  display: block;
  width: 100%;
  padding: 1.5rem 2rem;
  line-height: 1.333;
  font-size: 0.8rem;
}

/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15
  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/

.hljs {
  color: #c9d1d9;
  background: #1a1a1a;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #ff7b72;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #d2a8ff;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-variable {
  color: #79c0ff;
}

.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
  color: #a5d6ff;
}

.hljs-built_in,
.hljs-symbol {
  color: #ffa657;
}

.hljs-code,
.hljs-comment,
.hljs-formula {
  color: #8b949e;
}

.hljs-name,
.hljs-quote,
.hljs-selector-pseudo,
.hljs-selector-tag {
  color: #7ee787;
}

.hljs-subst {
  color: #c9d1d9;
}

.hljs-section {
  color: #1f6feb;
  font-weight: 700;
}

.hljs-bullet {
  color: #f2cc60;
}

.hljs-emphasis {
  color: #c9d1d9;
  font-style: italic;
}

.hljs-strong {
  color: #c9d1d9;
  font-weight: 700;
}

.hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}

.hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}