/* Spec: A11 decision 1 (the fonts are written once, in the one kit) · DESIGN.md section 2 (the two faces).
 *
 * What this file is: the two faces of Nikan, Fraunces and Instrument Sans, written once, for the
 * member's app and for the back office. Every rule was moved text for text out of an approved
 * page. One thing changed in a rule: the address of its font file, which is now a file of this kit
 * (fonts/). No font comes from another address, and none is written into a rule.
 *
 * How the two faces share a line of text. Every figure is a Fraunces digit: a page names the face of
 * the figures first ("NikanNum" on the phone, "NikanDig" at the back office), and that face holds
 * only the digits, by its range of signs. The Latin letters come from Instrument Sans.
 *
 * The digits of the Fraunces file are lining digits: they stand on the line and are as tall as a
 * capital letter. The file holds one set of digits only, and each digit has its own width. So the
 * rule below that asks for "lnum" and "tnum" changes no Fraunces digit: it cannot give them one
 * width. README.md says what was measured, under "What the font file cannot do".
 *
 * The two approved sources name the faces differently. Both sets of names are kept, each for its
 * own side, and no new name is made. A rule loads its font file only when a page uses its name.
 *
 * Fraunces-400 and Fraunces-500 are the same bytes: one file that holds every weight. So are the
 * two files of Instrument Sans. The rules keep the two addresses, as the approved pages have them.
 *
 * No Persian face is loaded in phase 1: no Persian text exists. The source of the back office
 * loaded one for a single sign, the mark of the dirham: see "Left to the lead" in README.md.
 *
 * What never belongs here: a face from another address, a face written into a rule, a new name.
 */

/* 1 · The member's app: the figures. Fraunces, only for the digits and the signs , . : %
 *     (.preview/bakeoff/sections/market/va.html, lines 36 and 38). */
@font-face{font-family:"NikanNum";font-style:normal;font-weight:400;font-display:block;src:url("fonts/Fraunces-400.woff2") format("woff2");unicode-range:U+0030-0039,U+002C,U+002E,U+003A,U+0025}
@font-face{font-family:"NikanNum5";font-style:normal;font-weight:500;font-display:block;src:url("fonts/Fraunces-500.woff2") format("woff2");unicode-range:U+0030-0039,U+002C,U+002E,U+003A,U+0025}

/* 2 · The member's app: the Latin letters in Instrument Sans ("NikanFa"), the firm's serif for a
 *     title or the firm's voice ("NikanSerif"), and the rule that asks every face for lining digits
 *     of equal width (.preview/phase-1-screens/member-app/src/signin.css, lines 20 to 24:
 *     the approved demo's own rules for English, .preview/bakeoff/demo/lang.js, lines 94 to 98).
 *     A page of the member's app has the class "en" on its html element, as the approved pages have. */
@font-face{font-family:"NikanFa";font-style:normal;font-weight:100 449;font-display:block;src:url("fonts/InstrumentSans-400.woff2") format("woff2");unicode-range:U+0020-007E,U+00A0-00FF,U+2010-2027,U+2190-2193}
@font-face{font-family:"NikanFa";font-style:normal;font-weight:450 900;font-display:block;src:url("fonts/InstrumentSans-500.woff2") format("woff2");unicode-range:U+0020-007E,U+00A0-00FF,U+2010-2027,U+2190-2193}
@font-face{font-family:"NikanSerif";font-style:normal;font-weight:400;font-display:block;src:url("fonts/Fraunces-400.woff2") format("woff2")}
@font-face{font-family:"NikanSerif";font-style:normal;font-weight:500;font-display:block;src:url("fonts/Fraunces-500.woff2") format("woff2")}
html.en{font-feature-settings:"lnum" 1,"tnum" 1}

/* 3 · The back office: the two faces under their own names
 *     (.preview/ds/_fonts.css, lines 5 to 8, which the house file loads). */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/Fraunces-400.woff2") format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url("fonts/Fraunces-500.woff2") format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/InstrumentSans-400.woff2") format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-display:swap;src:url("fonts/InstrumentSans-500.woff2") format('woff2');}

/* 4 · The back office: every figure is a Fraunces digit at one weight, 400, also inside a line of
 *     Instrument Sans; and the three names of the faces
 *     (.preview/phase-1-screens/back-office/src/desk.css, lines 177 to 184).
 *     The name "NikanFa" in these three lists: in the kit it is Instrument Sans for Latin signs (rule 2).
 *     In --sans it stands after Instrument Sans itself, so it changes nothing. In --serif and --code it
 *     stands after Fraunces, and could draw only the two arrows that Fraunces does not hold (up and
 *     down); no picture of the back office has one.
 *     One name, two values: the house file itself gives --sans and --serif without "NikanDig" and
 *     "NikanFa", and the approved opening of the member's app reads them so. The values here are the
 *     back office's. A page that needs the other value sets it itself, after this file (README.md,
 *     "Left to the lead"). */
@font-face{font-family:"NikanDig";font-style:normal;font-weight:400;font-display:block;
  src:url("fonts/Fraunces-400.woff2") format("woff2");unicode-range:U+0030-0039}
:root{--sans:"NikanDig",'Instrument Sans',"NikanFa",-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --serif:'Fraunces',"NikanFa",Georgia,'Times New Roman',serif;
  --code:'Fraunces',"NikanFa",Georgia,serif}

/* 5 · Both sides: the browser never makes a bold or a slanted face that the font file does not have
 *     (.preview/phase-1-screens/back-office/src/desk.css, line 185;
 *     the member's pages say the same in their body rule). */
html,html *{font-synthesis:none}
