header {
  display: flex;
  justify-content: space-between;
  background: rgb(40 40 40);
  height: 36px;
  padding: 0.5rem;

  h1 {
    margin: 0;
    color: white;
  }

  .preem__site-theme-toggle {
    label {
      height: 30px;
    }
  }
}

a.github {
  align-items: center;
  color: var(--github-font);
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  display: grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  float: left;
}

a.github:hover {
  text-decoration: underline;
}

a.github img {
  mix-blend-mode: difference;
  max-height: 1.2rem;
}

.preem__site-theme-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 0;
  transition: background 0.2s linear;

  .preem__sr-only {
    margin-left: -0.5rem;
  }
  input[type='checkbox'][role='switch'] {
    opacity: 0;
    position: absolute;
  }
  label {
    background-color: #111;
    min-width: 40px;
    flex-grow: 1;
    aspect-ratio: 2.1;
    border-radius: 50px;
    position: relative;
    padding: 4% 8%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    box-shadow: inset 1px 0px 1px gray;
  }
  svg {
    fill: currentColor;
    height: 90%;
  }
  .fa-moon {
    color: #f1c40f;
  }
  .fa-sun {
    color: #f39c12;
  }
  label .ball {
    background-color: #fff;
    width: 42%;
    height: 88%;
    position: absolute;
    left: 3%;
    border-radius: 50%;
    transition: transform 0.2s linear;
  }

  input[type='checkbox'][role='switch']:checked + label .ball {
    transform: translateX(120%);
  }
}
.preem__sr-only {
  width: 0px;
  max-width: 0px;
  height: 0px;
  max-height: 0px;
  overflow: hidden;
  position: absolute;
}

fieldset.fun-radios {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  max-width: 24rem;
  border: 0;
}

.fun-radios > div {
  display: grid;
  column-gap: 0.5rem;
  width: 90px;
  grid-template-rows: max-content;
  border-radius: 60px;
  color: var(--page-font);
  background-color: lightgray;
}

.fun-radios > div.checked {
  color: green;
}

.fun-radios input[type="radio"] {
  left: -9999px;
  position: absolute;
  transform: translateX(1px) translateY(1px);
}

.fun-radios label {
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.3s;
}

.fun-radios label span {
  font-weight: bold;
}

.fun-radios label div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-group {
  width: 100%;
  max-width: 20em;
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
}

@supports (mix-blend-mode: darken) {
  .input-group__label {
    position: absolute;
    left: 3em;
    top: -0.28em;
    background: var(--page-bg);
  }
}

.input-group__label {
  padding: 0 0.5em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--page-font);
  cursor: pointer;
  margin-top: -0.2rem;
}

.input-group__input {
  color: white;
  font-size: 1.5rem;
  height: calc(1em + 1.6em + 0.5em);
  padding: 0.4rem 1rem;
  border: 0.5rem solid transparent;
  background-image: linear-gradient(#000, #000),
    linear-gradient(120deg, #f0f 0%, #0ff 50%, #9f9 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 1.5rem;
  background-size: 200% 100%;
  transition: background-position 0.8s ease-out;
}

.input-group__input:hover {
  background-position: 100% 0;
}

.fun-switch {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.fun-switch .secondary-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--page-font);
  font-size: 0.9rem;
}

.fun-switch input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
  position: absolute;
}

.fun-switch label {
  cursor: pointer;
  text-indent: -9999px;
  width: 100px;
  height: 50px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

.fun-switch label::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 42px;
  transition: 0.3s;
}

.fun-switch label:active::after {
  width: 65px;
}

.fun-switch input:checked + label {
  background: #8c4;
}

.fun-switch input:checked + label::after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}


/*# sourceMappingURL=chunk.180bb6b8cbab4356bb09.css.map*/