body {
  margin: 40px auto;
  max-width: 55em;
  line-height: 1.3;
  font-size: 18px;
  color: #444;
  padding: 0 10px;
  font-family: serif;
}

body::after {
  content: "\2766";
  display: block;
  text-align: center;
  padding: 4rem;
}

body.index::after {
  content: ""!important;
  padding: 0rem!important;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 1em;
}

h3 {
  font-style: italic;
}

:root {
  --bg-color: #fff;
  --text-color: #2e2e2a;
  --link-color: #4c791c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1e1e1e;
    --text-color: #e0e0d8;
    --link-color: #c2c37d;
  }
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--link-color);
}

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

li {
  padding-left: 1em;
  text-indent: -1em;
}

li:before {
  content: '.';
  padding-right: 5px;
}

.separator {
  margin: 0 8px;
  color: var(--text-color);
  pointer-events: none;
  user-select: none;
}

.float-left {
  float: left;
  margin-right: 0.5em;
}

.float-right {
  float: right;
  margin-left: 0.5em;
}

summary {
  font-weight: bold;
}

section::after {
  content: "";
  display: table;
  clear: both;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* shrink-wrap to the widest *contributing* child.
     The caption is neutralised below, so that child is the image. */
  width: fit-content;
  max-width: 100%;

  margin: auto;                 /* centered when standalone */
  border: thin solid;
  padding: 0.6em 0.6em 0.3em;
  border-radius: 3px;
  box-sizing: border-box;
}

figure figcaption {
  /* the whole trick: contribute 0 to the figure's intrinsic width,
     then fill whatever width the image established. */
  width: 0;
  min-width: 100%;

  text-align: center;
  font-style: italic;
  overflow-wrap: anywhere;          /* long words/URLs break, never widen */
}

figure img {
  display: block;
  width: auto;
  height: auto;
  max-height: 400px;                /* height cap; width follows the ratio */
  max-width: 100%;
}

figure.figuresmall img {
  max-height: 300px;                /* height cap; width follows the ratio */
}




.figuregroup {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.figuregroup figure {
  flex: 0 1 auto;
  margin: 0;
}

.figuregroup img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 400px;
}
