:root {
    color-scheme: light;
    --bg: #efeff1;
    --surface: #ffffff;
    --text: #243447;
    --muted: #6f7d8d;
    --border: #dde2e8;
    --link: #2f3f52;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
}

.page {
    width: min(660px, 92vw);
    margin: 0 auto;
    padding: 4.6rem 0 4rem;
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

h1 {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 2.2rem);
    font-weight: 700;
}

.subtitle {
    margin: 0.95rem 0 0;
    font-size: 1.1rem;
    line-height: 1.45;
}

.muted {
    color: var(--muted);
}

.links {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    font-size: 1.02rem;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 0;
    background: none;
    object-fit: cover;
    flex-shrink: 0;
}

section {
    margin-bottom: 3.2rem;
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin: 0 0 0.95rem;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

li {
    margin-bottom: 0.72rem;
}

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

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

@media (max-width: 640px) {
    .page {
        width: min(660px, 90vw);
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .intro {
        display: block;
        position: relative;
        margin-bottom: 2.4rem;
    }

    .intro>div {
        width: 100%;
    }

    .intro h1 {
        max-width: calc(100% - 84px);
    }

    .intro .subtitle {
        max-width: 100%;
    }

    .links {
        margin-top: 1.1rem;
    }

    .avatar {
        position: absolute;
        top: 0;
        right: 0;
        width: 78px;
        height: 78px;
    }

    h2 {
        font-size: 1.55rem;
    }
}
