/**
 * Base Styles & Resets
 * Global styles applied to all elements
 */

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

/* === Links === */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal) var(--transition-timing);
}

a:hover {
  color: var(--primary-dark);
}

/* === Lists === */
ul,
ol {
  list-style: none;
}

/* === Buttons === */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* === Images === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === SVG === */
svg {
  display: block;
}

/* === Form Elements === */
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* === Focus Styles (Accessibility) === */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* === Accessibility === */
@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;
  }
}
