/* ==========================================================================
   TYPOGRAPHY — DIGART Studio
   Infraestructura tipográfica global del Frontend.

   Este archivo consume exclusivamente los Design Tokens declarados en
   tokens.css (font-family, font-size, font-weight, line-height,
   letter-spacing). No define color, márgenes de sección, componentes,
   botones ni formularios: esas capas se implementan en archivos
   posteriores del sistema.
   ========================================================================== */

/* --------------------------------------------------------------------
   0. Carga de fuente — Manrope Variable (Self Hosted)
   Único @font-face del sistema (5.1). Fuente distribuida localmente
   desde public/assets/fonts/manrope/; sin servicios externos.
   -------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope Variable";
  src: url("../../fonts/manrope/ManropeV5VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------
   1. Configuración base — html
   -------------------------------------------------------------------- */
html {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

/* --------------------------------------------------------------------
   2. Configuración base — body
   -------------------------------------------------------------------- */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-default);
}

/* --------------------------------------------------------------------
   3-7. Renderizado tipográfico optimizado
   Font smoothing, text rendering, ligatures y kerning.
   -------------------------------------------------------------------- */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

/* --------------------------------------------------------------------
   8. Selección de texto
   El color de selección pertenece al Sistema Cromático y se define en
   una capa posterior; este archivo no declara valores de color.
   -------------------------------------------------------------------- */

/* --------------------------------------------------------------------
   9-10. Jerarquía tipográfica global
   Tamaño, peso, interlineado y tracking se resuelven exclusivamente
   mediante los Design Tokens correspondientes (11).
   -------------------------------------------------------------------- */
h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-default);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-default);
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-default);
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-wide);
}

p {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-default);
}

small {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-wide);
}

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

blockquote {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-loose);
  letter-spacing: var(--letter-spacing-default);
}

code {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-default);
}

pre {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-loose);
  letter-spacing: var(--letter-spacing-default);
}
