/* ==================================================
   GENERAL
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background-color: #370410;
    color: #fff2f2;

    font-family: Georgia, "Times New Roman", serif;

    line-height: 1.6;
}


/* ==================================================
   NAVIGATION
   ================================================== */

header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 20px 7%;

    border-bottom: 1px solid #8b7965;

    background-color: #000000;
}


.logo {
    font-size: 18px;

    font-weight: bold;

    letter-spacing: 2px;
}


nav a {
    color: #ffffff;

    text-decoration: none;

    margin-left: 25px;

    font-size: 14px;
}


nav a:hover {
    text-decoration: underline;
}


/* ==================================================
   HOME
   ================================================== */

.home {
    min-height: 90vh;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 70px 10%;

    gap: 60px;
}


.home-text {
    max-width: 550px;
}


.small-title {
    font-size: 12px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


h1 {
    font-size: 65px;

    line-height: 1.05;

    font-weight: normal;
}


h1 span {
    font-style: italic;
}


.intro {
    margin-top: 25px;

    max-width: 450px;

    font-size: 17px;
}


/* ==================================================
   BUTTON
   ================================================== */

button {
    margin-top: 25px;

    padding: 12px 20px;

    background-color: #714b36;

    color: white;

    border: none;

    font-family: Georgia, "Times New Roman", serif;

    cursor: pointer;
}


button:hover {
    background-color: #4e3527;
}


#message {
    margin-top: 15px;

    font-style: italic;
}


/* ==================================================
   HOME PHOTO
   ================================================== */

.photo-area {
    text-align: center;
}


.photo {
    background-color: #f8f1e5;

    padding: 12px 12px 35px;

    width: 310px;

    box-shadow: 4px 5px 0px #9a8873;

    transform: rotate(2deg);
}


.photo img {
    width: 100%;

    height: 360px;

    object-fit: cover;

    display: block;
}


.photo-caption {
    margin-top: -20px;

    position: relative;

    font-style: italic;

    font-size: 14px;
}


/* ==================================================
   SECTIONS
   ================================================== */

.section {
    padding: 100px 10%;

    border-top: 1px solid #8b7965;
}


.section-label {
    font-size: 12px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


h2 {
    font-size: 42px;

    font-weight: normal;

    margin-bottom: 30px;
}


/* ==================================================
   ABOUT
   ================================================== */

.about-content {
    max-width: 750px;

    font-size: 17px;
}


.about-content p {
    text-align: justify;
    margin-bottom: 20px;
}


/* ==================================================
   GALLERY
   ================================================== */

.gallery-intro {
    max-width: 600px;

    margin-bottom: 30px;
}


.gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    max-width: 850px;
}


.gallery-item {
    background-color: #430000;
    padding: 12px 12px 20px;
    box-shadow: 3px 4px 0px #9b7344;
    border: 1px solid #555454;
}

/* Make some photos slightly tilted */

.gallery-item:nth-child(2) {
    transform: rotate(2deg);
}


.gallery-item:nth-child(3) {
    transform: rotate(-1deg);
}


.gallery-item img {
    width: 100%;

    height: 300px;

    object-fit: cover;

    display: block;
}


.gallery-item p {
    margin-top: 12px;

    font-size: 11px;

    letter-spacing: 2px;

    text-align: center;
}


/* ==================================================
   SKILLS
   ================================================== */

.skills-intro {
    max-width: 600px;

    margin-bottom: 30px;
}


.skills {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    max-width: 850px;
}


.skill-card {
    border: 1px solid #8b7965;

    padding: 25px;

    background-color: #000000;
}


.skill-card span {
    font-size: 11px;

    letter-spacing: 2px;
}


.skill-card h3 {
    margin: 15px 0;

    font-size: 24px;

    font-weight: normal;
}


.skill-card p {
    font-size: 15px;
}


/* ==================================================
   CONTACT
   ================================================== */

.contact {
    min-height: 60vh;
}


.contact-info {
    margin-top: 25px;

    border-left: 3px solid #714b36;

    padding-left: 20px;
}


.contact-info p {
    margin-bottom: 8px;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    text-align: center;

    padding: 30px;

    border-top: 1px solid #8b7965;

    font-size: 13px;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 750px) {

    header {
        flex-direction: column;

        gap: 15px;
    }


    nav a {
        margin: 0 7px;
    }


    .home {
        flex-direction: column;

        text-align: center;

        padding-top: 50px;
    }


    h1 {
        font-size: 48px;
    }


    .photo {
        width: 270px;
    }


    .gallery {
        grid-template-columns: 1fr;
    }


    .gallery-item img {
        height: 350px;
    }


    .skills {
        grid-template-columns: 1fr;
    }

}