/* The overall page */
body {
    background-color: #0b0d10;
    color: #e8e5df;
    font-family: Georgia, serif;
    margin: 0;
    padding: 60px;
}

/* Main heading */
h1 {
    font-size: 55px;
    font-weight: normal;
    letter-spacing: -1px;
}

/* Paragraph text */
p {
    color: #a6a6a6;
    font-size: 18px;
    line-height: 1.8;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.logo {
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #a6a6a6;
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover {
    color: white;
}

/* Homepage introduction */
.hero {
    margin-top: 80px;
    margin-bottom: 150px;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: #8b9aab;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 85px;
    line-height: 1.1;
    font-weight: normal;
    letter-spacing: -3px;
    margin-bottom: 35px;
}

.intro {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.8;
    color: #b5b5b5;
}
/* Featured photograph */
.featured-photo {
    margin-bottom: 100px;
}

.featured-photo img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
/* Photograph story */
.photo-story {
    max-width: 750px;
    margin: 40px auto 120px auto;
}

.photo-story h2 {
    font-size: 38px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 20px;
}

.photo-caption {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8b9aab;
    margin-bottom: 30px;
}

.photo-description {
    font-size: 18px;
    line-height: 1.9;
    color: #b5b5b5;
}/* About me section */

.about {
    max-width: 900px;
    margin: 150px auto 100px auto;
    padding: 40px;
    border-top: 1px solid #333;
}

.about h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 50px;
}

.about-text {
    max-width: 700px;
    margin-left: auto;
}

.about-text p {
    font-size: 18px;
    line-height: 1.9;
    color: #b5b5b5;
    margin-bottom: 28px;
}

.contact-intro {
    margin-top: 50px;
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.contact-links a {
    color: #e6e6e6;
    text-decoration: none;
    border-bottom: 1px solid #777;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: #9bafc9;
}
/* Existential rabbit holes */

.rabbit-holes {
    max-width: 900px;
    margin: 150px auto 100px auto;
    padding: 40px;
    border-top: 1px solid #333;
}

.rabbit-holes h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 25px;
}

.rabbit-intro {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.9;
    color: #b5b5b5;
    margin-bottom: 70px;
}
/* Mobile layout */

@media screen and (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .hero {
        padding: 60px 25px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.7;
    }

    .featured-photo img {
        height: auto;
        max-height: 450px;
        object-fit: cover;
    }

    .photo-story {
        padding: 0 25px;
        margin: 30px auto 80px auto;
    }

    .photo-story h2 {
        font-size: 30px;
    }

    .photo-description {
        font-size: 16px;
        line-height: 1.8;
    }

    .about,
    .rabbit-holes {
        padding: 25px;
        margin: 80px auto;
    }

    .about h2,
    .rabbit-holes h2 {
        font-size: 34px;
    }

    .about-text {
        margin-left: 0;
    }

    .about-text p,
    .rabbit-intro {
        font-size: 16px;
        line-height: 1.8;
    }

    .contact-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}
@media screen and (max-width: 768px) {

    /* Logo on one line */
    nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 18px;
    }

    .logo {
        font-size: 16px;
        white-space: nowrap;
        width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
    }

    /* Main heading */
    .hero {
        padding: 50px 22px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.15;
        max-width: 100%;
        width: 100%;
    }

    /* Photograph */
    .featured-photo {
        margin: 0;
        width: 100%;
    }

    .featured-photo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

}
/* Reduce space around the hero and photograph */

.hero {
    padding-top: 25px;
    padding-bottom: 25px;
}

.featured-photo {
    margin-top: 0;
    margin-bottom: 40px;
} 
/* Photographs page */

.gallery-page {
    max-width: 1100px;
    margin: 100px auto;
    padding: 40px;
}

.gallery-page h1 {
    font-size: 64px;
    font-weight: normal;
    margin-bottom: 20px;
}

.gallery-intro {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.8;
    color: #b5b5b5;
    margin-bottom: 80px;
}

.gallery-item {
    max-width: 900px;
    margin-bottom: 100px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    max-width: 700px;
    margin: 35px 0 0 auto;
}

.gallery-caption h2 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 15px;
}

.gallery-caption p {
    color: #b5b5b5;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .gallery-page {
        margin: 50px auto;
        padding: 25px;
    }

    .gallery-page h1 {
        font-size: 42px;
    }

    .gallery-intro {
        font-size: 16px;
        margin-bottom: 45px;
    }

    .gallery-caption {
        margin: 25px 0 0 0;
    }

    .gallery-caption h2 {
        font-size: 28px;
    }

    .gallery-caption p {
        font-size: 16px;
    }
}