@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');


* {
    padding: 0;
    margin: 0;

    /* background-color: rgba(71, 71, 71, 0.164); */
    /* outline: solid red 1px; */
}




a {
    text-decoration: none;
    color: rgb(65, 170, 211);
    transition: color 0.1s ease-out;
    &:is(:hover, :focus) {
        /* text-decoration: underline; */
        color: rgb(165, 52, 165);
    }
}

body, html {
    min-height: 100%;
    /* width: 100%; */
}

body {
    font-family: "Source Sans 3", sans-serif;
    --padding-main: max(5%, calc(50% - 400px));
    padding-left: var(--padding-main);
    padding-right: var(--padding-main);
}

main {
    /* padding-top: 15px; */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 40px;
    margin-bottom: 30px;
}

header {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 40px;
}

footer {
    /* padding-top: 20px; */
    display: flex;
}

#layout {
    display: flex;
}

img {
    border-radius: 5%;
    width: 100%;
}   

#photo-container {
    position: relative;
    width: 180px;
}

#eye {
    content: '';
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5%;
    opacity: 0;
    transition: opacity 0.5s;
    &:hover {
        opacity: 1;
    }
}

@media screen and (min-width: 641px) {
    footer {
        flex-direction: column;
        /* width: 250px; */
        gap: 15px;
        padding-top: 20px;    
        align-items: center;
        & > div:not(:first-child){
            width: 100%;
            & > :not(h4) {
                display: inline-block;
                text-indent: -1em;
                padding-left: 2em;
            }
        }
    }
    main {
        flex-grow: 1;
    }
    #spacer {
        flex-shrink: 1;
    }
    #layout {
        flex-direction: row;
        gap: 10px;
    }
}

@media screen and (max-width: 640px) {
    footer {
        padding-bottom: 20px;
        flex-direction: row;
        & > div {
            padding: 10px lin(20px, 20%);
            width: 50%;
        }
        #photo-container {
            display: none;
        }    
        
    }
    #spacer {
        flex-grow: 1;
        &::after {
            content: '';
            display: block;
            background-color: black;
            width: 100%;
            height: 1px;
            margin-left: -5px;
            margin-top: 5px;
        }
    }
    
    #layout {
        flex-direction: column;
    }
}

section {
    line-height: 1.5em;

    & > :not(h2) {
        margin-left: clamp(0px, calc(15% - 10px), 50px);
    }
}

:is(h1, h2):after {
    content: '';
    display: block;
    background-color: black;
    width: 100%;
    height: 1px;
    margin-left: -5px;
    margin-top: 5px;
}

h2 {
    margin-bottom: 30px;
    letter-spacing: 0.03em;
    font-weight: 500;
}

h1 {
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.08em;
    font-weight: 600;
}

h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

section ul {
    list-style: none;
}

#address {
    list-style: none;
}
