/* ==========================================================================
   Rondo Security — Reset e base tipográfica
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rs-font-body);
  background-color: var(--rs-black);
  color: var(--rs-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--rs-font-display);
  color: var(--rs-white);
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-family: var(--rs-font-body); font-size: 1rem; font-weight: 700; }

p {
  margin: 0 0 var(--space-4);
  color: var(--rs-ink);
}

a {
  color: var(--rs-red-a11y);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

ul, ol { padding-left: 1.25em; }

table { border-collapse: collapse; width: 100%; }

/* ---------- Foco visível (WCAG 2.4.7 / 2.4.11) ---------- */
:focus-visible {
  outline: 2px solid var(--rs-red);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-skip-link);
  background: var(--rs-red);
  color: var(--rs-white);
  padding: var(--space-3) var(--space-6);
  font-family: var(--rs-font-body);
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- Utilitário 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;
}
