/* ------------------------------
   Title Bar
--------------------------------*/

.title-bar {
  width: 100%;
  background: var(--color-code-darkred);
  padding: 20rem 0 1rem 0;
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--space-l);
}

.title-bar h1{
  max-width: 20ch;
  color: var(--color-white);
  margin: 0;
}

/* Author */

.project-author{
  color: var(--color-white);
  opacity: .9;
}


/* ------------------------------
   Intro + Credits Grid
--------------------------------*/

.content-grid{
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 4rem;
  margin-bottom: var(--space-l);
}

.content-grid .intro p{
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: var(--space-m);
  font-weight: 400;
  max-width: 58ch;
}

.content-grid .credits p{
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: var(--space-m);
}

.divider{
  border-bottom: 1px solid var(--color-black);
  margin-bottom: var(--space-l);
}

.divider h2{
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: clamp(1.35, 1.1vw, 1.2);;
  max-width: 25ch;
  margin-bottom: var(--space-m);
}
/* ------------------------------
   Link Grid (Button + Bild)
--------------------------------*/
.linktext h2{
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  max-width: 25ch;
  margin-bottom: var(--space-m);
}

.link{
  margin-bottom: var(--space-xl);
}

.link-grid{
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}


/* Text */

.linktext {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}


/* Button */

.project-button{
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1.4rem;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  text-decoration: none;
  font-weight: 400;
  transition: background .2s ease, transform .2s ease;
}

.project-button:hover{
  background: var(--color-code-darkred);
  transform: translateY(-2px);
  color: var(--color-white);
}


/* Bild / Thumb */

.project-thumb{
  display: block;
  width: 100%;
  overflow: hidden;
}

.project-thumb img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}

.project-thumb:hover img{
  transform: scale(1.05);
}


/* ------------------------------
   Tablet
--------------------------------*/

@media (max-width: 900px){

  .title-bar{
    padding: 12rem 0 1rem;
  }

  .content-grid{
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .content-grid .intro p{
    max-width: 100%;
  }

  .link-grid{
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

}


/* ------------------------------
   Mobile
--------------------------------*/

@media (max-width: 600px){

  h1{
    font-size: 2rem;
    margin-bottom: var(--space-s);
  }

  h2{
    font-size: 1.5rem;
  }

  .title-bar{
    padding: 8rem 0 .5rem;
    margin-bottom: var(--space-m);
  }

  .title-bar h1{
    max-width: 100%;
  }

  .project-author{
    margin-top: var(--space-s);
  }

}