/* ==================================================
   RESET & BASE STYLES
   ================================================== */

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

/* Base document */
html {
  -webkit-text-size-adjust: 100%;
}

/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Images & media */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul,
ol {
  margin: 0;
  padding: 0;
}

/* Remove default list styles only when classed */
ul[class],
ol[class] {
  list-style: none;
}

/* Headings reset */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: inherit;
}

/* Paragraph */
p {
  margin: 0;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Buttons */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

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