@import "tailwindcss";

@theme {
  --font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace;

  /* Brand accent scale (indigo-based) */
  --color-brand-50: #eef2ff;
  --color-brand-100: #e0e7ff;
  --color-brand-200: #c7d2fe;
  --color-brand-300: #a5b4fc;
  --color-brand-400: #818cf8;
  --color-brand-500: #6366f1;
  --color-brand-600: #4f46e5;
  --color-brand-700: #4338ca;
  --color-brand-800: #3730a3;
  --color-brand-900: #312e81;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: #020617; /* slate-950 */
  color: #f1f5f9; /* slate-100 */
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Consistent page gutter */
.shell {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .shell {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .shell {
    padding-inline: 2rem;
  }
}

/* Visible keyboard focus everywhere */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-brand-400);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--color-brand-600);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus {
  top: 1rem;
}

/* Loading skeleton shimmer */
@keyframes skeleton-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

/* Card hover lift (subtle) */
.card-lift {
  transition: transform 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgb(99 102 241 / 0.45);
}

::selection {
  background: rgb(99 102 241 / 0.45);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
