/* =========================================
   Graham Roberts — Website Homepage
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            #17242a 0%,
            #080b0d 42%
        ),
        #080b0d;
    font-family: Arial, Helvetica, sans-serif;
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 5%;
    background-color: rgba(5, 7, 8, 0.96);
    border-bottom: 1px solid #293034;
}

.site-title {
    color: #f5c518;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.navigation-links a {
    padding: 9px 0;
    color: #d9dcdf;
    font-size: 14px;
    text-decoration: none;
}

.navigation-links a:hover,
.navigation-links a.active {
    color: #f5c518;
    border-bottom: 2px solid #f5c518;
}

/* Shared elements */

.eyebrow,
.panel-label,
.project-category {
    margin: 0 0 15px;
    color: #f5c518;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.8px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.primary-button {
    color: #080b0d;
    background-color: #f5c518;
}

.primary-button:hover {
    background-color: #ffdc49;
}

.secondary-button {
    color: #f5c518;
    background-color: transparent;
    border: 2px solid #f5c518;
}

.secondary-button:hover {
    color: #080b0d;
    background-color: #f5c518;
}

/* Hero */

.home-hero {
    display: grid;
    align-items: center;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    width: min(1350px, 90%);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    padding: 75px 0;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(58px, 8vw, 105px);
    line-height: 0.9;
    letter-spacing: -5px;
    text-transform: uppercase;
}

.hero-content h2 {
    max-width: 750px;
    margin: 28px 0 20px;
    color: #f5c518;
    font-size: clamp(23px, 3vw, 36px);
    line-height: 1.25;
}

.hero-description {
    max-width: 710px;
    margin: 0 0 30px;
    color: #d2d6d9;
    font-size: 19px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hero summary panel */

.hero-summary {
    padding: 34px;
    background:
        linear-gradient(
            145deg,
            rgba(29, 37, 42, 0.96),
            rgba(12, 16, 18, 0.98)
        );
    border: 1px solid #30383d;
    border-radius: 14px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

.summary-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid #30373b;
}

.summary-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.summary-item > span {
    color: #f5c518;
    font-size: 15px;
    font-weight: bold;
}

.summary-item h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.summary-item p {
    margin: 0;
    color: #aeb4b8;
    line-height: 1.55;
}

/* Project cards */

.projects-section {
    width: min(1350px, 90%);
    margin: 0 auto;
    padding: 80px 0 95px;
    border-top: 1px solid #293034;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(35px, 5vw, 56px);
    line-height: 1.1;
}

.section-heading > p:last-child {
    margin: 0;
    color: #aeb4b8;
    font-size: 18px;
    line-height: 1.55;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 31px;
    background:
        linear-gradient(
            145deg,
            #151b1f,
            #0d1113
        );
    border: 1px solid #2d3438;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #f5c518;
}

.featured-card {
    background:
        linear-gradient(
            145deg,
            #222417,
            #111410 60%
        );
    border-color: #5f541c;
}

.project-number {
    margin-bottom: 32px;
    color: #f5c518;
    font-size: 38px;
    font-weight: bold;
}

.project-card h3 {
    margin: 0 0 17px;
    font-size: 28px;
}

.project-card > p:not(.project-category) {
    margin: 0 0 22px;
    color: #b7bdc1;
    line-height: 1.6;
}

.project-card ul {
    margin: 0 0 28px;
    padding-left: 20px;
    color: #aeb4b8;
    line-height: 1.7;
}

.project-card li::marker {
    color: #f5c518;
}

.card-link {
    margin-top: auto;
    color: #f5c518;
    font-weight: bold;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Closing section */

.closing-section {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 50px;
    width: min(1350px, 90%);
    margin: 0 auto 85px;
    padding: 38px 42px;
    background:
        linear-gradient(
            100deg,
            #171d21,
            #252c30
        );
    border: 1px solid #31393d;
    border-radius: 12px;
}

.closing-section h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.closing-section p:last-child {
    max-width: 780px;
    margin: 0;
    color: #bcc1c5;
    line-height: 1.55;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 5%;
    color: #92989c;
    background-color: #030405;
    border-top: 1px solid #252b2e;
    font-size: 14px;
}

footer p {
    margin: 0;
}

/* Tablets */

@media (max-width: 950px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
    }
}

/* Mobile phones */

@media (max-width: 650px) {
    .main-navigation {
        align-items: flex-start;
        flex-direction: column;
    }

    .navigation-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .home-hero {
        width: 88%;
        padding: 50px 0 65px;
    }

    .hero-content h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .hero-summary {
        padding: 23px;
    }

    .projects-section {
        width: 88%;
        padding: 60px 0 70px;
    }

    .project-card {
        padding: 25px;
    }

    .closing-section {
        grid-template-columns: 1fr;
        width: 88%;
        padding: 30px;
    }

    footer {
        flex-direction: column;
    }
}