/*
  reset.css (modern, minimal)
  - Safe defaults for most web projects
  - Keeps useful browser behaviors (e.g., focus rings) intact
*/

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

/* 2) Remove default spacing */
* {
  margin: 0;
  padding: 0;
}

/* 3) Core body defaults */
html:focus-within {
  scroll-behavior: auto;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 5) Forms inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;

  &:focus{
    outline: none;
  }
}

input:focus::placeholder{
  opacity: 0;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

textarea {
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}

input[type="radio"],
input[type="checkbox"] {
  display: none;
}

/* 6) Remove list styles (use class for custom bullets if needed) */
ul,
ol {
  list-style: none;
}

/* 7) Link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* 8) Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9) Headings/text */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p {
  overflow-wrap: break-word;
}

/* 10) Improve focus visibility without removing it */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 11) Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

