:root {
    color-scheme: light dark;
    --bg: light-dark(#fff, #1b1b1b);
    --theme-colors: light-dark(#92cafa, #054072);
    --menu: light-dark(#555, #c7c7c7);
    --hr-border: light-dark(#8b8b8b, #a1a1a1);
}
* {
    -webkit-tap-highlight-color: transparent;
    scrollbar-color: var(--theme-colors) var(--bg);
}
body {
    color: light-dark(#333333, #c7c7c7);
    background-color: var(--bg);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    word-wrap: break-word;
}
header, .date, blockquote, footer {
    font: bold 14px "Lexend", sans-seri;
}
header {
    top: 0;
    z-index: 1;
    position: fixed;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
    & a {
        color: var(--menu);
        text-decoration: none;
        display: flex;
        &:hover {
            color: color-mix(in oklch, var(--menu) 75%, transparent);
        }
    }
    & .menu {
        overflow: hidden;
        transition: transform 0.3s ease;
        & ul {
            display: flex;
            padding: 0;
            list-style: none;
            margin: 0;
            width: 100vw;
            line-height: 1.7;
            background-color: var(--theme-colors);
        }
        & a {
            padding: 0.75em 15px;
        }
        & i {
            margin-right: 5px;
            line-height: 1.7;
        }
        & .title {
            display: inline-block;
            margin-left: 60px;
        }
    }
    & .menu-open {
        display: none;
    }
}
.menu-hidden {
    transform: translateY(-100%);
}
@media (max-width: 700px) {
    header .menu {
        top: 0;
        left: 0;
        z-index: 1;
        position: fixed;
        display: none;
        & .title {
            display: none;
        }
        &:target {
            display: block;
        }
        & a {
            margin: auto;
            min-width: 200px;
            width: 80%;
            text-align: center;
            justify-content: center;
        }
        & i {
            min-width: 20px;
            max-width: 50px;
            width: 10%;
        }
        & span {
            min-width: 100px;
            max-width: 150%;
            width: 20%;
        }
        & ul {
            display: block;
            padding: 3em 0 0;
        }
        &:target + .backdrop {
            top: 0;
            position: fixed;
            display: block;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.45);
        }
    }
    header .menu-open {
        display: block;
        background-color: var(--theme-colors);
        line-height: 50px;
    }
    header .title a {
        z-index: 2;
        position: relative;
        color: var(--menu);
        cursor: pointer;
        text-align: center;
    }
}
main {
    width: 85%;
    max-width: 75ch;
    padding-top: 80px;
    line-height: 1.5;
    margin: 1rem auto;
}
.icon {
    color: inherit;
    margin-right: 5px;
}
a {
    color: #66afef;
    text-decoration: none;
    &:not(header a, .LE a, .avatar) {
        position: relative;
        &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 2px;
            background-color: currentColor;
            transition: width 0.3s ease;
        }
        &:hover::after {
            width: 100%;
        }
    }
}
blockquote {
    background-color: light-dark(#d9e8ff6b, #23435e);
    border-left: 3px solid light-dark(#1e3e3f, #c1c1c1);
    border-radius: 3px;
    margin: 15px 0;
    overflow: auto;
    padding: 0 15px;
}
pre {
    overflow: auto;
    white-space: pre;
    font: 12px monospace;
    padding: 0.5em 0.5em;
    border: 1px solid light-dark(#0002, #fff2);
    border-radius: 1em;
    background-color: light-dark(#f6f8fa, #2c2c2c);
}
details[open] summary {
    margin-bottom: 0.5em;
}
.hr-solid-content {
    color: var(--hr-border);
    border: 0;
    font-size: 12px;
    padding: 1em 0;
    position: relative;
    overflow: hidden;
    &::before {
        content: attr(data-content);
        position: absolute;
        padding: 0 1ch;
        line-height: 1px;
        border: solid;
        border-width: 0 99vw;
        width: fit-content;
        white-space: nowrap;
        left: 50%;
        transform: translateX(-50%);
        border-image: repeating-linear-gradient(90deg, var(--hr-border), var(--hr-border) 1px, transparent 1px, transparent 2px) 0 85%;
    }
}
footer {
    color: light-dark(#5c6b72, #c7c7c7);
    border-top: 1px solid #aaa;
    text-align: center;
    margin: auto;
    width: 85%;
    max-width: 75ch;
    padding-bottom: 20px;
    margin-top: 150px;
    & div {
        margin: 15px;
    }
}
