 :root {
    --navy: #142d48;
    --red: #8e3435;
    --cream: #f6f0e4;
    --ink: #252525;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font: 16px/1.6 Arial, sans-serif;
}

a {
    color: inherit;
}

header,
footer {
    color: white;
    background: var(--navy);
}

.topbar {
    max-width: 1100px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
}

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

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    min-height: 390px;
    display: grid;
    place-items: center;
    padding: 64px 24px;
    text-align: center;
    color: white;

    background-image:
        linear-gradient(120deg, rgba(20, 45, 72, .65), rgba(142, 52, 53, .45)),
        url("/images/hero.jpg");
    background-size: cover, cover;
    background-position: center, center 35%;
    background-repeat: no-repeat, no-repeat;
}

.hero-inner {
    max-width: 800px;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
}

.button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 4px;
    color: var(--navy);
    background: var(--cream);
    text-decoration: none;
    font-weight: 700;
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 56px 24px;
}

h2 {
    color: var(--navy);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #ddd2c0;
    border-radius: 8px;
    background: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
}

.card:hover {
    border-color: var(--red);
}

.pioneers,
.contact {
    padding: 28px;
    border-radius: 8px;
    background: white;
}

footer {
    padding: 24px;
    text-align: center;
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}