/* Mt Tabor Creation Care — warm & pastoral */

:root {
    --green-deep: #2f5230;
    --green: #4a7340;
    --green-soft: #6f9a5e;
    --green-pale: #e6eedd;
    --amber: #e8b04b;
    --amber-deep: #c98f2e;
    --cream: #faf6ec;
    --paper: #fffdf7;
    --ink: #2b3226;
    --ink-soft: #5c6553;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(47, 82, 48, 0.10);
    --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--green-deep); margin: 0 0 0.5em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.wrap--wide { max-width: 1280px; }

.kicker {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--amber-deep);
    margin: 0 0 0.4rem;
    display: inline-block;
    text-decoration: none;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--amber); color: #3a2c10; }
.btn--primary:hover { background: var(--amber-deep); color: #fff; }
.btn--ghosted { background: rgba(255,255,255,0.16); color: #fff; border: 2px solid rgba(255,255,255,0.7); backdrop-filter: blur(3px); }
.btn--leaf { background: var(--green); color: #fff; padding: 0.55em 1.2em; font-size: 0.92rem; }
.btn--lg { font-size: 1.1rem; padding: 0.9em 2em; }

/* Header */
.site-header {
    position: relative;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid #eee5d2;
}
.site-header--overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom: none;
}
.site-header__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { height: 44px; width: auto; }
.site-logo__text {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--green-deep);
}
.site-header--overlay .site-logo__text { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .nav { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav .nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
}
.site-header--overlay .site-nav .nav a { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.site-nav .nav a:hover { color: var(--amber-deep); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--green-deep); margin: 5px 0; border-radius: 2px; transition: 0.2s; }
.site-header--overlay .nav-toggle span { background: #fff; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 140px;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-sky {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #2e4a63 0%, #7c93a8 34%, #e9c67e 68%, #f6e3b5 100%);
    animation: skyGlow 18s ease-in-out infinite alternate;
}
@keyframes skyGlow {
    from { filter: hue-rotate(0deg) brightness(1); }
    to   { filter: hue-rotate(-8deg) brightness(1.07); }
}
.hero-sun {
    position: absolute;
    left: 50%; top: 34%;
    width: 130px; height: 130px;
    margin-left: -65px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff3d0 0%, #f3c65e 55%, rgba(243,198,94,0) 72%);
    box-shadow: 0 0 90px 40px rgba(243, 198, 94, 0.45);
    animation: sunRise 14s ease-in-out infinite alternate;
}
@keyframes sunRise {
    from { transform: translateY(16px) scale(0.97); opacity: 0.9; }
    to   { transform: translateY(-14px) scale(1.04); opacity: 1; }
}
.hero-hills {
    position: absolute;
    bottom: 0; left: -5%;
    width: 110%; height: 46%;
}
.hero-hills--far  { animation: hillDrift 26s ease-in-out infinite alternate; opacity: 0.85; height: 55%; }
.hero-hills--mid  { animation: hillDrift 20s ease-in-out infinite alternate-reverse; height: 48%; }
.hero-hills--near { animation: hillDrift 16s ease-in-out infinite alternate; height: 38%; }
@keyframes hillDrift {
    from { transform: translateX(0); }
    to   { transform: translateX(-2.5%); }
}
/* drifting leaves (populated by JS) */
.hero-leaves { position: absolute; inset: 0; pointer-events: none; }
.hero-leaf {
    position: absolute;
    top: -6%;
    width: 18px; height: 18px;
    opacity: 0;
    animation: leafFall linear infinite;
}
.hero-leaf svg { width: 100%; height: 100%; animation: leafSpin ease-in-out infinite alternate; animation-duration: inherit; }
@keyframes leafFall {
    0%   { transform: translate(0, -5vh); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translate(6vw, 50vh); }
    92%  { opacity: 0.8; }
    100% { transform: translate(-3vw, 108vh); opacity: 0; }
}
@keyframes leafSpin {
    from { transform: rotate(-60deg); }
    to   { transform: rotate(200deg); }
}
.hero--static .hero-sky, .hero--static .hero-sun,
.hero--static .hero-hills, .hero--static .hero-leaf,
.hero--static .hero-leaf svg { animation: none; }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-title {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 700;
    text-shadow: 0 2px 24px rgba(20, 35, 20, 0.45);
    margin-bottom: 0.4em;
}
.hero-sub {
    color: #fdf8ec;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    max-width: 620px;
    margin: 0 auto 1.6em;
    text-shadow: 0 1px 12px rgba(20, 35, 20, 0.4);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll span {
    display: block; width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.75);
    border-radius: 14px;
    position: relative;
}
.hero-scroll span::after {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: scrollNudge 1.8s ease-in-out infinite;
}
@keyframes scrollNudge {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(12px); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-sky, .hero-sun, .hero-hills, .hero-leaf, .hero-leaf svg,
    .hero-scroll span::after { animation: none !important; }
}

/* Featured band */
.featured-band { padding: 70px 0 10px; }
.featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured-card__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured-card__body { padding: 42px; align-self: center; }
.featured-card__body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.featured-card__body h2 a { text-decoration: none; color: var(--green-deep); }
.read-more { font-weight: 700; text-decoration: none; color: var(--amber-deep); }

/* Post grid */
.post-grid-section { padding: 70px 0 80px; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 26px;
}
.post-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(47, 82, 48, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--green-pale); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--green-soft);
}
.post-card__placeholder svg { width: 56px; height: 56px; }
.post-card__body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag {
    font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--amber-deep);
    margin-bottom: 6px;
}
.post-card__title { font-size: 1.25rem; margin-bottom: 0.4em; }
.post-card__title a { text-decoration: none; color: var(--green-deep); }
.post-card__excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 14px; flex: 1; }
.post-card__meta { font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 8px; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    padding: 64px 0;
}
.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.2em; }
.cta-band p { color: #dfe9d4; max-width: 540px; margin: 0; }

/* Page head */
.page-head { padding: 80px 0 20px; text-align: center; }
.page-head__title { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head__desc { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.page-head--error { padding: 140px 0 120px; }
.page-head--error .btn { margin-top: 22px; }

/* Article */
.article { padding: 70px 0 60px; }
.article-header { text-align: center; margin-bottom: 36px; }
.article-title { font-size: clamp(2rem, 5vw, 3.1rem); }
.article-excerpt { color: var(--ink-soft); font-size: 1.2rem; }
.article-meta { color: var(--ink-soft); font-size: 0.92rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.article-meta__author { font-weight: 700; text-decoration: none; }
.article-image { margin: 0 auto 44px; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-image figcaption { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-top: 10px; }

/* Ghost content + card widths */
.gh-content > * + * { margin-top: 1.4em; }
.gh-content h2, .gh-content h3 { margin-top: 1.8em; }
.gh-content blockquote {
    border-left: 4px solid var(--amber);
    margin: 1.6em 0;
    padding: 0.4em 0 0.4em 1.2em;
    font-family: var(--serif);
    font-size: 1.15em;
    color: var(--green-deep);
}
.gh-content img { border-radius: 10px; }
.gh-content hr { border: 0; border-top: 1px solid #e5dcc6; margin: 2.5em 0; }
.gh-content pre { background: #2b3226; color: #eef3e6; padding: 1.2em; border-radius: 10px; overflow-x: auto; }

.kg-width-wide { position: relative; width: min(1120px, calc(100vw - 48px)); margin-left: calc(50% - min(560px, 50vw - 24px)); }
.kg-width-full { position: relative; width: 100vw; left: 50%; margin-left: -50vw; }
.kg-width-full img { border-radius: 0; }

/* Article footer */
.article-footer { margin-top: 50px; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.article-tags a {
    background: var(--green-pale);
    color: var(--green-deep);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.article-cta {
    background: var(--paper);
    border: 1px solid #eee5d2;
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
}
.article-comments { padding-bottom: 60px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 44px;
    font-weight: 600;
}
.pagination a { text-decoration: none; }
.page-number { color: var(--ink-soft); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--green-deep); color: #cfdcc3; padding: 56px 0 34px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.site-footer__mark { height: 42px; width: 42px; }
.site-footer__title { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0; }
.site-footer__desc { margin: 0; max-width: 480px; font-size: 0.95rem; }
.site-footer__nav .nav { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.site-footer__nav a { color: #cfdcc3; text-decoration: none; font-size: 0.95rem; }
.site-footer__nav a:hover { color: var(--amber); }
.site-footer__meta { font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px; margin: 0; }
.site-footer__meta a { color: #cfdcc3; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card__body { padding: 30px; }
}
@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 26px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    }
    .site-nav.is-open { display: flex; }
    .site-nav .nav { flex-direction: column; gap: 14px; width: 100%; }
    .site-header--overlay .site-nav .nav a { color: var(--ink); text-shadow: none; }
    .hero { min-height: 86vh; padding: 100px 20px 120px; }
    .cta-band__inner { flex-direction: column; text-align: center; }
}
