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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

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

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-light);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul, ol { list-style: none; }

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

::selection {
  background: var(--color-accent);
  color: #ffffff;
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}
