@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap");
@property --width_raw {
  syntax: "<length>";
  inherits: true;
  initial-value: 100vw;
}
@property --height_raw {
  syntax: "<length>";
  inherits: true;
  initial-value: 100vh;
}
:root {
  --black: hsl(from Black h s l);
  --white: hsl(from White h s l);
  --blue: hsl(from Blue h s l);
  --accent-color: hsl(from rgb(28, 49, 74) h s l);
  --logo-color: hsl(210, 100%, 50%);
  --background: hsl(from var(--blue) h s calc(l - 40));
  --background-2: hsl(from var(--blue) h s 7);
  --foreground: hsl(210deg 100% 25%);
  --text-color: hsl(from var(--white) h s calc(l - 20));
  --yellow: hsl(from yellow h s l);
  --padding: 14vw;
  --overlay-opacity: 0.5;
  --scrollbar-width: 0.5em;
  --heading-scale: 0.75;
  --window-width: var(--width_raw);
  --window-height: var(--height_raw);
  color-scheme: only light;
}
*, *::before, *::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent !important;
  &:focus {
    outline: none;
  }
}
@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
    scrollbar-color: hsl(from var(--text-color) h s l / 60%) transparent;
  }
}
::selection {
  background: hsl(from var(--background-2) h s calc(l + 8));
}
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}
::-webkit-scrollbar-track {
  background: transparent;
  margin: 7vh 0;
}
::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: hsl(from var(--text-color) h s l / 60%);
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(from var(--text-color) h s l / 100%);
}
html, body {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: auto;
  color: var(--text-color);
  font-family: "Titillium Web", system-ui;
  font-weight: normal;
  font-size: clamp(1rem, 1vw + 1vh, 1.25rem);
  background: var(--background);
  letter-spacing: 1px;
  overflow: hidden;
}
@property --mask-fade {
  syntax: "<percentage>";
  initial-value: 100%;
  inherits: false;
}
main {
  container: main / inline-size;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--header-height));
  position: relative;
  font-size: 0.9em;
  padding: 0 var(--padding);
  padding-right: calc(var(--padding) - 1.5vw);
  padding-bottom: calc(var(--footer-height) * 2);
  margin-right: 1vw;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  scrollbar-gutter: stable;
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    var(--background) 10%,
    var(--background) var(--mask-fade),
    transparent 100%
  );
  transition: --mask-fade 0.2s ease;
}
.mask-gradient {
  --mask-fade: 90%;
}
@media screen and (max-width: 1024px) {
  :root {
    --padding: 8vw;
  }
  main {
    height: calc(100vh - var(--header-height) * 2);
    height: calc(100dvh - var(--header-height) * 2);
  }
}
figure {
  margin: 0;
}
dialog {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 1em;
  overflow: clip;
  padding: 0;
  box-shadow: 0 0 3em var(--background);
  &[open] {
    display: flex;
    &[machines] {
      flex-wrap: wrap;
      gap: 3em;
      img {
        flex: 0.5;
        width: 30em;
        max-width: 90%;
        height: 20em;
        object-fit: contain !important;
      }
      iframe {
        width: 20em;
        max-width: 20em;
        height: 10em;
        flex: 0.5;
        border: 2px solid var(--foreground);
        border-radius: 1em;
      }
    }
  }
  figcaption {
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.8em;
    text-align: center;
    width: fit-content;
    text-transform: uppercase;
    background: var(--background-2);
    border: 2px solid var(--foreground);
    border-radius: 1rem;
    padding: 0.2em 0.8em;
    margin: auto;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(6em + 2% + 1vh + 1vh);
  }
  [controls] {
    position: fixed;
    bottom: 5%;
    left: 0;
    gap: 5%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    button {
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 2px solid var(--foreground);
      background: var(--background-2);
      color: var(--text-color);
    }
    svg {
      font-size: 3em;
    }
  }
  &::backdrop {
    background: hsl(from var(--background-2) h s l / 50%);
    backdrop-filter: blur(0.5em);
  }
  img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    scale: 1.01;
  }
}
h1 {
  font-size: calc(2em * var(--heading-scale));
  text-transform: capitalize;
}
h2 {
  font-size: calc(1.5em * var(--heading-scale));
}
h3 {
  font-size: calc(1.17em * var(--heading-scale));
}
h4 {
  font-size: calc(1em * var(--heading-scale));
}
h5 {
  font-size: calc(0.83em * var(--heading-scale));
}
h6 {
  font-size: calc(0.67em * var(--heading-scale));
}
a {
  color: var(--logo-color);
  text-decoration: none;
  cursor: pointer;
}
ol li {
  list-style-type: decimal;
}
ul li, li {
  list-style-type: circle;
}
hr {
  border: none;
  background: var(--foreground);
  margin: 0;
  &[dotted] {
    --size: 0.5em;
    --spacing: 3em;
    width: 100%;
    height: calc(var(--size) * 2);
    background: radial-gradient(
      circle at center,
      var(--text-color) 0%,
      var(--text-color) calc(var(--size) - 0.02em),
      transparent calc(var(--size) + 0.02em),
      transparent 100%
    );
    place-self: center;
    background-size: clamp(var(--size), var(--spacing), calc(var(--size) * 7));
    background-repeat: space;
    background-position: center;
  }
}
svg {
  width: 0;
  height: 0;
}
input {
  all: unset;
  --border: 2px solid var(--foreground);
  width: 100%;
  border: var(--border);
  border-radius: 0.5em;
  margin-bottom: 1em;
  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;

  padding: 0.7em;
  font-size: 1em;
  letter-spacing: 0;
  color: var(--text-color);
  background: var(--background-2);
  &:hover {}
  &:is(:focus, :active) {
    box-shadow: 0 0 1em hsl(from var(--logo-color) h s l / 30%);
    outline: none;
    border: 2px solid var(--logo-color);
  }
  &:is(:-webkit-autofill, :autofill) {
    background-color: hsl(from var(--background-2) h s calc(l + 10)) !important;
  }
}
input[type="checkbox"] {
  all: unset;
  width: 1em;
  min-width: 1em;
  height: 1em;
  min-height: 1em;
  background: var(--background-2);
  outline: 2px solid var(--foreground);
  border-radius: 0.2em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  &:checked::before {
    content: "\2713";
    position: absolute;
    font-size: 0.8em;
    font-weight: bold;
  }
  &:hover, &:focus {
    box-shadow: 0 0 1em hsl(from var(--logo-color) h s l / 30%);
    outline: 2px solid var(--logo-color);
  }
}
:has(> input) {
  width: 100%;
}
input::placeholder, label {
  color: hsl(from var(--text-color) h s l / 80%);
  text-transform: uppercase;
}
label {
  letter-spacing: 0.2em;
  font-size: 0.8em;
  transition: 0.4s ease;
  margin-left: 0.6em;
}
input[type="password"] {
  font-weight: 900;
  padding-right: 11px !important;
  letter-spacing: 5px;
}
textarea {
  padding: 0.5em;
  box-sizing: border-box;
  width: 100%;
  border: 2px solid var(--foreground);
  border-radius: 0.5em;
  font-size: 1em;
  background: var(--background-2);
  resize: none;
  color: var(--text-color);
  &:focus {
    box-shadow: 0 0 1em hsl(from var(--logo-color) h s l / 30%);
    transition: 0.2s ease;
    outline: none;
    border: 2px solid var(--logo-color);
  }
}
textarea:focus-visible, textarea:focus {
  outline-color: var(--foreground);
}
button {
  all: unset;
  cursor: pointer;
  background: var(--white);
  border-radius: 100px;
  color: hsl(from var(--text-color) h s -100);
  padding: 0.5em 1em;
  font-size: 0.7em;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.1s;
  &:hover {
    box-shadow: 0 0 1em hsl(from var(--logo-color) h s l / 30%);
  }
  &:active {
    scale: 0.9;
  }
}
.disable-selection, img, button, header, footer, iframe {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
}
