@font-face {
  font-family: "vga";

  src: url("/_werc/pub/fonts/vga.ttf");

  font-display: swap;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  /* font: 17px "vga"; */

  background: #fff;

  color: #000;

  display: grid;

  grid-template-columns: max-content 1fr;

  grid-template-rows: auto 1fr auto;

  column-gap: 0rem;

  min-height: 99vh;

  max-width: 700px;

  width: 100%;

  margin: 0 auto;
}

article,
#main-copy {
  grid-column: 2 / 3;

  margin-left: -0.75rem; /* 4.1rem */

  margin-top: 0.15rem;

  line-height: 25.6px;

  font: 16px serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

article a {
 color: #d7af87;
}

p {
  line-height: 25.6px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

pre {
  font: 13px monospace;

  background-color: #f4f4f4;

  padding: 8px 8px 8px 8px;
  border-radius: 4px;
  max-width: 100%;
  width: fit-content;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.highlight {
  background-color: inherit;


  padding: 1px 4px;

  border: 1px solid #d7af87;
  border-radius: 4px;
}

.flex-container {
  display: flex;

  align-items: flex-start;

  gap: 8px;
}

footer {
  grid-column: 1 / 3;

  /* border-top: 1px solid; */

  padding-top: 0.5em;
}

footer a,
footer a:link,
footer a:visited,
footer a:active {
  color: black;

  text-decoration: none;

  font-weight: normal;
}

footer a:hover {
  color: #d7af87;

  filter: brightness(0.8);
}

a {
  color: #d7af87;
  text-decoration: underline;
}

a:hover {
  color: #d7af87;

  filter: brightness(0.8);
}

#side-bar {
  margin-top: 0.45rem;
}

#side-bar a:hover {
  color: #d7af87;
}


#side-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: inline-block;
  width: max-content;
}

#side-bar ul ul {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 12px;
}

img {
  max-width: 100%;

  /* max-height: 300px; */
  height: auto;

  border: 2px solid #dadde3;
}

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

@media (max-width: 600px) {
  body {
    max-width: 100%;
  }

  img {
    max-width: 100vw;

    /* max-height: 300px; */
    height: auto;

    border: 2px solid #dadde3;
  }

  article {
    margin-right: 100px;
    max-width: 100vw;
  }

  pre {
    max-width: 100vw;
  }
}

.image-right {
  float: right;
  
  margin: 0 0 15px 20px; 
  
  width: 250px;
  border: 1px solid grey;
  border-radius: 2px;
  padding: 5px; 
}

.image-right img {
  width: 100%;
  border: 0px solid grey;
  height: auto;
  display: block;
}

.image-right figcaption {
  font-size: 0.85em;
  padding-top: 5px;
  line-height: 1.4;
}

.article-container::after {
  content: "";
  display: table;
  clear: both;
}
