:root {
  font-size: 16px;
  font-family: sans-serif;
  --background: hsla(214, 60%, 99%, 1);
  --text: hsla(214, 60%, 17%, 1);
}

html {
  background-color: var(--background);
  color: var(--text);
}

#main-container {
  max-width: 900px;
  margin-inline: auto;
  min-height: 500px;
  padding: 40px;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
  margin-top: 50px;
  position: relative;
}



#main-container #name {
  font-size: 3rem;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 20px;
}

blockquote {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

figure {
  margin: 0;
  max-width: 50ch;
}

figure figcaption {
  text-align: right;
  font-size: 0.9em;
}

h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

p {
  margin: 0;
  line-height: 1.4;
}

ul  {
  padding-left: 20px;
  font-size: 0.9rem;
}

li + li {
  margin-top: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

.vertical-flex {
  display: flex;
  flex-direction: column;
}

.main-photo {
  border: 1px dashed lightblue;
}

.first-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-gap: 10px;
}

.bio {
  max-width: 70ch;
}

@media only screen and (max-width: 600px) {
    .first-section {
      grid-template-columns: 1fr;
    }

    .main-photo {
      display: none;
    }

    #main-container {
      margin-top: 10px;
    }

    #main-container #name {
      font-size: 2rem;
    }
}
