/* =========================================================================
   The Pasture Pulpit — main stylesheet
   Palette drawn from the charcoal cross drawing: warm parchment paper,
   soft charcoal ink, weathered brown, and muted pasture sage.
   ========================================================================= */

:root {
    --parchment:      #f3ecdd;
    --parchment-2:    #eae0cc;
    --parchment-card: #fbf7ee;
    --ink:            #2b2723;
    --ink-soft:       #514a41;
    --ink-faint:      #7a7062;
    --brown:          #6d5a45;
    --brown-light:    #93795c;
    --sage:           #6b7355;
    --gold:           #b1874c;
    --line:           #d8cdb6;
    --shadow:         rgba(43, 39, 35, 0.14);

    --serif-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --serif-body:    'EB Garamond', Georgia, 'Times New Roman', serif;

    --maxw: 1120px;
    --maxw-read: 720px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--serif-body);
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--parchment);
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(146, 121, 92, 0.10), transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--serif-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: .01em;
}

/* ---------- Layout helpers --------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container--read { max-width: var(--maxw-read); }
.site-main { display: block; }
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.center { text-align: center; }

/* =========================================================================
   Header + hero
   ========================================================================= */
.site-header { position: relative; background: var(--ink); }

.site-header--hero {
    background-image:
        linear-gradient(180deg, rgba(20, 18, 16, 0.35) 0%, rgba(20, 18, 16, 0.15) 35%, rgba(30, 26, 22, 0.78) 100%),
        url('/images/background.png');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}
.site-header--full  { min-height: 82vh; }
.site-header--banner { min-height: 46vh; }

.site-header__overlay {
    display: flex;
    flex-direction: column;
    min-height: inherit;
}

/* ---------- Navigation ------------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--parchment);
    font-family: var(--serif-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.nav__brand:hover { color: #fff; }
.nav__brand-mark { color: var(--gold); font-size: 1.35rem; }

.site-header:not(.site-header--hero) .nav { border-bottom: 1px solid rgba(255,255,255,.08); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__links a {
    color: rgba(243, 236, 221, 0.86);
    font-family: var(--serif-display);
    font-size: 1.25rem;
    letter-spacing: .03em;
    padding: .25rem 0;
    position: relative;
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .25s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: #fff; }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .4rem;
}
.nav__toggle span {
    width: 26px; height: 2px;
    background: var(--parchment);
    display: block;
}

/* ---------- Hero content ----------------------------------------------- */
.hero__content {
    margin: auto auto 0;
    max-width: var(--maxw);
    width: 100%;
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    color: var(--parchment);
}
.site-header--banner .hero__content { padding-bottom: 3rem; }

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #fbf7ee;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero__title--banner { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.hero__tagline {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    margin: 0 0 .75rem;
    color: #f0e7d4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero__subtagline {
    font-size: 1.2rem;
    letter-spacing: .04em;
    color: rgba(243, 236, 221, 0.9);
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero__content .btn { margin-top: 1.75rem; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-block;
    font-family: var(--serif-display);
    font-size: 1.15rem;
    letter-spacing: .05em;
    padding: .7rem 1.9rem;
    border: 1.5px solid var(--gold);
    border-radius: 2px;
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all .22s ease;
    text-transform: uppercase;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn--solid { background: var(--brown); border-color: var(--brown); color: #fbf7ee; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost-light { color: var(--parchment); border-color: rgba(243,236,221,.7); }
.btn--ghost-light:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }

/* =========================================================================
   Section headings
   ========================================================================= */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head__eyebrow {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: .08em;
    display: block;
    margin-bottom: .35rem;
}
.section-head__title {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    margin: 0;
}
.section-head__title::after {
    content: '';
    display: block;
    width: 62px; height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

/* =========================================================================
   Intro / welcome band
   ========================================================================= */
.welcome { text-align: center; }
.welcome p {
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 760px;
    margin: 0 auto 1.2rem;
}
.welcome .lead-verse {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--brown);
}

/* Alternating band background */
.band { background: var(--parchment-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* =========================================================================
   Post cards grid
   ========================================================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.post-card {
    background: var(--parchment-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2rem 1.9rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px var(--shadow); }
.post-card__meta {
    font-size: .95rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: .6rem;
}
.post-card__scripture {
    font-family: var(--serif-display);
    font-style: italic;
    color: var(--sage);
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.05rem;
}
.post-card__title {
    font-size: 1.7rem;
    margin: 0 0 .7rem;
    line-height: 1.2;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brown); }
.post-card__excerpt { color: var(--ink-soft); margin: 0 0 1.3rem; flex: 1; }
.post-card__more {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    align-self: flex-start;
}
.post-card__more::after { content: ' \2192'; }

/* =========================================================================
   Single post (article)
   ========================================================================= */
.article { padding: 3.5rem 0 4.5rem; }
.article__header { text-align: center; margin-bottom: 2.5rem; }
.article__title { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: .3rem 0 .6rem; }
.article__meta { color: var(--ink-faint); letter-spacing: .05em; }
.article__scripture {
    display: inline-block;
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--sage);
    margin-top: .5rem;
}
.article__divider {
    width: 70px; height: 2px; background: var(--gold);
    border: 0; margin: 1.6rem auto;
}
.article__body { font-size: 1.22rem; }
.article__body p { margin: 0 0 1.4rem; }
.article__body h2 { font-size: 2rem; margin: 2.4rem 0 1rem; }
.article__body h3 { font-size: 1.55rem; margin: 2rem 0 .8rem; }
.article__body ul, .article__body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.article__body li { margin-bottom: .5rem; }
.article__body a { text-decoration: underline; text-decoration-color: var(--line); }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article__body blockquote {
    margin: 2rem 0;
    padding: .5rem 0 .5rem 1.75rem;
    border-left: 3px solid var(--gold);
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--brown);
}
.article__body blockquote p { margin: 0 0 .5rem; }

.article__back {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.2rem;
}
.article__back::before { content: '\2190  '; }

/* =========================================================================
   Videos grid
   ========================================================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.video-card {
    background: var(--parchment-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px var(--shadow); }
.video-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    overflow: hidden;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 26, 22, 0.15);
    transition: background .2s ease;
}
.video-card:hover .video-card__play { background: rgba(30, 26, 22, 0.35); }
.video-card__play span {
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(177, 135, 76, 0.92);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.video-card__play span::after {
    content: '';
    margin-left: 4px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}
.video-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.video-card__title { font-size: 1.4rem; margin: 0 0 .5rem; line-height: 1.2; }
.video-card__desc { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* =========================================================================
   Prose blocks (about page)
   ========================================================================= */
.prose { font-size: 1.22rem; }
.prose p { margin: 0 0 1.4rem; }
.prose h2 { font-size: 2rem; margin: 2.4rem 0 1rem; }
.prose blockquote {
    margin: 2rem 0;
    padding: .5rem 0 .5rem 1.75rem;
    border-left: 3px solid var(--gold);
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brown);
}
.figure-charcoal {
    margin: 2.5rem 0;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px var(--shadow);
}
.figure-charcoal img { width: 100%; }
.figure-charcoal figcaption {
    font-family: var(--serif-display);
    font-style: italic;
    text-align: center;
    color: var(--ink-faint);
    padding: .8rem;
    background: var(--parchment-card);
}

