.button {
    display: inline-block;
    cursor: pointer;
    border: 0;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease-in;
}
.button:focus {
    outline: 2px solid var(--color-custom-barely-teal);
    outline-offset: 1px;
}
.button--small {
    padding: 10px 16px;
    font-size: 12px;
}
.button--medium {
    padding: 11px 20px;
    font-size: 14px;
}
.button--large {
    padding: 12px 24px;
    font-size: 16px;
}
.button--icon {
    padding: 8px;
}
.button--icon img,
.button--icon svg {
    height: 1.25rem;
    width: 1.25rem;
}
.button--block {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
}
.button--primary {
    background-color: var(--color-custom-teal-me-no-lies);
    color: #000 !important;
}
.button--primary:hover {
    background-color: #087173;
    color: #FFF !important;
}
.button--primary:active {
    background-color: #075d5e;
    color: #FFF !important;
}
.button--white {
    background-color: #FFF;
    color: #000 !important;
}
.button--white:hover {
    background-color: #DDD;
}
.button--white:active {
    background-color: #CCC;
}
.button--black {
    background-color: #000;
    color: #FFF !important;
}
.button--black:hover {
    background-color: #222;
}
.button--black:active {
    background-color: #333;
}
.button--white-outline {
    background-color: transparent;
    color: #FFF;
    box-shadow: #FFF 0 0 0 2px inset;
}
.button--white-outline:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.button--white-outline:active {
    background-color: rgba(0, 0, 0, 0.15);
}
.button--black-outline {
    background-color: transparent;
    color: #FFF;
    box-shadow: #FFF 0 0 0 2px inset;
}
.button--white-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.button--white-outline:active {
    background-color: rgba(255, 255, 255, 0.15);
}
.button--glitch {
    color: #FFF;
    background-color: #990000;
    position: relative;
}
.button--glitch:active {
    background-color: #700000;
}
.button--glitch::after {
    --slice-0: inset(50% 50% 50% 50%);
    --slice-1: inset(80% -6px 0 0);
    --slice-2: inset(50% -6px 30% 0);
    --slice-3: inset(10% -6px 85% 0);
    --slice-4: inset(40% -6px 43% 0);
    --slice-5: inset(80% -6px 5% 0);
    content: "X";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 3%, #00e6f6 3%, #00e6f6 5%, #990000 5%);
    text-shadow: -3px -3px 0 #f8f005, 3px 3px 0 #00e6f6;
    clip-path: var(--slice-0);
}
.button--glitch:hover::after {
    animation: glitch 1s steps(2, end);
}
@media (prefers-reduced-motion: reduce) {
    .button--glitch:hover {
        background-color: #770000;
    }
    .button--glitch:hover::after {
        animation: none;
        display: none;
    }
}
/* @see https://codepen.io/seaox/pen/GRRbzjY */
@keyframes glitch {
    0% {
        clip-path: var(--slice-1);
        transform: translate(-20px, -10px);
    }
    10% {
        clip-path: var(--slice-3);
        transform: translate(10px, 10px);
    }
    20% {
        clip-path: var(--slice-1);
        transform: translate(-10px, 10px);
    }
    30% {
        clip-path: var(--slice-3);
        transform: translate(0px, 5px);
    }
    40% {
        clip-path: var(--slice-2);
        transform: translate(-5px, 0px);
    }
    50% {
        clip-path: var(--slice-3);
        transform: translate(5px, 0px);
    }
    60% {
        clip-path: var(--slice-4);
        transform: translate(5px, 10px);
    }
    70% {
        clip-path: var(--slice-2);
        transform: translate(-10px, 10px);
    }
    80% {
        clip-path: var(--slice-5);
        transform: translate(20px, -10px);
    }
    90% {
        clip-path: var(--slice-1);
        transform: translate(-10px, 0px);
    }
    100% {
        clip-path: var(--slice-1);
        transform: translate(0);
    }
}
