:root {
    --theme1: #e4a672;
    --theme2: #b86f50;
    --theme3: #733e39;
    --theme4: #3e2731;
    --theme5: #2b1d2b;
}

/* @media (prefers-color-scheme: light) {
    :root {
        --theme1: #733e39;
        --theme2: #b86f50;
        --theme3: #b86f50;
        --theme4: #e4a672;
        --theme5: #ead4aa;
    }
} */

*,
::before,
::after {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
    font-family: inherit;
    vertical-align: baseline;
    list-style: none;
    border-collapse: collapse;
    border-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*:focus {
    outline: none;
}

::selection {
    background: var(--theme1);
    opacity: 1;
    color: var(--theme4);
    padding: 10px; /* Safari */
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: var(--theme3);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--theme2);
}

body {
    background-color: var(--theme5);
    color: var(--theme2);
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    height: 100svh;
    width: 100vw;
    overflow: hidden;
}

#content {
    display: flex;
    flex-flow: column nowrap;
    background-color: var(--theme4);
    max-width: 900px;
    margin: auto;
    border: 1px solid var(--theme3);
    border-top: none;
    border-bottom: none;
    height: 100%;
    padding: 16px;
}

#header {
    display: flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    border-bottom: 1px solid var(--theme3);
    padding-bottom: 16px;
    overflow-x: auto;
}

#logo {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    margin-right: 4px;
}

#logo-bg {
    font-family: monospace;
    line-height: 1rem;
    margin-bottom: 0.25rem;
}

#logo-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 48px;
}

#title {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme1);
    margin-bottom: 4px;
}

#nav {
    display: flex;
    flex-flow: row nowrap;
    height: 100%;
}

.nav-list {
    display: flex;
    flex-flow: column nowrap;
    padding: 0 8px;
    max-height: 68px;
    overflow-y: scroll;
    /* text-align: right; */
}

.nav-list a.selected {
    color: var(--theme1);
}

a {
    transition: color 0.15s;
}

a:hover,
a:focus {
    color: var(--theme1);
    transition: color 0.15s;
    text-decoration-line: underline;
}

#body {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    overflow: hidden;
}

#list {
    height: 100%;
    padding: 16px 0;
    padding-right: 8px;
    overflow-y: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.list-item {
    padding: 8px;
    background-color: var(--theme5);
    margin-bottom: 8px;
}

.list-item:target {
    /* border: 1px solid var(--theme3); */
    background-color: var(--theme3);
}

.list-item:target .list-item-subtitle {
    color: var(--theme2);
}

.list-item:target .list-item-description {
    color: var(--theme2);
}

.list-item:target .list-item-description a {
    text-decoration-color: var(--theme2);
}

.list-item-description a {
    text-decoration-line: underline;
    text-decoration-color: var(--theme3);
}

/* .list-item-description a:hover {
    text-decoration-color: var(--theme1);
    transition: text-decoration-color 0.15s;
} */

.list-item-title {
    color: var(--theme1);
    font-weight: 500;
}

.list-item-subtitle {
    color: var(--theme3);
}

.list-item-description {
    font-family: "IBM Plex Sans", sans-serif;
}

#footer {
    border-top: 1px solid var(--theme3);
    padding-top: 4px;
    margin-bottom: -12px;
    color: var(--theme3);
    text-align: center;
}

#footer a:hover {
    color: var(--theme2);
}

.social {
    height: 16px;
    filter: invert(63%) sepia(9%) saturate(2812%) hue-rotate(331deg)
        brightness(76%) contrast(84%);
    transition: filter 0.15s;
}

.social:hover {
    filter: invert(72%) sepia(43%) saturate(483%) hue-rotate(339deg)
        brightness(93%) contrast(91%);
    transition: filter 0.15s;
}

#ring img {
    height: 16px;
    filter: invert(26%) sepia(17%) saturate(1489%) hue-rotate(317deg)
        brightness(96%) contrast(88%);
    transition: filter 0.15s;
}

#ring img:hover {
    filter: invert(63%) sepia(9%) saturate(2812%) hue-rotate(331deg)
        brightness(76%) contrast(84%);
    transition: filter 0.15s;
}

@media screen and (max-width: 380px) {
    #ring,
    #top {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    #content {
        border: none;
    }
}
