:root {
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --link-color: #1a1a1a;
    --link-hover-color: #999999;
    --footer-text-color: #1a1a1a;
    --transition-duration: 0.3s;
    --transition-timing-function: ease-in-out;
}

html {
    height: 100%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: "forma-djr-text", sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

header {
    padding: 10px 20px;
    position: relative;
}

.logo {
    max-width: 400px;
    width: 400px;
    margin-bottom: 15px;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    flex-grow: 1;
    padding: 0 20px;
}

nav ul {
    list-style: none;
}

nav > ul > li {
    margin-bottom: 10px;
}

.mobile-only {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--link-color);
    font-family: "forma-djr-text", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    font-size: 25px;
    line-height: 1;
    transition: color var(--transition-duration) var(--transition-timing-function);
}

.nav-link:hover {
    color: var(--link-hover-color);
}

.content-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--transition-timing-function),
                opacity 0.3s var(--transition-timing-function) 0.1s,
                padding-top 0.4s var(--transition-timing-function),
                padding-bottom 0.4s var(--transition-timing-function),
                margin-top 0.4s var(--transition-timing-function),
                margin-bottom 0.4s var(--transition-timing-function);
    margin-top: 0;
    margin-bottom: 0;
}

.content-section.open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.content-inner {
    max-width: 400px;
}

.content-section p {
    font-family: "forma-djr-text", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.8em;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section .content-inner a {
    color: var(--link-color);
    text-decoration: none;
}

.content-section .content-inner a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

#portfolio-content p {
    line-height: 1.7;
    margin-bottom: 0;
}

.portfolio-email {
    text-transform: uppercase;
}

/* Photo */
.header-photo {
    width: 23.15vw;
    height: 23.15vw;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: fixed;
    right: 12.83vw;
    bottom: 11.61vh;
}

/* Clients list */
.clients-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clients-list li {
    font-family: "forma-djr-text", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

footer p {
    font-family: "forma-djr-deck", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-text-color);
    margin: 0;
}

.footer-lang {
    font-family: "forma-djr-text", sans-serif;
    font-size: 25px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--link-color);
    transition: color var(--transition-duration) var(--transition-timing-function);
}

.footer-lang:hover {
    color: var(--link-hover-color);
}

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

@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    main {
        padding: 0 15px;
    }

    .logo {
        width: 70vw;
        max-width: 300px;
    }

    .nav-link {
        font-size: 20px;
    }

    .header-photo {
        width: 40vw;
        height: 40vw;
        position: fixed;
        right: 15px;
        bottom: 120px;
        top: auto;
    }

    .content-inner {
        max-width: 100%;
    }

    .content-section p {
        font-size: 14px;
    }

    .clients-list li {
        font-size: 14px;
    }

    .mobile-only {
        display: list-item;
    }

    .footer-lang {
        display: none;
    }

    footer {
        padding: 15px;
    }

    .footer-item {
        display: block;
    }

    .footer-separator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
