body {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  /* font-family: Berkeley Mono; */
  font-family: Newsreader;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  max-width: 50rem;
  color: #333;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}


img, figure, video, svg {
    max-width: 100%;
    height: auto;
}

svg { display: block; margin: 1.5rem auto; }

figure { display: block; margin: 1.5rem auto; text-align: center; }

figcaption {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    padding-top: 0.3rem;
}

/* .figure-number { display: none; } */

.newsreader {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


.grenze-gotisch {
    font-family: "Grenze Gotisch", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}


/* renze-gotisch-<uniquifier> { */
/*     font-family: "Grenze Gotisch", serif; */
/*     font-optical-sizing: auto; */
/*     font-weight: <weight>; */
/*     font-style: normal; */
/* } */


h1, h2, h3, h4 {
    font-family: "Grenze Gotisch";
    font-size: 1em;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 24px);
  margin: 2rem 0 0.6rem;
}

p {
  margin: 0.6rem 0;
}

ul {
  padding-left: 1.6rem;
  margin: 0.6rem auto;
  text-align: left;
  list-style-type: "– ";
}

ol  {
    /* padding-left: 1.6rem; */
    margin: 0.6rem auto;
    text-align: left;
}


#table-of-contents h2 {
    margin: 0 0 0.4rem;
}

#table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#table-of-contents ul ul {
    padding-left: 1.6rem;
}

blockquote {
    margin: 0.8rem 0;
    padding-left: 1rem;
    border-left: 2px solid #000;
}

pre {
    overflow-x: auto;
    margin: 0.8rem 0;
}

img, figure, video {
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    margin: 0.8rem auto;
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    color: #444;
    border: none;
}

/* org exports border="2" rules="groups", which draws a heavier rule
   between thead and tbody than the cell borders */
thead, tbody, tfoot, tr, colgroup, col {
  border: none;
}

caption {
  text-align: center;
  color: #777;
  font-size: 0.9em;
  padding-bottom: 0.3rem;
}

th, td {
  padding: 0.2rem 0.6rem;
  border: 1px solid #bbb;
  text-align: left;
}

thead th {
  border-top: none;
  border-bottom: 1px solid #bbb;
  font-weight: 500;
  color: #444;
}

tbody tr:last-child td {
  border-bottom: none;
}

hr {
  border: none;
  text-align: center;
  margin: 1.5rem 0;
}

hr::after {
  content: "* * *";
}

a[style*="--link-icon-url"]::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  vertical-align: middle;
  position: relative;
  bottom: 0.08em;
  margin: 0 0 0 0.2em;
  background-image: var(--link-icon-url);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
}

a[style*="--link-icon-url"]:hover::after {
  opacity: 1;
}

a[style*="--link-icon-url"]:hover {
  color: var(--link-icon-color-hover, currentColor);
  text-decoration-color: var(--link-icon-color-hover, currentColor);
}

/* the panel footnotes.js fills and places; the #footnotes list it copies from
   stays as it is, so this styles the hover affordance only */
.fn-pop {
  position: fixed;
  z-index: 10;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.9em;
  line-height: 1.45;
  color: #444;
}

/* a note is a <p class="footpara">, and p carries 0.6rem margins globally */
.fn-pop p {
  margin: 0;
}
