/* © 2024 Jordan Kittle. All Rights Reserved. */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Debug */
/* * {
    border: 1px solid yellow;
} */

*, *::before, *::after {
    box-sizing: border-box; /* Includes padding and border in height/width */
}

:root {
    --gap: 15px;
    --padding: 15px;
    --margin: 15px;
    --border-radius: 30px;
    --inner-border-radius: calc(var(--border-radius) * .5);
    --link-hover-color: dodgerblue;
    --max-page-width: 1200px;
    --background-color: #1a1a1a;
    --text-color: #f1faff;
    --section-background-color: #2e34395c;

}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Roboto;
    background-color: var(--background-color);
    color: var(--text-color);
}

body.light {
    background-color: white;
    color: black;
}

a:link {
    color: var(--text-color);
    text-decoratioN: none;
}
a:visited {
    color: var(--text-color);
}
a:hover {
    color: var(--link-hover-color);
}
a:active {
    color: var(--text-color);
}

body.light a:link {
    color: black;
}
body.light a:visited {
    color: black;
}
body.light a:hover {
    color: var(--link-hover-color);
}
body.light a:active {
    color: black;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
}

p {
    line-height: 22px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--padding);
    max-width: var(--max-page-width);
}

header ul {
    display: flex;
    list-style-type: none;
    gap: var(--gap);
    margin: 0;
    padding: 0;
}

#jordan-logo {
    fill: var(--text-color);
    height: 75px;
}

body.light #jordan-logo {
    fill: black;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-page-width);
}

section {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    padding: var(--padding);
    border-radius: 30px;
    margin: 15px;
    background-color: var(--section-background-color);
}

.section-label {
    font-size: 40px;
    margin: 45px 15px 0;
}

.hero h1 {
    font-size: 40px;
}

.section-text {
    display: flex;
    flex-direction: column;
    padding: var(--padding);
}

.section-text button {
    align-self: center;
}

.section-text a.button {
    background-color: grey;
    align-self: center;
    margin-bottom: var(--margin);
}


.section-media {
    flex: 1;
}

.section-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}


button, a.button {
    border-radius: var(--border-radius);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

button:hover, a.button:hover {
    background-color: var(--link-hover-color);
    color: white;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.project a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project:nth-child(odd) {
    grid-column: 1;
}

.project h3 {
    margin-top: var(--margin);
}

.project img {
    width: 100%;
    border-radius: var(--inner-border-radius);
}

.project:hover {
    filter: brightness(1.1);
}

footer {
    padding: var(--padding);
}

@media screen and (min-width: 992px) {
    .section-text{
        width: 50%;
    }
    .hero h1 {
        font-size: 88px;
    }
}