/* Copiado de wsc-marca/src/estilos/base/tipo.css (4f300a7 2026-10-14) por web/traer-sistema.py. No se edita aquí: se cambia en el sistema y se vuelve a traer. */
/* Copiado de wsc-sistema/css/tipo.css (02/10/2026). Sin las l. 7–73 (@font-face, familias, pasos y .interfaz: en valores.css bloques 1 y 6).
   Los valores (color, letra, espacio, forma, movimiento) están en ../valores.css: aquí solo hay reglas
   que usan sus nombres. Si cambias algo aquí, cambia la cara de todas las páginas. */
/* ==========================================================================
   WSC · Tipografía
   Una familia (Neue Haas Unica 300 · 400 · 500) y diez pasos.
   Fluido de 375 a 1600 px; .interfaz fija cada paso en su cota menor.
   La mono (Fragment Mono) solo numera e identifica, siempre a 12/16.
   ========================================================================== */
/* A 20 px el titular de bloque se separa del texto con el peso medio */
.interfaz .t-titulo-3 { font-weight: var(--p-medio); letter-spacing: -0.015em; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--f-haas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body {
  font-family: var(--f-haas);
  font-size: var(--t-cuerpo);
  line-height: 1.5;
  line-height: round(nearest, calc(1em * 1.6), 4px);
  letter-spacing: -0.01em;
  font-weight: var(--p-normal);
}
/* En cada página, el cuerpo se calcula otra vez con su escala: el tamaño, el interlineado y el
   tracking de body se heredan ya resueltos con los de la ventana */
:where(.lienzo, .guia, .pagina-propia) > * {
  font-size: var(--t-cuerpo);
  line-height: 1.5;
  line-height: round(nearest, calc(1em * 1.6), 4px);
  letter-spacing: -0.01em;
}

/* ---- Pasos como clases ---- */
.t-rotulo {
  font-size: var(--t-rotulo);
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-feature-settings: "case";
  font-weight: var(--p-normal);
}
.t-nota {
  font-size: var(--t-nota);
  line-height: 20px;
  letter-spacing: 0;
}
.t-menor {
  font-size: var(--t-menor);
  line-height: 24px;
  letter-spacing: -0.01em;
}
.t-menor.compacto, .t-nota.compacto { line-height: 20px; }
.t-nota.linea { line-height: 16px; }
.t-cuerpo {
  font-size: var(--t-cuerpo);
  line-height: 1.5;
  line-height: round(nearest, calc(1em * 1.6), 4px);
  letter-spacing: -0.01em;
}
.t-destacado {
  font-size: var(--t-destacado);
  line-height: 1.45;
  line-height: round(nearest, calc(1em * 1.45), 4px);
  letter-spacing: -0.015em;
}
.t-titulo-3 {
  font-size: var(--t-titulo-3);
  line-height: 1.2;
  line-height: round(nearest, calc(1em * 1.2), 4px);
  letter-spacing: -0.02em;
  font-weight: var(--p-normal);
}
.t-titulo-2 {
  font-size: var(--t-titulo-2);
  line-height: 1.12;
  line-height: round(nearest, calc(1em * 1.12), 4px);
  letter-spacing: -0.025em;
  font-weight: var(--p-normal);
}
.t-titulo-1 {
  font-size: var(--t-titulo-1);
  line-height: 1.06;
  line-height: round(nearest, calc(1em * 1.06), 4px);
  letter-spacing: -0.03em;
  font-weight: var(--p-normal);
}
.t-cartel {
  font-size: var(--t-cartel);
  line-height: 1.06;
  line-height: round(nearest, calc(1em * 1.06), 4px);
  letter-spacing: -0.04em;
  font-weight: var(--p-ligero);
}
.t-numero {
  font-size: var(--t-numero);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: var(--p-ligero);
  font-variant-numeric: tabular-nums;
}
/* También el código escrito en Markdown (`--t-cuerpo`, `.logo`), que sale como <code> sin clase (no el de los
   bloques pre ni el que ya lleva clase): hoy todo código del texto es <code class="t-mono"> */
.t-mono, :where(.pagina) :not(pre) > code:not([class]) {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.t-titulo-1, .t-titulo-2, .t-titulo-3, .t-cartel { text-wrap: balance; }
p, li, dd, dt, td, th, figcaption, summary { text-wrap: pretty; }

/* Énfasis: un solo recurso, el peso medio */
strong, b, .t-medio { font-weight: var(--p-medio); }
em, i.enfasis { font-style: normal; font-weight: var(--p-medio); }

/* Medidas: la línea no crece con el lienzo */
.prosa { max-inline-size: var(--medida); hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.entradilla { max-inline-size: var(--medida-entradilla); }
.prosa > * + * { margin-block-start: 1lh; }

/* Cifras */
.tabular { font-variant-numeric: tabular-nums; }

/* Titulares sin márgenes heredados */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--p-normal); }
