/*
 * Path: css/core/reset.css
 * Purpose: Element-level normalization and sane defaults (reset)
 * Boundaries: No layout primitives, no component styles, no utilities.
 * Principles: SRP, DRY, KISS. Keep it minimal and predictable.
 * Version: 0.9.0 (pre-1.0)
 */

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

/* Full-height root for layouts that rely on 100% height */
html, body {
  height: 100%;
}

/* Browser defaults adjustments */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth; /* keep existing anchor smooth-scrolling */
}

/* Canvas baseline comes from semantic tokens */
body {
  margin: 0;
  background: var(--surface);
}

/* Media elements: block-level and responsive by default */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

/* Images/SVGs should not distort aspect ratio */
img, svg {
  height: auto;
}

/* Form controls inherit site typography and color by default */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* Remove default margins on common text elements */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}
