/* Conjoin · Base global */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--nevoa);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Tipografia utilitária */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -0.02em; }
.t-headline { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: 700; letter-spacing: -0.015em; }
.t-title-lg { font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: 600; letter-spacing: -0.01em; }
.t-title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; }
.t-subtitle { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 500; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; }
.t-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; }
.t-strong { font-weight: 600; }
.t-soft { color: var(--ink-soft); }
.t-azul { color: var(--azul); }
.t-center { text-align: center; }
.t-num { font-variant-numeric: tabular-nums; }

/* Foco visível consistente */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* Títulos recebem foco programático na troca de tela, sem anel (não são interativos) */
[tabindex="-1"]:focus-visible { box-shadow: none; }

/* Acessibilidade */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-4);
  background: var(--azul);
  color: var(--alva);
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

::selection { background: var(--ouro-veu); color: var(--noite); }
