:root {
    color-scheme: light;
    --paper: #fcfcfb;
    --ink: #191a1c;
    --muted: #4e5156;
    --rule: #dddeda;
    --underline: #a1a6ae;
    --accent: #244b83;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, p, ul {
    margin: 0;
}

h1, h2, h3, strong {
    font-weight: 650;
}

h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.055em;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -.025em;
}

h3 {
    font-size: 1rem;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration-color: var(--underline);
    text-underline-offset: .22em;
}

a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.shell {
    width: min(43rem, 100% - 2 * clamp(1.25rem, 5vw, 2.5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 1;
    top: .5rem;
    left: .5rem;
    padding: .5rem .75rem;
    background: var(--paper);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding-block: .75rem;
    border-bottom: 1px solid var(--rule);
    font-size: .8125rem;
}

.site-name {
    font-weight: 650;
    text-decoration: none;
}

.site-header nav, .links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.site-header nav a, .links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-header nav a:hover, .site-header nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
}

main {
    padding-bottom: 3rem;
}

.hero, .resume-header {
    padding-block: clamp(2rem, 6vw, 3.25rem) 1.65rem;
}

.hero-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portrait {
    display: block;
    width: clamp(3.5rem, 11vw, 4.5rem);
    height: auto;
    border-radius: .45rem;
}

.intro {
    margin-top: .8rem;
    color: var(--muted);
    font-size: 1.075rem;
}

.links {
    margin-top: .65rem;
    padding-left: 0;
    list-style: none;
    font-size: .875rem;
}

.content-section {
    padding-block: 1.6rem;
    border-top: 1px solid var(--rule);
}

.content-section > p {
    margin-top: .7rem;
    color: var(--muted);
}

.content-section strong {
    color: var(--ink);
}

.timeline {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.1rem;
}

.timeline article {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: .2rem 1rem;
}

.timeline .dates, .timeline .role, .timeline li {
    color: var(--muted);
}

.timeline .dates {
    font-size: .875rem;
    font-weight: 500;
}

.timeline ul {
    margin-top: .35rem;
    padding-left: 1.2rem;
}

@media (max-width: 34rem) {
    .timeline article {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 23rem) {
    .site-header {
        column-gap: .6rem;
        font-size: .75rem;
    }

    .site-header nav {
        column-gap: .65rem;
    }

    .links {
        column-gap: .75rem;
    }
}

@media print {
    @page {
        margin: .55in;
    }

    body {
        background: white;
        color: black;
        font-size: 10pt;
        line-height: 1.35;
    }

    .site-header, .skip-link {
        display: none;
    }

    .resume {
        width: auto;
        padding-bottom: 0;
    }

    .resume-header, .resume .content-section {
        padding-block: .45rem;
    }

    .resume-header {
        padding-top: 0;
    }

    .resume h1 {
        font-size: 26pt;
    }

    .resume h2 {
        font-size: 13pt;
    }

    .resume .intro, .resume-header .links {
        margin-top: .3rem;
        font-size: 10pt;
    }

    .resume-header .links a {
        min-height: auto;
    }

    .timeline {
        gap: .4rem;
        margin-top: .45rem;
    }

    .timeline article {
        grid-template-columns: 7rem minmax(0, 1fr);
        break-inside: avoid;
    }

    .timeline ul {
        margin-top: .2rem;
    }
}
