/* ===================================
   Modern CSS Reset
   Based on normalize.css and modern best practices
   =================================== */

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

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

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

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

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

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a {
  text-decoration: none;
  color: inherit;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

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

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

/* 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 default fieldset styles */
fieldset {
  border: none;
}

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

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

/* Normalize font weight for headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

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

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

/* Ensure consistent textarea resize behavior */
textarea {
  resize: vertical;
}

/* Remove default summary arrow */
summary {
  cursor: pointer;
  list-style: none;
}

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

/* Improve media defaults */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* Remove the border on iframes in all browsers */
iframe {
  border: 0;
}

/* Improve readability of pre-formatted text */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Ensure hr is visible */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid currentColor;
  margin: 1em 0;
}

/* Normalize monospace font sizing */
code,
kbd,
samp,
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Correct the font size and margin on h1 elements within section and article contexts */
h1 {
  font-size: 2em;
  margin: 0;
}

/* Improve consistency of default fonts in all browsers */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

/* Remove the default outline on focused elements */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Remove outline for non-keyboard focus */
:focus:not(:focus-visible) {
  outline: none;
}

/* Improve text selection */
::selection {
  background-color: rgba(44, 82, 130, 0.2);
  color: inherit;
}

::-moz-selection {
  background-color: rgba(44, 82, 130, 0.2);
  color: inherit;
}
