/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/FONT-LICENSES.md). latin-ext carries ő and ű. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/newsreader-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/newsreader-700-latin-ext.woff2") format("woff2");
  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;
}

/* Page foundation. "html body" outranks the single-class body rules JNews prints from the Customizer. */
html body {
  background-color: var(--kb-paper);
  color: var(--kb-text);
  font-family: var(--kb-font-body);
  font-size: var(--kb-text-size);
  line-height: var(--kb-text-leading);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Display type for the headings that identify a view. */
.jeg_post_title,
.jeg_cat_title,
.jeg_archive_title,
.entry-header .jeg_post_title {
  font-family: var(--kb-font-display);
  font-weight: 700;
  color: var(--kb-pine);
  line-height: 1.2;
  text-wrap: balance;
}

/* Long-form reading: a comfortable line length without touching the page layout grid. */
.content-inner > p,
.content-inner > ul,
.content-inner > ol,
.content-inner > blockquote,
.content-inner > h2,
.content-inner > h3,
.content-inner > h4 {
  max-width: var(--kb-measure);
}

.content-inner > p,
.content-inner > li {
  line-height: var(--kb-text-leading);
}

/* Meta text (date, author, reading time) must stay readable. */
.jeg_meta_container,
.jeg_post_meta {
  color: var(--kb-text-muted);
}

/* Images never exceed their box, which also prevents layout overflow at 320 CSS px. */
.content-inner img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Media never exceeds its container (prevents horizontal scrolling at 320 CSS px). */
html body img {
  max-width: 100%;
  height: auto;
}
