/* =========================================
   HILOTHAI1688 - CSS RESET
   Mobile First
========================================= */


/* =========================================
   BOX SIZING
========================================= */

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


/* =========================================
   HTML
========================================= */

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


/* =========================================
   BODY
========================================= */

body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);

  color: var(--color-text);
  background: var(--color-bg);

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================
   HEADINGS
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;

  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);

  color: var(--color-heading);
}


/* =========================================
   PARAGRAPH
========================================= */

p {
  margin: 0;
}


/* =========================================
   LINKS
========================================= */

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}


/* =========================================
   LISTS
========================================= */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* =========================================
   IMAGES & MEDIA
========================================= */

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

img {
  height: auto;
}


/* =========================================
   FORM ELEMENTS
========================================= */

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

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

input,
textarea,
select {
  border-radius: 0;
}


/* =========================================
   BUTTON & LINK FOCUS
   Accessibility
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}


/* =========================================
   TABLE
========================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* =========================================
   TEXT SELECTION
========================================= */

::selection {
  color: var(--color-text-dark);
  background: var(--color-primary);
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}


/* =========================================
   ACCESSIBILITY
========================================= */

[hidden] {
  display: none !important;
}


/* Screen Reader Only */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}