/* ===== Base ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #FAF8F5;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Intro ===== */
.intro {
    padding: 64px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.classname {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2845BC;
    margin-bottom: 12px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 16px;
}


/* ===== Layout ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.sectionLabel {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 16px;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 8px;
}

.tag {
    font-size: 13px;
    font-weight: 500;
    color: #2845BC;
    margin-bottom: 4px;
}

/* ===== Featured project ===== */
.featured {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E1DA;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.featuredImg {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: bottom;
}

.featuredText {
    padding: 24px;
}

.featuredText h3 {
    font-size: 28px;
}

.viewLink {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
    color: #2845BC;
}

/* ===== Exercise cards ===== */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #E5E1DA;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card h3 {
    margin-bottom: 0;
}

.card p:last-child,
.featuredText > p:not(.tag) {
    color: #555555;
}

/* Hover: card lifts slightly */
.card:hover,
.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Footer ===== */
footer {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #777777;
    border-top: 1px solid #E5E1DA;
}


@media (min-width: 768px) {
    .intro {
        padding: 96px 32px 56px;
    }
    h1 {
        font-size: 64px;
    }
    main {
        padding: 0 32px 80px;
    }
    /* Featured: image and text side by side */
    .featured {
        flex-direction: row;
    }
    .featuredImg {
        width: 50%;
        height: 360px;
    }
    .featuredText {
        width: 50%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
