/* ==============================================================================
   CSS RESET & BASE NORMALIZATION
   ============================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

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

::selection {
  background-color: var(--color-brand-cyan);
  color: #070B14;
}
