
:root {
  --color-primary: #e6e2d6;
  --color-accent: #ff7eb6;
  --color-base: #e6e2d6;
  --color-light: #aaa;
  --color-border: #262626;
  --color-bg: #000;
  --color-code: #e6e2d6;
  --color-code-bg: #0a0a0a;
  --color-code-border: #1c1c1c;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    "DejaVu Sans Mono", monospace;
  --font-normal: 400;
  --font-bold: 600;
  --font-heavy: 700;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

.ascii-accent::selection,
.post-content-title::selection {
  background: var(--color-base);
  color: var(--color-bg);
}

html {
  font-size: 8px;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-base);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: var(--font-normal);
  line-height: 1.6em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-base);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--color-accent);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-accent);
  display: block;
  height: 1px;
  margin: 2.5em 0 3.5em;
  padding: 0;
  width: 100%;
}

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

#jswarning {
  background: var(--color-accent);
  color: #0f1214;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1.4em;
  padding: 8px 3vw;
  text-align: left;
  width: 100%;
}

#jswarning a {
  color: #0f1214;
  font-weight: var(--font-heavy);
  cursor: help;
}

#killjs {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6em;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 20px;
  z-index: 99;
}

#killjs a {
  color: #fff;
  cursor: help;
}

.site-wrapper {
  min-height: 100vh;
  padding: 3vw;
}

.site-head {
  font-size: 1.65rem;
  margin: 0 auto;
  max-width: 720px;
}

.site-head-container {
  border-bottom: 2px solid var(--color-accent);
  display: block;
}

.site-head-logo {
  color: var(--color-base);
  display: block;
  flex-shrink: 0;
  font-size: 3.1rem;
  font-weight: var(--font-heavy);
  letter-spacing: 1px;
  line-height: 1em;
  margin: 7px 12px 24px 0;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-head-logo:hover {
  background: transparent;
  color: var(--color-accent);
}

.site-head-logo svg {
  display: block;
  height: 82px;
  width: 82px;
}

#navigation {
  margin: 0 0 42px;
}

nav.navigation > ul.navigation {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
}

@media (min-width: 500px) {
  nav.navigation > ul.navigation {
    column-count: 3;
  }
}

@media (min-width: 700px) {
  nav.navigation > ul.navigation {
    column-count: 4;
  }
}

nav.navigation > ul.navigation > li {
  display: block;
  margin: 0 0 4px;
  padding: 0;
}

