:root {
  --text-color: hsl(0, 89%, 60%);
  --background-color: hsla(0, 0%, 8%, 1);
  --background-position: 9rem;
}

body {
  background-image: url("/images/1x/3Y6A7240.jpg");
  background-position: center var(--background-position);
  @media (min-width: 600px) {
    background-position: center top;
    background-image: url("/images/2x/3Y6A7240.jpg");
  }
}

@media (max-width: 600px) {
  nav {
    background: linear-gradient(180deg, rgba(210, 210, 210, 1) 80%, rgba(210, 210, 210, 0) 100%);;
  }
}

#hero {
  padding-bottom: 4rem;

  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 15vw, var(--background-color) 30vw);

  .content-wrapper {
    align-items: center;
  }

  @media (max-width: 600px) {
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) var(--background-position), var(--background-color) calc(15vw + var(--background-position)));
    padding-top: var(--background-position);
  }

  h1 {
    line-height: 1.2;
  }

  p {
    max-width: 768px;
    padding: 0 1rem;
  }

  a:has(b) {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 0 0.3ch;
    display: inline-block;
    text-decoration: none;

    &:nth-of-type(1) {
      transform: rotate(1deg);
    }
    &:nth-of-type(2) {
      transform: rotate(-0.6deg);
    }
    &:nth-of-type(3) {
      transform: rotate(0.6deg);
    }
    &:nth-of-type(4) {
      transform: rotate(-0.75deg);
    }
  }

  i {
    color: color(from var(--text-color) srgb r g b / .8);
    font-style: normal;
    font-size: 0.7em;
  }
}
main {
  .content-wrapper {
    max-width: 896px;
  }
}


article {
  padding: 1.5rem;
  margin-bottom: 2rem;

  display: flex;

  flex-direction: column;
  align-items: center;

  .img-container {
    width: 100%;

    img {
      width: 100%;
      object-fit: cover;
      object-position: center 20%;
    }
  }

  .bio {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0;
    padding: 0 0.5em;
    text-transform: uppercase;
    display: inline-block;
    background-color: var(--text-color);
    color: var(--background-color);
  }

  h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    padding: 0 0.5em;
    text-transform: uppercase;
    display: inline-block;
    background-color: hsl(253 15% 37% / 1);
    color: white;
  }
  &#linn {
    h2{
      transform: rotate(1deg);
    }
    h3{
      transform: rotate(-0.7deg);
    }
  }
  &#tim {
    h2{
      transform: rotate(-0.6deg);
    }
    h3{
      transform: rotate(0.7deg);
    }
  }
  &#konrad
  {
    h2{
      transform: rotate(0.6deg);
    }
    h3{
      transform: rotate(-0.85deg);
    }
  }
  &#yasa {
    h2{
      transform: rotate(-0.75deg);
    }
    h3{
      transform: rotate(1.1deg);
    }
  }

  @media (min-width: 600px) {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;

    .img-container {
      flex-basis: 35%;
      img {
        object-fit: contain;
      }
    }

    .bio {
      flex: 1 0 0;
      align-items: flex-start;
    }

    h2 {
      text-align: left;
      font-size: 2.5rem;
    }
    &:nth-child(even) {
      flex-direction: row-reverse;
      h2, h3 {
        align-self: flex-end;
      }
    }
  }
}