/* The handful of things Tailwind utilities can't express cleanly. */

/* Archivo is a variable font with a width axis -- expanded is what gives the
   display type its poster-like presence. */
.display {
  font-family: Archivo, system-ui, sans-serif;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em;
}

.figure {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* The signature: each day header's rule is filled in proportion to what was
   spent that day, so scrolling the ledger doubles as scanning a bar chart. */
.day-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(27, 127, 76, 0.14), rgba(27, 127, 76, 0.05));
  width: 0;
  transition: width 620ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.row-in {
  opacity: 0;
  transform: translateY(4px);
  animation: rowIn 380ms cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
@keyframes rowIn {
  to {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid #1b7f4c;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .day-bar {
    transition: none;
  }
  .row-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
