:root {
    --text: #1f1f1f;
    --muted: #555;
    --link: #0b57d0;
    --rule: #e3e3e3;
    --bg: #fff;
    --tag: #f4f5f7;
    --tag-border: #e2e4e8;
}
@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8e8e8;
        --muted: #a8a8a8;
        --link: #8ab4f8;
        --rule: #333;
        --bg: #121212;
        --tag: #1e1f22;
        --tag-border: #34363b;
    }
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    color: var(--text);
    background: var(--bg);
}
a {
    color: var(--link);
    text-underline-offset: 2px;
}

/* Site nav (all pages) */
.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}
.site-nav a {
    color: var(--muted);
    text-decoration: none;
}
.site-nav a:hover {
    color: var(--text);
    text-decoration: underline;
}
.site-nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

/* Home header */
.profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.profile img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}
.tagline {
    color: var(--muted);
    margin: 0;
}
.links {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}
.previously {
    color: var(--muted);
}
h2 {
    font-size: 1.1rem;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--rule);
}
ul {
    padding-left: 1.25rem;
    margin: 0;
}
.expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.expertise-item {
    background: var(--tag);
    border: 1px solid var(--tag-border);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* Projects and Blog listings */
.page-intro {
    color: var(--muted);
    margin: 0 0 2rem;
}
.entries {
    list-style: none;
    padding: 0;
}
.entries li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.entries li:first-child {
    padding-top: 0;
}
.entry-title {
    font-weight: 600;
}
.entry-authors {
    font-size: 0.95rem;
}
.entry-meta {
    color: var(--muted);
    font-size: 0.875rem;
}
.entry-summary {
    margin: 0.25rem 0 0;
}
.empty {
    color: var(--muted);
    font-style: italic;
}

/* Blog posts */
.post-meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}
article h2 {
    border-bottom: none;
    padding-bottom: 0;
}
article img {
    max-width: 100%;
    height: auto;
}
article pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--tag);
    border: 1px solid var(--tag-border);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}
article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}
article blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--rule);
    color: var(--muted);
}

footer {
    margin-top: 3.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}
@media (max-width: 480px) {
    .site-nav {
        margin-bottom: 1.75rem;
    }
    .profile {
        gap: 1rem;
    }
    .profile img {
        width: 84px;
        height: 84px;
    }
    h1 {
        font-size: 1.4rem;
    }
}
