@font-face {
  font-family: "Huninn";
  src: url("/assets/Huninn-Regular.ttf");
}

body {
  margin: 1em;
  display: flex;
  flex-direction: column;
  font-family: "Huninn", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  color: #1f21aa;
}

a:visited {
  color: #465245;
}

header {
  width: 100%;
  text-align: center;

  & h1 {
    font-size: 3em;
    font-weight: 900;
    text-transform: uppercase;

    & a,
    a:visited {
      color: black;
      text-decoration: none;
    }
  }
}

nav {
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1em;
}

main {
  width: 80ch;
  max-width: 100%;
  margin: auto;
  min-height: 70vh;

  & img {
    max-width: 100%;
  }
}

li {
  padding-bottom: 0.5em;
}

footer {
  width: 100%;
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 1em;
}

p {
  line-height: 1.5;
}

blockquote {
  font-style: italic;
}

blockquote + p:has(cite) {
  margin-left: 48px;
}

.frontpage-quote {
  margin-bottom: 2em;

  & blockquote {
    max-width: 60ch;

    & p:nth-child(2) {
      text-align: right;
    }
  }
}

.post-meta {
  font-style: italic;
}

p:has(img) {
  margin-bottom: 0;
}

p:has(img) + p {
  margin-top: 0;
  font-style: italic;
  font-size: 0.8em;
  text-align: center;
}
