@font-face {
  font-family: "Fixit Logo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fixit-logo/fira-code-600-fit.woff2") format("woff2");
  unicode-range: U+66, U+69, U+74;
}

.site-header .fixit-logo {
  --fixit-ink: #0e1116;
  --fixit-disc: #006efc;
  --fixit-mark: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 84px;
  width: 84px;
  height: 36px;
  font-family: "Fixit Logo", ui-monospace, monospace;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--fixit-ink) !important;
  text-decoration: none !important;
}

.site-header .fixit-logo > span {
  flex: none;
}

.site-header .fixit-logo:focus-visible {
  outline: 2px solid #006efc;
  outline-offset: 4px;
}

.fixit-logo__icon {
  position: relative;
  display: inline-block;
  width: 0.56em;
  height: 0.56em;
  margin: 0 0.01em;
  vertical-align: middle;
  animation: fixit-logo-press 4s infinite;
}

.fixit-logo__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--fixit-disc);
}

.fixit-logo__mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  animation: fixit-logo-twist 4s infinite;
}

.fixit-logo__mark path {
  fill: var(--fixit-mark);
}

@keyframes fixit-logo-press {
  0%, 28% { transform: scale(1); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  32% { transform: scale(.88); animation-timing-function: cubic-bezier(.2, 1.6, .4, 1); }
  46%, 78% { transform: scale(1); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  82% { transform: scale(.88); animation-timing-function: cubic-bezier(.2, 1.6, .4, 1); }
  96%, 100% { transform: scale(1); }
}

@keyframes fixit-logo-twist {
  0%, 30% { transform: rotate(45deg); animation-timing-function: cubic-bezier(.3, 1.7, .45, 1); }
  46%, 80% { transform: rotate(90deg); animation-timing-function: cubic-bezier(.3, 1.7, .45, 1); }
  96%, 100% { transform: rotate(135deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fixit-logo__icon,
  .fixit-logo__mark { animation: none; }
}
