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

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100%;
}

header, footer, section, article, figure, figcaption, nav {
    display: block;
}

/* google fonts inport */


@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,400;0,500;0,700;1,400&display=swap');


body {
    font-family: "Noto Serif", "Lora", serif;
    font-size: 1.125rem;
    line-height: 1.7;
    background-color: hsl(157, 84%, 95%);
    color: hsl(215, 89%, 7%);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    
}

main {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #000;
    background-color: rgba(245, 216, 110, 0.5);
    transition: all 0.2s linear;
}

.wrapper {
    display: grid;
    grid-template-columns: 80% 1fr;
    grid-column-gap: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 80% 20%;
    grid-column-gap: 3rem;
    font-size: 1.1rem;
}

.pages-container {
    justify-self: center;
    margin-top: 5rem;
    box-shadow: 0 -2px 2px 2px hsl(215, 89%, 7%);
    height: fit-content;
    padding: 0.95rem 1.5rem;
    
    
}


.pages__item {
    text-align: center;
}

@media (max-width: 1200px ) {
    .wrapper, .project-grid {
        grid-template-columns: 1fr;
        grid-row-gap: 1.5rem;
    }

    ul.pages-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.9rem;
        justify-content: center;
        width: 90%;
        margin: auto;
        
    }

    .header {
        padding: 60px;
        flex-direction: row;
        font-size: 1.1rem;
        text-align: left;
        align-items: flex-start;
    }
        

    

    .container {
        padding: 0.9rem;
    }

    .header__links,
    .header__nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    .header__photo {
        max-width: 200px;
        margin-top: 0.9rem;
    }

}




.about-container {
    justify-self: center;
    max-width: 80%;
    padding: 1rem;
}

.about-container p {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .wrapper .about-container {
        max-width: 100%;
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }
}



.now {
    width: min(100%, 80ch);
    margin: 1rem auto;
    margin-bottom: 3rem;
    padding: 2rem 3rem;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0 -2.5px 3px 2px hsl(0, 0%, 80%);
}

.now-head {
    margin-bottom: 1.5rem;
}

.now-body {
    text-align: left;
}
.now-body > p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

h2.now__title {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

#look-around {
    font-size: 1.125rem;
}

#look-around a {
    background: none;
}

p.now__intro {
    margin-top: 0;
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0.5rem;
    background-color: hsl(0, 0%, 90%);
    font-size: 1rem;
    color: hsl(0, 0%, 25%);
}

a.now__intro {
    background: none;
    text-decoration: underline;
}




p.now__updated {
    
    padding-bottom: 0.5rem;
}



.now__updated {
    font-size: 0.9rem;
    color: #6c757d; 
    margin-top: 0.5rem;
}

.about {
    width: min(100%, 80ch);
    margin: 1rem auto;
    margin-bottom: 3rem;
    padding: 2rem 3rem;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0 -2.5px 3px 2px hsl(0, 0%, 80%);
}

.about-site__head {
    background-color: hsl(0, 0%, 90%);
    text-align: center;
    margin-bottom: 1.5rem;
}


.about-site__list {
    list-style-type: square;
    padding-left: 20px;
    margin: 1rem 0;
}

.about-site__item:not(:last-of-type) {
    margin-bottom: 0.6rem;
}


.technical-info__head {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0.7rem;
}

h2.technical-info__title {
    font-size: 1.3rem;
    margin-top: 1rem;
}

h3#technical-info__subtitle {
    font-size: 1.2rem;
    text-transform: none;
    color: hsl(0, 0%, 25%);
    margin-top: 0.7rem;
}


.technical-info__list {
    list-style: square;
    padding-left: 20px;
    margin: 1rem 0;
}

.uses {
    width: min(100%, 80ch);
    margin: 1rem auto;
    margin-bottom: 3rem;
    padding: 2rem 3rem;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0 -2.5px 3px 2px hsl(0, 0%, 80%);
}

.uses__title {
    background-color: hsl(0, 0%, 90%);
    text-align: center;
    margin-bottom: 1.5rem;
}



h2.uses__subtitle {
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

.uses__list {
    list-style-type: square;
    padding: 1.4rem;
}

.uses__sublist {
    list-style-type: circle;
    padding: 1.4em;
}

.links {
    width: min(100%, 80ch);
    margin: 1rem auto;
    margin-bottom: 3rem;
    padding: 2rem 3rem;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0 -2.5px 3px 2px hsl(0, 0%, 80%);
}

.links__intro {
    margin-bottom: 1rem;
}

.links__title {
    
    text-align: center;
    margin-bottom: 1.5rem;
}

.element {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: hsl(0, 0%, 95%);
    border-radius: 4px;
}

.links .element-link > h3 {
    text-decoration: none;
    display: inline;
    font-size: 1.1rem;
    color: hsl(0, 0%, 15%);
    
}

.links .element-link > h3:hover {
    color: hsl(0, 0%, 10%);
    background-color: rgb(243, 224, 15, 0.9);
}

.links .element-desc {
    font-size: 0.955rem;
    padding-top: 0.5rem;
}



.contact {
    padding-left: 5rem;
}

.contact-header {
    margin-bottom: 1.5rem;
}

ul.contact-list {
    list-style-type: square;
    padding-top: 1rem;
    padding-left: 2rem
}


.section__intro {
    margin-bottom: 1rem;
 
}

.section__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

h2.section__title {
    margin-top: 2rem;
}

ul.section-list {
    list-style-type: square;
    padding-left: 2.5rem;
    font-size: 1rem;
}

.section-list__item {
    margin: 1em;
}

p.links__description {
    margin-top: 0;
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1rem 0.5rem;
    background-color: hsl(0, 0%, 90%);
    font-size: 1rem;
    color: hsl(0, 0%, 25%);
}

p.links__outro {
    margin-top: 2rem;
    font-size: 1rem;
}

p.section__intro {
    background-color: hsl(0, 0%, 93%);
    font-size: 0.955rem;
    padding: 0.9rem 0.5rem;
    color:hsl(0, 0%, 20%)
}


p.back-home {
    text-align: center;
}

dl.tools-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
   
    padding: 0.5rem;
    margin: 1rem auto;
}

