/*
 * Caribbean Signal Data landing page.
 * Mobile-first styling keeps the portal fast, simple and easy to extend.
 */

/* Predictable sizing for all page elements. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #17212b;
}

/* Main content is constrained on large displays while retaining mobile padding. */
.site-shell {
    width: min(100% - 2rem, 1000px);
    margin: 0 auto;
    padding: 3rem 0 2.5rem;
}

.page-header {
    max-width: 720px;
    margin-bottom: 2.75rem;
}

.eyebrow,
.card-label {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b6670;
}

h1 {
    margin: 0;
    font-size: clamp(2.25rem, 9vw, 4rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.intro {
    margin: 1rem 0 0;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.4;
}

.description {
    max-width: 650px;
    margin: 0.65rem 0 0;
    color: #5b6670;
    line-height: 1.6;
}

.project-section > h2,
.about-section h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

/* Cards stack on phones and expand into columns on larger screens. */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #dfe4e8;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: #b9c2c9;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
}

.project-card:focus-visible {
    outline: 3px solid #17212b;
    outline-offset: 3px;
}

.project-card h3 {
    margin: 0;
    font-size: 1.65rem;
}

.project-card .card-content > p:last-child {
    margin: 0.85rem 0 0;
    color: #5b6670;
    line-height: 1.55;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
}

.about-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #dfe4e8;
    border-radius: 14px;
}

.about-section p {
    margin: 0;
    color: #5b6670;
    line-height: 1.6;
}

/* Footer is intentionally understated so the project cards remain the focus. */
.site-footer {
    width: min(100% - 2rem, 1000px);
    margin: 0 auto;
    padding: 0 0 2rem;
    color: #68737d;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

/* Two columns provide a natural desktop layout while preserving the mobile stack. */
@media (min-width: 650px) {
    .site-shell {
        padding-top: 4.5rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
