/* Key labels may sit in prose or inside the button that performs the action. */
@font-face {
  font-family: "Front Command Symbol";
  src: local("Apple Symbols"), url("/fonts/keycap-command.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+2318;
}

.keycap {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  padding: .08em .4em;
  border: 1px solid var(--keycap-border, #c6d4e0);
  border-bottom-width: 2px;
  border-radius: .34em;
  background: var(--keycap-bg, #edf3f8);
  color: var(--keycap-text, #23445c);
  font-family: inherit;
  font-size: .86em;
  font-weight: 650;
  line-height: 1.25;
}

button:enabled:is(:hover, :focus-visible) .keycap {
  --keycap-bg: #deecf6;
  --keycap-border: #94b2c7;
}

.keycap--command { gap: .12em; }

.keycap--command > span {
  font-family: "Front Command Symbol", system-ui, sans-serif;
  font-weight: 400;
}
