/* Ref. lume.land (MIT): https://github.com/lumeland/lume.land */
.button {
  background: var(--background, none);
  color: var(--color, currentColor);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  height: 2em;
  padding: 0 0.6em;
  font: var(--text-caption-bold);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  flex: 0 0 auto;
  text-decoration: none;

  &::-moz-focus-inner {
    border: 0;
  }

  &.is-small {
    font: var(--text-caption-mini-bold);
    text-transform: uppercase;
  }
  &.is-big {
    height: 3em;
    padding: 0 1em;
  }

  &.is-primary {
    --color: var(--color-background-1);
    --color-hover: var(--color-background-1);
    --background: var(--color-primary);
    --background-hover: var(--color-primary-1);
  }

  &.is-secondary {
    --color: var(--color-foreground-1);
    --color-hover: var(--color-foreground-1);
    --color-active: var(--color-background);
    --background: var(--color-background-1);
    --background-hover: var(--color-background-2);
    --background-active: var(--color-primary);

    &.is-active {
      color: var(--color-active);
      background: var(--background-active);
    }
  }
  & input {
    accent-color: var(--accent);
  }

  &:hover {
    color: var(--color-hover, currentColor);
    background: var(--background-hover, none);
  }
  &:disabled {
    cursor: default;
    background: none;
    opacity: 0.1;
  }

  &.has-icon {
    padding: 0;
    width: 40px;
    height: 40px;

    & svg {
      width: 30px;
      height: 30px;
      fill: currentColor;
    }
    & path {
      fill: currentColor;
    }
  }
}
.button-theme {
  background: none;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: solid 1px var(--color-background-3);
  padding: 0 0.6em;
  font: var(--text-callout);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  vertical-align: middle;

  &:hover {
    background: var(--color-background-2);
  }
}
[data-theme="light"] .button-theme .is-light,
[data-theme="dark"] .button-theme .is-dark {
  display: block;
}
[data-theme="light"] .button-theme .is-dark,
[data-theme="dark"] .button-theme .is-light {
  display: none;
}
/* Ref. lume.land (MIT): https://github.com/lumeland/lume.land */
/* Tweaked by @uta8a */
.navbar-container {
  background-color: var(--color-background-a);
  position: sticky;
  top: 0;
  padding: 0 var(--margin);
  z-index: 10;
  border-bottom: solid 1px var(--color-background-2);
}
.navbar {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  justify-content: space-between;
  height: 45px;
  -moz-column-gap: var(--column-gap-1);
       column-gap: var(--column-gap-1);
}
.navbar-logo {
  display: flex;
  align-self: center;
  align-items: center;
  color: var(--color-foreground);
  -moz-column-gap: 10px;
       column-gap: 10px;
  text-decoration: none;
  font: var(--text-navbar);

  & > span.title {
    @media (max-width: 820px) {
      display: none;
    }
  }
}
.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  font: var(--text-navbar);
  overflow-x: auto;
  flex: 1 1 auto;
  width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  will-change: scroll-position;

  & li {
    display: flex;

    &:first-child {
      margin-left: auto;
    }
  }

  & a {
    color: var(--color-foreground);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 1em;
    white-space: nowrap;

    &:hover {
      background-image: linear-gradient(
        var(--color-foreground),
        var(--color-foreground)
      );
      background-repeat: no-repeat;
      background-size: calc(100% - 2em) 1px;
      background-position: center bottom;
    }

    &.is-selected {
      color: var(--color-foreground-1);
      background: var(--color-background-1);
    }
  }
}
/* Ref. lume.land (MIT): https://github.com/lumeland/lume.land */
/* Tweaked by @uta8a */
.footer-container {
  background: var(--color-background-1);
}
.footer {
  font: var(--text-caption);
  color: var(--color-foreground-1);
  max-width: var(--max-width);
  margin: auto;
  text-align: center;
  padding: 0 var(--margin);
}
.footer-toggle-theme {
  margin: 0;
  padding: 12px 0;

  & a {
    color: currentColor;
  }
}
.footer-links {
  margin: 0;
  list-style: none;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  border-bottom: solid 1px var(--color-background-3);
  & a {
    color: currentColor;
    cursor: pointer;
    text-decoration: underline;
  }
}
