/* Load Inter for every page that uses this stylesheet. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #202020;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* The header background spans the full page width. */
header {
    background-color: #A1F0D2;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    min-height: 75px;
    box-sizing: border-box;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

nav a {
    margin-right: 20px;
    color: inherit;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.home {
    max-width: none;
    padding: 0;
}

.home > section{
    padding: 32px 24px;
}

.hero {
    min-height: 30vh;
    margin-top: 40px;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    margin-bottom: 10px;
}

.hero-title {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
}

.hero p {
    font-size: 24px;
    max-width: 700px;
}

section {
    padding: 20px 0;
}

.projects-strip{
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,4fr);
    gap: 32px;
    align-items: center;
}

/* A single column of project cards, centered on the page. */
.project-list {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-previews {
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.preview-track {
    display: flex;
}

.preview-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.project-previews a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card {
    border: 1px solid #cccccc;
}

/* The link wraps both columns, making the whole card clickable. */
.project-card-link {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.project-card-link:hover {
    background-color: #f5f5f5;
}

.project-card-link:focus-visible {
    outline: 3px solid #2463a0;
    outline-offset: 4px;
}

.project-image-placeholder {
    min-height: 260px;
    background-color: #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #595959;
}

.project-card-text {
    align-self: center;
    overflow-wrap: anywhere;
}

.project-card-text p {
    line-height: 1.6;
}

.project-category {
    font-size: 14px;
    color: #595959;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filters button {
    font: inherit;
    padding: 10px 18px;
    border: 1px solid #202020;
    background-color: white;
    color: #202020;
}

.category-filters button[aria-pressed="true"] {
    background-color: #202020;
    color: white;
}

.project-sort {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
}

.project-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Stack the image and text on narrow screens. */
@media (max-width: 600px) {

    .projects-strip {
        grid-template-columns: 1fr;
    }

    nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    nav > div {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav a {
        margin-right: 0;
    }

    .project-card-link {
        grid-template-columns: 1fr;
    }

    
}
