/* CSS by Christina Carrasquilla, iteration by Yarrow Watts */

/* ===== Color Palette ===== 

    background: #0f172a;
    nav-footer: #020617;
    card: #1e293b;
    text-main: #e2e8f0;
    text-muted: #94a3b8;
    accent: #38bdf8;

*/

/* ===== GLOBAL / MOBILE-FIRST STYLES ===== */

body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #0f172a;
    color: #e2e8f0;

    /* Mobile-first: single-column layout */
    display: grid;
    grid-template-columns: 1fr;
}

header {
    background-color: #1e293b;
    text-align: center;
    padding: 1.5rem;
}

header h1 {
    margin: 0;
}

header p {
    margin-top: 0.5rem;
    color: #94a3b8;
}

nav {
    background-color: #020617;
}

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

nav a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-left: 4px solid #38bdf8;
    margin: 0.25rem;
}

nav a:hover {
    background-color: #334155;
    color:#e2e8f0
}

main {
    padding: 1rem;
}

img {
    width: 100%;
    height: auto;
}

#screenings,
#workshops,
#collaborations {
    background-color: #1e293b;
    padding: 1rem;
    border-left: 4px solid #38bdf8;
    margin-bottom: 1rem;
}

aside {
    background-color: #38bdf8;
    color: #1e293b;
    padding: 1rem;
}

a {
    display: block;
    background-color: #020617;
    color: #e2e8f0;
    padding: 1rem 2rem;
    text-decoration: none;
    text-align: center;
}

a:hover {
    color: #020617;
    background-color: #e2e8f0;
}

footer {
    background-color: #020617;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}


/* ===== Media Query (Medium) ===== */
/* Screen size: at least 800px */

@media screen and (min-width: 800px) {

    /* Changes body layout from one column to two columns */
    body {
        grid-template-columns: 1fr 300px;
    }

    /* Header, nav, and footer span across both columns */
    header,
    nav,
    footer {
        grid-column: 1 / -1;
    }

    /* Nav displays horizontally on larger screens */
    nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    nav li {
        flex: 1;
    }

    nav a {
        border-left: none;
        margin: 0;
    }

    /* Card row changes from stacked to side-by-side */
    .card-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    /* Sections inside card-row each take about one-third of the row */
    .card-row section {
        width: 30%;
    }
}



/* ===== Media Query (Medium) ===== */
/* write a media query for a screen with at least 800px */
/* change the body's grid template to 1fr 300px */
/* target the header, nav, and footer and style their grid-column to 1/-1 */
/* target the nav and display it flex, spaceed around */
/* target the .card-row to display flex */
/* target the sections in .card-row witha width for 30% */