/* Reset and Base Styles */
:root {
    --color-primary: #04885b;
    --color-primary-container: #036b47;
    --color-primary-strong: #025438;
    --color-link: #025438;
    --color-secondary: #8b6e2f; /* Dijon/Ochre */
    --color-tertiary: #b04e38; /* Russet */
    --color-background: #faf9f6;
    --color-surface-low: #f4f3f1;
    --color-surface-high: #e9e8e5;
    --color-on-surface: #1a1c1a;
    --color-on-surface-variant: #414844;
    --color-outline: rgba(65, 72, 68, 0.1);

    --font-serif: 'Newsreader', serif;
    --font-sans: 'Manrope', sans-serif;

    --gap: 2rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-xl: 1rem;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--gh-font-body, var(--font-sans));
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--color-on-surface);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading, var(--font-serif));
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 8vw, 4.5rem); font-style: italic; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-style: normal; }
h3 { font-size: 1.5rem; font-style: italic; color: var(--color-on-surface-variant); }

p { margin-bottom: 1.8rem; }

a {
    color: var(--color-link);
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover { color: var(--color-primary-container); }

.gh-content a,
.gh-article-excerpt a,
.js-clean-excerpt a,
.post-card p a {
    text-decoration: underline;
    text-decoration-color: rgba(2, 84, 56, 0.45);
}

.gh-content a:hover,
.gh-article-excerpt a:hover,
.js-clean-excerpt a:hover,
.post-card p a:hover {
    text-decoration-color: currentColor;
}

/* Layout */
.gh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

.gh-main {
    padding-top: 100px;
    min-height: 80vh;
}

/* Header */
.gh-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(250, 249, 246, 0.8);
    transition: all 0.3s ease;
}

.gh-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.gh-head-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gh-head-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-on-surface);
}

.gh-burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.gh-head-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.gh-head-menu a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-surface);
}

.nav-current a {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
}

.gh-head-button {
    background: linear-gradient(135deg, var(--color-primary-container), var(--color-primary-strong));
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gh-head-button:hover,
.gh-head-button:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary-container));
}

.gh-head-button--outline {
    background: transparent;
    color: var(--color-link) !important;
    border-color: var(--color-link);
}

.gh-head-button--outline:hover,
.gh-head-button--outline:focus-visible {
    background: var(--color-link);
    color: #fff !important;
}

.gh-head-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Homepage Hero */
.hero {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;
}

section {
    padding: 6rem 0; /* large, consistent rhythmic spacing */
}

.section-actions {
    margin-top: 2rem;
}

.is-hidden {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-images, .hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-cover-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-card-image {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Section Overlines */
.section-overline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.4;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.5rem; /* Tightened gap to associated heading */
    margin-top: 0;
}

.event-card-link {
    color: var(--color-link);
    margin-top: 1rem;
    display: inline-block;
}

/* Proximity Principle: Headings immediately following overlines have no margin-top */
.section-overline + h1,
.section-overline + h2,
.section-overline + h3 {
    margin-top: 0;
}

/* Content Blocks */
.reflection-block {
    background-color: var(--color-surface-low);
    padding: 3rem;
    border-left: 4px solid var(--color-secondary);
    margin: 4rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Event Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
    margin-top: 2rem;
}

.event-card {
    background-color: var(--color-surface-low);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(4, 136, 91, 0.08);
}

.event-date {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.event-card h3 {
    margin-bottom: 0.25rem;
    margin-top: 0;
}

/* Activity Cards */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.activity-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--color-surface-low);
    border-radius: var(--radius-xl);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(4, 136, 91, 0.08);
}

.activity-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.activity-card p {
    font-size: 0.9375rem;
    color: var(--color-on-surface-variant);
    margin-bottom: 0;
}

/* Footer */
.gh-foot {
    background-color: var(--color-surface-low);
    padding: 4rem 0;
    margin-top: 4rem;
    color: var(--color-on-surface-variant);
    font-size: 0.875rem;
}

.gh-foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gh-foot-branding a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: rgba(2, 84, 56, 0.45);
}

.gh-foot-branding a:hover,
.gh-foot-branding a:focus-visible {
    text-decoration-color: currentColor;
}

/* Ghost Cards & Embeds */
.kg-card { margin: 3rem 0; }
.kg-image-card img { border-radius: var(--radius-md); width: 100%; height: auto; }
.kg-width-wide { grid-column: wide; }
.kg-width-full { grid-column: full; }

.kg-bookmark-card {
    background: var(--color-surface-low);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-outline);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 2rem;
    flex: 1;
}

