/**********************************************
 **********************************************
 * Smaller viewports                          *
 **********************************************
 **********************************************/

:root {
    --font-family-heading: 'Inter', sans-serif;
    --font-family-paragraph: 'Georgia', serif;
    --font-family-monospace: monospace;
    --base-color: #ffffff;
    --base-offset-color: #eaeaea;
    --highlight-color: #C08B21;
    --accent-color: #FFEECC;
    --link-underline-color: #FFAA00;
    --heading-color: #1c1b1d;
    --text-color: #4e5157;

    --default-flex-gap: 48px;
    --column-width-thirds: 368px;
    --max-width-paragraph: 600px;
}

h1, h2, h3 {
    margin-block-end: 0;
    margin-block-start: 0;
}

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

body {
    border-top: 8px solid var(--accent-color);
    border-bottom: 24px solid var(--accent-color);
}

section {
    margin-bottom: 64px;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none
}

ol li,
ul li {
    list-style: none
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
    font-size: 18px;
    font-family: var(--font-family-heading);
}

.header a.header-logo {
    margin-right: 30px;
}

#signature {
    position: relative;
    top: 16px;
    max-width: 173px;
}

.highlight {
    background-color: var(--accent-color);
    padding: 3px 0;
    border-radius: 2px;
    color: #000;
}

.hamburger-trigger {
    height: 30px;
    display: flex;
    align-items: center
}

.hamburger {
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    display: block;
    width: 30px;
    height: 20px;
    background: 0 0;
    border-top: 2px solid;
    border-bottom: 2px solid;
    font-size: 0;
    transition: all .25s ease-in-out;
    color: var(--highlight-color)
}

.hamburger:before,
.hamburger:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .25s ease-in-out
}

.hamburger:hover {
    opacity: .7
}

.hamburger.is-active {
    border-color: transparent;
    z-index: 100;
    color: var(--base-color)
}

.hamburger.is-active:hover {
    opacity: 1
}

.hamburger.is-active:before {
    transform: translate(-50%, -50%)rotate(45deg)
}

.hamburger.is-active:after {
    transform: translate(-50%, -50%)rotate(-45deg)
}

.rectangle-divider {
    background: var(--highlight-color);
    max-width: 64px;
    height: 8px;
    margin: 64px auto;
    border: none;
}

.footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-family-heading);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 96px;
}

.disclaimer {
    font-style: italic;
    color: #999;
}

a:not(:has(img)) {
    color: var(--text-color);
    text-decoration-line: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: none;
    transition: background-color 200ms ease-out;
}

a:not(:has(img)):hover {
    background-color: var(--accent-color);
}

h1,
h2,
h3 {
    color: var(--heading-color);
    font-family: var(--font-family-heading);
    font-weight: 600;
}

p {
    color: var(--text-color);
    font-family: var(--font-family-paragraph);
    font-size: 18px;
    line-height: 24px
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none
}

ol li,
ul li {
    list-style: none
}

.content {
    font-size: 18px
}

.content p {
    font-size: 18px;
    line-height: 28px;
    margin: 0;
    padding: 0;
    margin-bottom: 16px;
}

#intro {
    color: var(--text-color);
    font-size: 24px;
    line-height: 36px;
    max-width: 700px;
}

.content p:has(+img),
.content ul:has(+img),
.content ol:has(+img),
.content img:has(+img),
.content img:has(+p) {
    margin-bottom: 24px;
}

.content h1 {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 16px;
}

.content h2 {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 16px;
}

.content ul {
    list-style: disc
}

.content ul li {
    list-style: disc
}

.content ol {
    list-style: decimal
}

.content ol li {
    list-style: decimal
}

.content ul,
.content ol {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.content ul li,
.content ol li {
    font-size: 18px;
    line-height: 28px;
    margin-left: 0;
    margin-bottom: 8px;
}

.content img {
    max-width: 100%;
    height: auto;
}

.content img {
    border:1px solid #eee;
}

.content figure {
    margin: 2.6rem 0 1.18rem
}

.content figure img {
    margin: 0
}

.content figure figcaption {
    margin-top: 10px
}

.content figure figcaption h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700
}

.content figure figcaption p {
    margin: 0
}

.content code,
.content pre {
    font-family: var(--font-family-monospace)
}

.content .highlight pre {
    border-radius: 3px;
    font-size: 14px;
    line-height: 18px;
    padding: 30px;
    overflow: auto;
    font-family: var(--font-family-monospace)
}

.menu-main {
    display: none;
}

.menu-main>ul {
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.menu-main>ul>li {
    margin-right: 30px;
}

.menu-main>ul>li>a {
    display: inline-block;
}

.menu-main>ul>li.active>a {
    display: inline-block;
    font-weight: 700
}

.menu-main>ul>li:last-of-type {
    margin-right: 0
}

.menu-main-mobile {
    position: fixed;
    background: var(--accent-color);
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    display: none;
    justify-content: center;
    flex-direction: column
}

.menu-main-mobile.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
    z-index: 10;
    display: flex
}

.menu-main-mobile.open li {
    animation: fadeInTop .5s ease forwards;
    animation-delay: .1s
}

.menu-main-mobile.open li:nth-of-type(2) {
    animation-delay: .15s
}

.menu-main-mobile.open li:nth-of-type(3) {
    animation-delay: .2s
}

