/* dan.maiale.org — supplemental styles */

html { color-scheme: dark; }
body { font-feature-settings: "ss01","cv11"; }

.text-gradient {
  background: linear-gradient(110deg, #a78bfa 0%, #7c5cff 35%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1f1f2e;
  color: #c8c8d6;
  transition: all 160ms ease;
}
.chip:hover {
  border-color: #7c5cff;
  color: #fff;
  background: rgba(124,92,255,0.12);
}

.stack-card {
  border: 1px solid #1f1f2e;
  background: rgba(17,17,26,0.6);
  border-radius: 1rem;
  padding: 1.5rem;
}
.stack-card h4 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8aa0;
  margin-bottom: 0.75rem;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* project cards subtle lift */
.project-card { transition: transform 280ms ease, border-color 280ms ease; }
.project-card:hover { transform: translateY(-2px); }

/* preserve newlines inside the inline yaml block */
pre, code, .font-mono.text-xs { white-space: pre-line; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card:hover { transform: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
