/* ---------------------------------------
   CREATUREKEEP
   Core Site Styles
--------------------------------------- */


/* VARIABLES */

:root {
    --background: #ffffff;
    --background-soft: #f5f5f1;
    --text: #171717;
    --text-soft: #62625d;
    --border: #deded8;
    --dark: #1c211c;
    --dark-text: #f7f7f2;

    --max-width: 1180px;
}


/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* TYPOGRAPHY */

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

h1 {
    margin-bottom: 28px;
    font-size: clamp(3.2rem, 8vw, 6.7rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 700;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.25;
}

.eyebrow {
    margin-bottom: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}


/* HEADER */

.site-header {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.header-inner {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 82px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.main-nav a:hover {
    opacity: 0.55;
}


/* HERO */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    width: min(calc(100% - 40px), var(--max-width));
    margin: auto;
    padding: 100px 0;
}

.hero-text {
    max-width: 610px;
    margin-bottom: 36px;
    color: var(--text-soft);
    font-size: 1.15rem;
}


/* BUTTON */

.button {
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid var(--text);
    background: var(--text);
    color: white;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    background: transparent;
    color: var(--text);
}


/* GENERAL SECTIONS */

.section {
    width: min(calc(100% - 40px), var(--max-width));
    margin: auto;
    padding: 100px 0;
}

.section-muted {
    width: 100%;
    max-width: none;
    padding-left: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );
    padding-right: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );

    background: var(--background-soft);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.section-heading p:last-child {
    color: var(--text-soft);
}

.section-heading-row {
    max-width: none;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.text-link {
    margin-bottom: 16px;
    font-weight: 700;
}


/* ANIMAL GRID */

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.animal-card {
    min-height: 210px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.animal-card:hover {
    background: var(--dark);
    color: var(--dark-text);
}

.animal-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.animal-link {
    font-size: 0.8rem;
    font-weight: 700;
}


/* FEATURED ARTICLE */

.featured-article {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: white;
    border: 1px solid var(--border);
}

.featured-image-placeholder {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #dadad3;
    color: #77776f;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.featured-content {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.featured-content p {
    color: var(--text-soft);
}

.featured-content a {
    margin-top: 15px;
    font-weight: 700;
}


/* CATEGORY LABEL */

.category-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}


/* ARTICLE CARDS */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    border: 1px solid var(--border);
}

.article-image-placeholder {
    min-height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--background-soft);
    color: #888880;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.article-card-content {
    padding: 28px;
}

.article-card-content h3 {
    margin-bottom: 14px;
}

.article-card-content p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.article-card-content a {
    font-size: 0.85rem;
    font-weight: 700;
}


/* MISSION */

.mission {
    background: var(--dark);
    color: var(--dark-text);
}

.mission-inner {
    width: min(calc(100% - 40px), var(--max-width));
    margin: auto;
    padding: 120px 0;
}

.mission-inner h2 {
    max-width: 800px;
    font-size: clamp(2.7rem, 6vw, 5rem);
}

.mission-inner > p:not(.eyebrow) {
    max-width: 700px;
    margin: 30px 0;
    color: #c6c8c2;
    font-size: 1.1rem;
}

.mission-inner a {
    font-weight: 700;
}


/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border);
    background: white;
}

.footer-grid {
    width: min(calc(100% - 40px), var(--max-width));
    margin: auto;
    padding: 75px 0;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    margin-top: 14px;
    color: var(--text-soft);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.footer-column a {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    width: min(calc(100% - 40px), var(--max-width));
    margin: auto;
    padding: 25px 0;

    display: flex;
    justify-content: space-between;
    gap: 30px;

    border-top: 1px solid var(--border);

    color: var(--text-soft);
    font-size: 0.75rem;
}

.footer-bottom p {
    margin: 0;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 0;
        gap: 18px;
    }

    .main-nav {
        width: 100%;
        gap: 18px;

        overflow-x: auto;
        white-space: nowrap;

        padding-bottom: 4px;
    }

    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

}


@media (max-width: 650px) {

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0;
    }

    .section {
        padding: 70px 0;
    }

    .section-muted {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .animal-grid {
        grid-template-columns: 1fr;
    }

    .animal-card {
        min-height: 150px;
    }

    .featured-image-placeholder {
        min-height: 280px;
    }

    .featured-content {
        padding: 30px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

}