/* ==========================================================================
   1. FONT SETUP & LIFTOFF
   ========================================================================== */

/* Local font upload for H1 and H2 */
@font-face {
    font-family: 'MADE Waffle Soft';
    src: url('./../fonts/MADE-Waffle-Soft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Prevents invisible text while loading */
}

/* ==========================================================================
   2. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */

:root {
    --bg-color: #52643b;
    --content-container-color: #ffffff;
    --heading-color: #52643b;
    --text-color: #52643b;
    --accent-color: #7e9c5b;
    --secondary-accent-color: #a7cc79;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 2rem;
}

/* Headings 1 and 2: Custom Server Font */
h1, h2 {
    font-family: 'MADE Waffle Soft', sans-serif;
    font-weight: normal;
    color: var(--heading-color);
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, -0.4474rem + 14.7368vw, 6rem);
    line-height: 1;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Headings 3 through 6: Google Font */
h3, h4, h5, h6 {
    font-family: 'Red Hat Display', sans-serif;
    color: var(--text-color);
    line-height: 1.3;
}

h3 { font-size: 1.75rem; margin-top: 2rem; font-weight: 700; }
h4 { font-size: 1.4rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
h6 { font-size: 0.9rem; font-weight: 500; color: #777; }

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* ==========================================================================
   3. SIMPLE NO-GRAPHICS LAYOUT
   ========================================================================== */

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    background-color: var(--content-container-color);
    border-radius: 2rem;
}

header {
}

.mission {
    text-align: center;
    background-color: var(--accent-color);
    border-radius: 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.mission p {
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5em 1em;
    line-height: 1.1em;
}

main {
}

p.description {
    text-align: center;
    font-weight: 700;
    font-size: 1.33rem;
    max-width: 600px;
    margin: 0 auto;
}

.who-should-apply {
    text-align: center;
}

.who-should-apply h2 {
    display: inline-block;
    background-color: var(--secondary-accent-color);
    border-radius: 1em;
    line-height: 1;
    font-size: 2.5rem;
    padding: 0.33em 0.75em;
    margin-top: 1em;
    margin-bottom: 0.125em;
}

.criteria {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.4rem;
}

.criteria p {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.criteria ul {
    margin-top: 0.25em;
}

.lnf {
    text-align: center;
    background-color: var(--accent-color);
    border-radius: 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.lnf p {
    color: white;
    font-size: 1.4rem;
    line-height: 1.25;
    padding: 0.75em 1.5em;
}

.bottom-cta {
    display: flex;
    gap: 2rem;
}

.bottom-cta h2 {
    line-height: 1.1;
    margin-bottom: 1rem;
}

footer {
    max-width: calc(700px + 4rem);
    font-size: 0.9rem;
    color: white;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
footer p {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25em;
    margin-bottom: 0;
}
footer p:last-child {
    text-align: right;
}
footer p a {
    position: relative;
    color: white;
    text-decoration: none;
    margin-left: 48px;
}
footer p a::before {
    content:"";
    background-image: url(/images/link-icon.svg);
    background-repeat: no-repeat;
    position: absolute;
    left: -48px;
    bottom: -6px;
    width: 36px;
    height: 36px;
    background-size: cover;
}

@media screen and (max-width: 600px) {
    .bottom-cta h2 {
        text-align: center;
    }
    footer, .bottom-cta {
        flex-direction: column;
        gap:0.5rem;
        align-items: center;
    }
    footer p:last-child, footer p {
        text-align: center;
    }
}