@font-face {
  font-family: "Science Gothic";
  src: url("/assets/fonts/ScienceGothic-VariableFont_CTRS,slnt,wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: oblique -10deg 0deg;
  font-display: swap;
}

:root {
  --fs-scale-200: 0.6875rem;
  --fs-scale-300: 0.875rem;
  --fs-scale-400: 1.125rem;
  --fs-scale-500: 1.4375rem;
  --fs-scale-600: 1.8125rem;

  --base-bg: hsl(0, 0%, 1%);
  --base-color: hsl(0 0% 50%);
  --base-highlight-color: hsl(0 0% 100%);
  --base-font-family: "Science Gothic", sans-serif;
  --base-font-size: var(--fs-scale-400);
  --base-line-height: 1.25;
  --base-font-style: normal;
  --base-font-weight: 300;
  --base-font-wdth: 120;
  --base-font-ctrs: 0;
  --base-font-stlt: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--base-bg);
  color: var(--base-color);
  font-family: var(--base-font-family);
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  font-weight: var(--base-font-weight);
  font-style: var(--base-font-style);
  font-optical-sizing: auto;
  font-variation-settings:
    "slnt" var(--base-font-stlt),
    "wdth" var(--base-font-wdth),
    "CTRS" var(--base-font-ctrs);
}

a {
  color: currentColor;
  text-decoration: none;
}

a:hover {
  color: var(--base-highlight-color);
}

.hero {
  width: 100vw;
  height: 100dvh;
}

.hero__anim-wrap {
  position: relative;
  top: 75svh;
  z-index: 1;
  text-align: center;
}

.header {
  position: fixed;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 2em;
  align-items: center;
  width: 100vw;
  padding: 1rem;
}

.header__logo {
  --_logo-multiplier: var(--logo-multiplier, 2);
  --_logo-size: 21px;
  width: calc(var(--_logo-size) * var(--_logo-multiplier));
  svg {
    display: block;
    fill: var(--base-color);
    width: calc(21px * var(--_logo-multiplier));
    aspect-ratio: 1;
    stroke-width: 0;
  }
}

.header :not(.header__logo) svg {
  display: block;
  stroke: currentColor;
  width: 1.5em;
}

.header__sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  .sound-off svg:nth-child(2) {
    display: none;
  }
  .sound-on svg:nth-child(1) {
    display: none;
  }
}

.header__contact {
  display: flex;
  align-items: center;
  gap: .5em;
}

.footer {
  position: fixed;
  z-index: 100;
  bottom: 0;
  padding: .25rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  font-size: var(--fs-scale-200);
  font-weight: 400;
}

input[type="range"] {
  --_range-width: 5em;
  --_range-thumb-size: 10px;
  --_range-track-size: 2px;
  --_range-thumb-color: var(--base-color);
  --_range-track-color: var(--base-color);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  width: var(--_range-width);
  height: var(--_range-thumb-size);
  &:hover {
  --_range-thumb-color: var(--base-highlight-color);
  --_range-track-color: var(--base-highlight-color);
  }
}

/* Thumb - Webkit */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--_range-thumb-size);
  height: var(--_range-thumb-size);
  border-radius: 50%;
  background: var(--_range-thumb-color);
  margin-top: calc((var(--_range-thumb-size) - var(--_range-track-size)) * -0.5); /* vertikální zarovnání na track */
}

/* Track - Webkit */
input[type="range"]::-webkit-slider-runnable-track {
  height: var(--_range-track-size);
  background: var(--_range-track-color);
}

/* Thumb - Firefox */
input[type="range"]::-moz-range-thumb {
  width: var(--_range-thumb-size);
  height: var(--_range-thumb-size);
  border: none;
  border-radius: 50%;
  background: var(--_range-thumb-color);
}

/* Track - Firefox */
input[type="range"]::-moz-range-track {
  height: var(--_range-track-size);
  background: var(--_range-track-color);
}