/*
 * Fonts (Actum design system, «Шрифты» → «То же на чистом CSS, без next/font»).
 * Files and their SIL OFL 1.1 licences live in public/fonts/{fixel,martian-mono}/ and are served
 * from /static/fonts/<family>/<file>.woff2 (allowlisted in src/admin/index.tsx, long immutable cache).
 * Fixel: Copyright (c) 2023 MacPaw Way Ltd. Martian Mono: Copyright 2021 The Martian Mono Project Authors.
 */

/* Fixel Display: headings (500) and the logo (700) */
@font-face { font-family: "Fixel Display"; src: url("/static/fonts/fixel/FixelDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("/static/fonts/fixel/FixelDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Fixel Text: interface text */
@font-face { font-family: "Fixel Text"; src: url("/static/fonts/fixel/FixelText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("/static/fonts/fixel/FixelText-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("/static/fonts/fixel/FixelText-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* "Num": Martian Mono only for 0-9 : / $ % . , 10% smaller. No fallback face: letters must fall through to Fixel Text */
@font-face {
  font-family: "Martian Num";
  src: url("/static/fonts/martian-mono/MartianMono-latin.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0030-0039, U+003A, U+002F, U+0024, U+0025, U+002E;
  size-adjust: 90%;
}

/* whole strings in Martian Mono (code, tokens, hostnames in fields); «№» and Cyrillic from the second file */
@font-face { font-family: "Martian Mono"; src: url("/static/fonts/martian-mono/MartianMono-latin.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face {
  font-family: "Martian Mono Cyr";
  src: url("/static/fonts/martian-mono/MartianMono-cyrillic.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
