.explore {
    --muted: #9c9c9c;
    flex: 1;
    line-height: 1.2;
}

.explore h1 {
    margin: 0 6px 22px;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 700;
}

.search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: .5px solid var(--border);
    border-radius: 30px;
    background: var(--tile);
}

.search svg {
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 18px;
    stroke-width: 1.6;
}

.search input {
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    caret-color: var(--link);
    font: inherit;
    font-size: .875rem;
}

.search input::placeholder {
    color: var(--muted);
}

.search input::-webkit-search-cancel-button {
    display: none;
}

.search-clear {
    display: grid;
    flex: 0 0 24px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search input:placeholder-shown + .search-clear {
    display: none;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 31px 0 16px;
}

.categories button {
    display: grid;
    gap: 10px;
    justify-items: start;
    align-content: center;
    min-height: 90px;
    padding: 12px clamp(12px, 3vw, 24px);
    border: .5px solid var(--border);
    border-radius: 16px;
    background: var(--tile);
    color: inherit;
    font: 400 .875rem/1.2 Menlo, monospace;
    cursor: pointer;
}

.categories button:hover, .categories button[aria-pressed="true"] {
    border-color: var(--link);
}

.categories button[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px var(--link);
}

.categories img {
    display: block;
    width: 24px;
    height: 24px;
}

.article-results {
    margin: 0 11px;
}

#empty-results {
    margin: 0;
    padding: 32px 0;
    text-align: center;
}

#empty-results span {
    display: block;
    margin-top: 8px;
    font-size: .875rem;
}

.article-row {
    padding: 28px 0;
}

.article-row + .article-row {
    border-top: 1px solid var(--border);
}

.article-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 1.75rem;
    margin-bottom: 6px;
    font: 400 .75rem/1.4 Menlo, monospace;
}

.article-metadata .article-date,
.article-metadata .article-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font: inherit;
}

.article-metadata img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.article-type img {
    filter: brightness(0) invert(61.176%);
}

.article-row h2 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.15;
}

.article-row h2 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--link);
    text-underline-offset: .2em;
    line-height: inherit;
}

.article-row p {
    margin: 0;
    font-size: .875rem;
}

#article-end {
    min-height: 1px;
}

.article-loading {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin: 16px auto;
    border: 2px solid var(--border);
    border-top-color: var(--link);
    border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
    .article-loading {
        animation: article-loading-spin .7s linear infinite;
    }
}

@keyframes article-loading-spin {
    to { transform: rotate(360deg); }
}

.home-footer:not([hidden]) {
    display: grid;
    text-align: center;
    font-size: .8rem;
}

@media (max-width: 560px) {
    .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-results {
        margin-inline: 0;
    }

    .article-row h2 {
        font-size: 1rem;
    }
}
