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

:root {
  --ink: #03050b;
  --bg: #f0eede;
  --accent1: #CC421D;
  --accent2: #4A7FA5;
  --accent3: #073852;
  --accent4: #4ca4df3c;
  --soft: #E8E3D9;
  --muted: #8A847A;
  --heroFont: "Work Sans", sans-serif;
  --mainFont: "Source Code Pro", monospace;
  --secondFont: 'Syne', sans-serif;
  --mainFontSize: normal;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    font-family: var(--mainFont);
    text-transform: uppercase;

}

/* Nav */
nav {
  left: 0; right: 0;
  z-index: 100;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 1.5rem 3rem;
  position: fixed;
  top: 0;
  background-color: #f0eedea2;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--accent3);
  text-decoration: none;
}
.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style: none;
}
.nav-links li {
    margin: 1rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink);

}
#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#banner {
    min-height: 50vh;
    text-align: center;
    padding-top: 50vh;
    padding-bottom: 40vh;
    color: var(--accent1);
    font-size: 1.5rem;
}
.projects {
    display: flex;
    flex-direction: column;
}
.project {
    display: flex;
    flex-direction: row;
    margin-bottom: 5rem;
}
.c1 {
    margin-left: 48px;
    display: flex;
    justify-content: flex-start;
    text-align: flex-start;
    flex: 1;
}
.c2 {
    display: flex;
    justify-content: flex-end;
    margin-right: 48px;
    flex: 1;
}
.c2 p {
    text-align:right;
}
.project-about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-about p:nth-child(1) {
    order: 0;
}
.project-about p:nth-child(2) {
    margin-top: auto;
    justify-self: flex-end;
}
.project-about p:nth-child(3) {
    justify-self: flex-end;
}


.cc {
    display: flex;
    flex-direction: column;
}
.cc.project-img {
    margin-left: 48px;
    margin-right: 48px;
    margin-bottom: 48px;
}
.cc.project-about {
    flex-direction: row;
    margin-left: 48px;
    margin-right: 48px;  
}

img {
    max-height: 90vh;
    max-width: 100%;
    display: block;
}



.footer {
  background-color: var(--ink);
  color: var(--accent1);
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 40px;
  padding-bottom: 120px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.footer-upper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 100px;
  white-space: nowrap;
  line-height: 1;
  font-size: clamp(12px, 1rem, 20px);

}

.footer-socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 100px;
  white-space: nowrap;
}

.footer-socials a {
  color: var(--accent1);
  text-decoration: none;
  line-height: 1;
}

.footer-socials a:hover {
  text-decoration: underline;
}

.footer-madeby {
  text-align: center;
  width: 100%;
  line-height: 1;
}

.footer-initials {
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: clamp(80px, 40vw, 400px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 0.6;
  overflow: hidden;
  color: var(--accent1);
  text-decoration: none;
}

.footer-initials span:nth-child(1) { text-align: left; flex: 1; }
.footer-initials span:nth-child(2) { text-align: center; flex: 1; }
.footer-initials span:nth-child(3) { text-align: right; flex: 1; }


@media (max-width: 450px){
    /* .project-about p:nth-child(1) {
        order: 0;
    } */
    .project-about p:nth-child(2) {
        margin-right: auto;
        align-self: flex-start;
    }
    .project-about p:nth-child(3) {
        align-self: flex-end;
    }
}

/*phone*/
@media (max-width: 650px){
    nav {
        padding: 24px;
    }
    p {
        letter-spacing: -0.1em;
    }

    .cc.project-img {
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .cc.project-about {
        flex-direction: row;
        margin-left: 0px;
        margin-right: 0px;  
    }

    .project {
        flex-direction: column;
        margin-left: 24px;
        margin-right: 24px;
    }
    .project-about {
        flex-direction: row;
        justify-content: space-between;
        margin-left: 0;
        margin-right: 0;
    }
    .project-img {
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }

    .project .project-img {
        order: 1;
    }

    .project .project-about {
        order: 2;
    }

    .footer-inner {
        padding: 0px;
        padding-bottom: 120px;
    }

}
/* small phone*/
@media (max-width: 450px){

  .footer {
    padding: 40px 30px 28px;
  }

}