/* ============================================================
   RESET — Normalize & remove browser default styles
   ============================================================ */

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

/* Remove all margin & padding */
* {
  margin: 0;
  padding: 0;
}

/* Normalize document */
html {
  line-height: 1;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

/* Body defaults */
body {
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — reset to inherit */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

/* Images & media — block by default, constrained */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for all form elements */
input,
button,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Anchors — inherit, no underline */
a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

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

/* Disabled cursor */
[disabled] {
  cursor: not-allowed;
}

/* Focus visible — consistent outline using brand color */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Remove outline on non-keyboard focus */
:focus:not(:focus-visible) {
  outline: none;
}
