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

body {
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
    padding: 2rem 1rem;
}

.resume {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.subheading {
    color: #666;
    margin-bottom: 0.25rem;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.contact-links {
    display: flex;
    flex-direction: column;
    color: #666;
}

.contact-links a {
    color: #2563eb;
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background-color: #999;
    padding: 0.25rem 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.h2-note {
    font-size: 0.7em;
    font-variant: all-small-caps;
    font-weight: 400;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.75rem;
    margin-left: 0.5rem;
    margin-bottom: 0.75rem;
}

.company {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.company-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: right;
}

.role {
    font-weight: 600;
    color: #333;
}

.dates {
    font-weight: 400;
    color: #666;
}

.role-block {
    border: 1px dashed #ccc;
    border-radius: 0.3rem;
    background-color: #fdfdfd;
    padding: 0.75rem 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
}

.role-block ul {
    margin-bottom: 0;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.role-summary {
    color: #555;
    margin-bottom: 0.5rem;
}

.oss-summary {
    color: #555;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.35rem;
}

.skills {
    margin-left: 1rem;
    margin-right: 1rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
}

.logo {
    width: 128px;
    height: 128px;
    opacity: 0.3;
}

@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }

    .resume {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .company {
        font-size: 1rem;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
        font-size: 0.85rem;
    }

    .resume {
        box-shadow: none;
        padding: 0;
    }

    header {
        margin-bottom: 0;
    }

    h2 {
        color: #1a1a1a;
        background-color: transparent;
        border-bottom: 1px dashed #ccc;
        padding: 0 0 0.25rem 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .company-header {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .skills {
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .dates {
        font-style: italic;
        color: #666;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .role-header {
        margin-top: 0;
        margin-bottom: 0.25rem;
    }

    .role-block {
        border: none;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0.25rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    footer {
        display: none;
    }
}