nav.navigation > ul.navigation > li > a {
  display: block;
  font-size: 1.9rem;
  line-height: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav.navigation > ul.navigation > li.active > a {
  background-color: var(--color-primary);
  color: var(--color-bg);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-main {
  margin: 0 auto;
  max-width: 720px;
}

.page-head {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: left;
  margin: 0;
  padding: 6vw 0;
  text-align: left;
}

.page-head-title {
  color: var(--color-base);
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: var(--font-normal);
  line-height: 1.15em;
  margin: 0 0 3vw -6px;
  text-align: left;
}

.page-head-logo {
  margin: -2vw 0 2vw;
  text-align: center;
  width: 100%;
}

.page-head-logo > pre {
  color: var(--color-base);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 2.4rem;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  text-align: left;
}

.page-head-logo .ascii-accent {
  color: var(--color-accent);
}

.page-head-description {
  color: var(--color-base);
  font-size: 2rem;
  font-weight: var(--font-normal);
  line-height: 1.6em;
  margin: 0 0 3vw;
  text-align: center;
  width: 100%;
}

.post-feed {
  display: block;
}

ul.post-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-entries > .post-entry {
  font-size: 2rem;
  margin-bottom: 4vw;
  padding-left: 0;
}

.post-entries > .post-entry > a {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: var(--font-normal);
}

.post-entries > .post-entry > a > .post-entry-date {
  display: block;
  float: right;
  font-size: 1.4rem;
  font-weight: var(--font-normal);
}

.post-entries > .post-entry > a > .post-entry-cover {
  margin: 8px 0;
}

.post-entries > .post-entry > a > .post-entry-cover > img {
  display: block;
  width: 100%;
}

.post-entries > .post-entry > .post-entry-excerpt {
  color: var(--color-light);
  font-size: 1.6rem;
  line-height: 1.6em;
}

.post-pagination {
  display: block;
  margin: 6vw 0 0;
}

.post-pagination > .pagination {
  font-size: 1.6rem;
}

.post-content-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.post-content-title {
  color: var(--color-base);
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: var(--font-normal);
  line-height: 1.15em;
  margin: 6vw 0 4vw -6px;
  text-align: left;
}

.post-content-title:after {
  animation: cursor-blink 1s steps(1) infinite;
  color: var(--color-accent);
  content: "█";
  padding-left: 2px;
}

@keyframes cursor-blink {
  50% {
    visibility: hidden;
  }
}

.post-content-excerpt {
  color: var(--color-base);
  font-size: 1.8rem;
  line-height: 1.6em;
  margin: 0 0 3vw;
  text-align: left;
}

.supportme {
  border: 2px solid var(--color-accent);
  display: block;
  font-size: 1.7rem;
  padding: 14px 16px;
}

.post-content {
  font-size: 1.8rem;
  line-height: 1.7em;
}

.post-content p {
  margin: 0 0 1.6em;
}

.post-content h2,
.post-content h3 {
  font-weight: var(--font-bold);
  line-height: 1.3em;
  margin: 2em 0 0.8em;
}

.post-content h2 {
  font-size: 2.4rem;
}

.post-content h3 {
  font-size: 2rem;
}

.post-content blockquote {
  border-left: 2px solid var(--color-accent);
  color: var(--color-light);
  font-style: italic;
  margin: 0 0 1.6em;
  padding: 0 0 0 1.5em;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.6em;
  padding-left: 2em;
}

code {
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: 3px;
  color: var(--color-code);
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
}

pre.codeblock {
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: 3px;
  line-height: 1.5em;
  margin: 0 0 1.6em;
  overflow-x: auto;
  padding: 1.5em;
}

pre.codeblock code {
  background: none;
  border: 0;
  padding: 0;
}

.post-meta {
  color: var(--color-light);
  font-size: 1.4rem;
  margin: 0 0 3vw;
}

.site-foot {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: var(--font-normal);
  line-height: 1.5em;
  margin: 3vw auto 1vw;
  max-width: 720px;
  text-align: left;
}

.site-foot a {
  display: inline-block;
  margin: 0 0 6px;
}

.site-foot hr {
  border: 0;
  border-bottom: 2px solid var(--color-accent);
  margin: 42px 0;
  width: 100%;
}

.site-foot .footer-columns {
  display: flex;
  flex-wrap: wrap-reverse;
  width: 100%;
}

.site-foot .footer-columns #footer-links {
  margin-right: 24px;
}

#neighbours {
  margin-right: 24px;
}

#qrcode > div {
  margin-left: 10px;
}

@media (max-width: 412px) {
  #qrcode > div {
    margin-left: 0;
  }
}

.badges {
  margin: 32px 0 0;
}

@media print {
  #jswarning,
  #killjs,
  .site-head,
  .site-foot,
  .post-pagination,
  .supportme {
    display: none !important;
  }

  * {
    background: #fff !important;
    color: #000 !important;
  }

  .site-wrapper {
    padding: 0;
  }

  body {
    font-size: 12pt;
  }

  .post-content a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .post-content blockquote,
  pre.codeblock,
  code {
    border-color: #000;
  }
}

.badges img {
  image-rendering: pixelated;
}

.badges .wide-badge {
  height: 34px;
  width: 100px;
}

.badges .square-badge {
  height: 34px;
  width: 34px;
}

.donate {
  margin: 0 0 1.6em;
  text-align: center;
}

.donate-qr {
  border: 2px solid var(--color-accent);
  display: inline-block;
  line-height: 0;
  padding: 8px;
}

.donate-qr img {
  aspect-ratio: 1;
  display: block;
  height: 220px;
  width: 220px;
}

.donate figcaption {
  margin-top: 1.2em;
}

.donate-address {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1.5em;
  overflow-wrap: anywhere;
  max-width: 100%;
  user-select: all;
}
