/* One face, EB Garamond (03-generic/_font-face.css), and the system monospace for code. Garamond has a small x-height, so it is
   set larger than a sans would be. --size-text is the text block's size; everything typographic inside the block is in em, so it
   scales with the text. */

:root {
  --font-text: 'EB Garamond', Garamond, 'Adobe Garamond Pro', 'Cormorant Garamond', Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', 'DejaVu Sans Mono', Menlo, Consolas, monospace;

  --size-text: 1.3rem;  /* the text block */
  --size-ui: 1.0625rem; /* the chrome: top bar, file tree, contents, forms */
  --size-small: 0.85em; /* metadata and snippets, relative to the text */
  --size-code: 0.74em;  /* monospace looks larger than Garamond at the same size */

  --leading: 1.5;
  --line: calc(var(--leading) * 1em); /* one line of text: the unit of vertical space in the text block */
  --indent: 1.5em;                    /* paragraph indent; also the inset of quotations and search hits */

  /* Letter-spacing for small capitals. */
  --tracking-caps-tight: 0.05em; /* acronyms within running text */
  --tracking-caps: 0.1em;        /* labels and section heads */
  --tracking-caps-wide: 0.12em;  /* titles and the site name */
}

/* Below --bp-sidebar the text is a little smaller, so a line still holds about 60 characters on a tablet. */
@media (max-width: 56rem) {
  :root { --size-text: 1.2rem; }
}
