/* Catalog page. */

.catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}
.brand-title { font-weight: 600; }

.brand-sub {
    font-size: 12px;
    color: var(--ink-soft);
}

.catalog-list {
    display: flex;
    flex-direction: column;
}

.card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.card-announced { opacity: 0.6; }

.card-cover {
    flex: 0 0 72px;
    align-self: flex-start;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--tag-bg);
    display: grid;
    place-items: center;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    margin: 0 0 2px;
    font-size: 18px;
}

.card-author {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--ink-soft);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-hint {
    font-size: 13px;
    color: var(--ink-soft);
}

.catalog-foot {
    margin-top: 20px;
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
}

.catalog-foot a {
    color: var(--accent);
    text-decoration: underline;
}

/* ---------- desktop ----------
 * Same DOM: the single-column stack becomes a grid of the same cards. The
 * container widens only here, so the phone layout is untouched.
 */

@media (width >= 900px) {
    .catalog { max-width: var(--measure-wide); }

    .catalog-head {
        padding-bottom: 20px;
        margin-bottom: 8px;
    }

    /* Cards keep their own height; without this a row's tallest card would drag
     * the others' bottom rules down with it. */
    .catalog-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        align-items: start;
        column-gap: 32px;
    }

    /* Bigger covers to match the extra room; the card keeps its shape. */
    .card-cover { flex: 0 0 96px; }

    .catalog-foot { margin-top: 32px; }
}
