:root {
    --accent: #38bdf8;
    --accent-deep: #0798d1;
    --accent-pale: #e9f8ff;
    --ink: #0b0f14;
    --muted: #58616c;
    --line: #dce5eb;
    --surface: #ffffff;
    --surface-soft: #f4faff;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(11, 15, 20, 0.11);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
    top: 32px;
}

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

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

a:hover,
a:focus {
    color: var(--accent-deep);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.55em;
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    max-width: 850px;
}

h2 {
    font-size: clamp(2.35rem, 4.4vw, 4.8rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
    margin: 0 0 1.25em;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.content-narrow {
    max-width: 840px;
}

.section-pad {
    padding: clamp(82px, 9vw, 140px) 0;
}

.section-soft {
    background: var(--surface-soft);
}

.centered {
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 20px;
    top: -100px;
    background: var(--ink);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
}

.skip-link:focus {
    top: 20px;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(11, 15, 20, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img,
.brand .custom-logo {
    width: min(250px, 34vw);
    height: auto;
}

.brand .custom-logo-link {
    display: flex;
}

.primary-nav .menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a {
    font-size: 0.93rem;
    font-weight: 700;
}

.primary-nav .menu-donate a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.25);
}

.primary-nav .menu-donate a:hover,
.primary-nav .menu-donate a:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(86px, 9vw, 140px);
    background:
        radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.18), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.35;
    background-image: linear-gradient(rgba(11, 15, 20, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 15, 20, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    align-items: center;
    gap: clamp(55px, 7vw, 100px);
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin-bottom: 28px;
}

.hero-lead {
    max-width: 690px;
    color: #3f4853;
    font-size: clamp(1.03rem, 1.7vw, 1.24rem);
}

.hero-actions,
.involve-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 25px;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.24);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.button-outline {
    background: transparent;
    border-color: var(--ink);
    box-shadow: none;
}

.button-light-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: white;
    box-shadow: none;
}

.button-light-outline:hover,
.button-light-outline:focus {
    background: white;
    border-color: white;
    color: var(--ink);
}

.button-full {
    width: 100%;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags span {
    padding: 8px 13px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #27303a;
    font-size: 0.79rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 540px;
}

.visual-card {
    position: absolute;
    inset: 55px 8px 25px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 15, 20, 0.08);
    border-radius: 34px;
    box-shadow: var(--shadow);
    transform: rotate(2.5deg);
}

.visual-main::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), transparent 48%);
}

.visual-kicker {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 28px;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-card svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 56px 25px 15px;
}

.svg-blue-fill {
    fill: var(--accent);
}

.svg-dark-line {
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
}

.svg-dark-line.small {
    stroke-width: 6;
}

.svg-blue-dark {
    fill: #169fd5;
    stroke: var(--ink);
    stroke-linejoin: round;
    stroke-width: 7;
}

.svg-heart {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 7;
}

.svg-orbit {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 7;
}

.svg-box-lines {
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-width: 7;
}

