@import "./_variables.scss";

@font-face {
  font-family: "Lato";
  src: url("@/assets/fonts/Lato-Regular.ttf");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  position: relative;
  font-weight: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  transition: color 0.5s, background-color 0.5s;
  line-height: 1.6;
  font-family: "Lato", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  margin: 8px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgba(244, 244, 244, 0.95);
}

h1 {
  font-size: 5rem;
  font-weight: 600;
}

h2 {
  font-size: 2.6rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
}

@media screen and (max-width: $br-mobile) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1rem;
  }
}

p {
  line-height: 1.8rem;
  margin: 1rem 0;
}

b {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: $primary;
  font-weight: 600;
  transition: 0.2s;
  &:hover {
    color: $background-primary;
  }
}

img {
  max-width: 100%;
}

main {
  max-width: $br-desktop;
  margin: 0 auto;
  font-weight: normal;
}

@media (max-width: $br-desktop) {
  main {
    margin: auto 0.7rem;
  }
}

section {
  margin: 6rem 0;

  header {
    margin-bottom: 2rem;
  }
}

button,
.btn,
input {
  padding: 0.7rem 2.2rem;
  border-radius: 7px;
  margin: 0 0.2rem;
  border: unset;
  font-weight: 600;
}

button,
.btn {
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;

  &:hover {
    box-shadow: 3px 3px 0 0 $quite-black;
  }
}

form {
  margin: 0.3rem 0;
}

@media screen and (max-width: $br-mobile) {
  form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }
}

label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

input {
  background-color: #f5f5f5;
}

summary {
  text-transform: uppercase;

  &:hover {
    user-select: none;
    cursor: pointer;
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: $quite-black;
  color: white;
  padding: 2rem 1rem 3rem 1rem;
  margin-top: 5rem;
  border-radius: 5px;
  user-select: none;

  a {
    color: #ffffff;

    &:hover {
      color: #fcb0ac;
    }
  }
}
