/* Feel free to steal the code. I do have stolen it, too */

/* Color variables + fallback */

@supports not (background-color: oklch(0%, 0, 0)) {
  :root{
    --clr-grayscale-100: #f3f4fc;
    --clr-grayscale-200: #d9dae1;
    --clr-grayscale-300: #bcbdc4;
    --clr-grayscale-400: #a0a1a8;
    --clr-grayscale-500: #7f8086;
    --clr-grayscale-600: #5f6066;
    --clr-grayscale-700: #414248;
    --clr-grayscale-800: #212126;
    --clr-grayscale-900: #050509;
    --clr-blue-100: #f3f4ff;
    --clr-blue-200: #d4d8fa;
    --clr-blue-300: #b0b7ff;
    --clr-blue-400: #9094ff;
    --clr-blue-500: #6d64ff;
    --clr-blue-600: #5147c9;
    --clr-blue-700: #383681;
    --clr-blue-800: #1d1e3a;
    --clr-blue-900: #05050e;
    --clr-green-100: #edf9ef;
    --clr-green-200: #c6e4cb;
    --clr-green-300: #83d494;
    --clr-green-400: #1dc15d;
    --clr-green-500: #009a46;
    --clr-green-600: #007433;
    --clr-green-700: #005121;
    --clr-green-800: #0b2813;
    --clr-green-900: #020703;
  }
}

:root{
  --clr-grayscale-100: oklch(97% 0.01 280);
  --clr-grayscale-200: oklch(89% 0.01 280);
  --clr-grayscale-300: oklch(80% 0.01 280);
  --clr-grayscale-400: oklch(71% 0.01 280);
  --clr-grayscale-500: oklch(60% 0.01 280);
  --clr-grayscale-600: oklch(49% 0.01 280);
  --clr-grayscale-700: oklch(38% 0.01 280);
  --clr-grayscale-800: oklch(25% 0.01 280);
  --clr-grayscale-900: oklch(12% 0.01 280);
  --clr-blue-100: oklch(97% 0.02 240);
  --clr-blue-200: oklch(89% 0.05 240);
  --clr-blue-300: oklch(80% 0.12 240);
  --clr-blue-400: oklch(71% 0.19 240);
  --clr-blue-500: oklch(60% 0.27 240);
  --clr-blue-600: oklch(49% 0.19 240);
  --clr-blue-700: oklch(38% 0.12 240);
  --clr-blue-800: oklch(25% 0.05 240);
  --clr-blue-900: oklch(12% 0.02 240);
  --clr-green-100: oklch(97% 0.02 110);
  --clr-green-200: oklch(89% 0.05 110);
  --clr-green-300: oklch(80% 0.12 110);
  --clr-green-400: oklch(71% 0.19 110);
  --clr-green-500: oklch(60% 0.27 110);
  --clr-green-600: oklch(49% 0.19 110);
  --clr-green-700: oklch(38% 0.12 110);
  --clr-green-800: oklch(25% 0.05 110);
  --clr-green-900: oklch(12% 0.02 110);
}

/* Page reset */

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

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

/* HTML, body */

html, body {
  height: 100%;
  background-color: var(--clr-blue-800);
  font-family: "Ubuntu Nerd Font", Arial, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;

  /* Headers */

  h1 {
    font-size: clamp(0.8rem, 6vw, 3rem);
    color: var(--clr-grayscale-200);
    margin: 0;
  }
  h2 {
    font-size: 2.3rem;
    color: var(--clr-grayscale-200);
    margin: 0;
  }
  h3 {
    font-size: 1.7rem;
    color: var(--clr-grayscale-200);
    margin: 0;
  }
  h4 {
    font-size: 1rem;
    font-family: Courier New, monospace;
    color: var(--clr-green-300);
    font-weight: normal;
  }
  h5 {
  color: var(--clr-green-300);
  font-size: .9rem;
  }

  /* Text and links */

  p {
    font-size: 1.4rem;
    color: var(--clr-grayscale-200);
  }
  small {
    color: var(--clr-green-300);
    font-family: Courier New, monospace;
    font-size: 1rem;
  }
  ul, ol {
    display: block;
    padding-inline-start: 1.5rem;
    word-break: break-all;
    hyphens: auto;
    color: var(--clr-grayscale-200);
    font-size: 1.4rem;
  }
  ul {
    list-style-type: circle;
  }
  ol {
    list-style-type: decimal;
  }
  li {
    display: list-item;
  }
  a, a:visited {
    color: var(--clr-green-300);
    text-decoration: underline dotted var(--clr-green-400);
    font-weight: bold;
  }
  a:hover {
    color: var(--clr-green-200);
    text-decoration: underline dotted var(--clr-green-300);
  }
  a:focus, a:active {
    color: var(--clr-green-100);
    text-decoration: underline dotted var(--clr-green-200);
  }
  hr {
    color: var(--clr-green-900);
  }
}

body {
  justify-content: center;
  align-items: center;
  display: block;
  min-height: 100vh;
  line-height: 1.5;
  margin-top: 170px;
}

/* Header */

header {
  margin-bottom: 6.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--clr-grayscale-800);
  box-shadow: 0px 0px 15px 10px var(--clr-grayscale-900);
  text-align: center;

  ul {
    display: flex;
    flex-direction: row;
    padding-inline-start: initial;
    padding: 0;
    list-style-type: none;
    justify-content: center;
    gap: 1rem;
  }
  li {
    font-size: 1.5rem;
    font-weight: bold;
  }
  a, a:visited {
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline dotted var(--clr-green-300);
  }
  a:focus, a:active {
    text-decoration: underline dotted var(--clr-green-200);
  }
}

/* Main */

