/* ==================================================
   Reset CSS
   Purpose: Cross-browser consistency
   Updated: 2026
================================================== */

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

/* --- Remove default margin & padding ------------ */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
hr,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

/* --- HTML & Body -------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* --- Lists -------------------------------------- */
ol,
ul {
  list-style: none;
}

/* --- Links -------------------------------------- */
a {
  text-decoration: none;
  color: inherit;
}

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

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

/* --- Forms -------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* --- Remove Safari / iOS quirks ----------------- */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

button,
input[type="button"],
input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

/* --- Fieldset & Legend -------------------------- */
fieldset {
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

/* --- Quotes ------------------------------------- */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

/* --- Hidden ------------------------------------- */
[hidden] {
  display: none !important;
}

/* --- Accessibility ------------------------------ */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
