/* ============================================================
   base.css — fundamentos: tipografia, elementos, foco
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-synthesis: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
}

p {
  line-height: var(--lh-body);
}

a {
  color: var(--color-brand);
  transition: color var(--dur-micro) var(--ease-standard);
}

a:hover {
  color: var(--color-brand-hover);
}

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

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

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--color-brand);
  color: var(--color-brand-contrast);
}

hr {
  border: none;
  border-top: var(--border-hairline);
  margin-block: var(--space-7);
}

figure {
  margin: 0;
}

figcaption {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

blockquote {
  margin: 0;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transform: translateY(-150%);
  transition: transform var(--dur-ui) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
}
