:root {
    color-scheme: dark;
    --bg: #000000;
    --text: #f5f7fb;
    --muted: #8b8b8b;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 24px 48px;
    background: var(--bg);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero {
    display: grid;
    gap: 24px;
    min-height: calc(100vh - 80px);
    text-align: center;
}

.brand-logo {
    width: 92px;
    height: 92px;
    object-fit: cover;
    justify-self: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #050505;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-text {
    align-self: start;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    align-self: start;
}

.project-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background: linear-gradient(180deg, #0b0b0b, #050505);
    text-align: left;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.project-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.donation-section + .donation-section {
    margin-top: 18px;
}

.donation-section__title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.donation-tier {
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #111111;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.donation-tier:hover,
.donation-tier:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: #1a1a1a;
    outline: none;
}

.donation-grid > .donation-tier:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 48%);
}

.donate-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 20;
}

.donate-modal.is-open {
    display: flex;
}

.donate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
}

.donate-modal__panel {
    position: relative;
    width: min(460px, 100%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background: linear-gradient(180deg, #0c0c0c, #050505);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    z-index: 1;
    text-align: center;
}

.donate-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #141414;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.donate-modal__close:hover,
.donate-modal__close:focus-visible {
    background: #232323;
    outline: none;
}

.donate-modal h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.donate-modal__qr-frame {
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background: #101010;
}

.donate-modal__qr-frame img {
    display: block;
    width: min(100%, 280px);
    aspect-ratio: 1;
    object-fit: contain;
}

@media (max-width: 760px) {
    body {
        padding: 24px 16px 32px;
    }

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

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

    .donation-grid > .donation-tier:last-child {
        width: 100%;
    }
}
