/* Fonts. Four interface families + one illustration face, self-hosted woff2.
   No third-party CDN. latin and latin-ext only. */

/* Display. wdth: 125 hero, 115 sections, 100 mobile. */
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Body. Fontshare ships one file, full latin. */
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Mono. All metadata, uppercase, 0.08em. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* System. Title bars, controls, toasts, Dungeon. */
@font-face {
  font-family: "Departure Mono";
  src: url("../fonts/departure-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Illustration. Locked to .annot-text in index.html. D-003. */
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Usage classes. */

.t-display {
  font-family: var(--type-family-display);
  font-variation-settings: "wdth" var(--wdth-section);
  font-weight: 700;
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
}

.t-display--hero {
  font-size: var(--type-hero);
  font-variation-settings: "wdth" var(--wdth-hero);
}

.t-display--section {
  font-size: var(--type-section);
}

.t-body {
  font-family: var(--type-family-body);
  font-size: var(--type-body);
  line-height: 1.65;
  max-width: var(--measure);
}

.t-lead {
  font-family: var(--type-family-body);
  font-size: var(--type-lead);
  line-height: 1.55;
  max-width: var(--measure);
}

/* All metadata. */
.t-meta {
  font-family: var(--type-family-mono);
  font-size: var(--type-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--meta-tracking);
}

/* System chrome. */
.t-chrome {
  font-family: var(--type-family-system);
  font-size: var(--type-chrome);
  letter-spacing: 0.02em;
}

/* Illustration only. D-003. */
.annot-text {
  font-family: var(--font-annot);
  font-weight: 600;
}
