/* CSS Variables */

:root {
    --primary:rgba(0, 0, 0, 1);
    --secondary:rgba(200, 200, 200, 1);
    --highlight:rgba(255, 0, 0, 1);
}

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

html {
    background-color: var(--secondary);
}

html, body {
    
    font-family: tenon, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--primary);
}

img {
    width: 100%;
}


/* typo */

h1 {
    
}

h2 {
    
}

h3 {
    
}

p {
    margin-bottom: 1rem;
}

p:last-child{
    margin-bottom: 0rem;
}


/*nav*/

.nav {
    position: fixed;
    margin-top: 3rem;
    padding-left: 1rem;
    width: 200px;
    display: none;
}

.nav ul {
    display: block;
    list-style: none;
}

.nav li {
    margin-bottom: 0.25rem;
}



/* layout */

.sticky {
    top: 0;
    width: 100%;
    position: fixed;
}

.topbar {
    padding: 1rem;
}

.topbar ul {
    display: grid;
    grid-template-columns: 9rem 1fr minmax(560px,1fr);
    list-style: none;
    padding: 0;
    
}


.intro {
    display: grid;
    grid-template-columns: 10rem 1fr minmax(560px,1fr);
    
    height: 100vh;
    
    font-size: 1.5rem;
    padding: 10rem 1rem 1rem 0rem;

}

.hi {
    width: 100%;
    grid-column: span 2;
}

.portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-row: repeat(reverse);
    grid-column-gap: 32px;
}

@media screen and (max-width:1080px) {
    .topbar ul {
    
    grid-template-columns: 1fr;
    
    
}
}

@media screen and (max-width:920px) {
    .intro {
    
    grid-template-columns: 1fr;
        padding: 5rem 1rem;
        font-size: 1rem;
        height: auto;
        grid-row-gap: 1rem;
    
    
}
    
    .hi {
        width: 50%;
    }
}