:root {
  --info-transition-duration: 320ms;
}

.site-info {
  position: fixed;
  left: var(--page-margin);
  bottom: var(--page-margin);
  width: calc(4 * var(--project-column-width) + 3 * var(--grid-gap));
  pointer-events: none;
  z-index: 20;
}

.site-info__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  color: var(--text);
  font-size: var(--font-size-base);
}

.site-info__label {
  grid-column: 1 / span 2;
}

.site-info__count {
  grid-column: 4 / span 1;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.site-info__count-current {
  color: var(--highlight);
}

.site-info__count-separator {
  line-height: 1;
}

.site-info.is-ready .site-info__inner {
  opacity: 1;
  transform: translateY(0);
}

.site-info__inner {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms cubic-bezier(0.33, 1, 0.68, 1) 320ms,
    transform 520ms cubic-bezier(0.33, 1, 0.68, 1) 320ms;
}

@media (max-width: 720px) {
  .site-info {
    width: calc(100vw - 2 * var(--page-margin));
  }

  .site-info__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-info__label {
    grid-column: 1 / span 1;
    display: none;
  }

  .site-info__count {
    grid-column: 2 / span 1;
    justify-self: end;
  }
}
