/* HajoSign — catalogue.
   Cards, chips and tokens come from site.css; this is only the page around
   them: the header strip, the filter bar and the grid. */

/* ---------- header strip ---------- */

.pv-top {
  position: relative;
  padding: clamp(7rem, 14vw, 9rem) 0 clamp(2.5rem, 6vw, 4rem);
  background-color: #030304;
  color: #f2f1ee;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2.5vw));
  overflow: hidden;
}

.pv-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: image-set(
    url('printer-hero/public/assets/printer/printer-base-1536.avif') type('image/avif'),
    url('printer-hero/public/assets/printer/printer-base-1536.webp') type('image/webp')
  );
  background-size: cover;
  background-position: center 64%;
  opacity: 0.38;
}

/* Keeps the type off the machine's bright cover. */
.pv-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(3, 3, 4, 0.94) 0%,
    rgba(3, 3, 4, 0.74) 46%,
    rgba(3, 3, 4, 0.34) 100%
  );
}

.pv-top > * {
  position: relative;
  z-index: 1;
}

.pv-top .sv-title {
  color: #f5f5f5;
  max-width: 14ch;
}

.pv-top .sv-title em {
  color: var(--sv-orange);
}

.pv-top .sv-lede {
  color: #cdc9c5;
}

/* ---------- filters ---------- */

.pv-filters {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem);
  background: transparent;
  pointer-events: none;
}

.pv-filters__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(11, 11, 12, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(112, 52, 20, 0.12);
  backdrop-filter: blur(0.9rem);
  pointer-events: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.pv-filters__row::-webkit-scrollbar {
  display: none;
}

.pv-filter {
  flex: none;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-paper);
  font-family: var(--sv-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sv-ink-soft);
  cursor: pointer;
  transition: color 180ms var(--sv-ease), border-color 180ms var(--sv-ease),
    background-color 180ms var(--sv-ease);
}

.pv-filter:hover {
  color: var(--sv-ink);
  border-color: var(--sv-orange);
}

/* Ink on orange is 5.3:1 — the vivid orange survives AA as a button fill. */
.pv-filter.is-on {
  background: var(--sv-orange);
  border-color: var(--sv-orange);
  color: var(--sv-ink);
  font-weight: 600;
}

.pv-filter:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 3px;
}

.pv-filters__count {
  flex: none;
  margin: 0 0 0 auto;
  font-family: var(--sv-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sv-ink-soft);
}

@media (max-width: 560px) {
  .pv-filters__row {
    width: calc(100% - 1rem);
    padding-inline: 0.4rem;
  }

  .pv-filter {
    min-height: 2.45rem;
    padding-inline: 0.9rem;
  }
}

/* ---------- grid ---------- */

.pv-grid {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.pv-note {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px dashed var(--sv-line);
  border-radius: 3px;
  background: var(--sv-paper-warm);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sv-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .pv-filter {
    transition: none;
  }
}
