/* ============================================================
   Fator Norte MT · base.css
   Reset enxuto, tipografia base, acessibilidade e utilitarios.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--fn-paper);
  color: var(--fn-ink);
  font-family: var(--fn-font-text);
  font-size: 17px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--fn-azul-norte);
  outline-offset: 2px;
}

/* Links de leitura (dentro do corpo e teasers) */
.fn-link {
  color: var(--fn-azul-norte);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.fn-link:hover { color: var(--fn-azul); }

/* ---------- Layout base ---------- */
.fn-shell {
  width: 100%;
  max-width: var(--fn-maxw);
  margin-inline: auto;
  padding-inline: var(--fn-pad);
}

main { display: block; }

/* ---------- Tipografia utilitaria ---------- */
.fn-kicker,
.fn-meta {
  font-family: var(--fn-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fn-azul-norte);
  font-weight: 500;
}
.fn-meta { color: var(--fn-muted); }
.fn-meta time { font-variant-numeric: tabular-nums; }

.fn-headline {
  font-family: var(--fn-font-display);
  font-weight: 900;
  font-stretch: var(--fn-stretch-head);
  line-height: 0.98;
  letter-spacing: 0.002em;
  text-wrap: balance;
  color: var(--fn-noite);
}

.fn-dek {
  font-family: var(--fn-font-serif);
  color: var(--fn-ink-2);
  line-height: 1.4;
  text-wrap: pretty;
}

.fn-credit {
  font-family: var(--fn-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--fn-muted);
  text-transform: none;
}

/* ---------- Acessibilidade ---------- */
.fn-skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--fn-azul);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0;
  transition: top 0.2s var(--fn-ease);
}
.fn-skip:focus { top: 8px; }

.fn-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Fios reutilizaveis ---------- */
.fn-rule-top { border-top: var(--fn-rule) solid var(--fn-line); }
.fn-rule-ink { border-top: 2px solid var(--fn-line-ink); }

/* ---------- Area de toque minima ---------- */
@media (hover: none) {
  a, button { min-height: 44px; }
}
