/* margin boilerplate */

:root {
  --site-width: 960px;
  --site-padding: 10px;

  --content-width: calc(var(--site-width) - var(--site-padding) * 2);

  --regular-margin: 15px;
}

@media only screen and (max-device-width: 960px) {
  :root {
    --site-width: 100vw;
  }
}

html, body, p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

main h1:first-child {
  margin-bottom: 0;
}

h1 {
  margin: var(--regular-margin) 0px 10px 0px;
}

h2, h3 {
  margin-top: var(--regular-margin);
}

h2 {
  padding-left: 10px;
  border-left: solid 3px var(--high-fg-color);
}

main p {
  padding: 8px 0 4px 0;
}

header {
  margin-bottom: var(--regular-margin);
}

footer {
  margin-top: var(--regular-margin)
}

html {
  color: #FFF;
  font-family: "MC360", sans-serif;
  background-color: var(--main-bg-color);
  font-size: 14pt;
}

body {
  display: block;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 10px 10px;
}

a {
  color: #00e;
  text-decoration: none;
}

a {
  color: var(--high-fg-color);
}

a:hover {
  color: var(--low-fg-color);

}

code {
  font-family: "Hack", monospace;
  font-size: 70%;
  background-color: var(--code-bg);
  box-shadow: 1px 1px 5px #000;
  padding: 0px 4px;
  border-radius: 3px;
  vertical-align: middle;
}

pre {
  font-family: "Hack", monospace;
  font-size: 11pt;
  border: solid 1px var(--code-border);
  border-radius: 3px;
  padding: 5px 5px;
}

/* undo code styling inside pre blocks, too lazy to figure out proper method */
pre code {
  padding: 0;
  border: 0;
}

hr {
  background: linear-gradient(to right, var(--high-fg-color), var(--low-fg-color));
  height: 3px;
  border: 0;
}

header hr, footer hr {
  height: 4px;
}

main img {
  max-width: var(--content-width);
  max-height: 50vh;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 2px 2px 10px #000;
}

time, small {
  font-size: 75%;
}

footer small a {
  padding-right: 12px;
}
