/* ==========================================================================
   MMFF 2027 — BASE EDITORIAL, TIPOGRAFIA OUTFIT E ACESSIBILIDADE WCAG 2.2 AA
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: calc(var(--bottombar-h) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

html.has-lenis,
html.motion-paused {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background-color: var(--brand-amarelo-sol);
  color: var(--brand-meia-noite);
}

body {
  margin: 0;
  background-color: var(--brand-meia-noite);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px));
  }
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}

:focus-visible {
  outline: 2.5px solid var(--focus-inner);
  box-shadow: 0 0 0 5px var(--focus-outer);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-skip);
  background: var(--brand-amarelo-sol);
  color: var(--brand-meia-noite);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-btn);
  text-decoration: none;
  border: 2px solid var(--brand-meia-noite);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4, p, ul, ol, dl, figure {
  margin-top: 0;
}

/* Hierarquia tipográfica fluida (Outfit, pesos intencionais) */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.t-d1,
h1.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.t-d1 {
  font-size: var(--fs-h2);
}

h2.t-d1,
.t-campaign-h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.025em;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.t-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}

.t-h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.t-lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: var(--lh-lead);
  max-width: 54ch;
  text-wrap: pretty;
  margin-bottom: var(--space-4);
}

.t-measure {
  max-width: var(--measure);
  font-weight: 400;
  line-height: var(--lh-body);
  text-wrap: pretty;
  margin-bottom: var(--space-4);
}

.t-caption {
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.45;
}

.t-tabular {
  font-variant-numeric: tabular-nums;
}
