/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {
    .brand__text {
        display: none;
    }

    .primary-navigation {
        gap: 1rem;
        font-size: 0.98rem;
    }

    .player-details__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-detail {
        border-bottom: 1px solid var(--color-border);
    }

    .player-detail:nth-child(even) {
        border-right: 0;
    }

    .player-detail:last-child {
        grid-column: 1 / -1;
    }

    .social-link-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   MOBILE NAVIGATION AND LAYOUT
========================================================== */

@media (max-width: 820px) {
    .site-header__inner {
        min-height: 82px;
    }

    .brand__logo {
        width: 66px;
        height: 66px;
    }

    .brand__text {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: 82px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        background: #020711;
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation a {
        padding: 0.9rem 0.5rem;
    }

    .hero {
        min-height: auto;
    }

    .hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(2, 7, 17, 0.05) 0%,
                rgba(2, 7, 17, 0.4) 45%,
                #020711 75%
            );
    }

    .hero__content {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero__portrait {
        grid-row: 1;
        min-height: 520px;
    }

    .hero__copy {
        grid-row: 2;
        margin-top: -150px;
        padding-block: 0 4rem;
    }

    .hero__title {
        font-size: clamp(4.4rem, 19vw, 7rem);
    }

    .two-column,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        max-height: 560px;
    }

    .site-footer__inner {
        grid-template-columns: auto 1fr;
    }

    .site-footer__legal {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 560px) {
    .container,
    .site-header__inner,
    .player-details__inner,
    .site-footer__inner {
        width: min(100% - 1.25rem, 1180px);
    }

    .brand__text strong {
        font-size: 1.2rem;
    }

    .brand__text small {
        font-size: 0.78rem;
    }

    .hero__portrait {
        min-height: 430px;
    }

    .hero__copy {
        margin-top: -95px;
    }

    .hero__meta span {
        margin-inline: 0.3rem;
    }

    .button-row {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .player-details__inner {
        grid-template-columns: 1fr;
    }

    .player-detail,
    .player-detail:nth-child(even) {
        border-right: 0;
    }

    .player-detail:last-child {
        grid-column: auto;
    }

    .latest-update {
        align-items: flex-start;
    }

    .latest-update__year {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 29px;
    }

    .timeline__item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 1rem;
    }

    .timeline__year {
        width: 60px;
        min-height: 52px;
        font-size: 1.1rem;
    }

    .definition-list div {
        grid-template-columns: 1fr;
    }

    .definition-list dd {
        text-align: left;
    }

    .link-hub a,
    .link-hub__disabled {
        align-items: flex-start;
        flex-direction: column;
    }

    .link-hub small {
        text-align: left;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer__logo {
        margin-inline: auto;
    }

    .site-footer__legal {
        text-align: center;
    }
}
