/* ==========================================================================
   Korticis Design System — base.css
   Reset leve + tipografia padrão + acessibilidade.
   ========================================================================== */

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

* { margin: 0; }

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

body {
  font-family: var(--k-font);
  font-size: var(--k-text-base);
  line-height: var(--k-leading-body);
  color: var(--k-ink);
  background: var(--k-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Papéis tipográficos --- */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: var(--k-tracking-display);
  line-height: var(--k-leading-tight);
  color: var(--k-ink);
  text-wrap: balance;
}

h1 { font-size: var(--k-text-3xl); }
h2 { font-size: var(--k-text-2xl); }
h3 { font-size: var(--k-text-xl); }
h4 { font-size: var(--k-text-lg); }

p { max-width: 65ch; }

.k-lead {
  font-size: var(--k-text-lg);
  color: var(--k-gray);
  line-height: 1.5;
}

/* Eyebrow: o utilitário em caps aéreo, herdado do wordmark */
.k-eyebrow {
  display: block;
  font-size: var(--k-text-xs);
  font-weight: 600;
  letter-spacing: var(--k-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--k-blue-500);
  margin-bottom: var(--k-space-3);
}

.k-eyebrow--ia { color: var(--k-violet); } /* só para assuntos de IA/automação */

a {
  color: var(--k-blue-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--k-dur) var(--k-ease);
}

a:hover { color: var(--k-blue-700); }

small, .k-muted { font-size: var(--k-text-sm); color: var(--k-gray); }

/* --- Acessibilidade --- */

:focus-visible {
  outline: 2px solid var(--k-blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Layout utilitário --- */

.k-container {
  max-width: var(--k-container);
  margin-inline: auto;
  padding-inline: var(--k-space-6);
}

.k-section { padding-block: var(--k-space-24); }
.k-section--tint { background: var(--k-blue-050); }

@media (max-width: 720px) {
  h1 { font-size: var(--k-text-2xl); }
  h2 { font-size: var(--k-text-xl); }
  .k-section { padding-block: var(--k-space-16); }
}