.visual-note {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 2px;
    min-width: 190px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid rgba(11, 15, 20, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(11, 15, 20, 0.13);
}

.visual-note strong {
    font-size: 0.87rem;
}

.visual-note span {
    color: var(--muted);
    font-size: 0.74rem;
}

.note-top {
    top: 25px;
    left: -18px;
    transform: rotate(-5deg);
}

.note-bottom {
    right: -12px;
    bottom: 20px;
    transform: rotate(4deg);
}

.mission-band {
    padding: clamp(58px, 7vw, 92px) 0;
    background: var(--accent);
}

.mission-grid {
    display: grid;
    grid-template-columns: 0.32fr 1.68fr;
    gap: 60px;
    align-items: start;
}

.eyebrow-dark {
    color: var(--ink);
}

.mission-grid h2 {
    max-width: 960px;
    margin: 0;
    font-size: clamp(2.25rem, 4.7vw, 5.3rem);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(60px, 9vw, 130px);
    align-items: start;
}

.section-heading h2 {
    max-width: 720px;
}

.section-heading.centered {
    max-width: 860px;
    margin: 0 auto 55px;
}

.section-heading.centered p:last-child {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

.prose {
    color: #3f4853;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.text-link,
.program-card a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

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

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 34px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(11, 15, 20, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card::after {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    content: "";
    background: var(--accent-pale);
    border-radius: 50%;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(11, 15, 20, 0.11);
}

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

.program-card a {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.icon-box {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 28px;
    background: var(--accent-pale);
    border-radius: 18px;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.impact-grid,
.get-involved-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(50px, 8vw, 110px);
}

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

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 38px;
    font-weight: 700;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    content: "✓";
    background: var(--accent);
    border-radius: 50%;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.impact-panel {
    padding: 16px 34px;
    background: var(--ink);
    border-radius: 30px;
    color: white;
    box-shadow: var(--shadow);
}

.impact-item {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.impact-item:last-child {
    border-bottom: 0;
}

.impact-item > span {
    color: var(--accent);
    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.impact-item strong {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
}

.impact-item p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.section-dark {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: white;
}

.section-dark::after {
    position: absolute;
    right: -120px;
    top: -160px;
    width: 460px;
    height: 460px;
    content: "";
    background: rgba(56, 189, 248, 0.14);
    border-radius: 50%;
    filter: blur(3px);
}

.section-dark h2 {
    max-width: 820px;
}

.section-dark p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow-light {
    color: var(--accent);
}

.get-involved-grid {
    position: relative;
    z-index: 1;
    align-items: center;
}

.involve-actions {
    justify-content: flex-end;
    margin: 0;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 560px;
    color: var(--muted);
}

.contact-detail {
    display: grid;
    gap: 3px;
    margin-top: 22px;
}

.contact-detail strong {
    font-family: "Manrope", sans-serif;
}

.contact-detail span,
.contact-detail a {
    color: var(--muted);
}

.contact-card {
    padding: clamp(26px, 4vw, 45px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.field-row {
    display: grid;
    gap: 8px;
    margin-bottom: 19px;
}

.field-row label {
    font-size: 0.88rem;
    font-weight: 800;
}

.field-row input,
.field-row select,
.field-row textarea {
    width: 100%;
    padding: 14px 16px;
    background: #fbfdff;
    border: 1px solid #cbd6dd;
    border-radius: 12px;
    color: var(--ink);
    outline: none;
}

.field-row textarea {
    resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.form-notice.success {
    background: #e7f9f0;
    color: #0a6840;
}

.form-notice.error {
    background: #fff1f1;
    color: #a11212;
}

.site-footer {
    padding: 72px 0 28px;
    background: #06080b;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
}

.footer-grid p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.64);
}

.footer-brand {
    margin-bottom: 20px !important;
    color: white !important;
    font-family: "Manrope", sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.footer-grid h2 {
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-menu {
    display: grid;
    gap: 8px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
}

.content-area {
    min-height: 65vh;
}

.page-header {
    margin-bottom: 42px;
}

.page-header h1 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
}

.entry-content,
.post-card {
    color: #343d47;
    font-size: 1.06rem;
}

.entry-content a {
    color: var(--accent-deep);
    text-decoration: underline;
}

.post-list {
    display: grid;
    gap: 22px;
}

.post-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.post-card h2 {
    font-size: 1.9rem;
}

.post-meta {
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-page {
    display: grid;
    min-height: 65vh;
    place-items: center;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button,
    .program-card {
        transition: none;
    }
}

@media (max-width: 1000px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 10px);
        display: none;
        padding: 20px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        display: grid;
        gap: 4px;
    }

    .primary-nav a {
        display: block;
        padding: 12px;
    }

    .primary-nav .menu-donate a {
        margin-top: 8px;
    }

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

    .hero-grid {
        gap: 30px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .program-card {
        min-height: 0;
    }

    .involve-actions {
        justify-content: flex-start;
    }

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

@media (max-width: 700px) {
    body.admin-bar .site-header {
        top: 0;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section-pad {
        padding: 76px 0;
    }

    .header-inner {
        min-height: 76px;
    }

    .brand img,
    .brand .custom-logo {
        width: 190px;
    }

    h1 {
        font-size: clamp(2.75rem, 14vw, 4.4rem);
    }

    h2 {
        font-size: clamp(2.1rem, 10vw, 3.35rem);
    }

    .hero {
        padding-top: 70px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .visual-card {
        inset: 42px 5px 24px 5px;
        border-radius: 24px;
    }

    .visual-note {
        min-width: 155px;
        padding: 12px 14px;
    }

    .note-top {
        left: 0;
    }

    .note-bottom {
        right: 0;
    }

    .mission-band {
        padding: 62px 0;
    }

    .program-card,
    .contact-card {
        padding: 25px;
    }

    .impact-panel {
        padding: 10px 24px;
    }

    .impact-item {
        grid-template-columns: 52px 1fr;
        gap: 14px;
    }

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