/* === Collection listing pages (work / experiments / community / brands) === */
/* Inherits tokens, type, and reveals from tokens.css / page.css / reveal.css. */

.listing-main {
    padding: 0 0 96px;
}

.listing-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Section header (matches homepage .section-header) --- */
.listing-shell .section-header {
    margin-top: 80px;
    margin-bottom: 40px;
}

/* --- Lead block: title + count --- */
.listing-lead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.listing-title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--text-1);
}

.listing-sub {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 12px;
    line-height: 1.4;
    max-width: 56ch;
}

.listing-count {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
    padding-bottom: 4px;
}

/* --- Grid --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .listing-grid { grid-template-columns: 1fr; }
}

/* --- Card --- */
.listing-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    min-height: 320px;
    transition: background 0.4s var(--ease-quart);
    color: inherit;
    text-decoration: none;
}

.listing-card:hover {
    background: var(--surface);
}

.listing-card-cover {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--line);
    margin-bottom: 20px;
    transition: opacity 0.5s var(--ease-quart);
    opacity: 0.9;
}

.listing-card:hover .listing-card-cover {
    opacity: 1;
}

.listing-card-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: baseline;
    line-height: 1.5;
}

.listing-card-meta span + span::before {
    content: '·';
    color: var(--text-3);
    opacity: 0.5;
    margin: 0 10px;
}

.listing-card-title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.25;
    color: var(--text-1);
    margin-top: auto;
    letter-spacing: -0.01em;
}

.listing-empty {
    padding: 80px 0;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    grid-column: 1 / -1;
}

/* --- Brand hero (used on /brands/<id>.html) --- */
.brand-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 48px;
}

.brand-hero-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 220px;
    filter: grayscale(1) brightness(1.6);
    opacity: 0.85;
}

.brand-name {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--text-1);
}

.brand-name-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    transition: opacity 0.2s var(--ease-quart);
}

.brand-name-link:hover { opacity: 0.7; }

.brand-name-arrow {
    font-size: 0.42em;
    color: var(--text-3);
    transform: translateY(-0.4em);
    transition: color 0.2s var(--ease-quart);
}

.brand-name-link:hover .brand-name-arrow { color: var(--text-1); }

.brand-hero-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

.brand-external {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    border: 1px solid var(--line);
    padding: 12px 18px;
    transition: color 0.3s var(--ease-quart), border-color 0.3s var(--ease-quart);
}

.brand-external:hover {
    color: var(--text-1);
    border-color: var(--text-3);
}
