/* Типографика системы «мос» — сгенерировано из ds/project/tokens.json (tools/type2css.py).
   Подключать после tokens.css. Пути шрифтов — относительно этого файла (assets/fonts/). */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "TT Livret Display";
  src: url("fonts/TT_Livret_Display_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Display";
  src: url("fonts/TT_Livret_Display_Light_Italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Display";
  src: url("fonts/TT_Livret_Display_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Display";
  src: url("fonts/TT_Livret_Display_Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Subhead";
  src: url("fonts/TT_Livret_Subhead_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Subhead";
  src: url("fonts/TT_Livret_Subhead_Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Subhead";
  src: url("fonts/TT_Livret_Subhead_DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Text";
  src: url("fonts/TT_Livret_Text_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Livret Text";
  src: url("fonts/TT_Livret_Text_Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "MPict";
  src: url("fonts/MPict.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ---------- База: основной текст стилем body ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--body-family);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  font-weight: var(--body-weight);
  color: var(--ui-ink);
  background: var(--ui-surface);
}

/* ---------- Стили текста системы ----------
   Display — сверхкрупное, Subhead — заголовки и надписи, Text — текст. Начертания не путать.
   label и label-sm: прописные набираются в тексте вручную (правило системы). */

/* Дисплей — TT Livret Display */
.display-1 {
  font-family: var(--display-1-family);
  font-size: var(--display-1-size);
  line-height: var(--display-1-line-height);
  font-weight: var(--display-1-weight);
  letter-spacing: var(--display-1-tracking);
  font-style: normal;
}
.display-2 {
  font-family: var(--display-2-family);
  font-size: var(--display-2-size);
  line-height: var(--display-2-line-height);
  font-weight: var(--display-2-weight);
  letter-spacing: var(--display-2-tracking);
  font-style: normal;
}
.display-3 {
  font-family: var(--display-3-family);
  font-size: var(--display-3-size);
  line-height: var(--display-3-line-height);
  font-weight: var(--display-3-weight);
  letter-spacing: var(--display-3-tracking);
  font-style: normal;
}

/* Заголовки — TT Livret Subhead */
.heading-1 {
  font-family: var(--heading-1-family);
  font-size: var(--heading-1-size);
  line-height: var(--heading-1-line-height);
  font-weight: var(--heading-1-weight);
  letter-spacing: var(--heading-1-tracking);
  font-style: normal;
}
.heading-2 {
  font-family: var(--heading-2-family);
  font-size: var(--heading-2-size);
  line-height: var(--heading-2-line-height);
  font-weight: var(--heading-2-weight);
  letter-spacing: var(--heading-2-tracking);
  font-style: normal;
}
.heading-3 {
  font-family: var(--heading-3-family);
  font-size: var(--heading-3-size);
  line-height: var(--heading-3-line-height);
  font-weight: var(--heading-3-weight);
  letter-spacing: var(--heading-3-tracking);
  font-style: normal;
}
.subhead-1 {
  font-family: var(--subhead-1-family);
  font-size: var(--subhead-1-size);
  line-height: var(--subhead-1-line-height);
  font-weight: var(--subhead-1-weight);
  letter-spacing: var(--subhead-1-tracking);
  font-style: normal;
}

/* Текст — TT Livret Text */
.body-lg {
  font-family: var(--body-lg-family);
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-line-height);
  font-weight: var(--body-lg-weight);
  letter-spacing: var(--body-lg-tracking);
  font-style: normal;
}
.body {
  font-family: var(--body-family);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  font-style: normal;
}
.body-sm {
  font-family: var(--body-sm-family);
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line-height);
  font-weight: var(--body-sm-weight);
  letter-spacing: var(--body-sm-tracking);
  font-style: normal;
}
.body-italic {
  font-family: var(--body-italic-family);
  font-size: var(--body-italic-size);
  line-height: var(--body-italic-line-height);
  font-weight: var(--body-italic-weight);
  letter-spacing: var(--body-italic-tracking);
  font-style: var(--body-italic-style);
}
.caption {
  font-family: var(--caption-family);
  font-size: var(--caption-size);
  line-height: var(--caption-line-height);
  font-weight: var(--caption-weight);
  letter-spacing: var(--caption-tracking);
  font-style: normal;
  color: var(--ui-ink-muted);
}

/* Надписи — TT Livret Subhead */
.label {
  font-family: var(--label-family);
  font-size: var(--label-size);
  line-height: var(--label-line-height);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  font-style: normal;
}
.label-sm {
  font-family: var(--label-sm-family);
  font-size: var(--label-sm-size);
  line-height: var(--label-sm-line-height);
  font-weight: var(--label-sm-weight);
  letter-spacing: var(--label-sm-tracking);
  font-style: normal;
}

/* ---------- Пиктограммы MPict: глиф красится color, не мельче 24 px ---------- */
.mp-pict {
  font-family: var(--font-pict);
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  color: currentColor;
}
