/* Design tokens: the site's palette, type and a few shared measures. Loaded before every other stylesheet
   (site and prototype); the other files only use these variables. The style guide is at /sistema-de-diseno/. */

:root {
  /* palette */
  --c-rojo: #FC284F;
  --c-naranja: #FF824A;
  --c-salmon: #FEA887;
  --c-lavanda: #F6E7F7;
  --c-gris: #D1D0D7;
  --c-tinta: #222;
  --c-tinta-suave: #444;
  --c-blanco: #fff;

  /* roles */
  --color-fondo: var(--c-lavanda);        /* inner pages' background */
  --color-superficie: var(--c-gris);      /* panels, placeholders */
  --color-texto: var(--c-tinta);
  --color-acento: var(--c-rojo);          /* links, menu, tags, selected states */
  --color-acento-2: var(--c-naranja);     /* highlighted curves and nodes */
  --color-acento-3: var(--c-salmon);      /* home background while the image loads */
  --color-banda: var(--color-acento);     /* header and footer band: the palette's darkest colour, set by js/banda.js (fallback: the accent) */

  /* type */
  --font-titulo: "futura-100", sans-serif; /* titles: site title, h1, listing headings. Futura 100 (Adobe Fonts kit jrg4cjw) */
  --font-texto: "futura-100", sans-serif;  /* everything else */
  --font-mono: var(--font-texto);          /* older names, still used by the rules for body text */
  --font-sans: var(--font-texto);
  --font-size-adjust: 0.545;              /* x-height of Input, the first font, so the text keeps its visual size */
  /* Vertical rhythm (after Tschichold's Neue Typographie): one line of body text, 24px, is the unit;
     line heights and vertical spacing are whole lines or half lines, so blocks sit on one grid. */
  --linea: 24px;
  --l-mitad: 12px;
  --l-1: 24px;
  --l-2: 48px;
  --l-3: 72px;
  --l-4: 96px;
  --l-5: 120px;

  /* Sizes are set once for every font: body text is matched by x-height (font-size-adjust), titles by
     cap height (they are mostly in capitals), so a different family keeps the same visual size.
     The scale is deliberately tight — 30 / 18 / 15 / 13 — and hierarchy comes from caps, tracking and
     italics rather than from size jumps; every line is a whole or half 24px line. */
  --ajuste-titulo: cap-height 0.7;
  --fs-h1: 30px;
  --lh-h1: 36px;                          /* a line and a half of the grid */
  --fw-titulo: 700;
  --ls-titulo: .01em;                     /* caps need a touch of air */
  --fs-h2: 18px;
  --lh-h2: 24px;
  --fs-texto: 15px;
  --lh-texto: var(--linea);
  --fs-chico: 13px;
  --lh-chico: 18px;
  --fw-texto: 400;
  --fs-etiqueta: 11px;                    /* small caps labels: "Películas analizadas", "Etiquetas" */
  --lh-etiqueta: 18px;
  --ls-etiqueta: .1em;
  --fs-sitio: 19px;                       /* site title in the header */
  --fs-menu: 15px;
}
