body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  background-size: cover;
  background-blend-mode: luminosity;
}

header {
  border-bottom: 2px solid var(--color-secondary-hilite);
  position: relative;
}

footer {
  position: relative;
}

footer p {
  text-align: center;
  font-family: var(--font-family-label);

  display: flex;
  gap: 16px;
  justify-content: center;

  @media (width < 500px) {
    flex-direction: column;
    gap: 0;
  }
}

main {
  width: min(40rem, calc(100vw - 32px));
  padding: 16px;
  margin: 0 auto;
  flex-grow: 1;
  background-image: linear-gradient(var(--color-body-bg));
}

main img {
  max-width: 100%;
}

div#logo {
  font-size: 4.5rem;
  line-height: 3rem;
  /*
  border: 2px solid var(--color-secondary-hilite);
  border-radius: 50%;*/
  margin: 16px;
  width: 3rem;
  height: 3rem;
  text-align: center;
}

div#logo img {
  background: none;
}

div#logo svg {
  fill: currentColor;
  stroke: currentColor;
}

div#logo-name {
  font-family: var(--font-family-label);
  font-size: 3rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.6;
}

header > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  border-top: 1px solid var(--color-secondary-hilite);
  margin: 0;
  margin-top: 8px;
  padding: 0;
}

header nav li {
  margin: 0;
  padding: 0;
}

header nav a {
  display: block;
  font-family: var(--font-family-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-secondary-fg);
  padding: 1rem;
}

header nav a:hover {
  background-color: var(--color-secondary-hilite);
  color: var(--color-secondary-bg);
}

header nav a[aria-current="page"] {
  background-color: var(--color-secondary-fg);
  color: var(--color-secondary-bg);
}

div#heading-bg-img {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

div#heading-bg-img img {
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
}

article {
  position: relative;
}

dl.dates {
  display: grid;
  grid-template-columns: auto 1fr;
}
dl.dates * {
  font-family: var(--font-family-label);
}

ul.articles {
  list-style: none;
  padding: 0;
}

ul.articles li a {
  display: block;
  text-decoration: none;
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-secondary-hilite);
}

ul.articles li a:hover {
  background: var(--color-secondary-bg);
}
ul.articles li a > * {
  margin: 0;
}
