/* Author: Alexander Saurwein
 * Date: 2025-08-25 / Current
 * Path: assets/css/reset.css
 * Name: reset.css
 */

/* Modern CSS Reset */
/* Based on modern normalize and reset practices */

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

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

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@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;
  }
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  background-color: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  outline: none;
  padding: 0;
}

/* Remove button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

button:focus {
  outline: revert;
}

/* Remove textarea resize handle in some browsers */
textarea {
  resize: vertical;
}

/* Remove default table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default styles for fieldset and legend */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Remove default styles for address */
address {
  font-style: normal;
}

/* Remove default blockquote styles */
blockquote {
  margin: 0;
}

/* Remove default styles for code elements */
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Monaco, Inconsolata, 'Liberation Mono', 'Noto Sans Mono', Consolas, monospace;
  font-size: 1em;
}

/* Remove default styles for hr */
hr {
  border: none;
  border-top: 1px solid;
  color: inherit;
  height: 0;
  margin: 0;
  overflow: visible;
}

/* Remove default styles for summary */
summary {
  cursor: pointer;
  display: list-item;
}

/* Remove default styles for details */
details {
  display: block;
}

/* Remove default styles for abbr */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/* Remove default styles for b, strong */
b,
strong {
  font-weight: bolder;
}

/* Remove default styles for small */
small {
  font-size: 80%;
}

/* Prevent sub and sup from affecting line height */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Remove default styles for mark */
mark {
  background-color: yellow;
  color: black;
}

/* Remove default styles for del */
del {
  text-decoration: line-through;
}

/* Remove default styles for ins */
ins {
  text-decoration: underline;
}

/* Hide content from assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Unhide content for assistive technology */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: inherit;
}

/* Ensure full height for modern layouts */
html,
body {
  height: 100%;
}

/* Improve consistency of default fonts */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Improve media defaults */
iframe,
embed,
object {
  max-width: 100%;
}

/* Remove Chrome's default focus styles and provide better ones */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Remove default search input styles */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

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;
}

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

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

/* Improve consistency for file inputs */
input[type="file"] {
  font-size: 100%;
  line-height: 1;
  margin: 0;
}

/* Fix mobile tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Improve consistency for progress elements */
progress {
  vertical-align: baseline;
}

/* Fix template element display in IE */
template {
  display: none;
}

/* Improve consistency for hidden attribute */
[hidden] {
  display: none !important;
}

/* Fix iOS Safari button styling */
input[type="button"],
input[type="reset"],
input[type="submit"],
button {
  -webkit-appearance: button;
  cursor: pointer;
}

/* Fix disabled button cursor */
button[disabled],
input[disabled] {
  cursor: default;
}

/* Remove default focus outline and provide better alternative */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Improve consistency for text selection */
::selection {
  background-color: highlight;
  color: highlighttext;
}

/* Fix IE11 main element display */
main {
  display: block;
}

/* Reset margins for heading elements */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}