:root {
    /* 1. Base Palette (The raw colors) */
    --church-red: #9f1f1c;
    --church-red-dark: #761714;
    --church-gold: #c89a3d;
    
    --paper-light: #ffffff;
    --paper-base: #ece3d2;
    --paper-dark: #dfd4bf;
    
    --ink-dark: #1c1a19;
    --ink-base: #35302e;
    --ink-light: #6d625d;

    /* 2. Semantic Tokens (How we actually theme the site) */
    --bg-page: var(--paper-base);
    --bg-surface: var(--paper-light);
    
    --text-primary: var(--ink-dark);
    --text-secondary: var(--ink-base);
    --text-muted: var(--ink-light);
    
    --brand-primary: var(--church-red);
    --brand-hover: var(--church-red-dark);
    --brand-accent: var(--church-gold);
    
    --border-default: rgba(88, 62, 50, 0.18);
    --shadow-default: 0 16px 40px rgba(63, 34, 23, 0.08);

    /* 3. Spacing & Form */
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --site-width: 72rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
    color: var(--text-secondary);
    background: var(--bg-page);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.container {
    width: min(calc(100% - 2rem), var(--site-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(248, 243, 234, 0.9);
    border-bottom: 1px solid var(--border-default);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5.5rem;
    padding: 0.75rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.brand__logo {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__text strong,
.site-footer h2,
h1,
h2,
h3 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: var(--text-primary);
}

.brand__text strong {
    font-size: 1rem;
    line-height: 1.1;
}

.brand__text span {
    color: var(--text-muted);
    font-size: 0.9rem;
}



.nav-toggle {
    display: none;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    font: inherit;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.7rem;
    padding: 0 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transition: transform 180ms ease;
    border-radius: 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--brand-hover);
    outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: var(--text-primary);
}

.hero,
.page-hero,
.section {
    padding: 4.5rem 0;
}

.hero {
    padding-top: 5rem;
}

.split-hero__grid,
.two-column,
.event-highlight,
.site-footer__grid {
    display: grid;
    gap: 1.5rem;
}

.two-column,
.event-highlight,
.site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.split-hero__text {
    max-width: 36rem;
}

.split-hero__media {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.media-frame {
    width: 100%;
    max-width: 28rem;
    aspect-ratio: 4 / 5;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-default);
    overflow: hidden;
    position: relative;
    margin: 0;
}

.media-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    background: var(--bg-page);
    text-align: center;
    padding: 2rem;
}

.floating-card {
    position: relative;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 28rem;
    z-index: 10;
}

.card-title-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    text-wrap: balance;
}

h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    text-wrap: balance;
}

.hero__lede,
.page-hero__lede {
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.purpose-statement,
.card__quote {
    color: var(--brand-primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.hero__card,
.card,
.feature-card,
.schedule-card,
.detail-card {
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(88, 62, 50, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-default);
}

.hero__card,
.card,
.detail-card {
    padding: 1.6rem;
}

.card--accent {
    background: linear-gradient(145deg, rgba(245, 221, 218, 0.92), rgba(255, 250, 244, 0.98));
}

.date-card {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid rgba(88, 62, 50, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-default);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.date-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: #fff;
    padding: 1.5rem;
    min-width: 6.5rem;
    text-align: center;
}

.date-card__month {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
}

.date-card__day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.2rem;
    font-family: inherit; /* Inherit Trebuchet for crisp block numbers */
}

.date-card__content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-card__content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.date-card__meta {
    font-size: 0.9rem;
    color: var(--brand-accent); /* beautiful gold accent for times */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-style: italic;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.date-card__content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 40rem) {
    .date-card {
        flex-direction: column;
    }
    .date-card__date {
        padding: 0.75rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
    }
    .date-card__month {
        font-size: 1rem;
    }
    .date-card__day {
        font-size: 1.5rem;
        margin-top: 0;
    }
    .date-card__content {
        padding: 1.5rem;
    }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.button:hover,
.button:focus-visible {
    background: var(--brand-hover);
    transform: translateY(-1px);
    outline: none;
}

.button--secondary {
    border-color: rgba(159, 31, 28, 0.18);
    background: transparent;
    color: var(--brand-hover);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    background: rgba(159, 31, 28, 0.08);
}

.section--tinted {
    background: rgba(159, 31, 28, 0.04);
    border-top: 1px solid rgba(159, 31, 28, 0.08);
    border-bottom: 1px solid rgba(159, 31, 28, 0.08);
}

.section--event {
    background: linear-gradient(135deg, rgba(159, 31, 28, 0.92), rgba(114, 24, 21, 0.94));
    color: rgba(255, 250, 244, 0.94);
}

.section--event .eyebrow,
.section--event h2 {
    color: #fff;
}

.section--event p {
    color: rgba(255, 250, 244, 0.86);
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.schedule-grid {
    display: grid;
    gap: 1.25rem;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.feature-card,
.schedule-card {
    padding: 1.45rem;
}

.schedule-card__day {
    margin: 0 0 0.9rem;
    color: var(--brand-hover);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.stacked-cards {
    display: grid;
    gap: 1rem;
}

.detail-card h2 {
    font-size: 1.6rem;
}

.info-list,
.schedule-card ul,
.footer-links {
    margin: 0;
    padding-left: 1.15rem;
}

.info-list li,
.schedule-card li,
.footer-links li {
    margin-bottom: 0.6rem;
}

.section-link {
    margin-top: 1.4rem;
}

.section-link a {
    color: var(--brand-hover);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.event-highlight__media img {
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 40px rgba(14, 5, 5, 0.25);
}

.site-footer {
    padding: 3rem 0 1.25rem;
    background: #201816;
    color: rgba(250, 246, 240, 0.82);
}

.site-footer h2 {
    color: #fff7ef;
    font-size: 1.2rem;
}

.site-footer a {
    color: rgba(250, 246, 240, 0.86);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.site-footer__legal {
    margin: 2rem auto 0;
    width: min(calc(100% - 2rem), var(--site-width));
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 247, 239, 0.14);
    color: rgba(250, 246, 240, 0.62);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 56rem) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        width: 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 0.75rem;
    }

    .site-nav a {
        justify-content: center;
        min-height: 3rem;
    }

    .hero__grid,
    .two-column,
    .event-highlight,
    .site-footer__grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .event-highlight__media img {
        margin-left: 0;
        max-width: 20rem;
    }
}

@media (max-width: 40rem) {
    body {
        background: var(--bg-page);
    }

    .hero,
    .page-hero,
    .section {
        padding: 3.25rem 0;
    }

    .brand__text span {
        display: none;
    }

    .hero__card,
    .card,
    .feature-card,
    .schedule-card,
    .detail-card {
        border-radius: var(--radius-sm);
    }
}
