/* Modern CSS Reset - European Minimalist Approach */

/* 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 {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

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

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -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;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

/* 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;
  padding: 0;
}

/* Remove default input styles */
input,
textarea,
select {
  border: none;
  outline: none;
  background: transparent;
}

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

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

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

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default blockquote styles */
blockquote {
  quotes: none;
}

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

/* Remove default hr styles */
hr {
  border: none;
  height: 1px;
  background-color: var(--color-gray-200);
  margin: var(--space-8) 0;
}

/* Remove default details/summary styles */
details {
  cursor: pointer;
}

summary {
  cursor: pointer;
  outline: none;
}

/* Remove default mark styles */
mark {
  background-color: var(--color-warning);
  color: var(--color-white);
  padding: 0.1em 0.2em;
  border-radius: var(--radius-sm);
}

/* Remove default code styles */
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--color-gray-100);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-gray-100);
  padding: var(--space-4);
  border-radius: var(--radius-base);
  overflow-x: auto;
  line-height: 1.4;
}

pre code {
  background: none;
  padding: 0;
}

/* Remove default kbd styles */
kbd {
  background-color: var(--color-gray-200);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.3em;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Remove default sub/sup styles */
sub,
sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Remove default small styles */
small {
  font-size: 0.875em;
}

/* Remove default strong/b styles */
strong,
b {
  font-weight: var(--font-weight-semibold);
}

/* Remove default em/i styles */
em,
i {
  font-style: italic;
}

/* Remove default abbr styles */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

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

/* Remove default cite styles */
cite {
  font-style: italic;
}

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

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

/* Remove default q styles */
q {
  quotes: '"' '"' "'" "'";
}

q:before {
  content: open-quote;
}

q:after {
  content: close-quote;
}

/* Remove default dfn styles */
dfn {
  font-style: italic;
}

/* Remove default var styles */
var {
  font-style: italic;
}

/* Remove default samp styles */
samp {
  font-family: var(--font-mono);
}

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

/* Focus styles for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Print styles */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}
