/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    background: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================================
   HEADER
========================================= */

header {
    width: 100%;
    height: 64.5px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

header > div {
    width: 100%;
    max-width: 1080px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
header > div > a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 40.5px;
}

header nav a {
    font-size: 13.5px;
    color: #666666;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #111111;
}

header button {
    display: none;
}


/* =========================================
   ABOUT MAIN AREA
========================================= */

main {
    background: #ffffff;
}

main > div:last-child {
    width: 100%;
}


/* Main two-column wrapper */

main > div:last-child > div {
    width: 100%;
    max-width: 1080px;
    min-height: 1117.5px;
    margin: 0 auto;
    padding-top: 126px;

    display: grid;
    grid-template-columns: 1fr 397.5px;
    column-gap: 75px;
    align-items: start;
}


/* =========================================
   LEFT CONTENT
========================================= */

main > div:last-child > div > div:first-child {
    min-width: 0;
}

main h1 {
    margin: 0 0 34.5px;

    font-size: 55.5px;
    line-height: 1;
    letter-spacing: -2.7px;
    font-weight: 700;
}


/* Paragraph container */

main h1 + div {
    width: 100%;
}

main h1 + div p {
    margin: 0 0 28.5px;

    font-size: 20.2px;
    line-height: 1.48;
    color: #657080;
    letter-spacing: -0.05px;
}

main h1 + div p:last-child {
    margin-bottom: 0;
}


/* =========================================
   SKILL PILLS
========================================= */

main h1 + div + div {
    margin-top: 43.5px;

    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

main h1 + div + div span {
    display: inline-flex;
    align-items: center;

    min-height: 39px;
    padding: 0 19.5px;

    border: 1px solid #dfe3e7;
    border-radius: 22.5px;

    background: #ffffff;

    color: #68717d;
    font-size: 15px;
    line-height: 1;

    white-space: nowrap;
}


/* =========================================
   BUTTONS
========================================= */

main h1 + div + div + div {
    margin-top: 45px;

    display: flex;
    align-items: center;
    gap: 15px;
}

main h1 + div + div + div a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 54px;
    padding: 0 28.5px;

    border-radius: 30px;

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

    transition: all 0.2s ease;
}


/* Black button */

main h1 + div + div + div a:first-child {
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
}

main h1 + div + div + div a:first-child:hover {
    background: #333333;
    border-color: #333333;
}


/* White button */

main h1 + div + div + div a:last-child {
    background: #ffffff;
    color: #222222;
    border: 1px solid #dfe3e7;
}

main h1 + div + div + div a:last-child:hover {
    background: #f7f7f7;
}


/* =========================================
   PORTRAIT
========================================= */

main > div:last-child > div > div:last-child {
    width: 397.5px;
    height: 598.5px;

    overflow: hidden;
    border-radius: 33px;
}

main > div:last-child > div > div:last-child img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;
    background: #f5f6f8;
    border-top: 1px solid #e7e8ea;
}


/* Footer upper section */

footer > div:first-child {
    width: 100%;
    max-width: 1080px;
    min-height: 280.5px;
    margin: 0 auto;
    padding: 63px 0 52.5px;

    display: grid;
    grid-template-columns: 1.55fr 0.85fr 1.1fr 0.8fr;
    column-gap: 64.5px;
}


/* Footer first column */

footer > div:first-child > div:first-child > p:first-child {
    margin-bottom: 10.5px;

    color: #202020;
    font-size: 13.5px;
    font-weight: 700;
}

footer > div:first-child > div:first-child > p:last-child {
    max-width: 255px;

    color: #69727d;
    font-size: 13.5px;
    line-height: 1.55;
}


/* Footer headings */

