/* This stylesheet is loaded only on the existing tech category archive. */
body.category-tech {
    --remoooo-card-bg: #1b1c1f;
    --remoooo-card-border: #33363c;
    --remoooo-card-text: #f3f5f8;
    --remoooo-card-muted: #b4bac5;
    --remoooo-card-accent: #a4c7ff;
}

body.category-tech .remoooo-article-index {
    box-sizing: border-box;
    width: calc(100% - 3rem);
    max-width: 1120px;
    margin: 3rem auto 5rem;
    padding: 0;
    color: var(--remoooo-card-text);
}

.category-tech .remoooo-archive-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--remoooo-card-border);
}

.category-tech .remoooo-archive-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.category-tech .remoooo-archive-count {
    margin: 0;
    color: var(--remoooo-card-muted);
    font-size: .875rem;
    line-height: 1.5;
}

.category-tech .remoooo-archive-query {
    margin: 0;
}

.category-tech .remoooo-article-index .remoooo-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-tech .remoooo-post-grid > li {
    display: flex;
    min-width: 0;
    margin: 0;
}

.category-tech .remoooo-post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--remoooo-card-border);
    border-radius: 1rem;
    background: var(--remoooo-card-bg);
    transition: border-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
    .category-tech .remoooo-post-card:hover {
        transform: translateY(-3px);
        border-color: #6d809f;
    }
    .category-tech .remoooo-card-cover a:hover img {
        transform: scale(1.025);
    }
}

.category-tech .remoooo-post-card > *,
.category-tech .remoooo-card-body > * {
    margin: 0;
}

.category-tech .remoooo-card-cover {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--remoooo-card-border);
    background: #242932;
}

.category-tech .remoooo-card-cover a,
.category-tech .remoooo-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
}

.category-tech .remoooo-card-cover img {
    object-fit: cover;
    transition: transform .25s ease;
}

.category-tech .remoooo-card-cover--empty a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa3c3;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -.04em;
    text-decoration: none;
}

.category-tech .remoooo-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: .875rem;
    padding: 1.375rem;
}

.category-tech .remoooo-card-date {
    color: var(--remoooo-card-muted);
    font-size: .875rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    letter-spacing: .025em;
}

.category-tech .remoooo-card-title {
    min-height: 3.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.category-tech .remoooo-card-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--remoooo-card-text);
    text-decoration: none;
}

.category-tech .remoooo-card-excerpt {
    color: var(--remoooo-card-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.category-tech .remoooo-card-excerpt p {
    display: -webkit-box;
    min-height: 4.95rem;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-tech .remoooo-card-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: .5rem;
    color: var(--remoooo-card-accent);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    text-underline-offset: .25em;
}

.category-tech .remoooo-card-title a:hover,
.category-tech .remoooo-card-link:hover {
    color: #c8ddff;
    text-decoration: underline;
}

.category-tech .remoooo-archive-pagination {
    gap: .5rem;
    margin-top: 2.5rem;
    font-size: .9375rem;
}

.category-tech .remoooo-archive-pagination > * {
    margin: 0;
}

.category-tech .remoooo-archive-pagination .wp-block-query-pagination-numbers {
    display: flex;
    gap: .5rem;
}

.category-tech .remoooo-archive-pagination a,
.category-tech .remoooo-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    box-sizing: border-box;
    border: 1px solid var(--remoooo-card-border);
    border-radius: .625rem;
    padding: .5rem .875rem;
    color: var(--remoooo-card-text);
    text-decoration: none;
    line-height: 1.3;
}

.category-tech .remoooo-archive-pagination .current {
    border-color: var(--remoooo-card-accent);
    background: var(--remoooo-card-accent);
    color: #111722;
}

.category-tech .remoooo-archive-pagination a:hover {
    background: #29313d;
    border-color: #6d809f;
}

.category-tech .remoooo-article-index a:focus-visible {
    outline: 3px solid var(--remoooo-card-accent);
    outline-offset: 4px;
    border-radius: .25rem;
}

@media (max-width: 960px) {
    .category-tech .remoooo-article-index .remoooo-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.category-tech .remoooo-article-index {
        width: calc(100% - 2.5rem);
        margin-top: 2rem;
    }
    .category-tech .remoooo-article-index .remoooo-post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
    .category-tech .remoooo-archive-heading {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    .category-tech .remoooo-archive-pagination {
        flex-wrap: wrap;
        row-gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-tech .remoooo-post-card,
    .category-tech .remoooo-card-cover img {
        transition: none;
    }
}
