:root {
    --background-color: #f5f5f5;
    --text-color: #333;
    --link-color: #5a9bd4;
    --link-hover-color: #007BFF;
    --base-font-size: 1.3rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 2rem;
    --contact-h2-font-size: 1.25rem;
    --footer-font-size: 1rem;
    --project-title-font-size: 1.6rem;
    --dark-background-color: #141414;
    --dark-text-color: #f5f5f5;
    --dark-link-color: #5a9bd4;
    --dark-link-hover-color: #007BFF;
}

body {
    font-family: "ivypresto-headline", serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-size: var(--base-font-size);
}

h1, h2, h3 {
    font-family: "ivypresto-headline", serif;
    font-weight: 700;
    font-style: normal;
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-size: var(--h2-font-size);
}

h3 {
    font-size: var(--h3-font-size);
}

p, a {
    font-family: "ivypresto-headline", serif;
    font-weight: 300;
    font-style: normal;    
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.container {
    width: 80%;
    max-width: 600px;
    margin: 1em auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: var(--text-color);
}

header h1 {
    margin-bottom: 0.25rem;
}

header h2 {
    font-family: "ivypresto-headline", serif;
    font-size: var(--h2-font-size);
    font-weight: 400;
    margin-top: 0;
    opacity: 0.5;
}

.profile-picture {
    width: 100px;
    height: auto;
    border-radius: 50%;
}

main {    
    text-align: left;
    margin-bottom: 3rem;
}

.projects {
    margin-bottom: 3rem;
}

.projects ul li {
    font-family: "ivypresto-headline", serif;
    margin-bottom: 1rem;
    border: none;
    border-radius: 0;
    padding: 0rem;
    font-weight: 300;
    line-height: 1.6;
}

.projects ul li strong {
    font-weight: 700;
    font-size: var(--project-title-font-size);
}

.projects ul {
    list-style-type: none;
    padding-left: 0;
    list-style-position: inside;
}

.contact h2 {
    font-size: var(--contact-h2-font-size);
}

footer {
    text-align: left;    
    color: var(--text-color);
    font-size: var(--footer-font-size);
    opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--dark-background-color);
        color: var(--dark-text-color);
    }

    header {
        color: var(--dark-text-color);
    }

    footer {
        color: var(--dark-text-color);
    }

    a {
        color: var(--dark-link-color);
    }

    a:hover {
        color: var(--dark-link-hover-color);
    }

    :root {
        color-scheme: dark;
    }
}