:root {
  --bg: #282a36;
  --panel: #303341;
  --text: #f8f8f2;
  --muted: #bdc1cf;
  --border: #44475a;
  --link: #8be9fd;
  --visited: #bd93f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: sans-serif;
  line-height: 1.6;
}

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

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

.shell {
  width: min(48rem, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: 1rem 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.site-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.site-title:visited {
  color: var(--text);
}

.site-tagline,
.site-footer p,
.page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav,
.site-footer__links {
  margin: 0;
}

.site-header-sep,
.site-footer-sep {
  color: var(--muted);
}

.site-main {
  padding: 1.5rem 0 2rem;
}

.site-content {
  padding: 0;
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.25;
  color: inherit;
}

h1 {
  font-size: 2rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

h3,
h4,
h5,
h6 {
  margin-top: 1.5rem;
}

.content > :first-child {
  margin-top: 0;
}

.content > p,
.content > ul,
.content > ol,
.content > div,
.content > section,
.content > table,
.content > blockquote,
.content > pre {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

.archive-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.archive-list li {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  white-space: nowrap;
}

.archive-list time {
  color: var(--muted);
  white-space: nowrap;
}

.archive-list li::after {
  content: "/";
  margin-left: 0.75rem;
  color: var(--muted);
}

.archive-list li:last-child::after {
  content: none;
}

.archive-list li a {
  display: inline;
}

.download-links {
  display: block;
}

.download-links a {
  display: inline-block;
  margin-right: 1rem;
}

blockquote,
.org-src-container,
pre.src,
pre.example,
table,
th,
td,
img {
  border-radius: 0;
  box-shadow: none;
}

blockquote {
  margin: 1rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--border);
}

.org-src-container,
pre.src,
pre.example,
pre {
  margin: 1rem 0;
  padding: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--panel);
}

code,
pre,
.src {
  font-family: monospace;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
}

.page-meta .sep {
  color: var(--muted);
  padding: 0 0.3rem;
}

.home-links {
  margin: 0 0 2rem;
}

.home-links li {
  margin: 0.3rem 0;
}

@media (max-width: 720px) {
  .shell {
    width: calc(100vw - 1rem);
  }

  .site-header__inner,
  .site-footer__inner {
    display: block;
  }

  .site-header-sep,
  .site-footer-sep {
    display: none;
  }

  .site-tagline,
  .site-nav,
  .site-footer p,
  .site-footer__links {
    margin-top: 0.3rem;
  }

  .archive-list time {
    white-space: normal;
  }
}
