:root {
    --bg: #f7f0e3;
    --surface: #fffaf3;
    --surface-strong: #f1e2c3;
    --ink: #243029;
    --muted: #5e665d;
    --brand: #1f6a48;
    --brand-dark: #123926;
    --accent: #bc6c25;
    --line: rgba(36, 48, 41, 0.12);
    --shadow: 0 18px 40px rgba(17, 27, 21, 0.09);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(188, 108, 37, 0.18), transparent 28%),
        linear-gradient(180deg, #f9f5ec 0%, #f3ead9 100%);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

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

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

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(249, 245, 236, 0.88);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
}

.site-title {
    display: inline-block;
    color: var(--brand-dark);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
}

.site-tagline {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font: inherit;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-list a:hover,
.menu-list a:focus {
    background: rgba(31, 106, 72, 0.1);
    color: var(--brand-dark);
}

.site-main > section {
    position: relative;
}

.hero-section {
    padding: 5rem 0 3rem;
}

.hero-grid,
.dual-grid,
.president-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.hero-section h1,
.page-hero h1 {
    margin: 0 0 1rem;
    line-height: 1.1;
    font-size: clamp(2.5rem, 6vw, 4.9rem);
}

.hero-copy {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-panel,
.panel,
.card,
.event-card,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 243, 0.9);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 1.5rem;
    align-self: start;
}

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

.hero-links li + li {
    margin-top: 0.8rem;
}

.hero-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: var(--surface);
}

.hero-actions,
.cta-links,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
}

.button-primary {
    background: var(--brand);
    color: #fff;
}

.button-secondary {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand-dark);
}

.content-section {
    padding: 2rem 0 4rem;
}

.content-section--soft {
    background: rgba(255, 255, 255, 0.4);
}

.content-section--accent {
    background: linear-gradient(180deg, rgba(31, 106, 72, 0.08), rgba(255, 250, 243, 0.55));
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.panel h2,
.cta-panel h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-kicker,
.card-tag,
.meta-inline {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

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

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
    overflow: hidden;
}

.card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-media img,
.card-media--square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media--square {
    aspect-ratio: 1 / 1;
}

.card-body {
    padding: 1.35rem;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    line-height: 1.25;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.entry-meta span {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 106, 72, 0.08);
    color: var(--brand-dark);
    font-size: 0.85rem;
}

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

.event-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
}

.event-card__date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    background: var(--brand-dark);
    color: #fff;
    min-height: 140px;
}

.event-card__date strong {
    font-size: 2.8rem;
    line-height: 1;
}

.event-card__body h3 {
    margin: 0 0 0.8rem;
    font-size: 1.45rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-grid__item {
    display: block;
    border: 0;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.04);
}

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

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 250, 243, 0.92);
    padding: 1rem 1.15rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-answer {
    padding-top: 1rem;
}

.video-embed iframe {
    width: 100%;
    min-height: 280px;
    border: 0;
    border-radius: 16px;
}

.page-hero {
    padding: 3.5rem 0 1rem;
}

.page-hero--compact h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.prose {
    max-width: 78ch;
}

.prose h2,
.prose h3 {
    line-height: 1.2;
}

.single-featured-image {
    margin-bottom: 1.5rem;
}

.president-photo img,
.single-featured-image img,
.map-embed iframe {
    width: 100%;
    border-radius: var(--radius);
}

.placeholder-card {
    display: grid;
    place-items: center;
    min-height: 280px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(31, 106, 72, 0.08),
        rgba(31, 106, 72, 0.08) 14px,
        rgba(188, 108, 37, 0.06) 14px,
        rgba(188, 108, 37, 0.06) 28px
    );
    color: var(--muted);
    border-radius: var(--radius);
    text-align: center;
    padding: 1rem;
}

.cta-panel,
.panel {
    padding: 1.5rem;
}

.pagination-wrap {
    margin-top: 2rem;
}

.pagination .nav-links,
.pagination-wrap .nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(12, 18, 16, 0.88);
}

.gallery-modal[hidden] {
    display: none !important;
}

.gallery-modal__content {
    max-width: min(100%, 1200px);
}

.gallery-modal__image {
    max-height: 82vh;
    width: auto;
    margin: 0 auto;
}

.gallery-modal__caption {
    margin: 0.8rem 0 0;
    text-align: center;
    color: #f8f2e7;
}

.gallery-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border: 0;
    border-radius: 999px;
    width: 48px;
    height: 48px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    background: rgba(18, 57, 38, 0.94);
    color: #f9f5ec;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
}

.site-footer a {
    color: #f9f5ec;
}

@media (max-width: 980px) {
    .hero-grid,
    .dual-grid,
    .president-grid,
    .footer-grid,
    .card-grid--two,
    .card-grid--three,
    .card-grid--four,
    .gallery-grid,
    .event-card {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        width: 100%;
    }

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

    .menu-list {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .menu-list a {
        width: 100%;
    }

    .event-card__date {
        min-height: 110px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 3rem;
    }

    .content-section {
        padding: 1.5rem 0 3rem;
    }

    .gallery-modal {
        padding: 1rem;
    }

    .gallery-modal__close {
        top: 0.7rem;
        right: 0.7rem;
    }
}