footer > div:first-child > div:not(:first-child) > p:first-child {
    margin-bottom: 13.5px;

    color: #90969d;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}


/* Footer lists */

footer ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

footer li {
    margin-bottom: 7.5px;
}

footer li a {
    color: #69727d;
    font-size: 13.5px;
    line-height: 1.4;

    transition: color 0.2s ease;
}

footer li a:hover {
    color: #111111;
}


/* =========================================
   COPYRIGHT
========================================= */

footer > div:last-child {
    width: 100%;
    min-height: 55.5px;

    border-top: 1px solid #e3e5e7;
}

footer > div:last-child > div {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 16.5px;

    color: #747c85;
    font-size: 12px;
}


/* =========================================
   HIDE LOVABLE BADGE
========================================= */

aside {
    display: none !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1120px) {

    header > div {
        padding: 0 37.5px;
    }

    main > div:last-child > div {
        padding-left: 37.5px;
        padding-right: 37.5px;

        grid-template-columns: 1fr 360px;
        column-gap: 52.5px;
    }

    main > div:last-child > div > div:last-child {
        width: 360px;
        height: 547.5px;
    }

    footer > div:first-child {
        padding-left: 37.5px;
        padding-right: 37.5px;
    }

    footer > div:last-child > div {
        padding-left: 37.5px;
        padding-right: 37.5px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    header {
        height: 72px;
    }

    header > div {
        padding: 0 27px;
    }

    header nav {
        display: none;
    }

    header button {
        display: block;

        padding: 7.5px 15px;

        background: #ffffff;
        border: 1px solid #dedede;
        border-radius: 22.5px;

        color: #444444;
        font-size: 13.5px;
    }


    /* About layout becomes vertical */

    main > div:last-child > div {
        min-height: auto;
        padding: 82.5px 30px 90px;

        display: flex;
        flex-direction: column;
    }


    /* Text */

    main h1 {
        margin-bottom: 33px;

        font-size: 48px;
        letter-spacing: -2.2px;
    }

    main h1 + div p {
        font-size: 19.5px;
        line-height: 1.55;
        margin-bottom: 28.5px;
    }


    /* Image */

    main > div:last-child > div > div:last-child {
        order: -1;

        width: 307.5px;
        height: 462px;

        margin: 0 auto 57px;

        border-radius: 30px;
    }


    /* Pills */

    main h1 + div + div {
        margin-top: 40.5px;
    }

    main h1 + div + div span {
        min-height: 40.5px;
        padding: 0 18px;

        font-size: 13.5px;
    }


    /* Buttons */

    main h1 + div + div + div {
        margin-top: 42px;
    }


    /* Footer */

    footer > div:first-child {
        min-height: auto;

        padding: 52.5px 30px;

        grid-template-columns: 1fr 1fr;
        gap: 45px 30px;
    }

    footer > div:first-child > div:first-child {
        grid-column: 1 / -1;
    }

    footer > div:last-child > div {
        padding: 18px 30px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 560px) {

    main > div:last-child > div {
        padding-left: 25.5px;
        padding-right: 25.5px;
    }

    main h1 {
        font-size: 43.5px;
    }

    main h1 + div p {
        font-size: 18.8px;
    }

    main > div:last-child > div > div:last-child {
        width: 285px;
        height: 427.5px;
    }

    main h1 + div + div + div a {
        height: 52.5px;
        padding: 0 24px;
    }
}
    

/* =========================================
   MOBILE MENU (opened by the Menu button)
========================================= */

@media (max-width: 900px) {

    header nav.open {
        display: flex;

        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 6px 27px 18px;

        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        z-index: 30;
    }

    header nav.open a {
        padding: 15px 0;
        font-size: 16.5px;
        border-bottom: 1px solid #f1f1f1;
    }
}


/* =========================================
   RESPONSIVE POLISH
========================================= */

img {
    max-width: 100%;
}

/* Side padding at every size */

main > div:last-child > div,
footer > div:first-child,
footer > div:last-child > div {
    padding-left: 24px;
    padding-right: 24px;
}

/* Portrait shrinks before the layout stacks */

@media (max-width: 1120px) {

    main > div:last-child > div {
        grid-template-columns: 1fr 300px;
        column-gap: 50px;
    }

    main > div:last-child > div > div:last-child {
        width: 300px;
        height: 452px;
    }
}
