:root {
    --primary-foreground-color: #1d1d1f;
    --secondary-foreground-color: #6e6e73;
    --primary-background-color: #ffffff;
    --secondary-background-color: #E8E8ED;
}

html {
    quotes: "“" "”";
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    font-family: "Lato", "SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
    background-color: #f5f5f7;
    color: var(--primary-foreground-color);
    font-style: normal;
}

svg {
    display: inline-block;
}

html, body {
    margin: 0;
    padding: 0;
}

body, input, textarea, select, button {
    font-synthesis: none;
    -moz-font-feature-settings: 'kern';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: ltr;
    text-align: left;
}

body {
    padding: 0px 40px;
}

a {
    color: var(--primary-foreground-color);
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 900;
}

button {
    all: unset;
}

.button {
    display: inline-block;
    padding: 15px 40px;
    color: var(--primary-background-color);
    font-weight: 700;
    border-radius: 40px;
    background-color: var(--primary-foreground-color);
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
}

@media (hover: hover) {
    .button:hover {
        transform: scale(1.1);
        box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    }
}

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

.logo .emblem > svg {
    display: block;
    width: auto;
    height: 60px;
}

.logo .text {
    margin-top: -15px;
}

.logo .company-name {
    font-family: 'ADLaM Display', cursive;
    font-size: 30px;
}

.logo .tag-line {
    font-size: 16px;
    line-height: 1em;
}

ul.socials {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

ul.socials > li {
    display: block;
}

ul.socials > li > a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: var(--primary-background-color);
    width: 55px;
    height: 55px;
    border-radius: 100%;
    text-decoration: none;
}

ul.socials > li > a {
    transition: transform .3s, box-shadow .3s;
}

ul.socials > li > a > svg .fill {
    fill: #1d1d1f;
}

@media (hover: hover) {
    ul.socials > li > a:hover {
        transform: scale(1.1);
        box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    }

    ul.socials > li > a:hover > svg .fill {
        fill: var(--primary-background-color);
    }

    ul.socials > li > a.linkedin:hover {
        background: #0B66C2;
    }

    ul.socials > li > a.github:hover {
        background: #8A239D;
    }

    ul.socials > li > a.medium:hover {
        background: #1D1D1F;
    }
}

body > header {
    padding-bottom: 40px;
}

body > header, 
body > main,
body > footer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

body > header, 
body > footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

body > main > section:nth-child(1) {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

body > main > section:nth-child(1) > article {
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    padding: 40px;
    background: #FAFAFA;
}

body > main > section:nth-child(1) > article > p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
}

body > main > section:nth-child(1) > article > footer {
    display: flex;
    gap: 20px;
    align-items: center;
}

body > main > section > article > footer > ul.socials {
    height: 100%;
}

body > main > section:nth-child(1) > img {
    display: block;
    min-width: 1px;
    max-width: 100%;
    width: 100%;
    min-height: 1px;
    max-height: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    object-position: center bottom;
}

body > footer {
    color: #6E6E73;
    font-size: 12px;
    line-height: 1.5em;
}

body > footer > p {
    margin: 0;
    padding: 0;
}

body > footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media only screen and (max-width: 1068px) {
    h1 {
        font-size: 28px;
    }

    body {
        padding: 0px 20px;
        font-size: 14px;
    }

    body > header, 
    body > main,
    body > footer {
        max-width: 692px;
    }

    body > header,
    body > footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body > main > section:nth-child(1) {
        gap: 20px;
    }

    body > main > section:nth-child(1) > article {
        padding: 20px;
        gap: 20px;
    }

    body > main > section:nth-child(1) > article > p {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body > main > section:nth-child(1) > article > footer {
        gap: 10px;
    }

    .button {
        padding: 10px 20px;
    }

    .logo .emblem > svg {
        width: auto;
        height: 55px;
    }

    .logo .company-name {
        font-size: 28px;
    }

    .logo .tag-line {
        font-size: 14px;
    }

    ul.socials > li > a {
        width: 40px;
        height: 40px;
    }
    
    body > footer {
        font-size: 10px;
    }
}

@media only screen and (max-width: 734px) {
    body > header, 
    body > main,
    body > footer {
        max-width: 366px;
    }

    body > main > section:nth-child(1) {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    body > main > section:nth-child(1) > article {
        order: 2;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    body > main > section:nth-child(1) > article > p {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    body > main > section:nth-child(1) > article > footer {
        flex-direction: column;
        align-items: flex-start;
    }

    body > main > section:nth-child(1) > img {
        max-height: 180px;
        object-position: center -30px;
        order: 1;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        border-bottom: 1px solid rgba(0,0,0,0);
    }
}

#portfolio {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    max-width: 980px;
}

#portfolio > article {
    margin:0 auto;
    max-width: 980px;
    width: 100%;
    background: var(--primary-background-color);
    color: var(--primary-foreground-color);
    border-radius: 32px;
    padding: 20px 40px;
    box-sizing: border-box;
}

#portfolio > article > header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#portfolio .icon {
    display: block;
    width: 64px; 
    height: 64px; 
    border-radius: 11px;
}

#portfolio .title-wrap {
    flex-grow: 1;
}

#portfolio .title {
    font-size: 17px;
    font-weight: 700;
}

#portfolio .category {
    color: var(--secondary-foreground-color);
    font-weight:500;    
    font-size: 14px;
}

#portfolio .button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 32px;
    background: var(--secondary-background-color);
    color: var(--primary-foreground-color);
}

#portfolio .button:not(:disabled) {
    cursor: pointer;
}

#portfolio .screenshots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

#portfolio .screenshots a {
    display: block;
}

#portfolio .screenshots img {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 11px;
}

#portfolio .devices {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    color: var(--secondary-foreground-color);
    font-weight:500;    
    font-size: 14px;
}

#portfolio .device {
    display: flex;
    gap: 5px;
    align-items: center;
}

#portfolio .device > svg {
    display: block;
    width: auto;
    height: 14px;
}

#portfolio .device > svg .fill-color {
    fill: var(--secondary-foreground-color);
}

@media only screen and (max-width: 1068px) {
    #portfolio {
        margin-top: 20px;
        gap: 20px;
    }

    #portfolio > article {
        padding: 10px 20px;
    }

    #portfolio > article > header {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #portfolio .icon {
        width: 48px;
        height: 48px;
    }

    #portfolio .title {
        font-size: 14px;
    }

    #portfolio .category,
    #portfolio .button,
    #portfolio .devices { 
        font-size: 11px;
    }

    #portfolio .devices {
        margin-top: 5px;
        margin-bottom: 10px;
    }

    #portfolio .button { 
        padding: 6px 12px;
    }

    #portfolio .device > svg {
        height: 11px;
    }
}

@media only screen and (max-width: 734px) {
    #portfolio {
        max-width: 366px;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}