/* ── Base Styles ── */
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Utilities classes used globally */
.hidden {
  display: none !important;
}

/* Code styling */
code, pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

code {
  padding: 2px 6px;
  color: var(--accent-primary);
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

pre code {
  padding: 0;
  color: inherit;
  background: none;
}
