/* Rowanbeck Reed: Middle-earth's own hand, written stroke by stroke by crates/letter
   (src/uncial.rs, src/insular.rs) and exported as fonts (fonts/rowanbeck-reed/README.md).
   An uncial and half-uncial for realms and great names, a pointed italic for places, a
   freer one for water, a small plain hand. One family per hand; the Italic and Flowing
   are declared for both styles so `font-style: italic` never slants them twice. They
   cover Basic Latin, Latin-1 (the acute, circumflex, diaeresis and grave vowels the names
   need), figures and the common punctuation; anything else falls to the serif stack.

   A map uses this family when its descriptor names this file (lettering.css). Every
   family's fonts.css defines its faces and the same four --hand-* variables on #ui. */
@font-face {
  font-family: "Rowanbeck Uncial";
  src: url("RowanbeckReed-Uncial.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Rowanbeck Italic";
  src: url("RowanbeckReed-Italic.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Rowanbeck Italic";
  font-style: italic;
  src: url("RowanbeckReed-Italic.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Rowanbeck Flowing";
  src: url("RowanbeckReed-Flowing.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Rowanbeck Flowing";
  font-style: italic;
  src: url("RowanbeckReed-Flowing.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Rowanbeck Plain";
  src: url("RowanbeckReed-Plain.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0176-0178, U+0237, U+0300-0302, U+0308, U+1EF2-1EF3, U+2013-2014, U+2018-2019, U+201C-201D;
}

#ui {
  --hand-roman: "Rowanbeck Uncial", var(--ui-serif);
  --hand-italic: "Rowanbeck Italic", var(--ui-serif);
  --hand-flowing: "Rowanbeck Flowing", "Rowanbeck Italic", var(--ui-serif);
  --hand-plain: "Rowanbeck Plain", var(--ui-serif);
}

/* This family's display hand has a true lower case (a half-uncial), where Stonebrook's
   Roman has small capitals: cities and strongholds are written in it, not in capitals. */
#ui .lbl.place.city .t, #ui .lbl.place.fort .t { font-variant-caps: normal; letter-spacing: 0.03em; }
#ui .lbl.place.city .t { font-size: 1.16em; }
#ui .lbl.place.city.r1 .t { font-size: 1.42em; letter-spacing: 0.05em; }

/* Names set in capitals (realms, ranges) take the family's capitals for all-capital
   setting ("case": a straight M, T and U and a spurred G, where the mixed-case forms would
   read as large lower-case letters), and the rotation of forms a second time ("ss19"),
   because browsers switch "calt" off wherever letter-spacing is not zero. */
#ui .lbl.region.realm .t, #ui .lbl.region.k-mountains .t { font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "case" 1, "ss19" 1; }
