:root {
    --text: #000000;
    --muted: #444444;

    --link: #8B0000;
    /* dark red */
    --link-hover: #a00000;
    /* slightly brighter red */
    --link-visited: #a00000;
    /* deeper maroon */
    --maxw: 760px;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

/* Layout */
.page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.2rem 1.2rem 3rem;
}

/* Hero section */
.hero {
    text-align: center;
}

.subtitle {
    margin: 0.3rem 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    /* slightly muted */
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}


.avatar {
    display: inline-block;
    width: 12rem;
    max-width: 45vw;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 0.3618em rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.avatar:hover {
    transform: translateY(-0.75rem);
}

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

/* Contact */
.email {
    margin: 0 0 0.4rem;
    /* reduce vertical gap */
    line-height: 1.3;
    /* tighter than body */
    color: var(--muted);
}

.email a {
    color: inherit;
    text-decoration: none;
}


a {
    color: var(--link);
    text-decoration: none;
    /*margin: 0 0.35rem;*/
    font-weight: 300;
}

a:hover {
    text-decoration: none;
    font-weight: 300;
}

/* Content */
.content {
    font-size: 1.05rem;
}

.content p {
    margin: 0 0 1rem;
}

/* Footer */
footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .page {
        padding: 1.5rem 1rem 2rem;
    }

    .avatar {
        width: 6.5rem;
    }

    .meta a {
        display: inline-block;
        margin: 0.2rem 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar {
        transition: none;
    }

    .avatar:hover {
        transform: none;
    }
}

.meta {
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-size: 0.9rem;
    /* ↓ smaller than body */
    font-weight: 300;
}

.email,
.links {
    display: inline;
}

.typed-line {
    margin: 0 0 0.45rem;
    min-height: 1.25em;
    font-size: 0.95rem;
    color: #7a0000;
    /* your red */
    line-height: 1.25;
}

.meta a:visited,
.content a:visited {
    color: var(--link-visited);
}

footer {
    margin-top: 3.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-meta {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer-meta a {
    color: var(--link);
    text-decoration: none;
    margin: 0 0.4rem;
}

.footer-meta a {
    margin-left: 0;
    color: var(--muted);
    /* email subdued */
}

.footer-meta a {
    text-decoration: none;
    color: var(--link-hover);
}

.github {
    display: inline-flex;
    vertical-align: middle;
}

.github svg {
    width: 15px;
    height: 15px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--muted);
}

.wave {
    font-size: 0.6em;
    /* slightly smaller than text */
    margin-left: 0.2em;
}