.container {
  width: 90vw;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 5px 0px 0px;
  background: var(--clr-green-600);
  border-style: solid;
  border-width: 2px 2px 2px 0px;
  border-color: var(--clr-green-300);
  border-radius: 125px 22px 22px 250px;
  box-shadow: 3px 0px 10px var(--clr-grayscale-200);
  align-items: center;
  gap: 2vw;
}

.bread, .sitemap {
  background: var(--clr-green-800);
  width: 100%;
  padding: 10px 30px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--clr-green-300);
  border-radius: 20px;
  box-shadow: 0px 0px 10px var(--clr-grayscale-200);
  font-size: 1.2rem;
}

.sitemap {
  word-break: break-all;
}

/* Social media links */

.socialmedia {
  text-align: center;
  font-size: clamp(0.8em, 6vw, 3em);

    a, a:hover, a:focus, a:active {
    text-decoration: none;
  }
  i {
    text-decoration: none;
    color: var(--clr-green-300);
  }
  i:hover {
    text-decoration: none;
    color: var(--clr-green-200);
    transform: rotateY(20deg);
  }
  i:focus, i:active {
    color: var(--clr-green-100);
    transform: rotateY(20deg) rotateX(20deg);
  }
}

/* Footer */

footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--clr-grayscale-200);
}

.footer {
  font-size: 0.8rem;
}

/* Error pages */

.error {
  width: 100%;
  justify-content: center;
  text-align: center;

  h1 {
    color: var(--clr-green-300);
    font-size: 10vw;
  }
  h2 {
    color: var(--clr-green-300);
    font-size: 3.8vw;
  }
  a {
    color: var(--clr-green-300);
    text-decoration: none;
    font-size: 2.2vw;
    transition-duration: 0.4s;
  }
  a:hover {
    color: var(--clr-grayscale-200);
    text-decoration: none;
    text-shadow: 0px 0px 20px var(--clr-grayscale-200);
  }
}

/* Buttons and inputs */

button {
  display: inline-block;
  background-color: var(--clr-green-300);
  padding: 10px;
  border-width: 3px;
  border-color: var(--clr-green-900);
  border-radius: 10px;
  box-shadow: 0px 0px 10px var(--clr-grayscale-200);
  color: var(--clr-green-800);
  transition-duration: 0.4s;
  font-size: 1rem;
  font-weight: bold;
}
button:hover {
  background-color: var(--clr-green-400);
  box-shadow: 0px 0px 15px 3px var(--clr-green-500);
  color: var(--clr-green-100);
}
button:focus, button:active {
  background-color: var(--clr-green-500);
  box-shadow: 0px 0px 15px 3px var(--clr-green-400);
  color: var(--clr-green-100);
}

input {
  box-sizing: border-box;
  padding: 10px;
  width: 70vw;
  max-width: 600px;
  border-width: 3px;
  border-color: var(--clr-green-300);
  border-radius: 5px;
  background-color: var(--clr-green-200);
  font-family: serif;
  color: var(--clr-grayscale-800);
}
input:focus {
  background-color: var(--clr-green-100);
  color: var(--clr-grayscale-900);
}

/* Scrollbar */

/* Firefox + fallback */

* {
  scrollbar-width: auto;
  scrollbar-color: var(--clr-green-500) var(--clr-grayscale-900);
}

/* Chrome, Edge, and Safari */

*::-webkit-scrollbar {
  width: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--clr-grayscale-900);
}
*::-webkit-scrollbar-thumb {
  background-color: var(--clr-green-800);
  border-radius: 20px;
  border: 0;
}

/* Pagination */

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

/* Screen Reader */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
}

/* Responsiveness */

@media (max-width: 768px) {
  body {
    h1 {
      font-size: clamp(0.5rem, 5vw, 1.8rem);
    }
    h2 {
      font-size: clamp(0.4rem, 7vw, 2.0rem);
    }
    h3 {
      font-size: clamp(0.3rem, 5vw, 1.8rem);
    }
    h4 {
      font-size: clamp(0.2rem, 4vw, 1.7rem);
    }
  }

  header {
    li {
      font-size: 1.5rem;
    }
  }

  .container {
    width: 95vw;
    margin-top: -50px;
    border-radius: 125px 22px 22px 80px;
  }

  .bread, .sitemap {
    padding: 10px 20px;
    font-size: 1rem;

    ul, ol {
      word-break: normal;
    }
    li {
      font-size: 1rem;
    }
    p {
      font-size: 1rem;
    }
  }

  .sitemap {
    ul, ol {
      word-break: break-all;
    }
  }

  .socialmedia {
    font-size: clamp(0.5rem, 14vw, 2.4rem);
  }

  .error {
    width: 100%;
    justify-content: center;
    text-align: center;

    h1 {
        font-size: 15vw;
    }
    h2 {
      font-size: 5.7vw;
    }
    a {
      font-size: 4vw;
      transition-duration: 0.4s;
    }
  }
}

/* Font Awesome */

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/fonts/fa-solid-900.woff2") format("woff2"), url("/fonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/fa-brands-400.woff2") format("woff2"), url("/fonts/fa-brands-400.ttf") format("truetype");
}

.fa-rss {
  --fa: "\f09e";
}
.fa-bluesky {
  --fa: "\e671";
}
.fa-mastodon {
  --fa: "\f4f6";
}
.fa-linkedin {
  --fa: "\f08c";
}
.fa-camera {
  --fa: "\f030";
}
.fa-envelope {
  --fa: "\f0e0";
}

.fa-solid, .fa-brands {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}

.fa-solid::before, .fa-brands::before, .fa::before {
  content: var(--fa);
}

.fa-solid {
  font-family: 'Font Awesome 6 Free';
}

.fa-brands {
  font-family: 'Font Awesome 6 Brands';
}

/* Hidden */

.hidden {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  padding: 10px;
}
.hidden img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
