:root {
  /* NORD theme: https://www.nordtheme.com/ */
  --nord0: #2e3440;
  --nord1: #3b4252;
  --nord2: #434c5e;
  --nord3: #4c566a;
  --nord4: #d8dee9;
  --nord5: #e5e9f0;
  --nord6: #eceff4;
  --nord7: #8fbcbb;
  --nord8: #88c0d0;
  --nord9: #81a1c1;
  --nord10: #5e81ac;
  --nord11: #bf616a;
  --nord12: #d08770;
  --nord13: #ebcb8b;
  --nord14: #a3be8c;
  --nord15: #b48ead;
}

@font-face {
  font-family: "Merriweather Light";
  src: url("/fonts/Merriweather-Light.otf") format("opentype"),
       url("/fonts/Merriweather-Light.ttf") format("truetype");
}

@font-face {
  font-family: "SourceCodePro Regular";
  src: url("/fonts/SourceCodePro-Regular.otf") format("opentype"),
       url("/fonts/SourceCodePro-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "OpenSans Regular";
  src: url("/fonts/OpenSans-Regular.ttf") format("truetype");
}

body {
  font-family: "OpenSans Regular", "Sans-Serif";
  font-weight: 300;
  font-size: 1.1em;
  line-height: 1.6em;
  color: var(--nord0);
  margin: 0;
}

pre {
  line-height: 1.6em;
}

code {
  font-family: "SourceCodePro Regular", monospace;
}

pre > code {
  font-size: 0.7em;
}

p > code {
  font-size: 0.8em;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.4em;
}

pre, p > code {
  background-color: var(--nord0);
  color: var(--nord4);
}

pre {
  padding: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather Light", "Serif";
  font-weight: 300;
  line-height: 1.6em;
}

h1 {
  color: var(--nord10);
}

a, a:visited, a:active {
  text-decoration: none;
  color: var(--nord10);
}

.header {
  background-color: var(--nord6);
  padding: 1em;
}

.header a,
.header a:active,
.header a:visited {
  font-family: "Merriweather Light", "Serif";
  color: var(--nord10);
  font-size: 2em;
}

.main {
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

.content {
  max-width: 800px;
}

p.meta {
  font-size: 0.8em;
  color: var(--nord3);
  margin-bottom: 0;
}

p.meta ~ p {
  margin-top: 0;
}

/* ------------------------ syntax highlighting --------------------------------- */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--nord2);
}
.token.punctuation {
  color: var(--nord9);
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--nord15);
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--nord14);
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--nord9);
  background: none;
}
.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--nord9);
}
.token.function {
  color: var(--nord7);
}
.token.regex,
.token.important,
.token.variable {
  color: var(--nord4);
}
.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}
.token.entity {
  cursor: help;
}
