/* Page names, navigation sections and the home activity strip use the rounded face.
   The extended files cover less common characters in future course titles. */
@font-face {
  font-family: "Fang Heading Core";
  src: url("fonts/heading-500-core.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fang Heading Core";
  src: url("fonts/heading-700-core.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fang Heading Extended";
  src: url("fonts/heading-500-extended.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fang Heading Extended";
  src: url("fonts/heading-700-extended.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --student-heading: "Fang Heading Core", "Fang Heading Extended", var(--font-sans);
}

/* A graded quiz uses its h1 for a numeric score. Its result stays in the body face. */
body[data-screen]:not([data-screen="quiz"]) h1,
body[data-screen="quiz"] .quiet-heading h1,
.student-listening #course-short-title,
#vc4 #course-title {
  font-family: var(--student-heading);
  font-weight: 700;
}

body[data-screen] :is(.material-sheet, .deck-reflect, .tool-rule, .ruled, .chapter-cloth, .plan-bookmark) h2 {
  font-family: var(--student-heading);
  font-weight: 500;
}
