/* Home page visual system: warm cream, deep evergreen, and a small vermilion accent. */
.home-page {
    --home-ink: #193b35;
    --home-muted: #52645d;
    --home-paper: #faf8f1;
    --home-green: #244c41;
    --home-red: #bb563d;
    background: var(--home-paper);
    color: var(--home-ink);
}

/* Welcome heading sits above the slideshow photograph. */
.home-page .home-hero-heading {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 28px;
    text-align: center;
}

.home-page .home-hero-heading h2 {
    margin: 0;
    color: var(--home-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.home-page .home-hero {
    min-height: clamp(420px, 48vw, 620px);
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #314c40;
    isolation: isolate;
}

.home-page .home-hero-image,
.home-page .home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .home-hero-image { object-fit: cover; z-index: -2; }
.home-page .home-hero-shade {
    z-index: -1;
    /* A restrained lower fade keeps the buttons readable without covering the photo. */
    background: linear-gradient(0deg, rgba(15,38,32,.48) 0%, rgba(15,38,32,.16) 24%, rgba(15,38,32,0) 52%);
}

/* The hero content now contains only the two action buttons. */
.home-page .home-hero-content {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: #fff;
}

.home-page .home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.home-page .home-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease;
}
.home-page .home-button:hover { transform: translateY(-2px); }
.home-page .home-button-primary { background: #f0d8aa; color: #193b35; }
.home-page .home-button-primary:hover { background: #ffe9bf; }
.home-page .home-button-secondary { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(25,59,53,.24); }
.home-page .home-button-secondary:hover { background: rgba(25,59,53,.48); }

/* The decorative photo caption is no longer used. */
.home-page .home-hero-caption { display: none; }

.home-page .home-eyebrow {
    margin: 0 0 14px;
    color: #f1d8a9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-page .home-welcome,
.home-page .home-explore { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.home-page .home-welcome { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 28px; align-items: center; padding: 76px 0 72px; border-bottom: 1px solid #dedfd4; }
.home-page .home-welcome-mark { width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid #d8c5a1; border-radius: 50%; color: var(--home-red); font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 38px; }
.home-page .home-eyebrow-dark { color: var(--home-red); }
.home-page .home-welcome h2,
.home-page .home-section-heading h2 { margin: 0; color: var(--home-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.home-page .home-welcome p:last-child { max-width: 760px; margin: 14px 0 0; color: var(--home-muted); font-size: 16px; line-height: 1.8; }

.home-page .home-explore { padding: 66px 0 88px; }
.home-page .home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-page .home-text-link { padding-bottom: 5px; color: var(--home-green); font-size: 14px; font-weight: 700; text-decoration-color: #9cab9f; text-underline-offset: 5px; }
.home-page .home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-page .home-card { min-height: 258px; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid #e2e0d5; background: #fffefa; color: var(--home-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-page .home-card:hover { transform: translateY(-4px); border-color: #c9d2c5; box-shadow: 0 12px 28px rgba(25,59,53,.08); }
.home-page .home-card-number { position: absolute; top: 25px; right: 25px; color: #a0a89f; font-size: 12px; letter-spacing: .08em; }
.home-page .home-card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; background: #edf1e9; color: var(--home-green); font-size: 21px; }
.home-page .home-card-news .home-card-icon { background: #f8eee3; color: #9a5c32; }
.home-page .home-card-join .home-card-icon { background: #f6ebe8; color: var(--home-red); }
.home-page .home-card h3 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.home-page .home-card p { margin: 0 0 23px; color: var(--home-muted); font-size: 14px; line-height: 1.7; }
.home-page .home-card-link { margin-top: auto; color: var(--home-green); font-size: 13px; font-weight: 700; }
.home-page .home-card-link span { padding-left: 5px; color: var(--home-red); }
.home-page .home-current-events { width: 100%; margin: 0 0 18px; padding-left: 20px; color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.home-page .home-current-events li { margin: 3px 0; }
.home-page .home-history-card { grid-column: 1 / -1; min-height: 0; }
.home-page .home-history-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; width: 100%; margin-top: 4px; }
.home-page .home-history-links a { color: var(--home-green); font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.home-page :focus-visible { outline: 3px solid #c17a4a; outline-offset: 4px; }

.home-page .home-community { padding: 76px 24px; background: #f0eee4; }
.home-page .home-community-inner { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(36px, 6vw, 76px); margin: 0 auto; }
.home-page .home-community-copy h2 { max-width: 420px; margin: 0; color: var(--home-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 46px); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
.home-page .home-community-copy > p:not(.home-eyebrow) { max-width: 420px; margin: 18px 0 24px; color: var(--home-muted); font-size: 16px; line-height: 1.8; }
.home-page .home-community-photos { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 16px; }
.home-page .home-community-photo { min-width: 0; margin: 0; }
.home-page .home-community-photo img { display: block; width: 100%; height: clamp(210px, 28vw, 330px); object-fit: cover; }
.home-page .home-community-photo-small { margin-top: 56px; }
.home-page .home-community-photo-small img { height: clamp(180px, 23vw, 270px); }
.home-page .home-community-photo figcaption { margin-top: 10px; color: var(--home-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
    .home-page .home-hero-heading { width: calc(100% - 40px); padding: 26px 0 22px; }
    .home-page .home-hero-heading h2 { font-size: clamp(27px, 7vw, 38px); }
    .home-page .home-hero { min-height: 390px; align-items: flex-end; }
    .home-page .home-hero-image { object-position: center; }
    .home-page .home-hero-shade { background: linear-gradient(0deg, rgba(15,38,32,.48) 0%, rgba(15,38,32,.16) 28%, rgba(15,38,32,0) 55%); }
    .home-page .home-hero-content { width: calc(100% - 40px); padding: 0 0 22px; }
    .home-page .home-actions { justify-content: center; gap: 10px; }
    .home-page .home-button { min-height: 46px; padding: 0 14px; font-size: 13px; }
    .home-page .home-welcome,
    .home-page .home-explore { width: calc(100% - 40px); }
    .home-page .home-welcome { grid-template-columns: 62px minmax(0, 1fr); gap: 18px; padding: 52px 0; }
    .home-page .home-welcome-mark { width: 58px; height: 58px; font-size: 27px; }
    .home-page .home-welcome h2 {
           font-size: clamp(22px, 5.5vw, 30px);
           white-space: nowrap;
           text-align: center;
    }
    .home-page .home-welcome p:last-child { font-size: 15px; }
    .home-page .home-explore { padding: 52px 0 62px; }
    .home-page .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-page .home-section-heading h2 { font-size: 34px; }
    .home-page .home-cards { grid-template-columns: 1fr; gap: 12px; }
    .home-page .home-card { min-height: 225px; padding: 22px; }
    .home-page .home-history-card { min-height: 0; }
    .home-page .home-history-links { grid-template-columns: 1fr; }
    .home-page .home-card-icon { margin-bottom: 18px; }
    .home-page .home-community { padding: 54px 20px; }
    .home-page .home-community-inner { grid-template-columns: 1fr; gap: 28px; }
    .home-page .home-community-photos { gap: 10px; }
    .home-page .home-community-photo-small { margin-top: 34px; }
    .home-page .home-community-photo img { height: 220px; }
    .home-page .home-community-photo-small img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ==========================================
   Homepage Monthly Event Selection
   12 buttons: 4 columns × 3 rows
   ========================================== */

.home-page .home-month-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0 0 16px;
}

.home-page .home-month-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 36px;
    padding: 6px 2px;

    border: 1px solid #d8dcd2;
    border-radius: 4px;

    background: #f4f3eb;
    color: var(--home-green);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

/* Mouse hover */
.home-page .home-month-buttons button:hover {
    background: #e7ede3;
    border-color: #aab9a6;
}

/* Selected month */
.home-page .home-month-buttons button.is-selected,
.home-page .home-month-buttons button[aria-pressed="true"] {
    background: var(--home-green);
    color: #ffffff;
    border-color: var(--home-green);
}

/* Keyboard focus */
.home-page .home-month-buttons button:focus-visible {
    outline: 3px solid #c17a4a;
    outline-offset: 2px;
}

/* Mobile layout */
@media (max-width: 760px) {
    .home-page .home-month-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .home-page .home-month-buttons button {
        min-height: 40px;
        font-size: 14px;
    }
}