/* The book face: Gentium Book (SIL, OFL: fonts/OFL.txt), self-hosted so every
   reader sees the same macrons and Greek, with a Mincho for the Japanese. Its
   range covers Latin, Greek and the quotes, and stops short of the Japanese
   dash ―― (U+2015) and ellipsis …… (U+2026), which the Mincho must draw. */
@font-face {
  font-family: "Gentium Book";
  src: url("fonts/GentiumBook-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-036F, U+0370-03FF, U+1E00-1FFF, U+2013-2014, U+2018-201F, U+2194;
}
@font-face {
  font-family: "Gentium Book";
  src: url("fonts/GentiumBook-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-036F, U+0370-03FF, U+1E00-1FFF, U+2013-2014, U+2018-201F, U+2194;
}
@font-face {
  font-family: "Gentium Book";
  src: url("fonts/GentiumBook-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-036F, U+0370-03FF, U+1E00-1FFF, U+2013-2014, U+2018-201F, U+2194;
}
@font-face {
  font-family: "Gentium Book";
  src: url("fonts/GentiumBook-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-036F, U+0370-03FF, U+1E00-1FFF, U+2013-2014, U+2018-201F, U+2194;
}

/* The same files over their whole range, for text that is all Latin: there the
   dash and ellipsis are Latin too. */
@font-face {
  font-family: "Gentium Book Latin";
  src: url("fonts/GentiumBook-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gentium Book Latin";
  src: url("fonts/GentiumBook-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gentium Book Latin";
  src: url("fonts/GentiumBook-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gentium Book Latin";
  src: url("fonts/GentiumBook-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --book-stack: "Gentium Book", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP",
    "Noto Serif CJK JP", serif;
}
main.content {
  font-family: var(--book-stack);
}
.lectio,
.originale,
.column-margin,
[lang='la'] {
  font-family: "Gentium Book Latin", var(--book-stack);
}

/* The adapted Latin and the originals: the reading size, generous leading. */
.lectio p,
.originale p {
  font-size: 1.2rem;
  line-height: 1.75;
}

/* Margin notes: Latin glosses (.nota) and the place in the original (.locus).
   Quarto gives a paragraph's margin block a 1em row (.no-row-height), so a
   paragraph with more notes than lines overruns the next one's: let the block
   take its height instead, and set the notes tight. */
.lectio .column-margin.no-row-height,
.versio .column-margin.no-row-height {
  height: auto;
  overflow: visible;
}
.column-margin.column-container > .margin-aside.nota,
.column-margin.column-container > .margin-aside.locus {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  padding-top: 0.15em;
  padding-bottom: 0.15em;
}
.margin-aside.locus,
.versio .margin-aside.locus {
  color: #8a6d3b;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.03em;
}

/* The translation: Japanese prose. */
.versio p {
  line-height: 1.95;
  text-indent: 1em;
}

/* Sidebars. */
.callout.sidebar-cultura,
.callout.sidebar-stilus {
  margin: 1.5rem 0;
}

/* VOCABVLA NOVA: the words a chapter teaches, in columns as narrow as a
   phone allows. */
.vocabula {
  font-family: "Gentium Book Latin", var(--book-stack);
}
.vocabula ul {
  columns: 3 8.5em;
  column-gap: 1.25em;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}
.vocabula li {
  break-inside: avoid;
}

/* PENSVM: a blank to fill. */
.lacuna {
  display: inline-block;
  min-width: 2.5em;
  border-bottom: 1px solid currentColor;
}
