@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("../fonts/DejaVuSansMono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("../fonts/DejaVuSansMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("../fonts/DejaVuSansMono-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("../fonts/DejaVuSansMono-BoldOblique.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --font-mono: "DejaVu Sans Mono", monospace;
}

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

.skip-link {
  position: absolute;
  left: 1ch;
  top: -3em;
  z-index: 10;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 0.5em 1ch;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1ch;
}

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

html {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

.container {
  max-width: 80ch;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li, section, article, header, footer, div, nav,
time, table, tr, td {
  margin: 0;
  padding: 0;
}

section {
  margin-bottom: 1.5em;
}

h1, h2, h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

h2, h3 {
  margin-top: 1.5em;
}

/* Man Header & Footer */
.man-header,
.man-footer {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 2em;
  text-transform: uppercase;
}

footer.man-footer {
  margin-top: 3em;
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px dashed var(--text-color);
  opacity: 0.35;
  margin: 1.5em 0;
}

.section-content {
  margin-left: 4ch;
}

.article-text {
  margin-top: 0;
}

.article-text p + p {
  margin-top: 1em;
}

@media (min-width: 480px) {
  .article-text p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Navigation Links */
nav a {
  text-decoration: none;
  margin-right: 15px;
  font-weight: bold;
}

nav a[aria-current="page"]::before {
  content: "*";
}

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

a:hover {
  background: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
}

/* Lists */
.section-content ul {
  list-style-type: "- ";
  padding-left: 2ch;
  margin-top: 0.5em;
}

.section-content li {
  margin-bottom: 0.3em;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 14px;
}

pre {
  margin-left: 4ch;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  font-style: italic;
}

/* Key-Value Tables */
table {
  border-collapse: collapse;
  margin-top: 0.5em;
}

td {
  padding-right: 2em;
  padding-bottom: 0.4em;
  vertical-align: top;
}

td.key {
  font-weight: bold;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  .section-content, pre {
    margin-left: 2ch;
  }
}
