/*
  KörperRein Website - CSS Reset
  Modern CSS Reset based on Josh Comeau's custom reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* 1. Use a more intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

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

/* 3. Allow percentage-based heights in the application */
html, body {
  height: 100%;
}

/* 4. Add smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* 5. Improve text rendering */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Remove built-in form typography styles */
input, button, textarea, select {
  font: inherit;
}

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

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

/* 10. Reset list styles */
ul, ol {
  list-style: none;
}

/* 11. Remove link underlines by default (we'll add them back in global.css) */
a {
  text-decoration: none;
  color: inherit;
}

/* 12. Remove button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 13. Make images easier to work with */
img {
  height: auto;
}

/* 14. Reset table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 15. Inherit fonts for form elements */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 16. Remove default fieldset/legend styles */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  padding: 0;
}

/* 17. Normalize address element */
address {
  font-style: normal;
}

/* 18. Remove default styles from abbr */
abbr[title] {
  text-decoration: none;
}

/* 19. Ensure consistent focus styles across browsers */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}
