/* ==========================================================================
   WTC GOIÂNIA — base: fonts, reset, typography, accessibility
   ========================================================================== */

/* --- Self-hosted fonts -------------------------------------------------
   The .woff2 files are not tracked in this repository. See fonts/README.md
   for the download procedure. While absent, the fallback stacks in
   tokens.css keep the page readable with no layout shift.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
/* Schibsted Grotesk (OFL, variable 400–900) on titles at 600 — client
   request 2026-09-30, knowingly outside both brand books (WTCA global names
   News Gothic as the title face). See README → Design → Tipografia. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900;
  font-display: swap; src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* --- Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
/* Lists are structural across almost the whole site (navigation, stat
   strips, card grids). Markers are restored only in prose, inside .text. */
ul, ol { list-style: none; padding-left: 0; }
.text ul, .text ol { list-style: revert; padding-left: 1.15rem; margin-bottom: var(--sp-4); }
.text li { margin-bottom: var(--sp-2); }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

body {
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography --------------------------------------------------------------- */
.display-xl, .display-l, .display-m {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  color: var(--tinta-forte);
  text-wrap: balance;
}
.display-xl { font-size: var(--t-display); }
.display-l  { font-size: var(--t-h1); }
.display-m  { font-size: var(--t-h2); line-height: var(--lh-title); }

.title-s {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: var(--lh-title);
  color: var(--tinta-forte);
}

.label {
  font-family: var(--f-data);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--acento);
  line-height: 1.4;
}

.data {
  font-family: var(--f-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-data);
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--tinta-fraca);
  max-width: 46ch;
}

.text p + p { margin-top: var(--sp-4); }
.text { max-width: 62ch; }
.text a { color: var(--acento); text-underline-offset: 0.22em; }

strong, b { font-weight: 600; color: var(--tinta-forte); }
em { font-style: italic; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* --- Accessibility ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  transform: translateY(-160%);
  z-index: 200;
  background: var(--color-accent); color: var(--color-ink);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--f-data); font-size: var(--t-micro);
  letter-spacing: var(--ls-data); text-transform: uppercase;
  text-decoration: none; font-weight: 600;
  transition: transform var(--d-fast) var(--e-standard);
}
.skip-link:focus { transform: translateY(0); }

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

/* Anchor targets land below the fixed header (76px bar + breathing room),
   whether reached by an in-page link, another page or a direct URL.
   nav.js reads this same value for its smooth in-page scroll. */
:is(section, article, h2, h3)[id] { scroll-margin-top: 90px; }

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

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

::selection { background: var(--color-accent); color: var(--color-ink); }
