* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f0f0;
  --text: #0f0f0f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #f0f0f0;
  }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

body > header {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem;
}

body > header > a {
  color: var(--text);
  text-decoration: none;
}

body > header > a:hover {
  text-decoration: underline;
}

body > main {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  margin-top: 4rem;
}

article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--text);
  width: 70%;
  max-width: 60rem;
}

article:not(:last-of-type) {
  margin-bottom: 2rem;
}

article > header {
  padding-block: 1rem;
  padding-inline: 1rem;
}

article > section {
  padding-inline: 2rem;
  padding-block-end: 0.75rem;
  line-height: 1.55;
}

article > section > p:not(:last-child) {
  padding-block-end: 0.75rem;
}

article > footer {
  padding-inline: 1rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--text);
}
