@font-face {
    font-family: "Tag Digits";
    src: local("CourierNewPSMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    unicode-range: U+0030-0039;
}

.tagsearch-open {
    position: absolute;
    z-index: 11;
    margin: 0;
    width: 24px;
    height: 24px;
    padding: 2px;
    border: 0;
    background: transparent;
    color: #b8b8b4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.tagsearch-open svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.tagsearch-open:hover,
.tagsearch-open:focus-visible {
    color: #ffffff;
    outline: none;
}

.archive-section .tagsearch-open {
    top: calc(4px - var(--pt, 14px));
    right: calc(var(--pl, 12px) - var(--pr, 12px) - 2px);
}

@media screen and (min-width: 601px) {
    .archive-section .tagsearch-open {
        right: -54px;
        color: #383834;
    }

    .archive-section .tagsearch-open:hover,
    .archive-section .tagsearch-open:focus-visible {
        color: #080908;
    }
}

@media screen and (min-width: 601px) and (max-width: 960px) {
    .archive-section .tagsearch-open {
        right: -9px;
        color: #b8b8b4;
    }

    .archive-section .tagsearch-open:hover,
    .archive-section .tagsearch-open:focus-visible {
        color: #ffffff;
    }
}

.tags-title .tagsearch-open {
    top: -5px;
    right: 0;
    color: #383834;
}

.tags-title .tagsearch-open:hover,
.tags-title .tagsearch-open:focus-visible {
    color: #33332d;
}

.tagsearch {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 0 30px;
    background: rgba(8, 9, 8, .97);
    color: #c5c5c0;
    font-family: "Blue Screen", monospace;
}

.tagsearch.is-open {
    display: flex;
}

.tagsearch::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background: #080908;
    pointer-events: none;
}

.tagsearch-x {
    position: absolute;
    top: 25px;
    right: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #d6d6d2;
    font-family: "Blue Screen", monospace;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tagsearch-box {
    width: 100%;
    max-width: 560px;
    margin-top: 90px;
    flex: 0 0 auto;
}

.tagsearch-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #5a5a56;
    border-radius: 0;
    background: transparent;
    color: #e6e6e2;
    font-family: "Tag Digits", "Blue Screen", monospace;
    font-size: 22px;
    letter-spacing: 1.5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.tagsearch-input::placeholder {
    color: #6f6f6b;
    opacity: 1;
}

.tagsearch-list {
    width: 100%;
    max-width: 560px;
    flex: 1 1 auto;
    min-height: 0;
    margin: 6px 0 0;
    padding: 0 0 24px;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3a37 transparent;
    -webkit-overflow-scrolling: touch;
}

.tagsearch-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 11px 0;
    border: 0;
    background: none;
    color: #c5c5c0;
    font-family: "Tag Digits", "Blue Screen", monospace;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tagsearch-item b {
    font-weight: normal;
    color: #fff;
}

.tagsearch-count {
    flex: 0 0 auto;
    color: #6f6f6b;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.tagsearch-none {
    padding: 14px 0;
    color: #6f6f6b;
    font-size: 14px;
    letter-spacing: 1.5px;
}

@media (hover: hover) and (pointer: fine) {
    .tagsearch-item:hover,
    .tagsearch-item:focus-visible {
        color: #fff;
        outline: none;
    }

    .tagsearch-x:hover {
        color: #fff;
    }
}

@media screen and (max-width: 600px) {
    .tagsearch {
        padding: 0 20px;
    }

    .tagsearch-x {
        top: 18px;
        right: 20px;
        font-size: 30px;
    }

    .tagsearch-box {
        margin-top: 64px;
    }

    .tagsearch-input {
        font-size: 18px;
    }

    .tagsearch-item {
        font-size: 16px;
        padding: 12px 0;
    }
}
