:root {
    --highlight-color: #7393c0;
    --washedout-color: #e2e0de;
}

body {
    max-width: 1200px;
    font-family: sans-serif;
    font-size: 12px;
}

@page {
    margin: 0 1cm 0 0;
}

#tabular {
    section {
        h1 {
            margin: 1rem 0;
        }

        hr {
            color: var(--highlight-color);
        }
    }

    #title {
        h1 {
            font-size: 4rem;
        }

        p {
            margin-bottom: 1.5rem;
        }
    }
}

p {
    margin: 0;
}

#warning {
    color: red;
}

#cv {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 1rem;
}

#personal {
    background-color: var(--washedout-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    padding-top: 1rem;

    text-align: left;

    h1 {
        margin-bottom: 0;
    }

    > * {
        width: 80%;
    }

    .headshot {
        aspect-ratio: 1;
        border-radius: 50%;
        object-fit: cover;
    }

    address {
        font-style: normal;

        * > img {
            width: 0.8rem;
            aspect-ratio: 1;
            padding-right: 5px;
        }

        * a {
            text-decoration: none;
            color: black;
        }
    }

    #skills {
        & > ul {
            padding: 0;
            list-style: none;

            & > li {
                padding-bottom: 1rem;
            }
        }
    }

    #download {
        display: grid;
        justify-content: center;

        button {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--highlight-color);

            img {
                width: 100%;
                aspect-ratio: 1;
            }
        }
    }
}

@media print {
    #download {
        display: none !important;
    }
}

.timeline {
    list-style-type: disc;

    .timeline-entry {
        margin-bottom: 1rem;
    }

    ::marker {
        color: var(--highlight-color);
    }

    .timeline-entry-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0 0 1rem 0;
    }

    .timeline-entry-title {
        font-weight: bold;
    }

    .timeline-entry-company {
        font-style: italic;
    }

    .timeline-entry-date {
        color: gray;
    }

    .timeline-entry-description {
        p {
            margin: 1rem 0;
        }
        li {
            margin-top: 0.7rem;
        }
    }
}
