@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateY(1em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  font-family: var(--font-body-family);
  font-size: var(--font-body--size);
  font-style: normal;
}

body {
  color: var(--color-main);
  background-color: var(--color-background);
}

main {
  scroll-behavior: smooth;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-main);
  display: inline-block;
}

a:focus-visible {
  outline: 0.1em solid var(--color-main);
}

strong,
b {
  font-family: var(--font-body-family);
  font-weight: 400;
  font-style: normal;
}

h1,
.h1 {
  font-size: 1.75em;
}

h2,
.h2 {
  font-size: 1rem;
  font-weight: 400;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.show-mobile {
  display: block;
}

.show-desktop {
  display: none;
}

svg path {
  fill: var(--color-main);
}

h1.logo-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
}

h1.logo-title svg {
  padding: 1rem;
  opacity: 0;
  animation: slideInFade 800ms ease-in-out forwards;
  max-width: 66%;
  margin: 0 auto;
}
 
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

footer ul {
  display: flex;
  padding: 1rem;
  gap: 1em;
  justify-content: space-between;

  animation: fadeIn 1200ms ease-in-out forwards;
  animation-delay: 600ms;

  opacity: 0;
}

a.footer-item__link {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.2em;
}

 a.footer-item__link:focus-visible {
    text-decoration: none;
  }

@media screen and (pointer: fine) {
  a.footer-item__link:hover {
    text-decoration: none;
  }
  
}

@media screen and (min-width: 768px) {
  .show-mobile {
    display: none;
  }

  .show-desktop {
    display: inherit;
  }

  h1.logo-title {
  width: auto;
}
}
