/* 
  This CSS reset file is adapted from what can be found
  [here](https://www.joshwcomeau.com/css/custom-css-reset).
 
  On that page you can find expanded explanations for each of these decisions.
*/

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

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

/*
  3. Create a root stacking context
*/
#root {
  isolation: isolate;
}

:root {
  font-family: Onest, sans-serif;
  font-variation-settings: normal;
  font-optical-sizing: auto;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color-scheme: light;
}

/* 4. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 5. Add accessible line-height */
  line-height: 1.5;

  /* 6. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

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

/* 8. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

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

/* 10. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

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

/*
  12. Remove default `header` and `menu` padding
*/
menu,
th {
  padding: 0;
}

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

/* 14. Soften default em styles */
em {
  font-style: normal;
  font-weight: 500;
}
