html {
    scroll-behavior: smooth;
}

body {
    background-color: #F3F3F3;
}

* {
    font-family: "Crimson Pro";
}

.container {
    margin:30px 50px 30px 50px;
}

.footer-container {
    padding:30px 50px 30px 50px;
}

/* shared */

.columns-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.columns-2 .column {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
}

/* type */

strong, b {
    font-weight: 800;
}

a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

a:hover,
a:active {
    text-decoration: none;
    color: #333;
}

p {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 20px;
}

/* Header */

header {
    position: relative;
}

#site-name {
    font-size: 24px;
    float: left;
    margin-bottom: 55px;
    margin-right: 5px;
}

#site-subtitle {
    font-size: 24px;
    float: left;
    margin-bottom: 55px;
}

.i-menu {
    display: none;
    width: 1.875rem;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    justify-content: space-between;
}

.i-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

header.is-active .i-menu span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

header.is-active .i-menu span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
}

nav {
    float: right;
    padding-top: 5px;
    margin-bottom: 55px;
}

nav li {
    list-style: none;
    float: left;
    margin-left: 30px;
}

nav li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

nav li a:hover,
nav li a:active {
    text-decoration: none;
    color: #b89a00;
}

main {
    clear: both;
}

/* Hero */

#hero {
    display: flex;
}

#hero img {
    margin-right: 50px;
    max-width: 50%;
    align-self: flex-start;
}

#hero #hello {
    font-size: 25px;
    position: relative;
}

#hero #hello:after {
    content: " ";
    display: block;
    border-top: 1px dashed #000;
    position: relative;
    margin-bottom: 35px;
    margin-top: 5px;
}

#hero #biog h1 {
    font-size: 60px;
    line-height: 65px;
    font-weight: 300;
}

/* Projects */

#projects {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#projects .project {
    flex: 1 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    display: block;
    color: inherit;
    text-decoration: none;
}

#projects .project img {
    width: 100%;
    margin-bottom: 15px;
}

#projects .project h3 {
    font-size: 25px;
    font-weight: 300;
    line-height: 25px;
    margin-bottom: 10px;
}

#projects .project small {
    font-size: 16px;
    font-weight: 100;
    margin-bottom: 5px;
    display: inline-block;
}

#projects .project p {
    font-size: 20px;
    font-weight: 200;
    font-style: italic;
}

/* sections */

section {
    margin-top: 30px;
}

section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* form */

form {
    margin-top: 30px;
}

form input,
form textarea {
    display: block;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: "Crimson Pro";
    outline: none;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form input::placeholder,
form textarea::placeholder {
    color: #333;
}

form button {
    background: #000;
    color: #b89a00;
    border: none;
    padding: 12px 30px;
    font-size: 20px;
    font-family: "Crimson Pro";
    cursor: pointer;
}

form button:hover {
    background: #333;
}

.form-success,
.form-error {
    font-size: 20px;
    margin-top: 20px;
}

.form-error a {
    color: #000;
    text-decoration: underline;
}

/* footer */

footer {
    margin-top: 50px;
    display: block;
    background-color: #f0e000;
}

footer #contact {
    margin-bottom: 35px;
}

footer #contact #contact-me {
    font-size: 25px;
    position: relative;
    font-weight: 300;
}

footer #contact #contact-me:after {
    content: " ";
    display: block;
    border-top: 1px dashed #000;
    position: relative;
    margin-top: 5px;
}

footer #contact h2 {
    font-size: 40px;
    line-height: 45px;
    font-weight: 300;
    margin-bottom: 35px;
    max-width: 60%;
    margin-top: 35px;
}

footer #contact p {
    margin: 10px 0px;
}

footer #contact p i{
    margin-right: 10px;
}

/* Responsive */

/* Tablet */
@media (max-width: 1120px) {
    .container,
    .footer-container {
        margin: 20px 30px;
        padding: 20px 30px;
    }

    #site-name {
        margin-bottom: 0;
    }

    .i-menu {
        display: flex;
        top: 12px;
    }

    #main-nav {
        display: none;
        float: none;
        clear: both;
        margin-bottom: 20px;
    }

    header.is-active #main-nav {
        display: block;
    }

    #main-nav li {
        float: none;
        margin-left: 0;
        margin-bottom: 10px;
        text-align: right;
    }

    footer #contact h2 {
        max-width: 100%;
    }

    #site-subtitle {
        float: none;
        clear: both;
        margin-bottom: 20px;
        font-size: 18px;
    }

    #site-subtitle .sep {
        display: none;
    }

    #hero {
        flex-direction: column;
    }

    #hero img {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #projects .project {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }

    .columns-2 .column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .columns-2 .column:first-child {
        order: 2;
    }

    .columns-2 .column:last-child {
        order: 1;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .container,
    .footer-container {
        margin: 5px 10px;
        padding: 15px 20px;
    }

    #site-name,
    nav {
        float: none;
        margin-bottom: 5px;
    }

    nav li {
        margin-left: 0;
        margin-right: 0;
    }

    #hero {
        flex-direction: column;
    }

    #hero img {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #projects .project,
    .columns-2 .column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #hero #biog h1 {
        font-size: 40px;
        line-height: 46px;
    }

    #hero #hello:after {
        margin-bottom: 25px;
    }
}

/* single */

.single img {
    margin-bottom: 35px;
}

.single h1 {
    font-size: 25px;
    font-weight: 300;
}

.single h1:after {
    content: " ";
    display: block;
    border-top: 1px dashed #000;
    position: relative;
    margin-top: 5px;
    margin-bottom: 20px;
}