* {
  box-sizing: border-box;
}

body {
  background-color: #efefef;
  background-size: 20px;
  background-position: left center;
  margin: 0;
  padding: 0.8rem 10px;
  background-attachment: fixed;
  font-family: sans-serif;
  max-width: 80ch;
  line-height: 1.6;
  font-size: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 375px) {
  body {
    padding: 2rem 20px;
  }
}

main {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  display: block;
}

footer ul,
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  margin: 0.6rem 0 0.3rem;
}

nav li {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

footer li + li {
  margin-left: 1rem;
}

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

h1 {
  margin-top: 0;
  font-size: 1.7em;
  line-height: 1.3;
}

h2 {
  font-size: 1.3em;
  line-height: 1.3;
}

li code,
p code {
  background: rgb(28, 78, 108);
  border-radius: 3px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0.2em;
  padding: 0.2rem 0.2rem 0.1rem;
  font-weight: normal;
  word-break: break-all;
}

q {
  font-style: italic;
}

iframe {
  border: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  main {
    padding: 2rem;
  }
}

.u-vh {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  left: 0;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  top: 0;
  white-space: nowrap;
  width: 1px;
}

/**
 * matuzo theme for JavaScript, CSS, and HTML
 * Based on the a11y-dark theme: https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css
 * @author matuzo
 */

code[class*='language-'],
pre[class*='language-'] {
  background: none;
  color: rgb(239, 239, 239);
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 1rem;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  line-height: 1.5;
  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
}

/* Code blocks */
pre[class*='language-'] {
  border-left: 2rem solid hsl(186, 56%, 48%);
  margin: 2.25rem 0;
  overflow: auto;
  padding: 2rem;
}

h4 + pre[class*='language-'] {
  margin-top: 1rem;
}

pre[class*='language-css'] {
  border-left-color: rgb(128, 210, 219);
}

:not(pre) > code[class*='language-'],
pre[class*='language-'] {
  background: rgb(21, 58, 81);
}

/* Inline code */
:not(pre) > code[class*='language-'] {
  padding: 0.1em;
  border-radius: 0.3em;
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #d4d0ab;
}

.token.punctuation {
  color: rgb(239, 239, 239);
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: rgb(128, 210, 219);
}

.token.boolean,
.token.number {
  color: rgb(128, 210, 219);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: rgb(247, 132, 145);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: rgb(128, 210, 219);
}

.token.atrule,
.token.attr-value,
.token.function {
  color: #ffd700;
}

.token.keyword {
  color: rgb(128, 210, 219);
}

.token.regex,
.token.important {
  color: #ffd700;
}

.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

@media screen and (-ms-high-contrast: active) {
  code[class*='language-'],
  pre[class*='language-'] {
    color: windowText;
    background: window;
  }

  :not(pre) > code[class*='language-'],
  pre[class*='language-'] {
    background: window;
  }

  .token.important {
    background: highlight;
    color: window;
    font-weight: normal;
  }

  .token.atrule,
  .token.attr-value,
  .token.function,
  .token.keyword,
  .token.operator,
  .token.selector {
    font-weight: bold;
  }

  .token.attr-value,
  .token.comment,
  .token.doctype,
  .token.function,
  .token.keyword,
  .token.operator,
  .token.property,
  .token.string {
    color: highlight;
  }

  .token.attr-value,
  .token.url {
    font-weight: normal;
  }
}

.video-wrapper {
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  position: relative;
}

.video-wrapper iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

*:focus {
  outline: 4px solid rgb(21, 58, 81);
}

.dark {
  background: #000;
  position: relative;
  color: #fff;
}

.dark a:link,
.dark a:visited {
  color: #1cb4af;
}

a:hover {
  text-decoration: none;
}

.dark *:focus {
  outline: 4px solid #1cb4af;
}

.banner {
  background: rgba(21, 58, 81, 0.1);
  padding: 1rem;
}

.banner > * {
  margin: 0;
  font-size: 1.1rem;
}

.banner > * + * {
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(auto, 355px));
  grid-gap: 60px 30px;
  justify-content: center;
}

.h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.teaser {
  margin-bottom: 4rem;
}

.teaser-heading {
  margin: 0;
}

.til {
  list-style: none;
  padding: 0;
  margin: 0;
}

.til > * + * {
  margin-top: 4rem;
}

.post * {
  margin: 0;
}

.post > * + * {
  margin-bottom: 1.5rem;
}

.post-heading {
  margin-bottom: 0;
}

.page-header {
  margin-bottom: 1em;
}

@media (min-width: 768px) {
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.page-header > * {
  margin-bottom: 0;
}

.local-nav {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-nav > * + * {
  margin-left: 1rem;
}

.pagination {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

[aria-current='page'] {
  font-weight: bold;
}

[loading] {
  display: block;
}


blockquote {
  font-style: italic;
}

.quote {
  padding: 0 1em;
}

.quote blockquote {
  font-size: 1.2em;
  margin-bottom: 0;
}

.quote p {
  font-size: 0.9em;
}

blockquote::before {
  content: open-quote;
  display: inline;
}

blockquote::after {
  content: close-quote;
  display: inline;
}

/* Settings */

:root {
    --blur: 2px;
    --font-size: 20px;
}

/* Check if the page works without colors */
.a11y-tests-grayscale {
  filter: grayscale(100%) !important;
}

/* Simulate blurred vision. */
.a11y-tests-blur {
    filter: blur(2px) !important;
    filter: blur(var(--blur)) !important;
}

/* Force yourself to test without a mouse */
.a11y-tests-no-mouse,
.a11y-tests-no-mouse *,
.a11y-tests-no-mouse *:hover {
  cursor: none !important;
}

/* Large text */
.a11y-tests-large-text {
    font-size: 20px !important;
    font-size: var(--font-size) !important;
}

/* Remove animations */
.a11y-tests-no-animation * {
  transition: none !important;
  animation: none !important;
}
