/* reset.css — CSS reset and normalize baseline.
 * Removes browser inconsistencies so components start from a known state. */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /*
   * Reserve scrollbar space permanently so the page
   * does not shift when a menu or overlay opens and
   * the scrollbar disappears.
   */
  scrollbar-gutter: stable;
}

/*
 * Custom scrollbar styling — webkit browsers only.
 * Falls back to system scrollbar on Firefox.
 * Uses design tokens for consistency.
 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-bg);
  font-family: var(--font-family);
  color: var(--color-text);
}

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

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

fieldset {
  border: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
