:root {
  --bg-color: #c5c8c6;
  --fg-color: #1d1f21;
  --red: #a54242;

  @media(prefers-color-scheme: dark) {
  --bg-color: #1d1f21;
  --fg-color: #c5c8c6;
  --red: #cc6666;
  }
}

body {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;

  font-family: serif, sans, sans-serif;

  background: var(--bg-color);
  color: var(--fg-color);
}

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

div.container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  padding: 8px;


  footer {
  font-size: 0.7em;
  }
}

header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: bold;
  font-size: 1.2em;

  .title {
  font-style: italic;
  }

  @media screen and (width < 480px) {
  text-align: center;
  flex-direction: column;
  }
}

article {
  p:not(:first-child) {
  text-indent: 2em;
  }

  em.quote{
  font-weight: bold;
  }

  margin-top: -8px;
  margin-bottom: -8px;
}

section {
  padding: 16px;
  border: 1px solid var(--fg-color);
  border-radius: 8px;

  .title {
  font-weight: bold;
  font-style: italic;
  }
}

p.date {
  font-style: italic;
  font-size: 0.8em;
  text-align: right;
  margin: -8px 0;
}

p {
  code {
  font-weight: bold;
  font-size: 0.95em;
  background-color: #373b41;
  padding: 0 2px;
  }
}

hr {
  margin: -8px 0;
  item-gap: 0;
}
