body {
    font-family: system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
}

header {
    background: #333;
    color: white;
    padding: 0.4rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem;
    padding-top: 3.5rem;
    max-width: 800px;
    margin: auto;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f4f4f4;
    margin-top: 2rem;
}

nav a[aria-current="page"] {
    font-weight: bold;
    text-decoration: underline;
}

/* 2-palstainen layout */
.two-column {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.two-column img {
    max-width: 100%;
    height: auto;
}

/* Contact layout */
.contact-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Responsiivisuus */
@media (max-width: 768px) {

    .two-column,
    .contact-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Contact page centered content */
.contact-main {
    text-align: center;
}

/* LinkedIn linkki */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0a66c2;
    font-weight: 500;
}

.linkedin-link:hover {
    text-decoration: underline;
}

/* Email obfuscation */
.email-obfuscated .hidden {
    display: none;
}

/* (valinnainen) pieni lisäsuoja botteja vastaan */
.email-obfuscated::after {
    content: "";
}
