/* ============================================================
   CSS Reset + Base Typography
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

h1 { font-family: var(--font-display); font-size: var(--text-5xl); letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-family: var(--font-display); font-size: var(--text-4xl); letter-spacing: 0.02em; text-transform: uppercase; }
h3 { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: var(--font-semibold); }
h4 { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: var(--font-semibold); }
h5 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--font-medium); }
h6 { font-family: var(--font-heading); font-size: var(--text-base); font-weight: var(--font-medium); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: var(--font-semibold); }

small { font-size: var(--text-sm); }

::selection {
  background-color: var(--color-cta);
  color: white;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }
