/* ========================================
   MACOWA — Modern CSS Reset
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-void);
  color: var(--text-primary);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  font-style: italic; /* alt-text fallback styling */
}

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

textarea {
  white-space: revert;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Remove default fieldset styling */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Target elements that can receive focus */
:focus-visible {
  outline: 2px solid hsl(217, 91%, 60%);
  outline-offset: 3px;
}

/* Remove animations for reduced-motion users (base level) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
