/* ==========================================================================
   reset.css (generic, safe, minimal)
   - Purpose: reduce browser inconsistencies without destroying UI defaults.
   - Suitable for: WordPress / static / any CMS projects
   ========================================================================== */

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

/* 2) Remove default margins (common source of layout gaps) */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
hr {
  margin: 0;
}

/* 3) Basic body setup (do NOT set font-family here; keep it in base.css) */
body {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

/* 4) Lists: keep semantics; remove padding only (bullets handled in base/components) */
ol,
ul {
  padding: 0;
}

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

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

/* 7) Form elements: inherit typography, but don’t over-reset appearance */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Make textarea behave predictably */
textarea {
  resize: vertical;
}

/* Buttons: keep clickable cursor and remove inconsistent inner spacing */
button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

/* Remove Firefox inner focus padding */
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* 8) Links: keep default underline for accessibility; style in base.css */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* 9) Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid;
  opacity: 0.2;
}

/* 10) Hidden attribute */
[hidden] {
  display: none !important;
}

/* 11) Improve focus visibility (safe, minimal) */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 12) Reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