/* =========================================================================
   Contact form
   ========================================================================= */
.contact-form { margin-top: .5rem; }
.field { margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label {
    display: block;
    font-family: var(--serif-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: .4rem;
}
.field label .opt { color: var(--ink-faint); font-size: 1rem; font-style: italic; }
.field input,
.field textarea {
    width: 100%;
    font-family: var(--serif-body);
    font-size: 1.12rem;
    color: var(--ink);
    background: var(--parchment-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .75rem .9rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(177, 135, 76, 0.18);
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
    position: absolute;
    left: -5000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-notice {
    padding: 1rem 1.3rem;
    border-radius: 3px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.form-notice--ok {
    background: #e7eede;
    border: 1px solid var(--sage);
    color: #45521f;
}
.form-notice--error {
    background: #f4e2dd;
    border: 1px solid #a23b2d;
    color: #7a2a20;
}

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   Empty states
   ========================================================================= */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ink-faint);
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.4rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    background: var(--ink);
    color: rgba(243, 236, 221, 0.8);
    padding: 3.5rem 1.5rem 2.5rem;
    margin-top: 2rem;
    text-align: center;
}
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer__mark { color: var(--gold); font-size: 1.5rem; }
.site-footer__name {
    display: block;
    font-family: var(--serif-display);
    font-size: 1.8rem;
    color: var(--parchment);
    margin-top: .3rem;
}
.site-footer__tag { font-style: italic; color: rgba(243,236,221,.6); margin: .3rem 0 1.6rem; }
.site-footer__nav { display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.site-footer__nav a { color: rgba(243,236,221,.85); font-family: var(--serif-display); font-size: 1.2rem; }
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__verse {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(243,236,221,.7);
    max-width: 620px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.site-footer__verse span { display: block; font-style: normal; font-size: 1rem; color: var(--gold); margin-top: .4rem; }
.site-footer__copy { font-size: .95rem; color: rgba(243,236,221,.5); margin: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 760px) {
    body { font-size: 1.1rem; }
    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(30, 26, 22, 0.97);
        padding: .5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 40;
    }
    body.nav-open .nav__links { max-height: 320px; }
    .nav__links li { width: 100%; text-align: center; }
    .nav__links a { display: block; padding: .9rem 0; }
    .site-header--full { min-height: 88vh; }
    .section { padding: 3rem 0; }
}

/* Phones and small tablets in portrait use the portrait drawing
   so the cross stays fully in frame. */
@media (max-width: 820px) {
    .site-header--hero {
        background-image:
            linear-gradient(180deg, rgba(20, 18, 16, 0.30) 0%, rgba(20, 18, 16, 0.12) 30%, rgba(30, 26, 22, 0.80) 100%),
            url('/images/background_mobile.png');
        background-position: 62% center;
    }
}
