* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.instrument-serif-regular {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
}

body {
    cursor: none;
    background-color: #FFF6F2;
}

header {
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.5em;
    font-style: normal;
    font-size: .8rem;
    z-index: 10;
}

header div.wrapper {
    width: 100%;
    margin: 0 auto;
}

/*HEADER STYLES top of webpage*/

p.name {
    margin-top: .2rem;
}

header div.wrapper {
    display: flex;
    width: 100%;
    flex-direction: row;
    padding: 1vh 5vh;
}

nav ul {
    flex-direction: column;
    list-style: none;
    margin-block-start: 0em;
    margin-block-end: 0em;
    max-width: 200px;
    min-width: 200px;
}

nav a:link,
header nav a:visited {
    color: black;
    text-decoration: none;
}

/*NAV BUTTON STYLES*/
header a {
    display: inline-block;
}

/*HERO STYLES*/
#hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    min-height: 90vh;    /* consistent hero height */
    padding: 2rem 1.5rem;  /* prevents text clipping */
}

#hero h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.19rem;
}

#hero p {
    font-size: .88rem;
    font-family: "Poppins", sans-serif;
}

/*ABOUT STYLES*/
#about {
    width: 100%;
    width: 100vw; 
    background-image: linear-gradient(to top, #FFF6F2, #A9C98D, #FFF6F2);
    overflow-x: hidden;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    padding: 0rem 4rem;
    width: 100vw;
    background-size: cover;
}
.row {
    max-width: 80ch;
    align-items: center;
    justify-content: center;
}
.row h2 {
    font-family: "Instrument Serif", serif;
    font-size: 3.19rem;
    padding: 0;
    line-height: 1.2em;
    font-weight: 400;
    text-align: left;
}

/*PROJECT STYLES*/
#projects {
    padding-bottom: 20px;
    padding-top: 60px;
    display: flex;
    flex-wrap: wrap;
}

h2 {
    justify-content: center;
    font-family: "Instrument Serif", serif;
    font-size: 3.19rem;
    font-weight: 400;
    align-items: center;
    color: black;
    text-align: center;
    margin: 50px;
}

div.cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 2000px;
}

div.card {
    display: flex;
    flex-direction: column;
    width: calc(45% - 20px);
    background-color: #ffffff;
    padding-bottom: 40px;
    border: 1px solid black;
    padding: 20px;
    margin-bottom: 30px;
    justify-content: flex-end;
}

div.card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.card img.landscape-img {
    object-fit: cover;
    height: fit-content;
    width: 100%;
}

div.card-text {
    padding: 10px;
    width: 100%;
}

div.card-text h4 {
    font-family: "Poppins", sans-serif;
    font-size: 1em;
    color: black;
    margin-bottom: 0px;
    font-weight: 400;
}

/*FOOTER STYLES*/
footer {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    line-height: 1.5em;
    font-style: normal;
    padding: 2rem 0;
    color: black;
    padding: 0;
    padding-inline-start: 0;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    padding-top: .75rem;
}

footer .sign-off {
    justify-content: center;
    font-family: "Instrument Serif", serif;
    font-size: 3.19rem;
    align-items: center;
    padding: 0;
    line-height: 1.2em;
}

footer div.wrapper {
    flex-direction: column;
    text-align: left;
    justify-content: space-between;
    max-width: 70ch;
}

footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


  /* === MOBILE MEDIA QUERIES === */
@media (max-width: 690px) {
    /* Hero */
    #hero {
      min-height: 60vh;
      padding: 1rem;
    }
    #hero h1 {
      font-size: clamp(2rem, 6vw, 3rem);
    }
    #hero p {
      font-size: 0.9rem;
    }

    /* About section */
    #about {
      padding: 2rem 2rem;
      flex-direction: column;
      text-align: center;
    }
    .row h2 {
      font-size: clamp(2rem, 5vw, 3rem);
      text-align: center;
    }
  
    /* Projects cards: 2 per row */
    div.cards {
      flex-wrap: wrap;
    }
    div.card {
      width: calc(50% - 20px);
    }
    footer {
        text-align: center;
        padding: 2rem 1rem;
    }
  }
  
  @media (max-width: 480px) {
    /* Hero */
    #hero {
      min-height: 50vh;
      padding: 1rem;
    }
    #hero h1 {
      font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
  
    /* About section */
    #about {
      padding: 1rem 1rem;
      background-color: yellow; /* TEST COLOR */
    }
    .row h2 {
      font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    /* Projects cards: 1 per row */
    div.card {
      width: 100%;
      flex-direction: column;
      align-items: center;
      margin-top: 20px;
      max-width: 100%;
      overflow-x: hidden;
    }
  }
