@import "/css/preflight.css";
@import url(https://fonts.bunny.net/css?family=ibm-plex-mono:400,400i,700,700i);

* {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}
html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}
header {
  display: flex;
  flex-direction: column;
  gap: 1lh;
  align-items: center;
  max-width: 84ch;
  margin: 0 auto;
  padding: 1em;
  @media screen and (min-width: 92ch) {
    flex-direction: row;
    gap: 4ch;
  }
  a[href] {
    color: inherit;
  }
  h1 {
    display: inline-block;
    width: fit-content;
    padding: 1em 2ch;
    border: 1px solid black;
    font-weight: 700;
  }
  nav {
    display: flex;
    flex-direction: row;
    gap: 2ch;
    height: 100%;
  }
}
main {
  max-width: 80ch;
  padding: 1em;
  margin: auto;
  &,
  & blockquote {
    display: flex;
    flex-direction: column;
    gap: 1lh;
  }
  blockquote {
    border-left: 1px solid black;
    padding-left: 2ch;
  }
  a[href]:not(.button) {
    color: rgb(0, 0, 238);
  }
  h1,
  h2,
  h3 {
    @media screen and (min-width: 92ch) {
      display: list-item;
    }
  }
  h1 {
    font-weight: 700;
    border-bottom: 1px solid black;
  }
  h1::marker {
    white-space: pre;
    content: "# ";
  }
  h2 {
    font-weight: 700;
  }
  h2::marker {
    white-space: pre;
    content: "## ";
  }
  h3 {
    font-weight: 700;
  }
  h3::marker {
    white-space: pre;
    content: "### ";
  }
  ul {
    padding-left: 2ch;
    li::marker {
      white-space: pre;
      content: "- ";
    }
  }
}
a[href]:not(.button) {
  text-decoration: underline;
}
