:root {
    --blue: #1d6fd4;
    --blue-deep: #124a96;
    --coral: #e85a3c;
    --coral-dark: #a82d1f;
    --ink: #1c2430;
    --muted: #5c6778;
    --line: #e4e8ef;
    --sand: #fff7f2;
    --paper: #f4f7fb;
    --white: #fff;
    --shadow: 0 16px 40px rgba(18, 74, 150, 0.12);
    color-scheme: light;
}

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

body {
    margin: 0;
    font-family: Nunito, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
.brand-name,
.tagline,
.footer-name,
.stat strong {
    font-family: "League Spartan", "Arial Narrow", Impact, sans-serif;
}

h1,
h2,
h3 {
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--blue-deep);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

h2 {
    margin: 0 0 1rem;
    color: var(--blue-deep);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--blue-deep);
}

a:hover {
    color: var(--coral-dark);
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--white);
    color: var(--ink);
    padding: 0.5rem 1rem;
    z-index: 50;
    border-radius: 8px;
}

.skip:focus {
    top: 0.5rem;
}

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 2rem));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    border-top: 6px solid var(--coral);
    box-shadow: 0 1px 0 rgba(18, 74, 150, 0.08);
}

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--blue-deep);
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-kicker {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--coral-dark);
}

.brand-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.9;
    font-size: 1.15rem;
}

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-toggle:focus-visible + .nav-button {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.nav-button {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--blue-deep);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.site-nav a {
    text-decoration: none;
    font-weight: 800;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.site-nav a[aria-current="page"] {
    color: var(--coral-dark);
}

.nav-donate {
    background: var(--coral-dark);
    color: var(--white);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
}

.site-nav a.nav-donate:hover,
.site-nav a.nav-donate[aria-current="page"] {
    background: var(--blue-deep);
    color: var(--white);
}

.hero,
.page-hero {
    background:
        radial-gradient(circle at 8% 20%, rgba(232, 90, 60, 0.16), transparent 26%),
        radial-gradient(circle at 90% 0%, rgba(29, 111, 212, 0.16), transparent 28%),
        var(--sand);
}

.hero {
    padding: 3.2rem 0 4rem;
}

.page-hero {
    padding: 3rem 0 1.5rem;
}

.hero-grid,
.split,
.give-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.give-grid,
.contact-grid {
    align-items: start;
}

.tagline {
    color: var(--coral-dark);
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-transform: none;
    letter-spacing: 0;
    margin: 0.7rem 0 1rem;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--coral-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.lede {
    font-size: 1.15rem;
    max-width: 40rem;
    color: #334155;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--coral-dark);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--blue-deep);
    color: var(--white);
}

.button-blue {
    background: var(--blue);
}

.button-ghost {
    background: transparent;
    color: var(--blue-deep);
    border-color: var(--blue-deep);
}

.button-ghost:hover {
    background: var(--blue-deep);
    color: var(--white);
}

.button-ghost.light {
    color: var(--white);
    border-color: var(--white);
}

.button-ghost.light:hover {
    background: var(--white);
    color: var(--blue-deep);
}

.art-frame {
    aspect-ratio: 10 / 7;
    overflow: hidden;
    border-radius: 28px;
    background: #d7ebff;
    box-shadow: var(--shadow);
}

.art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section {
    padding: 4rem 0;
}

.section.tight {
    padding-top: 0.5rem;
}

.band {
    background: var(--paper);
    padding: 4rem 0;
}

.impact-grid,
.ways,
.two,
.stat-grid,
.footer-grid {
    display: grid;
    gap: 1rem;
}

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

.ways {
    grid-template-columns: repeat(3, 1fr);
}

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

.impact-grid article,
.ways article,
.panel,
.give-card,
.stat {
    border-radius: 22px;
    padding: 1.2rem 1.2rem 1.3rem;
}

.impact-grid article p,
.ways article p,
.panel p {
    margin-bottom: 0;
}

.impact-grid article:nth-child(odd) {
    background: var(--blue-deep);
}

.impact-grid article:nth-child(even) {
    background: var(--coral-dark);
}

.impact-grid article h3,
.impact-grid article p {
    color: var(--white);
}

.ways article {
    background: var(--white);
    border: 2px solid var(--line);
    border-top: 6px solid var(--coral);
    box-shadow: 0 10px 30px rgba(18, 74, 150, 0.06);
}

.ways h2,
.ways h3,
.impact-grid h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.05;
}

.ways article a {
    display: inline-flex;
    margin-top: 0.85rem;
    font-weight: 800;
}

.panel {
    background: var(--white);
    border: 2px solid var(--line);
}

.panel-blue {
    background: linear-gradient(180deg, var(--blue), var(--blue-deep));
    color: var(--white);
    border-radius: 28px;
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.panel-blue h2,
.panel-blue .eyebrow {
    color: var(--white);
}

.panel-blue .eyebrow {
    color: #ffd0c8;
}

.checks {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.checks li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0.85rem 0;
}

.tick {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: var(--coral);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.cta {
    background: var(--blue-deep);
    color: var(--white);
    padding: 3.5rem 0;
}

.cta h2,
.cta .lede {
    color: var(--white);
}

.give-card {
    background: var(--sand);
    border: 2px solid #f0d2c8;
}

.give-card h2 {
    font-size: 1.8rem;
}

.give-card h3 {
    margin-top: 1.2rem;
    font-size: 1.15rem;
}

.quote-band {
    margin: 0;
    padding: 3.2rem 1rem;
    background: var(--blue-deep);
    color: var(--white);
    text-align: center;
}

.quote-band blockquote {
    margin: 0 auto;
    max-width: 16em;
    font-family: "League Spartan", "Arial Narrow", Impact, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.people-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
}

.people-list li {
    display: flex;
    flex-direction: column;
    margin: 0 0 0.9rem;
}

.notice {
    background: #e5f6ea;
    color: #14532d;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.notice-warn {
    background: #ffe8e3;
    color: #7f1d1d;
}

.fine {
    color: var(--muted);
    font-size: 0.92rem;
}

.req {
    color: var(--coral-dark);
}

.stack-form {
    position: relative;
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.field {
    margin-bottom: 1rem;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 1rem;
}

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

.grid-3 {
    grid-template-columns: 1.4fr 0.6fr 0.8fr;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

input,
select,
textarea {
    width: 100%;
    border: 2px solid #d5dbe6;
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
}

textarea {
    resize: vertical;
}

::placeholder {
    color: #6b7280;
    opacity: 1;
}

.site-footer {
    background: var(--blue-deep);
    color: var(--white);
    padding: 2.5rem 0 1.2rem;
}

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

.footer-name {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 0.95;
}

.site-footer h2 {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.site-footer a {
    color: var(--white);
}

.legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.86);
}

.auth {
    background: var(--sand);
    border-top: 6px solid var(--coral);
}

.auth-card {
    width: min(460px, calc(100% - 2rem));
    margin: 8vh auto;
    background: var(--white);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.admin {
    background: var(--paper);
    border-top: 6px solid var(--coral);
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

.admin-side {
    background: var(--blue-deep);
    color: var(--white);
    padding: 1.2rem 0.9rem;
}

.admin-brand {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-family: "League Spartan", "Arial Narrow", Impact, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-size: 1.35rem;
    line-height: 0.95;
    padding: 0.3rem 0.7rem 0.2rem;
}

.admin-kicker {
    margin: 0 0 1rem;
    padding: 0 0.7rem;
    color: #ffd0c8;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.admin-side a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    min-height: 44px;
    font-weight: 700;
}

.admin-side a.active,
.admin-side a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.count {
    margin-left: 0.45rem;
    background: var(--white);
    color: var(--coral-dark);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.8rem;
}

.admin-main {
    padding: 1.6rem 1.4rem 3rem;
}

.admin-main h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.admin-main .table-wrap + h2 {
    margin-top: 1.5rem;
}

.admin-form {
    max-width: 28rem;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.5rem;
}

.stat {
    display: block;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(18, 74, 150, 0.08);
}

.stat span {
    color: var(--muted);
    font-weight: 800;
}

.stat strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 2.5rem;
    color: var(--blue-deep);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-end;
    margin-bottom: 1.2rem;
}

.filters .field {
    margin: 0;
    min-width: 180px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

table.compact {
    min-width: 0;
}

th,
td {
    text-align: left;
    padding: 0.75rem 0.7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

th {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: capitalize;
}

.badge-new {
    background: #ffe8e3;
    color: #9f2d1d;
}

.badge-contacted {
    background: #e5f0ff;
    color: var(--blue-deep);
}

.badge-closed {
    background: #e7f6ec;
    color: #1d6b3a;
}

.detail {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.detail div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem;
    background: var(--white);
    border-radius: 14px;
    padding: 0.8rem 1rem;
}

.detail dt {
    font-weight: 800;
}

.detail dd {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .nav-button {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 0.4rem 1rem 1rem;
        box-shadow: var(--shadow);
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
        justify-content: flex-start;
    }

    .nav-donate {
        justify-content: center;
    }

    .hero-grid,
    .split,
    .give-grid,
    .contact-grid,
    .two,
    .footer-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

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

    .ways,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-side {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2rem;
    }

    .admin-brand,
    .admin-kicker {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .impact-grid,
    .grid-2,
    .grid-3,
    .detail div {
        grid-template-columns: 1fr;
    }

    .section,
    .band {
        padding: 2.5rem 0;
    }

    .header-bar {
        min-height: 72px;
    }

    .brand-name {
        font-size: 0.95rem;
    }
}

.event-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0.2rem 0 0;
    font-weight: 800;
}

.event-group + .event-group {
    margin-top: 2.6rem;
}

.event-list {
    display: grid;
    gap: 1rem;
}

.event-card {
    display: grid;
    background: var(--white);
    border: 2px solid var(--line);
    border-top: 6px solid var(--coral);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 74, 150, 0.06);
}

.event-group-past .event-card {
    border-top-color: var(--blue);
}

.event-card-media {
    position: relative;
    display: block;
    min-height: 210px;
    background: #d7ebff;
}

.event-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card-body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.event-card h3 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.event-card h3 a {
    color: var(--blue-deep);
    text-decoration: none;
}

.event-card h3 a:hover {
    color: var(--coral-dark);
}

.event-times {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    color: var(--coral-dark);
    font-weight: 800;
}

.event-times li + li {
    margin-top: 0.2rem;
}

.event-more {
    display: inline-flex;
    margin-top: 0.35rem;
    font-weight: 800;
}

.empty-note {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--paper);
    border-radius: 16px;
    color: var(--muted);
    font-weight: 700;
}

.back-link {
    margin: 0 0 0.8rem;
    font-weight: 800;
}

.event-copy {
    max-width: 42rem;
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.gallery-title {
    margin-top: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #d7ebff;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: -0.35rem 0 1rem;
    font-weight: 800;
}

.admin-event-form,
.danger-zone {
    max-width: 52rem;
}

.schedule-block {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 16px;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem 1rem;
}

.schedule-block legend {
    font-weight: 800;
    padding: 0 0.35rem;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1.15fr 0.85fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.schedule-row .field,
.schedule-row label {
    margin-bottom: 0;
}

.schedule-row label input {
    margin-top: 0.35rem;
}

.admin-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
    margin: 0 0 1.4rem;
}

.admin-photo {
    margin: 0;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.admin-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.admin-photo form {
    padding: 0.15rem 0.55rem 0.35rem;
}

.text-button {
    background: none;
    border: 0;
    color: var(--coral-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0.35rem 0.1rem;
    min-height: 44px;
}

.text-button:hover {
    color: var(--blue-deep);
}

.danger-zone {
    margin-top: 2.2rem;
    padding-top: 0.4rem;
    border-top: 2px solid var(--line);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
}

.check-line input {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
}

.badge-upcoming {
    background: #e5f0ff;
    color: var(--blue-deep);
    text-transform: none;
}

.badge-past {
    background: #eef1f6;
    color: #3e4a5d;
    text-transform: none;
}

@media (min-width: 760px) {
    .event-card.has-photo {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .event-card.has-photo .event-card-media {
        height: 100%;
    }
}

@media (max-width: 800px) {
    .schedule-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .schedule-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
