body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--color-fg-default);
    margin: 0;
    padding: 0;
    background-color: #24292f;
}

aside {
    margin: .25rem auto;
    text-align: center;
    color: var(--color-fg-subtle);
    font-size: 0.75rem;
}

:root {
    --color-fg-default: #24292f;
    --color-fg-muted: #57606a;
    --color-fg-subtle: #6e7781;
    --color-accent-fg: #0366d6;
    --color-accent-subtle: #ddf4ff;
    --color-neutral-muted: rgba(175, 184, 193, 0.2);
    --color-border-default: #d0d7de;
    --color-a-contrast: #c8b20f;
}

main {
    width: 216mm;
    min-height: 279mm;
    max-height: 279mm;
    border: 1px solid #d0d7de;
    background-color: white;
    margin: 1rem auto;
    overflow: hidden;
}

main>div {
    padding: 8mm;
    height: calc(279mm - 16mm);
    overflow: hidden;
}

@media print {
    @page {
        size: Letter;
        margin: 0;
    }

    html,
    body {
        width: 216mm;
        height: 279mm;
    }

    aside {
        display: none;
    }

    main {
        margin: 0;
        padding: 0;
        border: none;
        print-color-adjust: exact;
        height: 279mm;
        overflow: hidden;
    }

    main>div {
        height: 279mm;
        overflow: hidden;
    }
}

h1 {
    font-size: 1.4rem;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
}

h1 .subtitle {
    font-style: italic;
    color: var(--color-fg-muted);
    font-size: 1rem;
}

h2 {
    font-size: 0.95rem;
    margin: 0.8rem 0 0.3rem 0;
    border-bottom: 1px solid var(--color-border-default);
    text-transform: uppercase;
    font-weight: 600;
}

nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border-default);
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
}

nav a,
nav .location {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.75rem;
    color: var(--color-accent-fg);
    text-decoration: none;
}

nav .location {
    color: var(--color-fg-muted);
    font-weight: 500;
}

nav svg {
    margin-right: 0.2rem;
    flex-shrink: 0;
}

.summary {
    margin-bottom: 0.8rem;
}

.summary p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

section {
    margin-bottom: 0.6rem;
}

.experience {
    margin-bottom: 0.8rem;
}

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

.exp-header strong {
    font-size: 0.9rem;
}

.exp-header time {
    font-size: 0.75rem;
    color: var(--color-fg-muted);
    font-style: italic;
}

.company-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-fg-subtle);
    margin-bottom: 0.3rem;
    font-style: italic;
}

ul.compact {
    margin: 0.2rem 0 0.4rem 0;
    padding-left: 1rem;
    list-style-type: disc;
}

ul.compact li {
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.tech-tags,
.skills-compact {
    display: flex;
    flex-wrap: wrap;
    margin: 0.2rem 0;
    padding: 0;
}

.tech-tags dt,
.skills-compact dt {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 0.65rem;
    color: var(--color-fg-muted);
    background-color: var(--color-accent-subtle);
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

.two-column {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.left-column {
    flex: 1;
}

.right-column {
    flex: 1.5;
}

.two-column section {
    margin-bottom: 0.5rem;
}

.two-column h2 {
    font-size: 0.9rem;
    margin: 0.4rem 0 0.2rem 0;
}

.two-column article {
    font-size: 0.75rem;
}

.two-column article strong {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.1rem;
    margin-top: 0.3rem;
}

.two-column article strong:first-child {
    margin-top: 0;
}

.two-column p {
    margin: 0.1rem 0;
    line-height: 1.3;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: var(--color-accent-fg);
}

aside a,
aside a:link,
aside a:visited,
aside a:hover,
aside a:active {
  color: var(--color-a-contrast);
}

strong {
    font-weight: 600;
}

em {
    color: var(--color-fg-muted);
    font-size: 0.75rem;
}