:root {
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 16px;
  background-color: #eee;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0 auto;
  max-width: 1500px;
  box-shadow: 1vw 1vw 1rem 0 #000a;
  background-color: white;
}

h1,
h2 {
  margin: 0;
  font-family: serif;
}

h1 {
  font-size: 2rem;
  text-align: center;
  margin: 1rem 0;
}

h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;

  & img {
    width: 3rem;
  }
}

p {
  color: #333;
}

.about {
  padding: 1rem;
  background: linear-gradient(160deg, #33f 100vw, white 100vw);
  margin-bottom: 5rem;

  & .image {
    position: relative;

    & img {
      display: block;
      width: 90%;
      margin: 5% auto;
      box-shadow: 0.1rem 0.1rem 1rem 0 #000a;
    }

    & span {
      position: absolute;
      top: 0;
      left: 10%;
      font-family: serif;
      font-size: 15vw;
      color: white;
      text-shadow: -1vw -1vw 1vw #000a;
    }
  }
}

.work {
  padding: 0 1rem;
  margin-bottom: 5rem;

  & h1 {
    text-align: left;
  }

  & .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: space-between;
    gap: 3rem;

    & .card {
      box-shadow: 0.1rem 0.1rem 1rem 0 #000a;

      & .image {
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-family: serif;
        font-size: 1.5rem;
        font-weight: bold;
      }

      & .content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 1rem;

        & ul {
          gap: 0.5rem;

          & img {
            width: 1.5rem;
          }
        }

        & p {
          grid-column: 1 / 3;
        }
      }
    }
  }
}

.contact {
  background-color: #33f;
  color: white;
  padding: 1rem;

  & p {
    color: inherit;
  }

  & nav {
    margin-bottom: 5rem;
  }

  & picture {
    display: block;
    margin: -1rem;

    & img {
      width: 100%;
    }
  }
}

@media (min-width: 600px) {
  .about {
    position: relative;
    background: linear-gradient(160deg, #33f 48vw, white 48vw);

    & .image {
      float: left;
      width: 40%;
      margin-right: 1rem;

      & img {
        width: 100%;
      }

      & span {
        top: 1rem;
        left: 70%;
        font-size: 5vw;
        white-space: nowrap;
      }
    }

    & .content {
      margin: 5rem 3rem 0 3rem;
      padding: 3rem 1rem;
      background-color: white;
      box-shadow: 0.1rem 0.1rem 1rem 0 #000a;
    }
  }

  .contact {
    display: flex;
    gap: 1rem;

    & h1 {
      text-align: left;
    }

    & ul {
      justify-content: flex-start;
    }

    & picture {
      margin: 0;
      padding: 2rem;
    }
  }
}

@media (min-width: 1000px) {
  .about {
    display: flex;
    align-items: center;
    background: linear-gradient(165deg, #33f 450px, white 450px);
    padding: 3rem;

    & .image {
      flex: 1;
      margin: 0;

      & img {
        margin: 0;
      }

      & span {
        top: 0;
        left: 10%;
      }
    }

    & .content {
      flex: 2;
      margin: 0;
    }
  }

  .work {
    padding: 0 3rem;
  }

  .contact {
    padding: 3rem;
  }
}
