:root {
    --q-dark-green: #275243;
    --q-green: #008009;
    --q-green-subtle: #EDF2EF;
    --q-accent-yellow: #F7BC00;
    --q-accent-blue: #0094C7;
    --q-white: #FFFFFF;
    --q-light-gray1: #FAFAFA;
    --q-light-gray2: #F8F8F6;
    --q-light-gray3: #EDEDE9;
    --q-light-gray4: #E0E0DC;
    --q-black: #000000;
    --q-gray1: #333333;
    --q-gray2: #4A4A4A;
    --q-gray3: #808080;
    --q-darken-20: #0000001A;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--q-white);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--q-black);
    background: var(--q-white);
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--q-green);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: #007309;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem max(1rem, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--q-light-gray4);
    background: var(--q-white);
}

.brand {
    display: inline-flex;
    align-items: center;
    max-width: 17rem;
}

.brand img {
    width: 100%;
    height: auto;
    display: block;
}

.topbar-link {
    flex: 0 0 auto;
    color: var(--q-gray2);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.topbar-link:hover,
.topbar-link:focus-visible {
    color: var(--q-green);
    text-decoration: underline;
}

main {
    flex: 1 0 auto;
}

.hero {
    position: relative;
    min-height: 72svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media {
    background-image: url("/img/hacker-boxentriq3.jpg");
    background-position: center;
    background-size: cover;
}

.hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, #000000E6 0%, #000000B8 42%, #00000052 100%),
        linear-gradient(0deg, #00000066 0%, #0000001A 55%, #00000066 100%);
}

.hero-content {
    width: min(49rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
    color: var(--q-white);
}

.hero-logo {
    width: min(26rem, 100%);
    height: auto;
    display: block;
    margin-bottom: 2.25rem;
    filter: drop-shadow(0 1px 12px #0000008A);
}

.eyebrow,
.section-label {
    margin: 0 0 0.75rem;
    color: var(--q-accent-yellow);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 46rem;
    margin-bottom: 1.25rem;
    font-size: 2.35rem;
    line-height: 1.18;
    font-weight: 700;
}

.hero-copy {
    max-width: 40rem;
    margin-bottom: 0;
    color: #F2F2F2;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-copy a {
    color: var(--q-accent-yellow);
    font-weight: 700;
}

.hero-copy a:hover,
.hero-copy a:focus-visible {
    color: var(--q-white);
}

.current-site {
    background: var(--q-light-gray2);
    border-top: 4px solid var(--q-green);
}

.current-site-inner {
    width: min(52rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 2.25rem;
}

.current-site h2 {
    margin-bottom: 0.75rem;
    color: var(--q-dark-green);
    font-size: 1.45rem;
    line-height: 1.3;
}

.current-site p {
    max-width: 43rem;
    margin-bottom: 1.25rem;
    color: var(--q-gray1);
    line-height: 1.6;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    color: var(--q-white);
    background: var(--q-green);
    border: 1px solid var(--q-green);
    border-radius: 0.375rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
    color: var(--q-white);
    background: #007309;
    border-color: #007309;
}

.footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
    color: var(--q-gray2);
    background: var(--q-white);
    border-top: 1px solid var(--q-light-gray4);
    font-size: 0.86rem;
}

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

    .brand {
        max-width: 13.5rem;
    }

    .topbar-link {
        font-size: 0.84rem;
    }

    .hero {
        min-height: 68svh;
        align-items: flex-end;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, #000000E8 0%, #000000B8 56%, #00000052 100%),
            linear-gradient(90deg, #00000099 0%, #00000047 100%);
    }

    .hero-content {
        padding: 3rem 0;
    }

    .hero-logo {
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.24;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .current-site-inner {
        padding: 1.6rem 0 1.85rem;
    }

    .current-site h2 {
        font-size: 1.2rem;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
