/* Donkey Factory — signature.css
 * The visual stamp that makes every donkey app instantly recognizable as
 * a member of the factory family. Composes with light/dark/hc themes via
 * CSS variables. No JavaScript. No external dependencies.
 *
 * Utilities:
 *   .wt-eyebrow-mono [data-num]   — section labels
 *   .wt-num                        — tabular numerics
 *   .wt-grain-bg                   — noise texture overlay
 *   .wt-stagger-in                 — first-paint sequence
 *   .wt-donkey-footer              — series signature footer mark
 *   .wt-slash-mark                 — wordmark accent
 */

/* ── 1. Section eyebrow labels ──────────────────────────────────────────── */

.wt-eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;          /* 11px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Numbered variant: <span class="wt-eyebrow-mono" data-num="01">tools</span> */
.wt-eyebrow-mono[data-num]::before {
  content: attr(data-num) " /";
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

/* ── 2. Tabular numerics ────────────────────────────────────────────────── */

.wt-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.01em;
}

/* ── 3. Noise grain background overlay ──────────────────────────────────── */

.wt-grain-bg {
  position: relative;
  isolation: isolate;
}

.wt-grain-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/static/noise.svg");
  background-size: 200px 200px;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

.dark .wt-grain-bg::before {
  opacity: 0.06;
  mix-blend-mode: screen;
}

/* HC mode: no grain — preserves contrast */
.hc .wt-grain-bg::before {
  display: none;
}

/* ── 4. First-paint stagger sequence ────────────────────────────────────── */

.wt-stagger-in > * {
  opacity: 0;
  transform: translateY(8px);
  animation: wt-stagger-in 480ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

.wt-stagger-in > *:nth-child(1) { animation-delay: 0ms; }
.wt-stagger-in > *:nth-child(2) { animation-delay: 80ms; }
.wt-stagger-in > *:nth-child(3) { animation-delay: 160ms; }
.wt-stagger-in > *:nth-child(4) { animation-delay: 240ms; }
.wt-stagger-in > *:nth-child(5) { animation-delay: 320ms; }
.wt-stagger-in > *:nth-child(6) { animation-delay: 400ms; }

@keyframes wt-stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-stagger-in > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── 5. Series signature footer mark ────────────────────────────────────── */

.wt-donkey-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.wt-donkey-footer::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--primary);
  display: inline-block;
  flex-shrink: 0;
}

/* ── 6. Wordmark slash accent ───────────────────────────────────────────── */

.wt-slash-mark {
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--text);
}

.wt-slash-mark > i {
  color: var(--primary);
  font-style: normal;
  margin: 0 0.05em;
}
