:root {
    --ink: #0f172a;
    --text: #0b1220;
    --muted: #516170;
    --accent: #5ec2e8;
}

/* Base */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--text)
}

body {
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    max-width: 850px;
    margin: 0 auto;
    padding: 36px;
}

/* Type */
h1,
h2 {
    margin: 0 0 6px;
    color: var(--ink)
}

h1 {
    font-size: 32px;
    letter-spacing: -.02em;
    line-height: 1.15
}

h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 18px
}

p {
    margin: 0 0 8px
}

ul {
    margin: 4px 0 6px 18px;
    padding: 0;
}

li {
    margin: 2px 0;
}

.muted {
    color: var(--muted)
}

header {
    position: relative;
}

/* Header line */
.topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px
}

.topline a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted #98a3ad
}

.topline a:hover {
    color: var(--ink)
}

.divider {
    height: 1px;
    background: #e6ecf1;
    margin: 10px 0 14px
}

/* Sections */
.section {
    margin-bottom: 18px;
}

.role {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px
}

.role .where {
    font-weight: 600
}

.role .when {
    color: var(--muted);
    font-size: 12px
}

/* Pills & skills */
.pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef7fb;
    border: 1px solid #d8edf6;
    color: #0d3b49;
    font-size: 12px;
    margin: 2px 4px 0 0
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}


/* Print */
@media print {
    body {
        padding: 18px;
        font-size: 12px;
        max-width: 100%
    }

    a {
        color: inherit;
        text-decoration: none;
        border: 0
    }
}

.download-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #0e2a47;
    padding: .4rem 1rem;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.download-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Keep inline until it’s really small */
@media (max-width: 420px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .download-btn {
        align-self: flex-start;
        font-size: 12px;
        padding: .35rem .9rem;
    }
}