/* ==================================================
   COOKIE DEVS
   CSS RESET
   ================================================== */

/*
  Modern lightweight reset.

  Purpose:
  - Consistent box sizing
  - Predictable typography
  - Responsive media
  - Accessible form inheritance
  - Reduced browser inconsistencies

  Keep this file visual-neutral.
*/

/* =========================
   BOX SIZING
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   DOCUMENT
   ========================= */

html {
  margin: 0;
  padding: 0;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  scroll-behavior: smooth;
}

/* =========================
   BODY
   ========================= */

body {
  margin: 0;
  min-height: 100vh;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* =========================
   LISTS
   ========================= */

ul,
ol {
  margin: 0;
  padding: 0;
}

/* =========================
   MEDIA
   ========================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* =========================
   FORM ELEMENTS
   ========================= */

input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

/* =========================
   LINKS
   ========================= */

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   TABLES
   ========================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
