* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base fonts */
html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Serif fonts for headings */
h1, h2 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 {
    font-size: 2.2em;
    font-weight: normal;
}

h2 {
    font-size: 1.4em;
    font-weight: normal;
    color: #444;
}

h3 {
    font-size: 1.05em;
    font-weight: normal;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #222;
}

em {
    font-style: italic;
    font-weight: 500;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Body text */
body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0em 2em;
    background-color: #fafafa;
}

p {
    margin: 0.5em 0;
}

ul {
    margin: 0.5em 0 0.5em 1.5em;
}

li {
    margin: 0.5em 0;
}

/* Header styling */
header {
    display: flex;
}

#contact {
    flex: 1;
}

#social {
    align-content: center;
}

#social {
    margin-left: 0;
    list-style-type: none;
}

#social li {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Sections */
section {
    margin-bottom: 2em;
}

/* Work experience */
#work-experience article {
    border-left: 1px solid #e0e0e0;
    padding: 0 0 1em 1em;
}

#work-experience h3 {
    margin-top: 0;
}

#employers {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1em;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }

    main {
        box-shadow: none;
        padding: 0;
        background-color: white;
    }

    h1 {
        border-bottom: 1px solid #333;
    }
}
