/* ═══════════════════════════════════════════
   RESET CSS — Normalização global
   Todos os valores vêm de css/variables.css
═══════════════════════════════════════════ */

/* Box-model universal */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Body */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

/* Paragraphs and text */
p {
  margin: 0;
  padding: 0;
}

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

li {
  margin: 0;
  padding: 0;
}

/* Block-level resets */
figure,
blockquote {
  margin: 0;
  padding: 0;
}

/* Images */
img,
svg,
video {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Buttons */
button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  line-height: inherit;
}

/* Inputs and textareas */
input,
textarea,
select {
  font: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

textarea {
  resize: vertical;
}

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

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

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Remove default focus outline, re-apply via components */
:focus {
  outline: none;
}

/* Scrollbar base styling */
::-webkit-scrollbar {
  width: var(--space-2);
  height: var(--space-2);
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Selection */
::selection {
  background: var(--color-primary-muted);
  color: var(--color-text-primary);
}
