:root {
    --bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #374151;
    --text-muted: #4b5563;
    --link: #1d4ed8;
    --link-hover: #1e40af;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111827;
        --text-primary: #e5e7eb;
        --text-secondary: #cbd5e1;
        --text-muted: #9ca3af;
        --link: #93c5fd;
        --link-hover: #bfdbfe;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 3rem;
}

header {
    margin-bottom: 2.5rem;
}

h1,
h3,
.socials,
.summary,
.education {
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tagline {
    margin: 0.25rem 0 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

section {
    margin-bottom: 2.25rem;
}

h2 {
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.08rem;
    line-height: 1.3;
}

article {
    margin-bottom: 1.4rem;
}

section:last-of-type,
article:last-of-type {
    margin-bottom: 0;
}

.role-meta {
    margin: 0.35rem 0 0.1rem;
    font-size: 0.97rem;
    color: var(--text-muted);
}

.summary { max-width: 68ch; }

ul {
    margin: 0.6rem 0 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.35rem;
}

.education { line-height: 1.7; }

a {
    color: var(--link);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--link-hover);
}

@media (max-width: 600px) {
    main {
        padding: 2rem 1rem 2.25rem;
    }

    header {
        margin-bottom: 2rem;
    }
}
