:root {
    --accent: #c6002b;
    --dark: #1f2933;
    --muted: #5f6c7b;
    --light: #f5f7fa;

    --content-width: 1000px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #ffffff;
}

header {
    position: relative;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
        url("../figures/stormy_skies.jpg") center / cover no-repeat;
    color: white;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 0.5rem 1.5rem;
}

/* Ensure text remains readable over the image */
header h1 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

header h2,
header p,
.link-primary-header {
    color: #f8fafc !important;
}

/* Keep hover color accessible on a dark photo */
.link-primary-header:hover {
    color: hsl(212, 92%, 75%) !important;
}

.link-primary-header {
    color: hsl(0, 0%, 100%) !important;
    /* color: hsl(212, 100%, 90%) !important; */
    text-decoration: none !important;
}

.link-primary-header:hover {
    color: hsl(212, 92%, 55%) !important;
    text-decoration: none !important;
}

.link-primary {
    color: hsl(212, 92%, 30%) !important;
    text-decoration: none !important;
}

.link-primary:hover {
    color: hsl(212, 92%, 55%) !important;
    text-decoration: none !important;
}

header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
    line-height: 1;
    padding-top: 1rem;
}

header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

section h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

    .grid.onetwo {
        grid-template-columns: 3fr 1fr;
    }


    .grid.three {
        grid-template-columns: repeat(3, 1fr);
    }

    /* logos below each other to the right */
    .logo {
        display: block;
        margin-left: auto;
        width: 85%;
    }
}

/* logos next to each other */
@media (max-width: 768px) {

    .logo {
        display: inline-block;
        width: 45%;
    }
}

figure {
    margin: 0;
    /* background: var(--light); */
    padding: 1rem;
    border-radius: 6px;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background: #ddd;
}


figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

ul .stats {
    list-style-type: none;
}

.stats {
    background: var(--light);
    padding: 2rem;
    border-radius: 6px;
    font-size: 1.4rem;
}

.stats strong {
    color: var(--accent);
}

footer {
    background: var(--light);
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.lead {
    font-size: 1.2rem;
}

p.lead strong {
    color: var(--accent);
}

p.open_position {
    font-size: 1.2rem;
    font-weight: bold;
}

.contact {
    font-size: 0.9rem;
}

.caption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* Bottom-right photo credit (figure source) */
.header-credit {
    position: absolute;
    right: 0.75rem;
    bottom: 0.0rem;
    color: #f8fafc;
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 0.0rem 0.4rem;
    z-index: 2;
}
