/* ============================================================
   Peter C. Skalany
   Personal Website
   September 2026
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: Arial, Helvetica, sans-serif;
    color: #0e4c73;
    background: #fff;
}

main {
    flex: 1;
}

.hero {
    width: 100%;
    padding: 18px 24px 0;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
}

.major-areas {
    width: 100%;
    padding: 10px 32px 42px;
}

.areas-grid {
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #dbe5eb;
}

.area-card {
    min-width: 0;
    padding: 24px 22px 12px;
    text-align: center;
    border-right: 1px solid #dbe5eb;
}

.area-card:last-child {
    border-right: 0;
}

.area-graphic {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 135px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.area-card h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.35;
    color: #0e4c73;
}

.area-card h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 14px auto 0;
    background: #e8752b;
}

.area-description {
    max-width: 310px;
    margin: 18px auto 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #496b80;
}

.process-path {
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0e4c73;
}

.process-arrow {
    color: #e8752b;
    font-size: 0.9rem;
}

.area-note {
    max-width: 310px;
    margin: 14px auto 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #6f8795;
}

footer {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 1100px) {
    .areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-card {
        border-right: 0;
        border-bottom: 1px solid #dbe5eb;
    }

    .area-card:nth-child(odd) {
        border-right: 1px solid #dbe5eb;
    }

    .area-card:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
        border-right: 0;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 8px 8px 0;
    }

    .major-areas {
        padding: 8px 18px 32px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .area-card,
    .area-card:nth-child(odd) {
        padding: 22px 10px;
        border-right: 0;
        border-bottom: 1px solid #dbe5eb;
    }

    .area-card:last-child {
        grid-column: auto;
        border-bottom: 0;
    }

    .area-graphic {
        max-width: 280px;
        height: 120px;
    }

    footer {
        padding: 16px;
    }
}
