@import url('./reset.css');

:root {
    --space-x-small: 0.5rem;
    --space-small: 1rem;
    --space-medium: 1.5rem;
    --space-large: 2rem;
    --space-x-large: 2.5rem;
    --space-xx-large: 3rem;
    --space-xxx-large: 5rem;

    --color-blue: rgb(54, 69, 209);
    --color-green: rgb(231, 250, 154);
}

body {
    font-family: 'Catamaran', serif;
    background-color: var(--color-blue);
    color: white;
}

a {
    color: white;
    text-underline-offset: var(--space-x-small);
    text-decoration: underline;
}

a:visited {
    color: white;
    text-decoration: none;
}

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

.homepage {
    margin: var(--space-x-large);
}

.about {
    margin-top: var(--space-xxx-large);
    width: 100%;
    line-height: 1.6;
}

.about h1 {
    font-size: 2rem;
}

.about p {
    font-size: 1.5rem;
}

nav {
    margin-top: var(--space-xxx-large);
}

nav ul {
    list-style: none;
    padding-inline-start: 0;
}

nav ul li {
    display: inline-block;
    margin-right: var(--space-medium);
    margin-bottom: 1rem;
}

nav a {
    font-size: 1.3rem;
    font-weight: bold;
}

@media (min-width: 750px) {
    .about {
        width: 60%;
    }

    .about h1 {
        font-size: 2.4rem;
    }

    .about p {
        font-size: 1.7rem;
    }
}

@media (min-width: 1000px) {
    .about h1 {
        font-size: 2.8rem;
    } 

    .about p {
        font-size: 1.9rem;
    }
}

@media (min-width: 1600px) {
    .about {
        width: 44%;
    }

    .about h1 {
        font-size: 3rem;
    } 
}