/* ============================================================
   RESET — espelhado do design-system.html
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--on-vinho-5);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

button { cursor: pointer; }

ul, ol, menu { list-style: none; }

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

/* Acessibilidade · respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

::selection { background: var(--color-dourado); color: var(--color-vinho); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-vinho-deep); }
::-webkit-scrollbar-thumb { background: var(--color-dourado); opacity: 0.5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-dourado-soft); }

/* Skip link · acessibilidade WCAG 2.4.1 (Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: var(--z-overlay);
  padding: 0.75rem 1.25rem;
  background: var(--color-dourado);
  color: var(--color-vinho);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  transition: top var(--d-fast) var(--ease-default);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-offwhite);
  outline-offset: 2px;
}

/* Foco visível padrão · WCAG 2.2 */
:focus-visible {
  outline: 2px solid var(--color-dourado);
  outline-offset: 3px;
  border-radius: 2px;
}
