/* ═══════════════════════════════════════════════════════════════════════════
   Impossible Matchups — Homepage
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Brand — homepage only ────────────────────────────────────────────────── */
/* Larger than card matchup names (21px) to anchor the page visual hierarchy. */
body[data-matchup="homepage"] .header-brand {
    font-size: 26px;
    letter-spacing: 0.2em;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.home-main {
    padding: 56px 0 80px;
    flex: 1;
}

.home-hero {
    text-align: center;
    margin-bottom: 48px;
}

.home-tagline {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--dim);
    text-transform: uppercase;
    font-family: var(--sans);
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
/* Outer border on grid; inner dividers come from card borders (not the old
   grid-background trick, which blocked the bg-image from bleeding through). */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-hi);
}

/* Left column: right border creates the vertical centre divider */
.home-card:nth-child(odd) {
    border-right: 1px solid var(--border-hi);
}

/* Top row: bottom border creates the horizontal centre divider */
.home-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--border-hi);
}

.home-card {
    display: flex;
    flex-direction: column;
    padding: 36px 40px 40px;
    background: rgba(12, 12, 12, 0.50);
    text-decoration: none;
    position: relative;
    transition: background 0.15s;
    min-height: 180px;
}

.home-card:hover {
    background: rgba(12, 12, 12, 0.40);
}

.home-card:hover .card-arrow {
    color: var(--yellow);
}

/* ── Card internals ───────────────────────────────────────────────────────── */
.card-discipline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--dim);
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--sans);
}

.card-matchup {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    line-height: 1.25;
    margin-bottom: 10px;
}

.card-matchup em {
    font-style: normal;
    font-weight: 400;
    color: var(--dim);
    font-size: 17px;
    letter-spacing: 0.05em;
}

.card-tagline {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--dim);
    font-style: italic;
    margin-top: auto;
    padding-top: 12px;
}

.card-arrow {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-size: 15px;
    color: var(--border-hi);
    transition: color 0.15s;
    font-style: normal;
}

/* ── More matchups box ────────────────────────────────────────────────────── */
.home-more {
    margin-top: 1px;          /* flush against the grid's bottom border */
    border: 1px solid var(--border-hi);
    border-top: none;         /* grid provides the top edge */
    padding: 20px 40px;
    display: flex;
    align-items: center;
}

.home-more-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    font-family: var(--sans);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    /* Single-column: no vertical divider; every card gets a bottom border
       except the last (the outer grid border handles the bottom edge). */
    .home-card:nth-child(odd) {
        border-right: none;
    }
    .home-card {
        border-bottom: 1px solid var(--border-hi);
        padding: 28px 24px 32px;
        min-height: 140px;
    }
    .home-card:last-child {
        border-bottom: none;
    }

    .home-main {
        padding: 40px 0 60px;
    }
}
