.brand.brand-keyboard {
  display: inline-flex;
  width: 112px;
  max-width: 100%;
  padding: 0 0 5px 9px;
  border-radius: 9px;
  line-height: 1;
  text-decoration: none;
}

.brand-keyboard .brand-wordmark {
  display: flex;
  gap: 7px;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -1.5px;
}

.brand-keyboard .brand-keycap {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 44px;
  color: #24251f;
  background: #e4decc;
  border: 1px solid #b8b09e;
  border-radius: 9px;
  box-shadow: 0 5px 0 #aca38f, 0 7px 2px #29251a1a;
}

.brand-keyboard .brand-keycap::before {
  content: "";
  position: absolute;
  inset: 2px 4px 5px;
  border-radius: 6px;
  background: #fffbee;
  box-shadow: inset 0 1px 0 #fff;
}

.brand-keyboard .brand-keycap > span {
  position: relative;
  padding-bottom: 4px;
}

.brand-keyboard .keycap-two {
  background: #db4826;
  border-color: #bd3c20;
  box-shadow: 0 5px 0 #ad351e, 0 7px 2px #29251a1a;
}

.brand-keyboard .keycap-two::before {
  background: #f55b35;
  box-shadow: inset 0 1px 0 #ff997b;
}

.brand-keyboard:focus-visible {
  outline: 2px solid #f55b35;
  outline-offset: 6px;
}

body.motion-on .brand-keyboard:is(:hover, :focus-visible) .brand-keycap {
  animation: brand-key-press .6s cubic-bezier(.2, .8, .25, 1) both;
}

body.motion-on .brand-keyboard:is(:hover, :focus-visible) .keycap-two {
  animation-delay: .14s;
}

@keyframes brand-key-press {
  0%, 55%, 100% { transform: translateY(0); }
  18%, 35% { transform: translateY(4px); box-shadow: 0 1px 0 #aca38f, 0 2px 1px #29251a1a; }
}

body.motion-on .brand-keyboard:is(:hover, :focus-visible) .keycap-two {
  animation-name: brand-accent-key-press;
}

@keyframes brand-accent-key-press {
  0%, 55%, 100% { transform: translateY(0); }
  18%, 35% { transform: translateY(4px); box-shadow: 0 1px 0 #ad351e, 0 2px 1px #29251a1a; }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-on .brand-keyboard:is(:hover, :focus-visible) .brand-keycap {
    animation: none;
  }
}
