/* ============================================================
   VibeKrave — Base (Phase 1)
   Global element-level foundations. Consumes tokens.css only.
   ============================================================ */

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--vk-bg);
  color: var(--vk-text);
  font-family: var(--vk-font-body);
  font-weight: var(--vk-weight-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vk-font-display);
  font-weight: var(--vk-weight-heading);
}

button, input, select, textarea {
  font-family: var(--vk-font-body);
}

/* Visible global focus system (audit finding #9) */
:focus-visible {
  outline: 2px solid var(--vk-cyan);
  outline-offset: 2px;
  border-radius: var(--vk-radius-sm);
}

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