/* ══════════════════════════════════════════════════════════════════
   WorkHub 2.0 — Base styles (reset, typography, scrollbar, a11y)
   ══════════════════════════════════════════════════════════════════ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-ui); font-weight: 400; color: var(--text);
  background: var(--bg); line-height: 1.5; overflow: hidden;
  transition: background-color var(--tr) var(--ease), color var(--tr) var(--ease);
}

a { color: var(--accent-text, var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: var(--text-3xl); font-weight: 600; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 500; }

img { max-width: 100%; display: block; }

input, select, button, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent-light); color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb, var(--border)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover, var(--text-muted)); }

/* Focus */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
