/* ==========================================================================
   VEM DA ESCOLA — BASE & RESET CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

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

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-body);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Seleção de Texto */
::selection {
  background-color: var(--color-terracotta-subtle);
  color: var(--color-navy);
}

/* Foco Acessível */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* Imagens */
img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Botões */
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

/* Contêiner de Layout */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-6);
  padding-right: var(--spacing-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

/* Tipografia Utilitária */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.text-terracotta {
  color: var(--color-terracotta);
}

.text-navy {
  color: var(--color-navy);
}

.text-muted {
  color: var(--color-text-muted);
}

.font-display {
  font-family: var(--font-family-display);
}

/* Elementos de Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pular para o conteúdo principal */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}
