/* ============================================================
   normalize.css — Modern CSS Normalize for eTemp
   Minimal reset + sensible defaults. Paired with style.css.
   ============================================================ */

/* 1. Use border-box globally */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* 3. Core defaults */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  tab-size: 4;
  line-height: 1.5;
}

/* 4. Reduce motion when preferred */
@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;
    scroll-behavior: auto !important;
  }
}

/* 5. Body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
}

/* 6. Typography */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.15;
}

p, li, figcaption, blockquote {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 7. Media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 8. Form element normalization */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

textarea {
  resize: vertical;
}

fieldset {
  border: none;
}

/* 9. Table normalization */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 10. Anchor defaults */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* 11. List normalization */
ul, ol {
  list-style: none;
}

/* 12. Remove built-in appearance from form elements */
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;
}

/* 13. Summary element normalization */
summary {
  cursor: pointer;
}

/* 14. Hidden attribute */
[hidden] {
  display: none !important;
}

/* 15. Remove default dialog styles */
dialog {
  padding: 0;
}
