@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --ink: #1d302d;
    --muted: #64716c;
    --green: #355b4b;
    --cream: #f5f4ed;
    --paper: #fffefa;
    --line: #dedfd5;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 7.5%;
    background: rgba(255, 254, 250, 0.96);
    border-bottom: 1px solid rgba(29, 48, 45, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    color: #b8764e;
    font-size: 1.4rem;
}

.main-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
}

.main-nav a,
.footer-links a {
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: #a45e38;
}

.header-link {
    padding: 9px 14px;
    color: white;
    background: var(--green);
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.header-link:hover {
    background: #274638;
}

.hero {
    position: relative;
    display: flex;
    min-height: min(430px, 78vw);
    align-items: center;
    overflow: hidden;
    padding: 72px 11%;
    color: white;
    background: #354e4a url('background image.jpg') center 45% / cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 35, 38, 0.77) 0%, rgba(14, 35, 38, 0.42) 48%, rgba(14, 35, 38, 0.06) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 16px;
    color: #a86543;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f1c59f;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.14;
}

h1 {
    max-width: 600px;
    margin-bottom: 20px;
    font-size: clamp(3.6rem, 8vw, 7rem);
    letter-spacing: -0.045em;
}

.hero-intro {
    max-width: 475px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.87);
    font-size: 1.08rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    color: var(--ink);
    background: #fffefa;
}

.button-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.button-dark {
    color: white;
    background: var(--green);
}

.button-dark:hover {
    background: #274638;
}

.image-caption {
    position: absolute;
    right: 7.5%;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.section-wrap {
    width: min(1100px, 85%);
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 9%;
    align-items: end;
    padding-top: 112px;
    padding-bottom: 108px;
}

.section-heading h2,
.protect h2,
.migration h2,
.donation h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.035em;
}

.intro-copy p,
.protect-copy > p:last-child {
    margin-bottom: 21px;
    color: var(--muted);
}

.text-link {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.habitats {
    padding-bottom: 115px;
}

.habitats .section-heading {
    margin-bottom: 36px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card {
    position: relative;
    min-height: 275px;
    padding: 28px;
    overflow: hidden;
    background: var(--cream);
}

.card-number {
    color: #9a684c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.info-card h3 {
    margin: 36px 0 12px;
    font-size: 1.55rem;
}

.info-card p {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 0;
    color: var(--muted);
    font-size: 0.91rem;
}

.card-icon {
    position: absolute;
    right: 20px;
    bottom: -31px;
    color: rgba(53, 91, 75, 0.09);
    font-family: var(--serif);
    font-size: 9rem;
    line-height: 1;
}

.migration {
    display: grid;
    min-height: 390px;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    overflow: hidden;
    color: white;
    background: #294239;
}

.migration-content {
    max-width: 650px;
    justify-self: end;
    padding: 70px 12% 70px 15%;
}

.migration .eyebrow {
    color: #e0b18d;
}

.migration h2 {
    margin-bottom: 18px;
}

.migration-content > p:not(.eyebrow) {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.77);
}

.migration-art {
    align-self: stretch;
    min-height: 320px;
    background: linear-gradient(0deg, rgba(26, 51, 42, 0.06), rgba(26, 51, 42, 0.06)), url('background image.jpg') 68% center / cover no-repeat;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.protect {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 12%;
    padding-top: 115px;
    padding-bottom: 120px;
}

.protect-copy > p:last-child {
    margin-top: 22px;
}

.action-list > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.action-list > div:first-child {
    padding-top: 0;
}

.action-list > div span {
    color: #a86543;
    font-size: 0.77rem;
    font-weight: 700;
}

.action-list > div p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.action-list .button {
    margin-top: 24px;
}

.donation {
    background: var(--cream);
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 10%;
    align-items: center;
    padding-top: 78px;
    padding-bottom: 82px;
}

.donation h2 {
    max-width: 520px;
}

.donation-action p {
    margin-bottom: 22px;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px 40px;
    align-items: center;
    padding: 38px 7.5% 24px;
    color: rgba(255, 255, 255, 0.76);
    background: #1d302d;
}

.footer-brand {
    color: white;
}

.site-footer > p {
    justify-self: end;
    margin: 0;
    font-family: var(--serif);
    font-size: 1rem;
}

.footer-links {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer small {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.75rem;
}

@media (max-width: 760px) {
    .site-header {
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 6%;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0;
        border-top: 1px solid var(--line);
    }

    .main-nav a {
        flex: 1;
        padding: 9px 0 2px;
        text-align: center;
    }

    .header-link {
        font-size: 0.75rem;
    }

    .hero {
        min-height: 600px;
        padding: 70px 8%;
        background-position: 58% center;
    }

    .intro,
    .protect,
    .donation-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .section-wrap {
        width: 86%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 245px;
    }

    .habitats {
        padding-bottom: 78px;
    }

    .migration {
        grid-template-columns: 1fr;
    }

    .migration-content {
        justify-self: stretch;
        padding: 70px 8%;
    }

    .migration-art {
        min-height: 230px;
        clip-path: none;
        background-position: center 43%;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        padding-right: 6%;
        padding-left: 6%;
    }

    .site-footer > p {
        justify-self: center;
        text-align: center;
    }

    .footer-links {
        gap: 12px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
