:root {
    --bg: #fafaf8;
    --fg: #1a1a18;
    --muted: #6b6b66;
    --border: #e0e0d8;
    --accent: #1a1a18;
    --link-hover: #444;
    --serif: 'Lora', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    transition: text-decoration-color 0.15s;
}

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

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 5rem 0 8rem;
}

.site-header {
    margin-bottom: 3.5rem;
}

.intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 5.25rem;
    height: 5.25rem;
    flex: 0 0 5.25rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
    object-position: 66% 76%;
}

.intro-copy {
    min-width: 0;
}

.site-header h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.site-header h1 .tagline {
    color: var(--muted);
    font-style: italic;
    font-weight: 400;
}

.site-header .sub {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.nav-links {
    display: flex;
    flex-wrap: flex;
    gap: 0.2rem 0;
    font-size: 0.9rem;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    transition: background 0.15s, border-color 0.15s;
}

.nav-links a:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

section {
    margin-bottom: 3.5rem;
}

section h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.about-prose p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-prose h3 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 2rem 0 0.75rem;
}

/* ── Projects list ── */
.project-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.project-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.project-list li a {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.15rem;
}

.project-list li p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ── Elsewhere ── */
.elsewhere-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.elsewhere-list li {
    display: flex;
    gap: 1.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.elsewhere-list .platform {
    color: var(--muted);
    min-width: 100px;
}

@media (max-width: 520px) {
    .intro {
        align-items: flex-start;
    }

    .profile-photo {
        width: 4.5rem;
        height: 4.5rem;
        flex-basis: 4.5rem;
    }
}
