/* Perusasetukset */
body {
  margin: 0;
  font-family: "Abhaya Libre", serif;
  background-color: #ffffff;
  color: #583a28;
}

/* Pääcontainer kahdelle sarakkeelle */
.container {
  display: flex;
  min-height: 100vh; /* vaihda height -> min-height */
  max-width: 2200px;
  margin: 0 auto;
}

/*
   OIKEA PUOLI (TEKSTI)
*/
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pääotsikko */
h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 30px 0; /* pienempi marginaali */
  line-height: 0.95;
  letter-spacing: 2px;
  color: #818479;
  font-family: "Lexend Giga", sans-serif; /* lainausmerkit + oikea kirjoitus */
}

/* Bio-teksti */
.bio,
.standpoint {
    font-size: clamp(1rem, 1.1vw + 0.4rem, 1.45rem);
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 5%;
    max-width: 80%;
    font-family: "Abhaya Libre", serif;
    color: #583a28;
}


/* Linkit */
a {
  color:#818479;
  text-decoration: none;
  
}

a:hover {
  opacity: 0.7;
}

/*
   VASEN PUOLI (KUVA)
*/
.left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3% 3% 3% 0;
}

.left img {
    width: 90%;
    height: auto;
    padding-left: 10%;
    display: block;
    object-fit: contain;
}

/*
   RESPONSIIVISUUS
*/

@media (max-width: 1280px) {
    h1 {
        font-size: clamp(2rem, 5vw, 4.5rem);
    }
    .bio,
    .standpoint {
        font-size: clamp(1rem, 1.8vw, 1.4rem); /* korjattu minimi */
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: clamp(1.8rem, 4vw, 3.5rem);
    }
}

@media (max-width: 900px) {

  .container {
    flex-direction: column-reverse;
  }

  .left {
    justify-content: center;
  }

  .left img {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }

  h1 {
    font-size: 10vw;
    margin-bottom: 40px;
  }

  .right {
    padding: 30px 20px;
  }

  .back {
    text-align: left;
  }
}

@media (min-width: 2000px) {
    h1 {
        font-size: clamp(4rem, 5vw, 7rem);
    }
    .bio,
    .standpoint {
        font-size: clamp(1.2rem, 1.5vw, 1.8rem);
        max-width: 700px;
    }
    .back a {
        font-size: 2.5rem;
    }
}