/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif, "Segoe UI Emoji";
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #131313;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

main {
    padding: 2rem 0;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 2rem;
}

.portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    background-color: #f0f0f0;
    background-image: url('assets/portrait_lowres.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h1 strong {
    font-weight: 700;
    color: #1100ff;
}

.position {
    font-size: 1.25rem;
    color: #999;
}

/* Main */
main {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact li {
    margin: 0;
}

.contact a {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #131313;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 0.85rem rgba(0, 0, 0, 0.075);
    border-bottom: 1px solid #d9d9d9;
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.contact .icon {
    height: 24px;
    width: 24px;
    margin-right: 0.75rem;
}

.contact a.primary {
    background-color: #1100ff;
    color: #ffffff;
    border-bottom-color: #1100ff;
}

.contact a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
    color: #666;
    font-size: 0.875rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .portrait {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .position {
        font-size: 1rem;
    }

    .contact ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .contact a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .contact .icon {
        height: 20px;
        width: 20px;
        margin-right: 0.5rem;
    }
}
