:root {
    color-scheme: light;
    font-family:
        'Inter',
        'Segoe UI',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.6;
    background: #fdfdfc;
    color: #1f2933;
}

body {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #1f2933;
    color: #ffffff;
    border-radius: 0.25rem;
}

.inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-header {
    border-bottom: 1px solid #e5e7eb;
    background: rgba(253, 253, 252, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.site-header .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

nav a {
    color: inherit;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

.site-main .inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #f5f5f4;
    font-size: 0.85rem;
}

h1,
h2 {
    margin-top: 0;
}

/* Page content is plain pandoc output: each h2 starts a new section. */
.site-main h2 {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    clear: both;
}

.site-main ul {
    margin: 1.5rem 0 0 1.25rem;
    padding: 0;
}

.site-main p {
    margin: 0 0 1.5rem;
}

.site-main .inner {
    display: flow-root;
}

img.headshot {
    float: left;
    margin: 0 2rem 1.5rem 0;
    width: clamp(160px, 20vw, 220px);
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

a {
    color: #3245ff;
}

a:hover,
a:focus {
    text-decoration: underline;
}

@media (max-width: 720px) {
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .site-main h2 {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    img.headshot {
        display: block;
        float: none;
        margin: 0 auto 1.5rem;
        width: clamp(160px, 60vw, 220px);
    }
}