/* =========================================================
   General
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #f7f7f5;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


/* =========================================================
   Navigation
   ========================================================= */

header {
    width: 100%;
    border-bottom: 1px solid #ddddda;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 40px;

    display: flex;
    justify-content: center;
    gap: 35px;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: #777;
}


/* =========================================================
   Main content
   ========================================================= */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}


/* =========================================================
   Hero section
   ========================================================= */

.hero {
    min-height: 620px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.eyebrow {
    margin: 0 0 20px;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #666;
}

.hero h1 {
    margin: 0;

    font-size: 68px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-description {
    max-width: 600px;
    margin: 30px auto 0;

    font-size: 19px;
    line-height: 1.6;
    color: #555;
}


/* =========================================================
   Buttons
   ========================================================= */

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;

    margin-top: 35px;
}

.buttons a {
    display: inline-block;

    padding: 12px 24px;

    background-color: #1a1a1a;
    color: white;

    text-decoration: none;
    font-size: 15px;

    border: 1px solid #1a1a1a;

    transition: 0.2s ease;
}

.buttons a:hover {
    background-color: transparent;
    color: #1a1a1a;
}


/* =========================================================
   Projects
   ========================================================= */

.projects {
    padding: 80px 0;
}

.projects > h2 {
    margin: 0 0 40px;

    text-align: center;
    font-size: 32px;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    padding: 30px;

    background-color: #ffffff;
    border: 1px solid #ddddda;

    text-align: left;

    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: #aaaaaa;
}

.project-card h3 {
    margin: 0 0 15px;

    font-size: 21px;
    line-height: 1.3;
}

.project-card p {
    margin: 0 0 25px;

    color: #555;
    font-size: 15px;
}

.project-card a {
    color: #1a1a1a;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}


/* =========================================================
   Footer
   ========================================================= */

footer {
    padding: 40px;

    border-top: 1px solid #ddddda;

    text-align: center;
}

footer p {
    margin: 0;

    color: #777;
    font-size: 14px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {

    nav {
        padding: 20px;
        gap: 20px;
    }

    main {
        padding: 0 20px;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

}

.projects-page {
    padding: 70px 0 90px;
}

.page-heading h1 {
    font-size: 42px;
}

.project-entry h2 {
    font-size: 26px;
}

/* Small phones */

@media (max-width: 500px) {

    nav {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 38px;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .buttons a {
        text-align: center;
    }

}


/* =========================================================
   Projects page
   ========================================================= */

.projects-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 0 120px;
}


/* Page heading */

.page-heading {
    margin-bottom: 80px;
    text-align: center;
}

.page-heading h1 {
    margin: 0;

    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.page-heading > p:last-child {
    max-width: 600px;
    margin: 25px auto 0;

    font-size: 18px;
    color: #555;
}


/* Individual project */

.project-entry {
    padding: 55px 0;

    border-top: 1px solid #ddddda;
}

.project-entry:last-child {
    border-bottom: 1px solid #ddddda;
}

.project-entry-content {
    max-width: 750px;
}

.project-entry h2 {
    margin: 0 0 20px;

    font-size: 32px;
    line-height: 1.25;
}

.project-entry p:not(.project-category) {
    color: #555;

    font-size: 16px;
    line-height: 1.7;
}

.project-entry a {
    display: inline-block;

    margin-top: 10px;

    color: #1a1a1a;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.project-entry a:hover {
    text-decoration: underline;
}


/* =========================================================
   Projects page (For the drop down menus)
   ========================================================= */

.projects-page {
    max-width: 950px;
    margin: 0 auto;
    padding: 100px 0 120px;
}


/* ---------------------------------------------------------
   Page heading
   --------------------------------------------------------- */

.page-heading {
    margin-bottom: 70px;
    text-align: center;
}

.page-heading h1 {
    margin: 0;

    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.page-heading > p:last-child {
    max-width: 600px;
    margin: 25px auto 0;

    font-size: 18px;
    color: #555;
}


/* ---------------------------------------------------------
   Project entry
   --------------------------------------------------------- */

.project-entry {
    margin-bottom: 20px;

    background-color: #ffffff;
    border: 1px solid #ddddda;
}


/* ---------------------------------------------------------
   Project summary
   --------------------------------------------------------- */

.project-entry summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 35px 40px;

    cursor: pointer;

    list-style: none;
}


/* Remove default triangle */

.project-entry summary::-webkit-details-marker {
    display: none;
}


/* Firefox */

.project-entry summary::marker {
    display: none;
}


.project-summary {
    padding-right: 40px;
}


.project-category {
    margin: 0 0 10px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #777;
}


.project-entry h2 {
    margin: 0 0 12px;

    font-size: 28px;
    line-height: 1.3;
}


.project-short-description {
    margin: 0;

    color: #555;

    font-size: 16px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Expand icon
   --------------------------------------------------------- */

.expand-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    border: 1px solid #cccccc;

    font-size: 24px;
    font-weight: 300;

    color: #555;
}


/* Change + to − when open */

.project-entry[open] .expand-icon {
    font-size: 0;
}

.project-entry[open] .expand-icon::after {
    content: "−";

    font-size: 24px;
}


/* ---------------------------------------------------------
   Expanded project content
   --------------------------------------------------------- */

.project-details {
    padding: 0 40px 50px;

    border-top: 1px solid #ddddda;
}


.project-details h3 {
    margin: 40px 0 12px;

    font-size: 20px;
    font-weight: 600;
}


.project-details p {
    max-width: 800px;

    margin: 0 0 18px;

    color: #444;

    font-size: 16px;
    line-height: 1.7;
}


.project-details ul {
    max-width: 800px;

    margin: 0;
    padding-left: 25px;

    color: #444;

    line-height: 1.7;
}


.project-details li {
    margin-bottom: 8px;
}


/* ---------------------------------------------------------
   PDF viewer
   --------------------------------------------------------- */

.pdf-viewer {
    width: 100%;

    margin-top: 25px;

    background-color: #eeeeee;

    border: 1px solid #cccccc;
}


.pdf-viewer iframe {
    display: block;

    width: 100%;
    height: 750px;

    border: none;
}


/* PDF link */

.pdf-link {
    margin-top: 15px;
}


.pdf-link a {
    color: #1a1a1a;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}


.pdf-link a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .projects-page {
        padding: 70px 0 90px;
    }

    .page-heading h1 {
        font-size: 42px;
    }

    .project-entry summary {
        padding: 28px 25px;
    }

    .project-entry h2 {
        font-size: 24px;
    }

    .project-summary {
        padding-right: 20px;
    }

    .project-details {
        padding: 0 25px 40px;
    }

    .pdf-viewer iframe {
        height: 600px;
    }

}


@media (max-width: 500px) {

    .project-entry summary {
        padding: 25px 20px;
    }

    .project-entry h2 {
        font-size: 21px;
    }

    .project-short-description {
        font-size: 15px;
    }

    .project-details {
        padding: 0 20px 35px;
    }

    .pdf-viewer iframe {
        height: 500px;
    }

}