.menu-main-mobile.open li:nth-of-type(4) {
    animation-delay: .25s
}

.menu-main-mobile.open li:nth-of-type(5) {
    animation-delay: .3s
}

.menu-main-mobile.open li:nth-of-type(6) {
    animation-delay: .35s
}

.menu-main-mobile ul {
    font-size: 2rem;
    font-family: var(--font-family-heading);
    text-align: center;
    list-style: none;
    margin: 0;
    flex: 0
}

.menu-main-mobile ul li {
    display: block;
    position: relative;
    opacity: 0
}

.menu-main-mobile ul li a {
    display: block;
    position: relative;
    color: var(--text-color);
}

.menu-main-mobile ul li a:hover {
    opacity: .7
}

.menu-main-mobile ul li ul.sub-menu {
    font-size: 1.2rem
}

.hamburger-trigger {
    height: 30px;
    display: flex;
    align-items: center
}

.hamburger {
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    display: block;
    width: 30px;
    height: 20px;
    background: 0 0;
    border-top: 2px solid;
    border-bottom: 2px solid;
    font-size: 0;
    transition: all 100ms ease-out;
    color: var(--text-color);
}

.hamburger:before,
.hamburger:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 100ms ease-out;
}

.hamburger:hover {
    opacity: .7
}

.hamburger.is-active {
    border-color: transparent;
    z-index: 100;
    color: var(--text-color);
}

.hamburger.is-active:hover {
    opacity: 1
}

.hamburger.is-active:before {
    transform: translate(-50%, -50%)rotate(45deg)
}

.hamburger.is-active:after {
    transform: translate(-50%, -50%)rotate(-45deg)
}

@keyframes fadeInTop {
    0% {
        opacity: 0;
        top: 20%
    }

    100% {
        opacity: 1;
        top: 0
    }
}

html,
body {
    box-sizing: border-box
}

body {
    background: var(--base-color);
    font-family: var(--font-family-paragraph);
    color: var(--text-color);
    margin: 0;
    padding: 16px 24px;
    overflow-x: hidden
}

body.frame {
    min-height: 100vh;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto
}

.project {
    margin-bottom: 128px;
}

.project-hero {
    opacity: 1;
    transition: opacity ease-out 200ms;
}

.project-hero:hover {
    opacity: 0.7;
}
 
.project-info {
    max-width: var(--max-width-paragraph);
    margin-top: 32px;
}

.project .company {
    font-family: var(--font-family-heading);
    color: #666;
    margin-bottom: 8px;
}

.testimonials,
.photos {
    display: grid;
    margin-top: 36px;
    gap: 48px;
}

.photos {
    gap: 24px;
}

.homepage-intro {
    margin-bottom: 96px;
    @media(min-width: 767px) {
        margin-bottom: 128px;
    }
}

/**********************************************
 **********************************************
 * Medium viewports                           *
 **********************************************
 **********************************************/


 @media(min-width: 500px) {
    body {
        padding: 24px 48px;
    }
}


/**********************************************
***********************************************
* Larger viewports                            *
***********************************************
**********************************************/

.personal-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media(min-width:767px) {

    body {
        padding: 48px 96px;
    }
    
    .footer {
        margin-top: 160px;
        font-size: 18px;
    }

    .personal-intro {
        flex-direction: row-reverse;
        gap: 48px;
    }
    .personal-intro .intro {
        flex: 1.4;
    }
    .personal-intro .photo {
        flex: 1;
    }

    section {
        margin-bottom: 96px;
    }

    .header {
        margin-bottom: 96px;
    }

    .summary {
        margin-bottom: 80px;
        font-size: 18px;
        line-height: 26px
    }

    .summary .summary-title {
        width: 80%;
        font-size: 52px;
        line-height: 58px
    }

    .content p:has(+img),
    .content ul:has(+img),
    .content ol:has(+img),
    .content img:has(+img),
    .content img:has(+p) {
        margin-bottom: 36px;
    }

    .content p,
    .content ul li,
    .content ol li {
        max-width: var(--max-width-paragraph);
        font-size: 20px;
        line-height: 32px;
    }

    .content h1 {
        font-size: 64px;
        line-height: 72px;
        letter-spacing: -2%;
        margin-bottom: 16px;
    }
    
    .content h2 {
        font-size: 36px;
        line-height: 42px;
        letter-spacing: -2%;
        margin-bottom: 16px;
    }

    .testimonials p,
    .testimonials .attribution {
        font-size: 16px;
        line-height: 24px;
    }

    .attribution {
        font-style: italic;
    }

    .testimonials {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--default-flex-gap);
    }

    .photos {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width:992px) {
    .menu-main {
        display: block
    }

    .hamburger-trigger {
        display: none
    }
}

/**********************************************
 **********************************************
 * Component styles                           *
 **********************************************
 **********************************************/

 #profile-photo {
    border-radius: 100%;
 }

 .profile-photo-small {
    width: 100px;
    margin-bottom: 16px;
    border-radius: 100%;
 }

 .testimonial p {
    position: relative;
}

 .testimonial p::before {
    position: absolute;
    content: '“';
    left: -36px;
    top: 4px;
    font-size: 56px;
    line-height: 32px;
    color: var(--accent-color);
    font-weight: bold;
    pointer-events: none;
}