html {
  scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
  background-color: #ccc7c3;
  margin: auto;
  font-family: 'ptserif';
  text-align: justify;
}

::selection {
    background-color: #404040 !important;
    color: #f9f7f1 !important;
}

* {
	box-sizing: border-box;
  scrollbar-width: thin;
  -ms-overflow-style: none;
  scrollbar-color: #404040 #f9f7f1;
}

* img {
    user-select: none;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #f9f7f1;
}

*::-webkit-scrollbar-thumb {
    background-color: #404040;
}

a {
	cursor: pointer;
}

a * {
	cursor: pointer;
}

.knight {
  color: #404040;
  background-color: #f9f7f1;
  padding: 1.5em;
  max-width: 1000px;
  margin: auto;
  box-shadow: 4px 4px 0 #404040;
}

h1 {
  font: 700 clamp(3rem, 8vw, 4rem) / 1 'alagard';
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(2px 2px 0 #404040);
  text-align: center;
}

h2 {
  font: 2rem/.95 'dogica';
  text-transform: uppercase;
  margin-bottom: 16px;
}

h3 {
  font: 1rem/.95 'dogica';
  text-transform: uppercase;
  margin-bottom: 12px;
}

code {
  background-color: #ccc7c371;
  border-radius: 5px;
  padding: .1rem .2rem 0.05rem;
}

pre {
  max-width: 100%;
  background-color: #ccc7c371;
  border-radius: 5px;
  padding: .1rem .2rem;
  overflow: auto;
}

span.slogan {
  font: 700 clamp(0.5rem, 2.6vw, 1rem) 'dogica';
  text-align: center;
  text-transform: uppercase;
  border-top: 3px solid #333333;
  border-bottom: 3px solid #333333;
  padding: 12px 0;
  display: block;
}
span.slogan sup {
  font-size: .375rem;
  font-weight: normal;
}

blockquote {
  font: 1rem/1 'dogica';
  margin: 1.5rem 2rem;
}
blockquote::before { content: open-quote; }
blockquote::after { content: close-quote; }

@counter-style emoji {
  symbols: "✧";
  system: cyclic;
  suffix: " ";
}
article {
  margin-top: 36px;
ul { list-style: emoji }
}

figure {
  margin: 0 0 12px 0;
  text-align: center;
}
figcaption {
  font-family: 'dogica';
}

button {
  border: unset;
  background-color: unset;
  font-size: unset;
  font-family: unset;
  padding: unset;
  text-decoration: underline;
  &:hover {
    text-decoration-style: wavy;
    cursor: pointer;
  }
}

.pixelate, .container canvas {
      max-width: 100%;
    }
    .hide {
      opacity: 0;
    }
    .show {
      opacity: 1;
    }
    .container {
      position: relative;
    }
    .container canvas {
      position: absolute;
      top: 0;
      left: 0;
    }
    .fadeout {
      opacity: 0;
      transition: opacity 0.2s;
    }

footer {
  margin: 1em auto;
  text-align: center;
  text-shadow: 1px 1px 0 #fff;
  a {
    color: #425d6e;
    text-decoration-style: wavy;
  }
}

@font-face {
  font-family: 'alagard';
  src: url('/fonts/alagard.ttf');
}

@font-face {
  font-family: 'dogica';
  src: url('/fonts/dogicapixel.ttf');
}

@font-face {
  font-family: 'ptserif';
  src: url('/fonts/ptserif.ttf');
}

@media (min-width: 1000px) {
  body {
    margin: 3%;
  }
}

@media (min-width: 955px) {
  article {
    column-count: 3;
    column-rule: 2px solid #333333;
    column-gap: 42px;
  }

  blockquote { column-span: all }
  figure { break-inside: avoid }
  p {
    text-align: justify;
    hyphens: auto;
  }
  figure {
    float: left;
    margin-right: 24px;
  }
}