/* Hero Section */
.hero{
    position: relative;
    height: 50svh;
    width: 100%;
}

.hero img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1,
.hero h2{
    position: absolute;
    bottom: 10%;
    left: 5%;
    line-height: 1em;
    color: var(--white);
    text-shadow: 1px 1px var(--black);
}

.hero h2{
    bottom: 5%;
    font-size: 1.2em;
}

/* Article */
[id]{
    scroll-margin-top: 18rem;
}

main{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: 5%;
}

main>article>h2{
    text-wrap: balance;
    margin-top: 0;
}

main>article>p:last-child{
    margin-bottom: 0;
}

main>article>img{
    display: block;
    height: auto;
    width: 100%;
    object-fit: cover;
}

main>article>img.portrait{
    float: right;
    width: 50%;
    padding-left: 1em;
}

img.logo{
    width: 60%;
    object-fit: contain;
    padding: 3em;
    border-radius: 3em;
    box-shadow: 0.5em 0.5em 0.5em var(--black);
    margin: 1em auto;
}

blockquote{
    position: relative;
    font-style: italic;
    padding: 0 1em;
    margin: 1em;
}

blockquote::before{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background-color: var(--grey);
}

p:has(+ blockquote){
    font-weight: 500;
}

video{
    display: block;
    box-sizing: border-box;
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 90%;
    margin: 3em auto;
}

div.section-nav{
    display: none;
}

@media (min-width: 761px){
    /* Hero Section */
    .hero{
        height: 70svh;
    }

    .hero h2{
        font-size: 1.5em;
    }

    .hero>img.logo{
        height: 50%;
        width: 50%;
    }

    /* Article */
    [id]{
        scroll-margin-top: 17rem;
    }

    main>article>img.portrait{
        width: 300px;
    }

    blockquote{
        padding: 0 2em;
    }
}

@media (min-width: 1166px){
    /* Hero Section */
    .hero{
        height: 80svh;
    }

    .hero h2{
        font-size: 2em;
    }

    .hero>img.logo{
        height: 40%;
        width: 40%;
    }

    /* Article */
    [id]{
        scroll-margin-top: calc(98px + 2rem);
    }

    main{
        grid-template-columns: 1fr auto 1fr;
        gap: 1em;
        width: fit-content;
        padding-inline: 1em;
        margin-inline: auto;
    }

    main>article{
        max-width: 1000px;
    }

    main>article>section:last-child{
        margin-bottom: 0;
    }

    main>article>h2 {
        text-wrap: balance;
    }

    main>article>h2:first-child {
        margin-top: 0;
    }

    main>article>img.portrait{
        float: right;
        max-height: 23em;
        width: 40%;
    }

    blockquote{
        margin: 1em 1em 2em 1em;
    }

    /* Article Navigation */
    div.section-nav{
        display: block;
        position: sticky;
        top: 7rem;
        align-self: start;
        font-size: 1.2em;
        border-radius: 1em 0 0 1em;
        background-color: var(--grey);
        padding: 1em 1em;
    }

    div.section-nav a{
        position: relative;
        display: block;
        text-decoration: none;
        font-weight: 600;
        color: var(--black);
        margin: 1em;
        opacity: 0.7;
    }

    div.section-nav a:hover{
        color: var(--black);
        opacity: 1;
    }

    div.section-nav a.active{
        opacity: 1;
    }

    div.section-nav a.active::before{
        position: absolute;
        top: -10%;
        bottom: -10%;
        left: -10%;
        width: 5px;
        content: "";
        background-color: var(--white);
    }

    video{
        max-width: 1500px;
        padding-inline: 1em;
        margin: 3em auto;
    }
}