:root {
    --bg-color: rgb(246, 246, 246);
    --text-color: black;
    --name-label-color: gray;
    --main-gradient: linear-gradient(to right, #fe5024, #fc903c);
}

/* dark colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #17191A;
        --text-color: white;
        --name-label-color: lightgray;
    }
}

hr {
    /* Removes the default border */
    border: 0;
    height: 2px;
    background-image: var(--main-gradient);
}

body {
    font-family: 'Figtree', sans-serif;
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

p {
    line-height: 1.5;
}

li:not(:last-child) {
  margin-bottom: .5rem;
}

nav {
    position: relative;
    width: 100%;
    border: .25rem solid red;
    background-color: var(--bg-color);
    z-index: 100;
    border-image: var(--main-gradient) 1;
    box-sizing: border-box;
}

.nav-scroll {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.nav-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.nav-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.is-scrollable .nav-fade-left,
.is-scrollable .nav-fade-right {
    opacity: 1;
}

.at-start .nav-fade-left {
    opacity: 0;
}

.at-end .nav-fade-right {
    opacity: 0;
}

.nav-scroll a {
    padding: 1rem;
    flex: 0 0 auto;
}

.nav-scroll .logo {
    display: flex;
    align-items: center;
    fill: var(--text-color);
    line-height: 0;
    text-decoration: none;
    margin-right: auto;
}

.hero {
    margin: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    h1 {
        display: flex;
        flex-wrap: wrap;
        font-size: 2.5rem;
    }
}

.name {
    text-decoration-line: underline;
    text-decoration-color: var(--name-label-color);

    abbr {
        text-decoration: none;
    }
}

.namelabel {
    font-size: .75rem;
    color: var(--name-label-color);
    position: relative;
    top: -1.75rem;
    font-style: italic;
}

button {
    border-radius: 0;
    background-color: black;
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
}

a {
    color: var(--text-color);
}

h3 {
    margin-bottom: 0;
}

.name-container {
    max-height: 2rem;
}

@media screen and (max-width: 500px) {
    .hero {
        margin: 5rem 0;

        h1 {
            width: 100%;
            justify-content: center;
            text-align: center;
            margin: 0 0 0.25rem 0;
            line-height: 1.1;
            gap: 1rem;
        }

        h1>span:not(.name-container) {
            display: none;
        }
    }

    .name-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
        max-height: none;
        padding-top: 0;
    }

    .name-container br {
        display: none;
    }

    .namelabel {
        position: static;
        margin-top: 0.05rem;
    }

    .tagline {
        margin: 2rem 0 2rem 0;
    }
}

.lastname {
    font-weight: 600;
    text-wrap: nowrap;
}

.tagline {
    font-style: italic;
}

.styled-link {
    display: inline-block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-color);
    transition: background-color 0.3s;
}