@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400..700;1,400..700&family=Boldonse&display=swap');
<style>
@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');
</style>

:root {
  --base-color: #ffffff;
  --text-color: #000000;
  --primary-color: #ffc06e;
  --secondary-color: #8D8DFF;
  --color-1: #F9F6F3;
  --color-2: #F3F7F9;
  --color-3: #F6F3F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Archivo Narrow, Arial;
  color: var(--text-color);
}

body {
  padding: 1em;
  background-color: var(--base-color);
}

h1, h2, h3 {
  font-family: Boldonse;
}

nav {
  margin: 1em auto 3em auto;
  width: min(1000px, 100%);
}

nav ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 2em;
}

nav li:first-child {
  margin-right: auto;
  font-family: Archivo Narrow, Boldonse;
  font-weight: bold;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
}

nav a:hover {
  text-decoration: underline;
}

header, section {
  margin: 2em auto;
  width: min(75em, 100%);
  background-color: rgb(235, 235, 235);
  padding: min(2em, 15%);
  border-radius: 3px;
}

.flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: wrap;
  gap: 3em;
}

header img {
  max-width: 100%;
  border-radius: 1em;
  object-fit: cover;
  object-position: bottom;
}

.text-container {
  flex: 0 1 34em;
}

h1 {
  font-size: 2.5rem;
}

.text-container p {
  margin: .75em 0 1em 0;
  font-size: 1.25rem;
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: rgb(40, 197, 40);
  padding: .75em 1.25em;
  border-radius: .5em;
  font-weight: 600;
}

.secondary {
  background-color: rgb(245, 33, 245);
}

section {
  padding: 3em min(2em, 15%);
  background-color: rgb(235, 235, 235);
  text-align: center;
}

h2 {
  font-size: 2rem;
}

section p {
  margin-top: 1em;
  font-size: 1.25rem;
}

section#my-portfolio {
  background-color: rgb(235, 235, 235);
}

.grid-container {
  margin-top: 3em;
  margin-bottom: 3em;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas: 
  "img-1 img-1 img-2 img-3"
  "img-1 img-1 img-4 img-5";
  gap: 1em;
}

.grid-container img {
  height: 100%;
  width: 100%;
  border-radius: .5em;
  transition: 100ms ease;
}

.grid-container img:hover {
  scale: 1.05;
}

details {
  margin-top: 1em;
  background-color: rgb(218, 217, 217);
  border-radius: 1em;
}

details summary {
  padding: 1em;
  font-size: 1.7rem;
  font-family: Boldonse;
}

details p {
  padding: 0 2em 2em 2em;
}

  @media(max-width: 988px) {
    header {
      text-align: center
    }
    header .text-container {
      padding-top: 0;
    }
  }

  @media(max-width: 640px) {
    nav li {
      display: none;
    }
      nav li: first-child,
      nav li: last-child {
        display: block;
      }

  header {
    margin-top 0;
  }

  .cta-button {
    margin-top: .5em;
    width: 100%;
    }
  }

  .grid-container {
    display: flex;
    flex-direction: column;
    }

  .text-container p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}


