/* BASE */


@font-face {
    font-family: 'Condiment';
    src: url('/fonts/condiment-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

header {
    display: flex;
    align-items: center;
    position: relative;
    grid-column: 1 / 4;
    height: 48px;
    background-color: #24657f;
}

header .header-title {
    position: absolute;
    left: 50%;
    width: max-content;
    height: 48px;
    background: linear-gradient(to right, transparent, #1a495b, transparent);
    transform: translateX(-50%);
}

header .header-title a {
    display: inline-block;
    padding: 0 1.5em;
    background: linear-gradient(105deg,
            #c8a84b 0%,
            #f5e17a 25%,
            #c8a84b 40%,
            #fceeb7 55%,
            #c8a84b 70%,
            #f5e17a 85%,
            #c8a84b 100%);
    background-size: 300% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    text-decoration: none;
    font-family: "Condiment", Georgia, 'Times New Roman', Times, serif;
    font-size: 36px;
    transform: translateY(4px);
    transition: background-position 1s ease;
}

header .header-title a:hover {
    background-position: 100% center;
    text-decoration: none;
}


/* HEADER ICONS */


.header-icons {
    display: none;
}

.header-icons .disabled {
    pointer-events: none;
    cursor: default;
    filter: invert(1);
}


/* MENU BUTTON */


#header-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4vw;
    border: none;
    background: none;
    cursor: pointer;
    filter: drop-shadow(2px 2px 4px rgba(37, 34, 29, 0.5));
    transform-origin: top center;
    transition: transform 0.25s ease;
    z-index: 22;
}

#header-menu-btn:hover {
    transform: translateY(8px);
}

.bookmark-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 64px;
    padding-top: 10px;
    background: #8c3948;
    color: #f5eee0;
    font-size: 1.5rem;
}

.bookmark-tail {
    width: 0;
    height: 0;
    border-right: 24px solid #8c3948;
    border-left: 24px solid #8c3948;
    border-bottom: 12px solid transparent;
}


/* FOOTER */


footer {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    gap: 0.5em;
    grid-column: 1 / 4;
    padding: 1rem 0;
    background-color: #24657f;
    color: #eeece7;
    text-align: center;
}

footer a:any-link,
.dark body footer a:any-link {
    color: #f5e17a;
}

footer a:any-link:hover,
footer a:any-link:active,
.dark body footer a:any-link:hover,
.dark body footer a:any-link:active {
    color: #f5e17a;
    text-decoration: underline;
}


/* DARK MODE */


.dark body header,
.dark body footer {
    background-color: #1a495b;
}

.dark body header .header-title {
    background: linear-gradient(to right, transparent, #193c4a, transparent);
}

.dark body #header-menu-btn {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.25));
}

.dark body .bookmark-body {
    background-color: #67202f;
}

.dark body .bookmark-tail {
    border-right: 24px solid #67202f;
    border-left: 24px solid #67202f;
}


/* SHARED TABLET, MOBILE LANDSCAPE, & DESKTOP */


@media screen and (orientation: landscape) and (min-width: 80rem),
screen and (orientation: landscape) and (max-width: 80rem),
screen and (orientation: portrait) and (min-width: 60vmax) {
    #header-menu-btn {
        padding: 0 8px;
    }

    body.home .header-icons {
        display: flex;
        align-items: center;
        gap: 0.66em;
        margin-left: auto;
        padding: 0 min(1rem, 2vw);
    }

    body.home .header-icons img,
    .dark body.home .header-icons img {
        width: auto;
        height: 30px;
        filter: brightness(0) invert(1);
        opacity: 0.25;
        transition: 0.25s ease;
    }

    body.home .header-icons img:hover {
        cursor: pointer;
        opacity: 0.66;
        transform: scale(1.2);
        transition: 0.25s ease;
    }
}