:root {
    --ink: #241f1c;
    --muted: #665f58;
    --soft: #f7f2ec;
    --paper: #fffdf9;
    --line: #e5d8ca;
    --maple: #b94122;
    --maple-dark: #7d2218;
    --gold: #d69524;
    --teal: #1f6d73;
    --sage: #dfe9dc;
    --charcoal: #172022;
    --shadow: 0 18px 50px rgba(36, 31, 28, 0.12);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 253, 249, 0.92);
    border-bottom: 1px solid rgba(229, 216, 202, 0.9);
    backdrop-filter: blur(16px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.site-nav.scrolled {
    box-shadow: 0 10px 30px rgba(36, 31, 28, 0.08);
}

.brand {
    width: min(330px, 54vw);
    flex: 0 1 auto;
}

.brand img {
    height: 54px;
    width: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.93rem;
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
}

.nav-links a:hover {
    color: var(--maple);
}

.nav-donate,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-donate,
.button.primary {
    background: var(--maple);
    color: #fff;
}

.button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.nav-donate:hover,
.button.primary:hover {
    background: var(--maple-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(125, 34, 24, 0.18);
}

.button.secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(36, 31, 28, 0.09);
}

.button.full {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: 88vh;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    padding: 128px clamp(20px, 5vw, 72px) 56px;
    background:
        linear-gradient(110deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.88) 48%, rgba(223, 233, 220, 0.86) 100%),
        url("../images/red-maple-logo.jpg") center / min(940px, 95vw) no-repeat;
}

.hero-copy,
.section,
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: "Noto Serif", Georgia, serif;
    line-height: 1.08;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 7vw, 6rem);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.hero-lead {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 820px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.trust-strip div {
    min-width: 0;
    padding: 16px;
    background: rgba(255, 253, 249, 0.88);
}

.trust-strip dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.trust-strip dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.hero-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 480px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(229, 216, 202, 0.88);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.86);
    box-shadow: var(--shadow);
}

.hero-panel img {
    width: 100%;
    margin: auto 0 28px;
    border-radius: 8px;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section {
    padding: 92px clamp(20px, 5vw, 72px);
}

.split,
.contact {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 6vw, 84px);
}

.prose {
    color: var(--muted);
    font-size: 1.08rem;
}

.prose p:last-child,
.section-heading p:last-child,
.impact-copy p:last-child,
.donate-card p:last-child,
.site-footer p:last-child {
    margin-bottom: 0;
}

.feature-band,
.governance {
    max-width: none;
    background: var(--soft);
}

.section-heading {
    max-width: var(--max);
    margin: 0 auto 36px;
}

.section-heading p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
}

.program-grid,
.document-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.program-card {
    min-height: 248px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.program-card p {
    color: var(--muted);
}

.card-mark {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--maple);
    font-weight: 900;
}

.impact {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
}

.impact-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.impact-list {
    display: grid;
    gap: 14px;
}

.impact-list div {
    padding: 22px;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    background: var(--sage);
}

.impact-list strong,
.impact-list span {
    display: block;
}

.impact-list strong {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.impact-list span {
    color: var(--muted);
}

.donate-section {
    padding: 28px clamp(20px, 5vw, 72px) 104px;
}

.donate-card {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: clamp(26px, 5vw, 64px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    box-shadow: var(--shadow);
}

.donate-card .eyebrow {
    color: #f0b84e;
}

.donate-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.note {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.support-form {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

label {
    font-size: 0.86rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(214, 149, 36, 0.22);
    border-color: var(--gold);
}

.form-hint,
.small {
    color: var(--muted);
    font-size: 0.88rem;
}

.support-form .form-hint {
    margin: 0;
}

.document-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-grid a {
    min-height: 92px;
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.document-grid a:hover {
    color: var(--maple);
    box-shadow: 0 10px 28px rgba(36, 31, 28, 0.08);
}

.contact-panel {
    display: grid;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.contact-panel a {
    font-weight: 800;
    color: var(--maple-dark);
    text-decoration: none;
}

.contact-panel p {
    margin-bottom: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 34px clamp(20px, 5vw, 72px) 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--ink);
}

.site-footer p {
    max-width: 670px;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .hero,
    .split,
    .impact,
    .donate-card,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-bottom: 44px;
    }

    .hero-panel {
        min-height: 0;
    }

    .program-grid,
    .document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand {
        width: min(260px, 68vw);
    }

    .brand img {
        height: 46px;
    }

    h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .hero {
        padding-top: 112px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .trust-strip,
    .program-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .donate-section {
        padding-bottom: 72px;
    }

    .donate-card {
        padding: 24px;
    }

    .support-form {
        padding: 18px;
    }

    .site-footer {
        display: block;
    }
}
