header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 10000;
}

html {
  scroll-padding-top: 75px;
}

:root { --scroll-threshold: 120px; }

.header-backdrop {
    /* https://www.joshwcomeau.com/css/backdrop-filter/ */
    position: absolute;
    inset: 0;

    height: 200%;
    background: linear-gradient(
        to bottom,
        #f9f9f9 0%,
        transparent 50%
    );
    backdrop-filter: blur(12px) brightness(100%);
    mask-image: linear-gradient(
        to bottom,
        black 0% 50%,
        transparent 50% 100%
    );
    pointer-events: none;
}

.navbar {
    display: flex;
    align-items: baseline;
    height: 100%;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-right: 30px;
    z-index: 1;

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 15px;
}

.logo-image {
    height: 35px;
    width: auto;
    align-self: center;
}

.logo-text {
    color: #333;
    font-size: 28px;
    font-weight: 200;
    white-space: nowrap;
}

.navbar-links {
    font-size: 18px;
    font-weight: 200;
    display: flex;
    align-items: baseline;
    gap: 20px;
    z-index: 1;
}

.navbar-links a {
  color: black;
  text-decoration: none;
}

.navbar-links a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}


@media (min-width:  1201px) {

}

@media (max-width: 1200px) {
    .navbar {
        width: 85%;
    }
}

@media (max-width: 800px) {
    :root { --scroll-threshold: 0px; }

    html {
      scroll-padding-top: 110px;
    }

    header {
        height: 105px;
    }

    .navbar {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;


        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    :root { --scroll-threshold: 50px; }

    html {
      scroll-padding-top: 18px;
    }

    header {
        position: static;
        height: 188px;
    }

    .header-backdrop {
        height: 0px;
    }

    .navbar {
        padding-left: 0;
        padding-right: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar-logo {
        padding-right: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .navbar-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
    }

    .navbar-links a {
        font-size: 20px;
    }

    .navbar-links a.active {
        text-decoration: none;
    }
}
