/* ============================================
   BASE — Sua Assinatura Genética
   Reset, tipografia, layout global
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* — Typography — */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--text-primary);
  line-height: 1.3;
}

h1 { font-size: 32px; letter-spacing: -0.5px; }
h2 { font-size: 24px; letter-spacing: -0.3px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin-bottom: 0.75em; }

/* — Layout — */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* — Links — */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* — Focus visible — */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* — Selection — */

::selection {
  background: var(--accent-light);
  color: var(--text-primary);
}

/* — Utilities — */

.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;
}

.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-small { font-size: 13px; }
.text-xs { font-size: 11px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* — Transitions — */

.fade-enter { opacity: 0; transform: translateX(20px); }
.fade-leave { opacity: 0; transform: translateX(-20px); }

/* — Responsive base — */

@media (max-width: 768px) {
  body { font-size: 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  .container { padding: 0 16px; }
}
