/* Content-first catalog, compact footer and query-route page additions. */

.catalog-head {
    padding: clamp(28px, 3.4vw, 44px) 0 0;
    background: var(--paper);
}

.catalog-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.catalog-head__title h1 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 13px;
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

.catalog-total {
    color: var(--clay);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.catalog-head__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-bottom: 6px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.03em;
}

.catalog-head__meta span + span {
    position: relative;
}

.catalog-head__meta span + span::before {
    content: "·";
    position: absolute;
    left: -12px;
    color: var(--line-strong);
}

.catalog-head__meta strong {
    color: var(--ink);
    font-weight: 500;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 6px 7px 6px 18px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.catalog-search:focus-within {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

.catalog-search__icon {
    display: inline-flex;
    color: var(--muted);
}

.catalog-search__icon .icon {
    width: 17px;
    height: 17px;
}

.catalog-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12.5px;
}

.catalog-search input[type="search"]::placeholder {
    color: #9a9388;
}

.catalog-search .button {
    min-height: 42px;
    padding-inline: 18px;
}

.catalog-search__clear {
    display: grid;
    place-items: center;
    flex: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
}

.catalog-search__clear:hover {
    background: var(--ink);
    color: var(--paper-light);
}

.catalog-search__clear .icon {
    width: 12px;
    height: 12px;
}

.site-footer--compact {
    padding: 30px 0 22px;
}

.compact-footer__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(250, 247, 241, 0.14);
}

.compact-footer__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
}

.compact-footer__nav a {
    color: rgba(250, 247, 241, 0.6);
    font-size: 10.5px;
    transition: color 0.2s ease;
}

.compact-footer__nav a:hover {
    color: var(--clay);
}

.compact-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 15px;
    color: rgba(250, 247, 241, 0.28);
    font-family: var(--font-mono);
    font-size: 7.5px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.compact-footer__legal span {
    text-align: right;
}

@media (max-width: 900px) {
    .catalog-head__row {
        display: block;
    }

    .catalog-head__meta {
        margin-top: 16px;
        padding-bottom: 0;
    }
}

@media (max-width: 720px) {
    .catalog-head {
        padding-top: 24px;
    }

    .catalog-head__title h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .catalog-head__meta {
        font-size: 8px;
    }

    .catalog-search {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        margin-top: 19px;
        padding: 4px 4px 4px 14px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .catalog-search input[type="search"] {
        height: 41px;
        font-size: 12px;
    }

    .catalog-search .button {
        grid-column: 1 / -1;
        min-height: 40px;
    }

    .catalog-search__clear {
        width: 23px;
        height: 23px;
    }

    .compact-footer__main {
        display: block;
        padding-bottom: 18px;
    }

    .compact-footer__nav {
        margin-top: 17px;
        gap: 10px 18px;
    }

    .compact-footer__nav a {
        font-size: 9.5px;
    }

    .compact-footer__legal {
        display: block;
        font-size: 7px;
    }

    .compact-footer__legal span {
        display: block;
        margin-top: 4px;
        text-align: left;
    }
}
