html {
  font-size: 62.5%;
  --background: #ffffff;
  --color-primary: #333333;
  --color-muted: #727272;
  --color-accent: #ff0000;
  --color-link: var(--color-muted);
  --color-link-hover: var(--color-primary);
}

body {
  font-family: "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 1.21em;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.5em;
  background: var(--background);
  color: var(--color-primary);
}

/** ANCHORS */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-align: start;
  hyphens: none;
}

a:hover,
a.active,
a.active:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/** HEADERS */
h1,
h2,
h3,
h4,
h5,
h6 {
  page-break-after: avoid;
  page-break-inside: avoid;
  position: relative;
}

:target h1,
:target h2,
:target h3,
:target h4,
:target h5,
:target h6 {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

h1 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0.5em 0 0.5em;
}

h1:before,
h1:after {
  content: "— ";
  color: var(--color-accent);
  display: inline;
}
h1:after {
  content: " —";
}

h2 {
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin: 1em 0 0.5em;
}

h1 + h2 {
  margin-top: -0.9em;
}

h3 {
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.4em 0 0.33em;
}

h4 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.2em 0 0.2222em;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.5em 0 0.3125em;
}

header h5 {
  margin-top: 0;
  margin-bottom: 0;
}

h6,
address {
  font-size: 1.17rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-link);
  margin: 0 0 0.1em;
}

/** NAV */
nav {
  font-size: 1.17rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/** FOOTER */
footer {
  font-size: 1.2rem;
  color: var(--color-muted);
}

footer a {
  text-transform: lowercase;
}

/** LISTS */
ul {
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
  text-align: start;
}

ol {
  padding-inline-start: 1.1em;
  margin: 0;
  text-align: start;
}

ul > li,
ol > li {
  margin: 0 0 0.33em;
}

ul li::marker,
ol li::marker {
  color: var(--color-muted);
}

/** COPY */
p {
  clear: both;
  margin: 0.3em 0 2.5ex;
  text-align: justify;
  hyphens: auto;
}

article p {
  margin-bottom: 1ex;
}

article p:last-child {
  margin-bottom: 0.65ex;
}

p + p {
  margin-top: 1ex;
}

small {
  font-size: 0.8em;
}

time {
  flex: none;
  color: var(--color-muted);
  font-size: 1.1rem;
  text-transform: uppercase;
}
