:root {
    --bg: #1a1612;
    --surface: #242018;
    --surface-hi: #2c2820;
    --brand-orange: #E85A1A;
    --brand-gold: #FFD166;
    --brand-blue: #1E5BAA;
    --text: #f4f1ec;
    --text-muted: #a8a39c;
    --border: rgba(255, 255, 255, 0.1);
    --primary-margin: 0 auto;
}

html {
    scroll-behavior: smooth;
    background: #15110d;
}

body {
    margin: 0;
    background:
        radial-gradient(
            ellipse 60% 45% at 50% 75%,
            rgba(255, 209, 102, 0.08),
            transparent 70%
        ),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Layout ---------- */

#body-main {
    /* border: 2px solid red; */
    max-width: 720px;
    margin: var(--primary-margin);
    padding: 4rem 2rem;
    display: grid;
    gap: 3.5rem;
    /* main stretches to fill the viewport (flex:1 in nav.css); keep the rows
       gathered + centered so the gaps stay an even 3.5rem instead of blowing out */
    align-content: center;
    text-align: center;
}

#section-h1 {
    /* border: 2px solid red; */
    margin: var(--primary-margin);
}

#section-h1 h1 {
    font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text);
}

#section-h2 {
    /* border: 2px solid red; */
    margin: var(--primary-margin);
    max-width: 48ch;
    color: var(--text-muted);
    font-size: 1.1rem;
}

#section-h2 p {
    margin: 0 0 0.6rem;
}

#section-h2 p:last-child {
    margin-bottom: 0;
}

#section-h2 .accent {
    color: var(--brand-gold);
    font-weight: 700;
}

#btn-section {
    /* border: 2px solid red; */
    margin: var(--primary-margin);
    display: grid;
    gap: 1.25rem;
    justify-items: center;
}

#btn-section h3 {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    margin: 0;
    max-width: 32ch;
    line-height: 1.4;
}

.give-cadence {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Give button (Tithe.ly trigger, restyled) ---------- */

.tithely-give-button {
    background: var(--brand-gold);
    color: #1a1612;
    border: none;
    border-radius: 8px;
    padding: 0.95rem 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.tithely-give-button:hover {
    background: #ffdd85;
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.25);
}

.tithely-give-button:active {
    transform: translateY(1px);
}

.tithely-give-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35);
}

.give-trust {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    #body-main {
        padding: 2.5rem 1.25rem;
        gap: 2.5rem;
    }
}
