/* Oak Grove Missionary Baptist Church — edit theme colors here */
:root {
    --purple: #421b67;
    --purple-dark: #251038;
    --purple-soft: #f5f0f9;
    --gold: #d5a640;
    --gold-light: #f4da91;
    --ink: #292332;
    --white: #fff;
    --max: 1150px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #fffdf9;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65
}

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

a {
    color: var(--purple)
}

a:hover {
    text-decoration: underline
}

.wrap {
    width: min(92%, var(--max));
    margin: auto
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0
}

.skip:focus {
    left: 12px;
    z-index: 99;
    background: white;
    padding: 10px
}

.site-header {
    background: var(--purple-dark);
    color: white;
    border-bottom: 5px solid var(--gold)
}

.topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 0
}

.brand {
    font-weight: 800;
    color: white;
    text-decoration: none;
    line-height: 1.25;
    letter-spacing: .02em
}

.brand small {
    display: block;
    color: var(--gold-light);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: .92rem
}

.nav a:hover,
.nav a[aria-current=page] {
    background: #62417d;
    color: #fff
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--gold);
    color: #fff;
    padding: 7px 11px;
    border-radius: 4px;
    font-size: 1.4rem
}

.hero {
    background: var(--purple-dark)
}

.hero img {
    display: block;
    width: 100%;
    height: 600px;
    max-height: 600px;
    object-fit: contain;
}

.intro {
    padding: 54px 0 45px;
    text-align: center
}

.eyebrow {
    color: #7c5816;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800
}

.intro h1,
h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.2;
    color: var(--purple)
}

.intro h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    margin: 8px 0 16px
}

.intro p {
    font-size: 1.14rem;
    max-width: 760px;
    margin: 0 auto 25px
}

.btn {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    padding: 12px 23px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--purple)
}

.btn:hover {
    background: var(--purple-dark);
    text-decoration: none
}

.btn.alt {
    background: transparent;
    color: var(--purple);
    border-color: var(--gold)
}

.section {
    padding: 55px 0
}

.light {
    background: var(--purple-soft)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.card {
    border-top: 5px solid var(--gold);
    background: #fff;
    box-shadow: 0 4px 20px #29173813;
    border-radius: 4px;
    overflow: hidden
}

.card img {
    width: 100%;
    height: 215px;
    object-fit: cover
}

.card .content {
    padding: 22px
}

.card h3 {
    margin: 0 0 9px;
    font-size: 1.45rem
}

.card p {
    margin: 0 0 16px
}

.page-title {
    background: var(--purple-soft);
    border-bottom: 1px solid #e7d9ed;
    padding: 38px 0
}

.page-title h1 {
    margin: 0
}

.page-title p {
    margin: 8px 0 0
}

.article {
    max-width: 900px;
    padding: 45px 0 65px
}

.article h2 {
    margin-top: 28px
}

.article p {
    margin: 0 0 17px
}

.feature-photo {
    width: min(100%, 550px);
    margin: 0 auto 24px;
    border-radius: 7px
}

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start
}

.contact-box {
    background: var(--purple-soft);
    padding: 27px;
    border-left: 5px solid var(--gold);
    border-radius: 4px
}

.footer {
    background: var(--purple-dark);
    color: #efe7f4;
    padding: 36px 0;
    text-align: center;
    border-top: 6px solid var(--gold)
}

.footer a {
    color: var(--gold-light)
}

.footer p {
    margin: 5px auto
}

.note {
    color: #61586b;
    font-size: .93rem
}

.placeholder {
    padding: 36px;
    border: 2px dashed #c9b5d7;
    border-radius: 8px;
    text-align: center;
    background: var(--purple-soft)
}

@media(max-width:900px) {
    .topline {
        align-items: flex-start
    }

    .nav {
        justify-content: flex-end
    }

    .nav a {
        padding: 6px 8px
    }

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

@media(max-width:650px) {
    .topline {
        align-items: center;
        flex-wrap: wrap
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 8px
    }

    .nav.open {
        display: flex
    }

    .nav a {
        padding: 10px 14px
    }

    .hero img {
        min-height: 180px;
        object-fit: cover
    }

    .cards,
    .two-col {
        grid-template-columns: 1fr
    }

    .section {
        padding: 34px 0
    }

    .intro {
        padding: 35px 0
    }

    .card img {
        height: 230px
    }

    .brand {
        font-size: .91rem
    }
}
