/**
 * reset.css — Novagroup Modern Reset
 * Based on Andy Bell's modern reset (https://piccalil.li/blog/a-modern-css-reset/)
 * with additions for Novagroup's motion preferences and image handling.
 */

/* Box sizing — everything inherits from root */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Root — type smoothing */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Body — stretch to viewport */
body {
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media — responsive and block by default */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Prevent text overflow on inputs */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styling when list role removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Headings — no wrapping orphans */
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Paragraphs */
p {
  overflow-wrap: break-word;
}

/* Anchors — no underline by default (we draw our own) */
a {
  color: inherit;
  text-decoration: none;
}

/* Buttons — reset platform styles */
button {
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Fieldset */
fieldset {
  border: none;
}

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

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid currentColor;
}

/* Hidden visually but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
 * REDUCED MOTION — disable all non-essential animations
 * ============================================================ */
@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;
    scroll-behavior: auto !important;
  }
}
