/* Space Mono has regular and bold weights; a light stroke softens the jump. */
body > main > h1,
#intro > main > h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    -webkit-text-stroke: 0.2px currentColor;
}

body > main > h1 {
    text-align: start;
    width: 100%;
    font-size: 1.5rem;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    color: var(--color-secondary);
}

body > main > h1::after {
    content: "";
    flex: 1;
    height: 2px;
    background: hsl(from currentColor h s calc(l - 50));
    margin-left: 1rem;
}

#skillset {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    align-content: stretch;
    align-items: stretch;
    width: 100%;
}

#skillset > figure {
    border-radius: var(--size-radius-default);
    border: var(--size-border-default) solid var(--color-border);
    flex: 1 1 15rem;
    min-width: 0;
    padding: 1rem;
    background-color: var(--color-background-tertiary);
    font-family: var(--font-monospace), monospace;
}

#skillset > figure > header, #skillset > figure > ul > li {

}

#skillset > figure > header {
    color: var(--color-intense);
    text-transform: uppercase;
    font-weight: normal;
    padding: 0;
    margin-bottom: 0.5rem;
}

#skillset > figure > ul {
    list-style-type: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#skillset > figure > ul > li {
    padding: 0.375rem;
    background-color: var(--color-background-light);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* First steps toward the Amber Monolith layout. */
#intro {
    width: 100%;
    flex-shrink: 0;
    border-color: var(--color-border);
}

#intro > main > h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

#intro > main > .code {
    color: var(--color-intense);
}

#intro > main > section.subtitle {
    gap: 1.5rem;
}

body > main a {
    color: var(--color-secondary);
    overflow-wrap: anywhere;
}

body > main a:hover {
    text-decoration: underline;
}

body > main a:focus-visible {
    outline: 2px solid var(--color-intense);
    outline-offset: 4px;
}

body > main > h1,
#skillset, #works, #experience, #about {
    scroll-margin-top: 1rem;
}

@media (max-width: 767px) {
    body > main {
        padding: 1rem;
    }

    #intro > main > section.subtitle {
        flex-direction: column;
        gap: 1rem;
    }

    #intro > header {
        flex-wrap: wrap;
    }

    #skillset > figure {
        flex-basis: 100%;
    }
}

/* Project cards and professional experience. */
#works {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

#works > figure {
    flex: 1 1 24rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: var(--size-border-default) solid var(--color-border);
    border-radius: var(--size-radius-default);
    background-color: var(--color-background-tertiary);
    padding: 1.5rem;
    line-height: 1.6;
}

#works > figure.featured {
    flex-basis: 100%;
    border-top-color: var(--color-intense);
}

#works > figure > header {
    margin-bottom: 1rem;
}

#works .category {
    color: var(--color-monospace);
    font-family: var(--font-monospace), monospace;
    font-size: 0.75rem;
    font-weight: normal;
    margin-bottom: 0.375rem;
}

#works h2 {
    color: var(--color-secondary);
    font-family: var(--font-monospace), monospace;
    font-size: 1.25rem;
}

#works .details {
    list-style-type: square;
    padding-left: 1.25rem;
    margin: 0.75rem 0 1rem;
}

#works .details > li {
    padding-left: 0;
    margin-bottom: 0.375rem;
}

#works .stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#works .stack > li {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--color-background-light);
    font-family: var(--font-monospace), monospace;
    font-size: 0.75rem;
}

#works > figure > footer {
    margin-top: auto;
    font-size: 0.875rem;
}

#experience {
    width: 100%;
    align-items: stretch;
    line-height: 1.6;
}

#experience > ul {
    border-left: var(--size-border-default) solid var(--color-border);
    padding: 0 0 2rem 1.5rem;
    margin-left: 0.5rem;
    list-style-type: none;
}

#experience > ul:last-child {
    padding-bottom: 0;
}

#experience > ul > li {
    position: relative;
    padding-left: 0;
}

#experience > ul > li::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 0.375rem - 1px);
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--color-intense);
    border-radius: 50%;
}

#experience header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
}

#experience h2 {
    color: var(--color-secondary);
    font-size: 1.125rem;
}

#experience .dates {
    margin-left: auto;
    color: var(--color-monospace);
    font-family: var(--font-monospace), monospace;
    font-size: 0.8125rem;
}

#experience .role {
    flex-basis: 100%;
    color: var(--color-primary);
    font-weight: bold;
}

#experience > ul > li > ul {
    list-style-type: square;
    padding-left: 1.25rem;
}

#experience > ul > li > ul > li {
    padding-left: 0;
    margin-bottom: 0.375rem;
}

@media (max-width: 767px) {
    #works > figure {
        flex-basis: 100%;
        padding: 1rem;
    }

    #experience .dates {
        flex-basis: 100%;
        margin-left: 0;
    }
}

/* About panel. */
#about {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 2.5rem;
    border: var(--size-border-default) solid var(--color-border);
    border-radius: var(--size-radius-default);
    background-color: var(--color-background-tertiary);
}

#about > .summary,
#about > .portrait {
    flex: 1 1 0;
    min-width: 0;
}

#about h1 {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    -webkit-text-stroke: 0.2px currentColor;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#about .bio {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
}

#about .bio > p + p {
    margin-top: 1rem;
}

#about .placeholder {
    color: var(--color-monospace);
}

#about .flags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

#about .flags > img {
    width: auto;
    height: 1rem;
}

#about .links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
}

#about .links > li {
    padding-left: 0;
}

#about .portrait {
    max-width: 24rem;
    margin: 0 auto;
}

#about .portrait > img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    #about {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding: 1.5rem;
    }

    #about > .summary,
    #about > .portrait {
        flex-basis: auto;
    }
}
