.theme {
  bottom: 0;
  display: none;
  height: var(--space-xx-large);
  left: 0;
  place-content: center;
  pointer-events: none;
  position: fixed;
  width: var(--space-xx-large);
  z-index: 100;
}

.theme button {
  border-radius: var(--border-radius);
  color: var(--color-slate-5);
  cursor: pointer;
  display: grid;
  height: 2.5em;
  pointer-events: auto;
  place-content: center;
  width: 2.5em;
}

.theme svg {
  height: 1em;
  overflow: visible;
  pointer-events: none;
  width: auto;
}



@media(hover: hover) {

  .theme button {
    transition:
      background var(--transition),
      color var(--transition),
      transform var(--transition)
    ;
    will-change: transform;
  }

  .theme button:focus,
  .theme button:hover {
    background: oklch(var(--oklch-ink) / 0.08);
    color: var(--color-slate-4);
    transform: scale(1.05);
  }

  .theme button:active {
    transform: scale(0.98) translateY(0.05em);
  }

}



@media(min-width: 64em) {

  .theme {
    display: grid;
  }

}



@media(prefers-color-scheme: dark) {

  .theme {
    display: none;
  }

}
