/* SD — tokens. GENERADO por tools/build-tokens.py desde tokens.json (v1): no editar a mano. */

/* ——— Jost ——— */
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ——— Paleta de marca, tipografía, espacio, línea, retícula y movimiento ——— */
:root {
  --carbon: #2b2b2b;
  --cal: #fefefe;
  --perla: #e0e0e0;
  --font-sans: Jost, Futura, "Century Gothic", "Avenir Next", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --radius-none: 0;
  --radius-round: 9999px;

  --border-hairline: 1px;
  --border-strong: 2px;
  --focus-offset: 3px;

  --aspect-portrait: 4 / 5;
  --aspect-landscape: 3 / 2;
  --aspect-panorama: 21 / 9;

  --layout-max: 1280px;
  --layout-measure: 528px;
  --layout-columns: 12;

  --duration-fast: 160ms;
  --duration-base: 240ms;
  --duration-slow: 600ms;

  --easing-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Escala tipográfica como variables (las clases de abajo repiten estos valores). */
  --type-numeral-size: 128px;
  --type-numeral-line: 128px;
  --type-numeral-weight: 300;
  --type-numeral-tracking: -0.02em;
  --type-display-xl-size: 96px;
  --type-display-xl-line: 96px;
  --type-display-xl-weight: 300;
  --type-display-xl-tracking: -0.02em;
  --type-display-size: 64px;
  --type-display-line: 68px;
  --type-display-weight: 300;
  --type-display-tracking: -0.015em;
  --type-h1-size: 48px;
  --type-h1-line: 56px;
  --type-h1-weight: 300;
  --type-h1-tracking: -0.01em;
  --type-h2-size: 36px;
  --type-h2-line: 44px;
  --type-h2-weight: 300;
  --type-h2-tracking: -0.005em;
  --type-h3-size: 24px;
  --type-h3-line: 32px;
  --type-h3-weight: 400;
  --type-h3-tracking: 0;
  --type-h4-size: 20px;
  --type-h4-line: 28px;
  --type-h4-weight: 500;
  --type-h4-tracking: 0;
  --type-quote-size: 28px;
  --type-quote-line: 40px;
  --type-quote-weight: 300;
  --type-quote-tracking: 0;
  --type-lead-size: 20px;
  --type-lead-line: 32px;
  --type-lead-weight: 300;
  --type-lead-tracking: 0;
  --type-body-lg-size: 19px;
  --type-body-lg-line: 32px;
  --type-body-lg-weight: 400;
  --type-body-lg-tracking: 0;
  --type-body-size: 17px;
  --type-body-line: 28px;
  --type-body-weight: 400;
  --type-body-tracking: 0;
  --type-body-sm-size: 15px;
  --type-body-sm-line: 24px;
  --type-body-sm-weight: 400;
  --type-body-sm-tracking: 0;
  --type-caption-size: 13px;
  --type-caption-line: 20px;
  --type-caption-weight: 400;
  --type-caption-tracking: 0.02em;
  --type-eyebrow-size: 12px;
  --type-eyebrow-line: 16px;
  --type-eyebrow-weight: 600;
  --type-eyebrow-tracking: 0.375em;
  --type-label-size: 12px;
  --type-label-line: 16px;
  --type-label-weight: 500;
  --type-label-tracking: 0.2em;
}

/* ——— Tema Cal (claro) ——— */
:root, [data-theme="light"] {
  --surface: #fefefe; /* {cal} */
  --surface-alt: #ededed;
  --ink: #2b2b2b; /* {carbon} */
  --ink-soft: #3d3d3d;
  --ink-muted: #666666;
  --line: #d6d6d6;
  --line-strong: #858585;
  --action: #2b2b2b; /* {ink} */
  --action-hover: #3d3d3d; /* {ink-soft} */
  --on-action: #fefefe; /* {surface} */
  --focus: #2b2b2b; /* {ink} */
  --error: #9e3b2e;
}

/* ——— Tema Carbón (oscuro) ——— */
[data-theme="dark"] {
  --surface: #2b2b2b; /* {carbon} */
  --surface-alt: #333333;
  --ink: #fefefe; /* {cal} */
  --ink-soft: #e0e0e0; /* {perla} */
  --ink-muted: #a0a0a0;
  --line: #474747;
  --line-strong: #808080;
  --action: #fefefe; /* {ink} */
  --action-hover: #e0e0e0; /* {ink-soft} */
  --on-action: #2b2b2b; /* {surface} */
  --focus: #fefefe; /* {ink} */
  --error: #e8a08f;
}

/* ——— Tipografía ——— */
.numeral { font-family: var(--font-sans); font-size: 128px; line-height: 128px; font-weight: 300; letter-spacing: -0.02em; font-style: normal; }
.display-xl { font-family: var(--font-sans); font-size: 96px; line-height: 96px; font-weight: 300; letter-spacing: -0.02em; font-style: normal; }
.display { font-family: var(--font-sans); font-size: 64px; line-height: 68px; font-weight: 300; letter-spacing: -0.015em; font-style: normal; }
.h1 { font-family: var(--font-sans); font-size: 48px; line-height: 56px; font-weight: 300; letter-spacing: -0.01em; font-style: normal; }
.h2 { font-family: var(--font-sans); font-size: 36px; line-height: 44px; font-weight: 300; letter-spacing: -0.005em; font-style: normal; }
.h3 { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 400; letter-spacing: 0; font-style: normal; }
.h4 { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: 0; font-style: normal; }
.quote { font-family: var(--font-sans); font-size: 28px; line-height: 40px; font-weight: 300; letter-spacing: 0; font-style: italic; }
.lead { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 300; letter-spacing: 0; font-style: normal; }
.body-lg { font-family: var(--font-sans); font-size: 19px; line-height: 32px; font-weight: 400; letter-spacing: 0; font-style: normal; }
.body { font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 400; letter-spacing: 0; font-style: normal; }
.body-sm { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 400; letter-spacing: 0; font-style: normal; }
.caption { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0.02em; font-style: normal; }
.eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.375em; font-style: normal; }
.label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.2em; font-style: normal; }

@media (max-width: 639px) {
  .numeral { font-size: 64px; line-height: 64px; }
  .display-xl { font-size: 64px; line-height: 68px; letter-spacing: -0.015em; }
  .display { font-size: 48px; line-height: 56px; letter-spacing: -0.01em; }
  .h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.005em; }
  .body-lg { font-size: 17px; line-height: 28px; letter-spacing: 0; }
}
