@use 'config' as *;

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: "Lexend", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #2d3748;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;

  @include respond-to(mobile) {
    font-size: 1.8rem;
  }
}

h2 {
  font-size: 2rem;
  color: #2d3748;

  @include respond-to(mobile) {
    font-size: 1.4rem;
  }
}

h3 {
  font-size: 1.5rem;
  color: #4a5568;
}

p {
  margin: 0 0 1rem 0;

  &.subtitle {
    color: #667eea;
    font-weight: 500;
  }
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;

  @include respond-to(mobile) {
    padding: 0;
  }

  header, footer {
    flex-shrink: 1;
    padding: 8px 32px;
    text-align: center;
    p {
      margin: 0;
    }

    @include respond-to(mobile) {
      padding: 8px 16px;
    }
  }

  header {
    .header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;

      @include respond-to(mobile) {
        justify-content: flex-start;
      }

      .logo {
        width: 64px;
        height: 64px;
        margin-right: 16px;

        @include respond-to(mobile) {
          margin-right: 0;
          width: 48px;
          height: 48px;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        @include respond-to(mobile) {
          align-items: flex-start;
        }

        h1 {
          margin: 0;
        }
      }
    }
  }

  main {
    flex-grow: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    :first-child {
      display: block;
      height: 100%;
    }
  }

  footer {
    p {
      color: #718096;

      a {
        color: #667eea;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}
