@use "./variables" as *;
@use "./mixins" as *;

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: $font-family-base;
  font-size: $font-size-base;
  font-weight: $font-weight-normal;
  line-height: 1.5;
  color: $text-primary;
  background-color: $bg-primary;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  @include container;
}

// Типографика
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  font-family: $font-family-heading;
  font-weight: $font-weight-bold;
  line-height: 1.2;
  color: $text-primary;
}

h1 {
  font-size: $font-size-4xl;
}
h2 {
  font-size: $font-size-3xl;
}
h3 {
  font-size: $font-size-2xl;
}
h4 {
  font-size: $font-size-xl;
}
h5 {
  font-size: $font-size-lg;
}
h6 {
  font-size: $font-size-base;
}

p {
  margin: 0 0 1rem;
  color: $text-secondary;
}

a {
  color: $primary;
  text-decoration: none;
  transition: color $transition-base;

  &:hover,
  &:focus {
    color: $primary-dark;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
