/* ===========================
   RESET — Modern CSS Reset
   Machado Plataformas
=========================== */

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis controla o scroll */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Remove outline apenas quando focus-visible não se aplica (clique/toque) */
:focus:not(:focus-visible) {
  outline: none;
}

button {
  cursor: pointer;
}

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

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4, 1rem);
  z-index: 9999;
  padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-ui-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:focus-visible {
  top: var(--space-4, 1rem);
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
