/* ============================================================
   JobSynk — Base Styles
   Competitive SaaS-grade typography and foundations
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
body.modal-open,
body.nav-open {
  overflow: hidden;
}

/* Refined scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-surface-border); border-radius: var(--radius-full); transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

::selection { background: var(--color-primary-dim); color: var(--color-primary); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); font-weight: 500; }
a:hover { color: var(--color-accent-bright); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
}

/* Smooth image rendering */
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* Utility classes */
.hidden { display: none !important; }
.muted { color: var(--color-text-dim); font-size: var(--text-sm); }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-sm { display: grid; gap: 8px; }
.stack-md { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 20px; }
