:root {
  --text-color: #c6c8d1;
  font-family: "Source Sans 3", sans-serif;
  background-color: #161821;
  color: var(--text-color);
  line-height: 1.3;
  text-underline-offset: 0.3em;
}

body {
  margin: 0;
  padding: 0;
}

header {
  padding: 16px;
  max-width: max(60rem, 960px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
}

.header-sub {
  display: flex;
  gap: 1rem;
}

header svg {
  height: 1em;
  width: auto;
}

.header-top-link {
  font-size: 1.8rem;
}

header a {
  text-decoration: none;
}

main {
  padding: 16px;
  max-width: max(60rem, 960px);
  margin-inline: auto;
}

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

.posts {
  margin-block-start: 3rem;
}

.posts > * + * {
  margin-block-start: 5rem;
}

.tags {
  display: flex;
  gap: 1rem;
}

#article-content {
  margin-block-start: 4rem;
  line-height: 1.8;
}

#article-content pre {
  tab-size: 2;
  padding: 0.5rem;
  line-height: 1.4;
  font-family: monospace;
  overflow-y: auto;
}

#article-content *:not(pre) code {
  background-color: #2e3440;
  padding: 0.2em;
}

#article-content table {
  border-collapse: collapse;
}

#article-content th, #article-content td {
  padding: 0.25rem;
}

#article-content thead {
  border-bottom: 1px solid #c6c8d1;
}

.article-top :where(h1) {
  margin-block: 0;
}

.article-top > * + * {
  margin-block-start: 1rem;
}
