* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #19182e;
  --accent-color: #e57acd;
  --background-color: #f0f0f0;
  --font-primary: "brooklyn-heritage-script", sans-serif;
  --font-secondary: "sofia-pro", sans-serif;
  --font-weight-light: 100;
  --font-weight-normal: 200;
  --font-size-small: 12px;
  --font-size-medium: 16px;
  --font-size-large: 30px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-light);
  color: var(--primary-color);

}

h2 {
  font-size: 45px;
}

p,
a {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-light);
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
}


body {
  display: flex;
  flex-direction: row;
  color: var(--primary-color);
  font-family: var(--font-secondary);
  width: 100%;
}


aside {
  position:fixed;
  width: 250px;
  height: 100vh;
  background-color: #ffffff;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.3s ease;
    padding-left: 40px;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
}

nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--font-weight-normal);
  transition: background-color 0.3s;
  width: 100%;
  height:50px;
  background-color: transparent;
  box-sizing: border-box;
}

a:hover {
  color: #e57acd;
}

.active {
  color: #e57acd;
}


.top_nav h2 {
  font-family: var(--font-secondary);
  font-size: 35px;
  text-align: left;
  line-height: 38px;
  margin-top: 40px;
}

.top_nav p {
  font-style: italic;
  font-size: 16px;
  margin-top: 4px;
  font-weight: 200;
  margin-left: 40px;
}

.top_nav {
  margin-bottom: 60px;
}

.container {
  margin-left: 250px;
  width: calc(100% - 250px);
  box-sizing: border-box;
  position: relative;
}

.backLink{
  position: fixed;
  bottom:50px;
  left: 300px;
}

section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap:40px;
  padding: 40px;
  width:500px;
}

section h2 {
  font-size: 35px;
}

section p {
line-height: 25px;
text-align: justify;
}

@media (max-width: 1024px) {
  section {
     column-count: 1;
  column-gap: 0px; 
   width:auto;
  }

  .project {
    height: 400px;
    width: 400px;
    padding: 100px;
  }

  h2 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
  }

  nav a {
    font-size: 18px;
  }

  .project {
    width: 100%;
    max-width: none;
    height: auto;
  }
}

@media (max-width: 768px) {
  section {
    grid-template-columns: 1fr;
       width:auto;
  }

  h2 {
    font-size: 1.75rem;
  }
}
