/* css/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Fluid root font-size scaling for Mobile, Desktops & 4K/TV displays */
@media (max-width: 380px) {
  html {
    font-size: 14.5px;
  }
}

@media (min-width: 2000px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 2800px) {
  html {
    font-size: 22px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--clr-text-main);
  background-color: var(--clr-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  max-width: 100%;
}

button {
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

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