nav {
  --bg: #fff;
  --bg-light: #fff;
  --border: #ddd;
  --btn: #666;
  --highlight: #333;
  --green: #3ca877;
  --purple: #904cbc;
  --btn-bg: #eee;

  display: flex;
  justify-content: space-between;
  box-shadow: 0 0 4px #00000054;
  height: var(--nav-height);
  box-sizing: border-box;
  position: relative;
  z-index: 999;
  padding: 0 10px;
  color: var(--base);
  background-color: var(--bg);

  h1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    span {
      margin-left: 5px;
      text-wrap: wrap;
    }
  }

  .links {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .toggle-dark svg {
      width: 18px;
      height: 18px;
    }
  }

  .links button,
  .links .github {
    padding: 1px 6px;
    color: var(--btn);
  }

  .links button:hover,
  .links .github:hover {
    color: var(--highlight);
  }

  button {
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0;
    background-color: transparent;
  }
}

.dark nav {
  --base: #ddd;
  --bg: #1a1a1a;
  --bg-light: #242424;
  --border: #383838;
  --highlight: #fff;
  --btn-bg: #333;

  box-shadow: none;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-weight: 500;
  display: inline-flex;
  place-items: center;
}

h1 img {
  height: 24px;
  margin-right: 10px;
}
