/**
 * CSS Reset
 * Modern CSS reset for consistent cross-browser rendering
 */

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

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

/* HTML and body setup */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Typography resets */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* List resets */
ul, ol {
  list-style: none;
}

/* Link resets */
a {
  color: inherit;
  text-decoration: inherit;
}

/* Button resets */
button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
}

/* Form element resets */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
}

/* Remove default input styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Range input reset */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

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

/* Table resets */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* HR reset */
hr {
  border: none;
  border-top: 1px solid;
  margin: 0;
}

/* Remove details summary arrow in some browsers */
summary {
  display: list-item;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* Remove fieldset borders */
fieldset {
  border: none;
}

/* Remove legend default styles */
legend {
  padding: 0;
}

/* Remove default quotation marks */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}
