/* Layout */

main {
    justify-content: flex-start;
}

/* Hero */

.cv-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    padding: 1rem 0 1.5rem;

    .image-container {
        flex: none;
        width: 8.5rem;
        height: 8.5rem;

        > img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
    }

    h1 {
        margin-top: 0;
        font-size: 2.25rem;
        font-weight: 900;
        line-height: 1;
    }
}

.cv-title {
    margin: 0.5rem 0 0;
    color: var(--secondary-color-light);
}

.cv-contact {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    text-align: left;
    color: var(--secondary-color-light);

    a {
        color: var(--secondary-color-light);
        text-decoration: none;
    }

    a:hover {
        color: var(--secondary-color);
    }
}

@media (max-width: 640px) {
    .cv-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .cv-hero .image-container {
        width: 8rem;
        height: 8rem;
    }

    .cv-contact {
        text-align: center;
    }
}

/* Entries */

.cv-entry {
    margin-top: 1.5rem;
}

.cv-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;

    h3 {
        margin-top: 0;

        a {
            color: inherit;
            text-decoration: none;
            transition: opacity 0.5s ease-in-out;
        }

        a:hover {
            opacity: 0.6;
        }
    }
}

.cv-date {
    flex: none;
    font-size: 0.875rem;
    font-weight: 300;
    white-space: nowrap;
    color: var(--secondary-color-light);
}

.cv-org {
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--secondary-color-light);
}

/* Print */

@media print {
    nav,
    footer {
        display: none;
    }

    body {
        min-height: 0;
        padding: 0;
        background: #fff;
    }

    main {
        display: block;
        padding: 0;
    }

    .cv-hero .image-container > img {
        cursor: default;
    }

    .cv-entry {
        break-inside: avoid;
    }
}

@page {
    margin: 1.5cm;
}