.kg-bookmark-title { font-weight: 700; margin-bottom: 0.5rem; }
.kg-bookmark-description { font-size: 0.875rem; color: var(--color-on-surface-variant); }
.kg-bookmark-metadata { display: flex; align-items: center; margin-top: 1rem; font-size: 0.8125rem; color: var(--color-on-surface-variant); }
.kg-bookmark-icon { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }
.kg-bookmark-author::after { content: "•"; margin: 0 0.5rem; }
.kg-bookmark-publisher { opacity: 0.8; }
.kg-bookmark-thumbnail { flex-basis: 33%; position: relative; min-width: 160px; }
.kg-bookmark-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
    display: flex;
    padding: 1.5rem;
    background: var(--color-surface-low);
    border-radius: var(--radius-md);
    gap: 1rem;
}

.kg-callout-emoji { font-size: 1.5rem; }

@media (max-width: 800px) {
    .gh-head-inner {
        position: relative;
    }

    .gh-head-actions {
        display: none;
    }

    .gh-head-menu {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-background);
        padding: 4rem var(--gap);
        z-index: 999;
        overflow-y: auto;
    }

    .gh-head-open .gh-head-menu {
        display: block;
    }

    .gh-head-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .gh-head-menu a {
        font-size: 1.5rem;
    }

    .gh-burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .gh-burger-main {
        position: relative;
        width: 20px;
        height: 1px;
        background-color: var(--color-on-surface);
        transition: all 0.2s ease;
    }

    .gh-burger-main::before,
    .gh-burger-main::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: var(--color-on-surface);
        transition: all 0.2s ease;
    }

    .gh-burger-main::before { top: -6px; }
    .gh-burger-main::after { top: 6px; }

    .gh-head-open .gh-burger-main { background-color: transparent; }
    .gh-head-open .gh-burger-main::before { transform: rotate(45deg); top: 0; }
    .gh-head-open .gh-burger-main::after { transform: rotate(-45deg); top: 0; }
}

@media (max-width: 900px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-cover-img {
        height: 300px;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-cover-img {
        height: 300px;
    }

    section {
        padding: 4rem 0;
    }

    .reflection-block {
        padding: 2rem;
        margin: 2rem 0;
    }

    .gh-foot {
        margin-top: 2rem;
        padding: 2rem 0;
    }
}

/* Article & Page Specific Styles */
.gh-article {
    padding-bottom: 8vw;
}

.gh-article-header {
    padding-top: 8vw;
    padding-bottom: 4vw;
    margin-top: 4rem;
    text-align: center;
}

.gh-article-header--listing {
    padding: 6rem 0;
}

.gh-canvas {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

.gh-article-title {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.gh-article-meta {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-surface-variant);
}

.gh-article-meta--spaced {
    display: block;
    margin-top: 1rem;
}

.gh-article-excerpt {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-on-surface-variant);
    margin-bottom: 3rem;
}

.gh-article-image {
    margin-top: 2rem;
    margin-bottom: 0rem;
    grid-column: wide;
}

.gh-article-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.gh-content blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    border-left: 4px solid var(--color-secondary);
    padding-left: 2rem;
    margin: 3rem 0;
}

/* Event Specific Styles */
.event-template .gh-article-header {
    background-color: var(--color-surface-low);
    padding: 6rem 5% 4rem; /* More breathing room for title and long values */
    margin: 4rem auto 2rem; /* Added margin-top to separate from header */
    border-radius: var(--radius-xl); /* Add a delightful soft radius to the event header */
    text-align: center;
}

.gh-article-title {
    max-width: 900px;
    margin: 0 auto 2rem;
    word-wrap: break-word; /* Handle long titles */
}

.event-details-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem 5rem;
    margin: 2rem auto 0;
    border-top: 1px solid var(--color-outline);
    padding-top: 2rem;
    max-width: 1000px;
}

.event-detail-item {
    text-align: left;
    max-width: 350px;
}

.event-detail-item .detail-label,
.calendar-row .detail-label,
.event-map-container .detail-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.4;
    color: var(--color-secondary);
}

.event-detail-item .detail-label {
    margin-bottom: 0.75rem;
}

.calendar-row .detail-label,
.event-map-container .detail-label {
    margin-bottom: 2rem;
}

.event-detail-item .detail-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary-container);
    line-height: 1.2;
    word-break: break-word;
}

.calendar-row {
    flex-basis: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--color-outline);
    padding: 2rem 0;
    text-align: center;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cal-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-link) !important;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--color-link);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.cal-btn:hover,
.cal-btn:focus-visible {
    background: var(--color-link);
    color: #fff !important;
}

.cal-btn.map-link {
    margin-top: 1rem;
    display: inline-block;
}

.event-map-container {
    margin: 4rem auto;
    border-top: 1px solid var(--color-outline);
    padding-top: 3rem;
    text-align: center;
}

#event-map {
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.rsvp-card {
    background-color: var(--color-surface-low);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 6rem;
    border: 1px solid var(--color-outline);
}

.rsvp-card h3 {
    margin-top: 0;
}
