:root {
  --bg-color: light-dark(#ddd, #222);
  --dim-border: light-dark(#999, #666);
  --dim-text: light-dark(#444, #bbb);
  --text-color: light-dark(#222, #ddd);
}

* {
  box-sizing: border-box;
  text-wrap-style: pretty;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: sans-serif;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 40em;
  padding: 1rem 1.5rem;
}

/* utility classes */
.nobr {
  white-space: nowrap;
}
.smallcaps {
  font-variant-caps: all-small-caps;
}

/* tweak appearance of links */
a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:not(:hover) {
  text-decoration-style: dotted;
}

/* decorate new-tab links */
a[target="_blank"]::after {
  content: "↗";
  font-size: 0.7em;
  position: relative;
  top: -0.2em;
}

/* container for paragraphs that contain lists */
para-list {
  display: block;
  margin-bottom: 1em;
  margin-top: 1em;
}
para-list > :is(dl, ul, ol) {
  margin-top: 0;
}

/* footer styles */
footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--dim-border);
  font-size: 0.9em;
  text-align: right;
}
footer {
  bottom: 0;
  position: sticky;
}
footer > span:not(:first-child) {
  margin-left: 0.5em;
}
