@font-face {
  font-family: 'Cheri Liney';
  src: url('../fonts/Cheri Liney.ttf') format('truetype');
  font-display: block;
}

@font-face {
  font-family: 'Traveling Typewriter';
  src: url('../fonts/TravelingTypewriter.otf') format('opentype');
  font-display: block;
}

@font-face {
  font-family: 'Elegant Typewriter';
  src: url('../fonts/ELEGANT TYPEWRITER Light.ttf') format('truetype');
  font-display: block;
}

:root {
  --stinkhead-size: 240px;
  --title-size: 80px;
  --bg-color: #1e0c28;
  --title-color: #d63fce;
  --nav-color: #ffffff;
  --nav-size: 3rem;
  --nav-outline: 5px;
  --header-outline: 8px;
  --accent-color: #c04bff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg.png');
  background-repeat: repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.content {
  text-align: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  user-select: none;
}

header a {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

header img {
  width: var(--stinkhead-size);
  height: var(--stinkhead-size);
}

.mirrored {
  transform: scaleX(-1);
}

header h1 {
  font-family: 'Cheri Liney', cursive;
  color: var(--title-color);
  text-shadow:
    calc(var(--header-outline) * -1) calc(var(--header-outline) * -1) 0 #000,
    var(--header-outline) calc(var(--header-outline) * -1) 0 #000,
    calc(var(--header-outline) * -1) var(--header-outline) 0 #000,
    var(--header-outline) var(--header-outline) 0 #000,
    0 calc(var(--header-outline) * -1) 0 #000,
    0 var(--header-outline) 0 #000,
    calc(var(--header-outline) * -1) 0 0 #000,
    var(--header-outline) 0 0 #000;
  font-size: var(--title-size);
  line-height: var(--title-size);
}

nav {
  display: flex;
  justify-content: center;
  gap: 4rem;
  user-select: none;
}

.subtitle {
  font-size: 2rem;
}

.typewriter-white {
  font-family: 'Traveling Typewriter', monospace;
  color: var(--nav-color);
  font-weight: bold;
}

.typewriter-plain {
  font-family: 'Traveling Typewriter', monospace;
  vertical-align: baseline;
}

.dropshadow {
  text-shadow:
    calc(var(--nav-outline) * -1) calc(var(--nav-outline) * -1) 0 #000,
    var(--nav-outline) calc(var(--nav-outline) * -1) 0 #000,
    calc(var(--nav-outline) * -1) var(--nav-outline) 0 #000,
    var(--nav-outline) var(--nav-outline) 0 #000,
    0 calc(var(--nav-outline) * -1) 0 #000,
    0 var(--nav-outline) 0 #000,
    calc(var(--nav-outline) * -1) 0 0 #000,
    var(--nav-outline) 0 0 #000;
}

nav a {
  text-decoration: none;
  font-size: var(--nav-size);
}

nav a.active {
  color: var(--accent-color);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  font-size: 2.25rem;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  min-height: 300px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  user-select: none;
}

.section-heading h2 {
  font-size: 1.75rem;
}

.section-heading img {
  height: 1.75rem;
  width: auto;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  text-align: left;
}

.update-list p {
  font-size: 1.75rem;
}

.update-list a {
  color: var(--accent-color);
  text-decoration: none;
}

.update-list a:hover {
  text-decoration: underline;
}

.stinkhead-inline-banner {
  max-width: 25%;
  height: auto;
}

.blinkies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.blinkies img {
  width: auto;
  height: auto;
  max-width: 150px;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.stamps img {
  width: auto;
  height: auto;
  max-width: 99px;
}

.tag-badge {
  display: inline-block;
  font-size: 1rem;
  font-family: 'Traveling Typewriter', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  color: #1e0c28;
  font-weight: bold;
  margin-left: 0.4rem;
  vertical-align: middle;
  user-select: none;
}

.post-tags {
  margin-top: 0.25rem;
}

main.blog-index {
  padding-top: 0;
}

main.blogpost {
  align-items: flex-start;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

main.blogpost .post-date {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

main.blogpost h2 {
  font-size: 2.25rem;
}

main.blogpost .post-body {
  width: 100%;
  font-weight: normal;
  text-shadow: none;
  font-size: 1.75rem;
  line-height: 1.6;
  font-family: 'Elegant Typewriter', monospace;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

main.blogpost .center-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main.blogpost .big {
  font-size: 4rem;
}

main.blogpost .bigger {
  font-size: 6rem;
}

main.blogpost .biggest {
  font-size: 8rem;
}

main.blogpost .post-body a {
  color: var(--accent-color);
}

main.blogpost .post-body a:visited {
  color: hsl(from var(--accent-color) h calc(s * 0.25) l);
}

main.blogpost .post-body .heading-anchor {
  opacity: 0;
  margin-left: 0.3em;
  font-size: 0.6em;
  vertical-align: middle;
  transition: opacity 150ms;
  text-decoration: none;
}

main.blogpost .post-body h1:hover .heading-anchor,
main.blogpost .post-body h2:hover .heading-anchor,
main.blogpost .post-body h3:hover .heading-anchor,
main.blogpost .post-body h4:hover .heading-anchor,
main.blogpost .post-body h5:hover .heading-anchor,
main.blogpost .post-body h6:hover .heading-anchor {
  opacity: 1;
}

main.blogpost .post-body img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  :root {
    --stinkhead-size: 120px;
    --title-size: 40px;
    --nav-size: 1.5rem;
    --nav-outline: 3px;
    --header-outline: 5px;
  }

  header {
    flex-wrap: wrap;
  }

  header .mirrored {
    display: none;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  main.blogpost .big {
    font-size: 2rem;
  }

  main.blogpost .bigger {
    font-size: 3rem;
  }

  main.blogpost .biggest {
    font-size: 4rem;
  }
}

@keyframes squiggly-anim {
  0%   { filter: url("#squiggly-0"); }
  20%  { filter: url("#squiggly-1"); }
  40%  { filter: url("#squiggly-2"); }
  60%  { filter: url("#squiggly-3"); }
  80%  { filter: url("#squiggly-4"); }
  100% { filter: url("#squiggly-0"); }
}

.squiggly {
  animation: squiggly-anim 0.1ms linear infinite;
  display: inline-block;
}