dt.tools__dt {
    font-weight: bold;
    font-size: 1rem;
}

dd.tools__dd {
    margin: 0.2rem;
    line-height: 1.5;
    font-size: 0.9rem;
}



a:hover {
    background-color: rgb(243, 224, 15, 0.9);
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 500px) {
    .container {
        padding: 40px;
    }
}



ul {
    list-style: none;
}

ul.list-inline {
    display: flex;
}

ul.list-inline li:not(:last-of-type) {
    padding-right: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    
    padding-bottom: 80px;
}

@media (min-width: 500px) {
    .header {
        padding: 60px;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

.header__title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;


}

@media (min-width: 500px) {
    .header__title {
        font-size: 2.5rem;
        margin: 0;
    }
}

.header__links {
    margin: 0 10px;
    
}

.header__links a {
    background-color: transparent;
}

.header__links a:hover {
    background-color: #b5e1e4;

}

@media (min-width: 1200px) {
    .header__links {
        justify-content: flex-start;
    }

    .header__photo-wrapper {
        margin: 1rem 0 0;
    }
}



.header__affiliation, .project__link, .about h3 {
    font-family: "Lora", "Futura", sans-serif;
    text-transform: uppercase;
    font-size: 90%;
}

.header__affiliation {
    font-family: "Poppins", sans-serif;
    letter-spacing: 1.5px;
    margin: 0;
}

.header__links {
    margin: 10px 0;
}

.header__nav {
    display: flex;
    margin-top: 10px;
    padding: 0;
}

.header__nav li {
    margin-right: 15px;
}

.header__nav li:last-of-type {
    margin-right: 0;
}



.header__photo {
    display: flex;
    justify-content: flex-end;
    max-width: 150px;
    margin-left: auto;
}

@media (min-width: 750px) {
    .header__photo {
        max-width: 200px;
    }
}

.header__photo img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    display: block;
}

/* photo wrapper with minimal frame*/
.header__photo-wrapper {
    position: relative;
    padding: 10px;
    border: 1px solid #bcebd4;
    border-radius: 20%;
}



/* Caption styling */
.header__quote {
    font-style: italic;
    text-align: center;
    color: #666;
    font-size: 0.8em;
    margin-top: 10px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 auto;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    display: table;
    padding: 0 10px;
    z-index: 2;
}

.section-title::after {
    content: "";
    background-color: rgb(248, 200, 166);
    height: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    z-index: -1;

}

.project .container {
    margin-bottom: 40px;
}

#project__lede{
    margin-bottom: 20px;
    font-size: 16px;

}

.project dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: flex-start;
}

.project__item-summary {
    width: 30%;
    margin-right: 20px;
    margin-bottom: 10px;
}

.project__item-description {
    width: 65%;
    margin-bottom: 20px;
}

.project__item-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.project__item-description:last-of-type,
.project__item-summary:last-of-type {
    margin-bottom: 0;
}

.project__title {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.project__stack {
    font-size: 0.9rem;
    padding: 1px 2px;
    background-color: rgb(234, 234, 234);
    border-radius: 2px;
}

.project__link {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.project__item-description p:last-of-type {
    font-size: 0.9rem;
    color: rgb(95, 21, 90);
}

@media (max-width: 768px) {
    #projects dl {
        flex-direction: column;
    }
    .project__item-summary,
    .project__item-description {
        width: 100%;
    }
}


.header-minimal {
    margin: 2rem;
}

.now {
    text-align: center;
}


.footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (min-width: 500px) {
    .footer {
        align-items: left;
        font-size: 0.8rem;
        gap: 0.9rem;
    }
}

.footer .container {
    font-style: italic;
    display: flex;
    justify-content: space-between;
    
}

.footer .container a {
    background-color: transparent;
    text-decoration: underline;
}

.footer .blurb {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    margin-right: 20px;
    align-items: flex-start;
}

.footer .blurb > p {
    margin-bottom: 0;
    line-height: 1.8;
}



/* footer background*/
.light {
    background-color: #ffff;
}




.fa {
    display: inline;
    visibility: visible;
    color: inherit;
}

hr {
    margin: 2rem;
}


/* Media Queries*/

@media (max-width: 1200px) {
    .wrapper, .project-grid {
        grid-template-columns: 1fr;
        grid-row-gap: 1.5rem;
    }

    .footer {
        flex-direction: column;
    }
}