/* ==========================================================================
   SAFA BUILDERS — Modern CSS Reset
   ========================================================================== */

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

/* Enforce [hidden] attribute — prevents author CSS display rules overriding it */
[hidden] { display: none !important; }

/* Remove default margins and padding */
* {
  margin: 0;
  padding: 0;
}

/* Set document defaults */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Remove list styles */
ul, ol {
  list-style: none;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Images are block and responsive by default */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove button defaults */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Create a root stacking context */
#root, #__next {
  isolation: isolate;
}

/* Reduced motion preferences */
@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;
  }
}

/* Focus visible outline */
:focus-visible {
  outline: 3px solid var(--clr-secondary);
  outline-offset: 3px;
}

/* Selection color */
::selection {
  background-color: var(--clr-primary);
  color: var(--clr-white);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-8) 0;
}

/* Table defaults */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Abbreviation */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}
