@layer reset, base, layout, components, utilities;

@layer reset {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Syne Mono";
  }
}
@layer base {
  h1,
  h2,
  h3,
  a,
  span,
  p,
  li {
    color: var(--dark);
  }
  h1 {
    margin-top: clamp(0.8rem, 6vh, 1.5rem);
    margin-bottom: clamp(0.8rem, 6vh, 1.5rem);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
  }
  h2 {
    margin-top: clamp(0.3rem, 2.5vh, 0.6rem);
    margin-bottom: clamp(0.5rem, 5vh, 1.2rem);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
  }
  h3 {
    margin-top: clamp(0.3rem, 2.5vh, 0.6rem);
    margin-bottom: clamp(0.3rem, 2.5vh, 0.6rem);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    line-height: 1.2;
  }
  a,
  span {
    display: inline-block;
    line-height: 1.2;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
  }
  p,
  li {
    line-height: 1.6;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
  }
}
@layer layout {
  body {
    background-color: hsl(50, 50%, 70%);
    display: flex;
    flex-direction: column;
  }
  .container {
    max-width: 90%;
    margin: auto;
  }
  header {
    display: flex;
    flex-direction: row;
    background-color: hsl(35, 15%, 15%);
    padding: 0.5rem 5%;
    align-items: center;
    gap: 5rem;
    margin-bottom: 2rem;
  }
  .version-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    a {
      text-decoration: none;
    }
  }
}
@layer components {
  .version-card {
    border: 0.5rem solid hsl(35, 15%, 15%);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    text-align: center;
    background-color: hsl(50, 30%, 50%);
    height: 100%;
    overflow: hidden;
    .version-img-div {
      width: 100%;
      overflow: hidden;
    }
    .version-img {
      width: 100%;
      height: 100%;
      transition: transform 0.3s ease;
      transform-origin: 57% 55%;
      &:hover {
        transform: scale(1.4);
      }
    }
    .version-title {
      font-size: 2rem;
    }
  }
  header h1 {
    text-align: center;
    color: hsl(50, 50%, 70%);
  }
  header .back-button {
    text-decoration: none;
    background-color: hsl(50, 50%, 70%);
    color: hsl(35, 15%, 15%);
    border: 0.2rem solid hsl(50, 30%, 50%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
  }
}
