@font-face {
  font-family: vga;
  src: url("fnt/vga.ttf") format("truetype");
}

body {
  margin: 0;
  padding: 24px 8px;
  background: #05040b url("img/stars.svg");
  color: #e8e0ff;
  font: 16px "Times New Roman", Times, serif;
}

a { color: #ad83ee; }
a:visited { color: #d3bbfb; }

#frame {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  background: #0d0b16;
  border: 2px solid #ad83ee;
}

header, nav, main, footer { padding: 8px 16px; }

h1, h2 { font-family: vga, monospace; font-weight: normal; }

h1 { margin: 0; font-size: 36px; }
h2 { font-size: 20px; margin: 8px 0; }

header { border-bottom: 1px solid #ad83ee; }

.banners { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.banners img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }

footer { border-top: 1px solid #ad83ee; padding: 12px 16px; }

.buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.buttons img { display: block; image-rendering: pixelated; }

header.bar { display: flex; justify-content: space-between; align-items: center; }
.social { display: flex; gap: 8px; padding: 0; }
.social img { display: block; image-rendering: pixelated; }

.modes { font: 14px vga, monospace; margin-top: 4px; padding: 0; }
.modes a { margin-right: 14px; color: #5a5470; text-decoration: none; }
.modes a.on { color: #e8e0ff; text-decoration: underline; }

.list { list-style: none; margin: 0 0 16px; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed #3a3650; }
.list time { font: 14px vga, monospace; color: #5a5470; white-space: nowrap; }

/* essays */

header time { font: 14px vga, monospace; color: #5a5470; }

.essay {
  max-width: 620px;
  margin: 16px auto 32px;
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}
.essay h2, .essay h3, .essay h4 { font-family: vga, monospace; font-weight: normal; margin: 28px 0 8px; }
.essay h2 { font-size: 24px; }
.essay h3 { font-size: 20px; }
.essay p { margin: 0 0 16px; }
.essay img { max-width: 100%; display: block; margin: 16px auto; border: 2px solid #3a3650; }
.essay blockquote { margin: 16px 0; padding: 0 0 0 16px; border-left: 3px solid #ad83ee; color: #c8c0e0; }
.essay code { font: 15px vga, monospace; background: #1b1a1f; padding: 1px 4px; }
.essay pre { background: #000; border: 2px inset #333; padding: 10px 12px; overflow-x: auto; }
.essay pre code { background: none; padding: 0; }
.essay hr { border: 0; border-top: 1px dashed #3a3650; margin: 24px 0; }

.pager { display: flex; justify-content: space-between; max-width: 620px; margin: 0 auto 8px; }
.btn {
  font: 18px vga, monospace;
  padding: 6px 16px 4px;
  background: #d9d6cc;
  color: #1b1a1f;
  border: 3px outset #eeeae0;
  text-decoration: none;
}
a.btn:visited { color: #1b1a1f; }
a.btn:active { border-style: inset; }
.btn.off { background: #26252b; color: #5a5470; border-color: #3a3650; }
