/* Schrift ------------------------------------------------------------------
   Gentium (SIL, OFL), lokal ausgeliefert: Die Leserin braucht die
   Schrift nicht installiert zu haben, und die ägyptologische Umschrift
   (ꜣ ꜥ ḥ ḫ ẖ ṯ ḏ š ï) kommt aus derselben Schrift wie der übrige Text.
   Ohne Einbettung holt der Browser diese Zeichen glyphenweise aus einer
   beliebigen anderen Schrift — sichtbar als Stilbruch mitten im Wort.
   font-display: swap zeigt zuerst die Ersatzschrift, tauscht dann. */

@font-face {
  font-family: "Gentium";
  src: url("fonts/Gentium-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gentium";
  src: url("fonts/Gentium-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gentium";
  src: url("fonts/Gentium-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gentium";
  src: url("fonts/Gentium-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bs-body-font-family: "Gentium", "Charis SIL", Georgia, serif;
  --bs-font-sans-serif: "Gentium", "Charis SIL", Georgia, serif;
}

body,
.navbar,
.quarto-title-block,
h1, h2, h3, h4, h5, h6,
.quarto-listing,
footer {
  font-family: "Gentium", "Charis SIL", Georgia, serif;
}

/* Code bleibt dicktengleich. */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

/* Gentium läuft klein; etwas hochsetzen, damit die Zeile gleich wirkt. */
body {
  font-size: 1.06rem;
}

/* Fliesstext ---------------------------------------------------------------
   Blocksatz nur dort, wo auch getrennt werden darf: ohne Silbentrennung
   reisst Blocksatz in schmalen Spalten Loecher. lang ist im Dokument
   gesetzt, die Trennmuster greifen also sprachrichtig. */

main p,
main li,
main dd,
main blockquote {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

/* Nicht im Blocksatz: alles, was kurz ist oder in Spalten steht. */
main figcaption,
main table,
main .quarto-title-block,
main .about-entity,
main .listing-description,
main .quarto-listing p,
main .footnotes p {
  text-align: left;
  hyphens: manual;
}

/* Rhythmus ----------------------------------------------------------------- */

main {
  font-size: 1.03rem;
  line-height: 1.62;
}

main p {
  margin-bottom: 0.9em;
}

main h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
}

main h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Halbfette Schlagworte in den Absaetzen der Startseite etwas ruhiger. */
main p > strong:first-child {
  font-weight: 600;
}

/* Fussnoten ---------------------------------------------------------------- */

.footnotes {
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid rgba(0, 0, 0, .12);
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.footnotes hr {
  display: none;
}

/* Links -------------------------------------------------------------------- */

main a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
