/* Reset enxuto + superfícies de navegador tematizadas */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream-bg);
  color: var(--brown-deep);
  font-family: var(--font);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

strong, b {
  font-weight: var(--fw-bold);
}

/* As superfícies que o navegador desenha também são da marca */

::selection {
  background: var(--gold);
  color: var(--brown-deep);
}

body {
  caret-color: var(--brown-warm);
  scrollbar-color: var(--taupe) var(--cream-bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--taupe);
  border-radius: var(--r-pill);
  border: 2px solid var(--cream-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brown-mid);
}

:focus-visible {
  outline: 2px solid var(--brown-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Foco sobre fundo escuro precisa de anel claro */
.section--dark :focus-visible,
.hero :focus-visible {
  outline-color: var(--cream-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gap-sm);
  z-index: 10;
  background: var(--cream-bg);
  color: var(--brown-deep);
  font-weight: var(--fw-semi);
  padding: 12px 24px;
  border-radius: var(--r-sm);
}

.skip-link:focus-visible {
  top: var(--gap-sm);
}
