@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600&family=Nunito+Sans&display=swap');

body {
  font-family: Nunito Sans;
  font-size: 16px;
  line-height: 1.5;

  background-color: #1e1e34;
  color: #ffffff;
 /* background-image: url(background.png);
  background-repeat: repeat-x;
  background-position: center;
  background-attachment: fixed;
  background-size: 20px 100%;*/
  margin: 80px auto 48px auto;
  width: 1120px;
}

header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

h1,
nav,
footer {
  font-family: Josefin Sans;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-family: Josefin Sans;
    font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 16px 0;
}

 a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0 0 32px;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

 a:hover, .selected {
  color: #ecb5c5;
}



section {
  margin: 80px 0 80px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 32px;
  grid-auto-flow: dense;
}

section h1 {
  grid-column:  2 / span 10;
  text-align: center;
}

section.project div.artwork {
  grid-column:  1 / span 8;
  text-align: center;
}

section.project div.description {
  grid-column:  9 / span 4;
}

section.project img {
  max-height: 640px;
}

section.project-alt div.artwork {
  grid-column:  5 / span 8;
  
}

section.project-alt div.description {
  grid-column:  1 / span 4;
}

section.about div.photo {
  grid-column:  1 / span 6;
}

section.about div.description {
  grid-column:  7 / span 6;
}

section.about h1 {
  margin: 0 0 0 0;
  text-align: left;
}

section.about p {
  margin: 16px 0 16px 0;
}

section.contact div.form {
  grid-column: 4 / span 6;
}

section.contact h1 {
  text-align:  left;
}
/*
section.alice-layout img {
  grid-column: 1 / span 12;
}

section.alice-layout h2 {
  grid-column: 1 / span 6;
}

section.alice-layout div {
  grid-column: 7 / span 6;
}

section.grid-layout div {
  grid-column: span 6;
}

section.grid-layout h2 {
  margin: 16px 0 16px 0;
}

video {
  width: 100%;
}

section.project img {
  border-radius: 15px;
}
*/

footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer a {
  margin: 0 16px 0 16px;
}

@media (max-width: 1248px) {
  body {
    width:  auto;
    margin:  80px 64px 48px 64px;
  }
  
  h1, nav, footer {
    font-size: 24px;
  }
}

@media (max-width:920px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  nav {
    margin:  16px 0 0 0;
  }
  header img {
    max-width: 300px;
  }
  header a {
    margin:  0 16px 0 0;
  }
}

@media (max-width: 660px) {
  
  nav a {
    margin: 8px 0 0 0;
  }
  
  section {
    grid-template-columns:  repeat(4, 1fr);
    gap: 24px 24px;
    margin: 64px 0 64px 0 ;
  }
 
  section h1, 
  section.project div.artwork, 
  section.project div.description,
  section.about div.photo,
  section.about div.description,
  section.contact div.form {
    grid-column: 1 / span 4;
  }
}

@media (max-width: 500px) {
  body {
    margin: 48px 24px 24px 24px;
  }
  
  header img {
    width:  100%;
  }
  
  nav {
    display:  flex;
    flex-direction:  column;
    align-items: center;
    justify-content: center;
  }
}