@font-face {
  font-family: "Annotation Mono";
  src:
    url("https://qwerasd205.github.io/AnnotationMono/dist/variable/AnnotationMono-VF.ttf")
      format("truetype") tech(variations),
    url("./fonts/AnnotationMono-VF.woff2") format("woff2") tech(variations);
}

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

html {
  font: 18px/1.6 var(--font-family);
  font-weight: 500;
}

body {
  background: #fefeff;
}

pre,
code {
  font-family: var(--font-family);
}

span.metric {
  font-family: Datatype, monospace;
  background: #ee660033;
  outline: 1px solid #00000044;
  padding: 1px 8px;
  border-radius: 10px;
}

:not(pre) > code,
pre {
  background: #eee;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid #00000022;
}

pre > code {
  text-wrap-mode: wrap;
  overflow-wrap: break-word;
}

.container {
  max-width: 82ch;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.header-buttons {
  display: flex;
  justify-content: space-evenly;
  a {
    display: block;
  }
}
.read {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #00000099;
  text-align: center;
}
hr {
  width: 100%;
  margin: 0;
  border: none;
  border-top: 1px solid #00000033;
}

nav {
  z-index: 10;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffffaa;
  backdrop-filter: blur(10px);
  a {
    flex-grow: 1;
    display: inline-block;
    padding: 0 1ch;
    text-decoration: none;
    background: #000;
    color: #fff;
  }
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
}
.nav-links {
  display: contents;
}

table {
  width: 100%;
  border-collapse: collapse;
  td,
  th {
    padding: 1rem;
  }
  th {
    background: #000;
    color: #fff;
  }
}
.skills table td:first-child {
  white-space: nowrap;
}
.sketch-border {
  position: relative;
}
.sketch-border::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 3px solid #000;
  border-radius: 6px;
  filter: url(#sketch);
  pointer-events: none;
  z-index: 0;
}

.buttons {
  margin: 1rem 0;
  a.button {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    margin: 1rem 0;
    text-decoration: none;
  }
}

.example {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer {
  text-align: center;
}

@media only screen and (max-width: 500px) {
  .container {
    max-width: 100%;
    padding: 1ch;
  }
  .nav-toggle-label {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    font: inherit;
    padding: 0 1ch;
    text-align: center;
    cursor: pointer;
    user-select: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
  .nav-links a {
    flex-grow: 0;
    text-align: center;
  }
  .skills table td:first-child {
    white-space: normal;
  }
}
